diff --git a/dropbox/async.py b/dropbox/async.py index a8c5728c..6e820731 100644 --- a/dropbox/async.py +++ b/dropbox/async.py @@ -4,4 +4,4 @@ # flake8: noqa # pylint: skip-file # If you have issues importing this module because Python recognizes it as a keyword, use async_ instead. -from async_ import * +from .async_ import * diff --git a/dropbox/async_.py b/dropbox/async_.py index 7d3870e2..cc262b33 100644 --- a/dropbox/async_.py +++ b/dropbox/async_.py @@ -38,7 +38,7 @@ def async_job_id(cls, val): value ``val``. :param str val: - :rtype: async_.LaunchResultBase + :rtype: LaunchResultBase """ return cls('async_job_id', val) @@ -63,8 +63,8 @@ def get_async_job_id(self): raise AttributeError("tag 'async_job_id' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(LaunchResultBase, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LaunchResultBase, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LaunchResultBase(%r, %r)' % (self._tag, self._value) @@ -96,8 +96,8 @@ def is_complete(self): """ return self._tag == 'complete' - def _process_custom_annotations(self, annotation_type, processor): - super(LaunchEmptyResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LaunchEmptyResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LaunchEmptyResult(%r, %r)' % (self._tag, self._value) @@ -150,8 +150,8 @@ def async_job_id(self): self._async_job_id_value = None self._async_job_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PollArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PollArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PollArg(async_job_id={!r})'.format( @@ -187,8 +187,8 @@ def is_in_progress(self): """ return self._tag == 'in_progress' - def _process_custom_annotations(self, annotation_type, processor): - super(PollResultBase, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PollResultBase, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PollResultBase(%r, %r)' % (self._tag, self._value) @@ -219,8 +219,8 @@ def is_complete(self): """ return self._tag == 'complete' - def _process_custom_annotations(self, annotation_type, processor): - super(PollEmptyResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PollEmptyResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PollEmptyResult(%r, %r)' % (self._tag, self._value) @@ -273,8 +273,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PollError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PollError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PollError(%r, %r)' % (self._tag, self._value) diff --git a/dropbox/auth.py b/dropbox/auth.py index aeec50f9..1862571f 100644 --- a/dropbox/auth.py +++ b/dropbox/auth.py @@ -21,9 +21,9 @@ class AccessError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar InvalidAccountTypeError auth.AccessError.invalid_account_type: Current + :ivar InvalidAccountTypeError AccessError.invalid_account_type: Current account type cannot access the resource. - :ivar PaperAccessError auth.AccessError.paper_access_denied: Current account + :ivar PaperAccessError AccessError.paper_access_denied: Current account cannot access Paper. """ @@ -37,8 +37,8 @@ def invalid_account_type(cls, val): Create an instance of this class set to the ``invalid_account_type`` tag with value ``val``. - :param auth.InvalidAccountTypeError val: - :rtype: auth.AccessError + :param InvalidAccountTypeError val: + :rtype: AccessError """ return cls('invalid_account_type', val) @@ -48,8 +48,8 @@ def paper_access_denied(cls, val): Create an instance of this class set to the ``paper_access_denied`` tag with value ``val``. - :param auth.PaperAccessError val: - :rtype: auth.AccessError + :param PaperAccessError val: + :rtype: AccessError """ return cls('paper_access_denied', val) @@ -83,7 +83,7 @@ def get_invalid_account_type(self): Only call this if :meth:`is_invalid_account_type` is true. - :rtype: auth.InvalidAccountTypeError + :rtype: InvalidAccountTypeError """ if not self.is_invalid_account_type(): raise AttributeError("tag 'invalid_account_type' not set") @@ -95,14 +95,14 @@ def get_paper_access_denied(self): Only call this if :meth:`is_paper_access_denied` is true. - :rtype: auth.PaperAccessError + :rtype: PaperAccessError """ if not self.is_paper_access_denied(): raise AttributeError("tag 'paper_access_denied' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(AccessError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccessError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccessError(%r, %r)' % (self._tag, self._value) @@ -124,6 +124,8 @@ class AuthError(bb.Union): 'Dropbox-API-Select-Admin' is not a Dropbox Business team admin. :ivar auth.AuthError.user_suspended: The user has been suspended. :ivar auth.AuthError.expired_access_token: The access token has expired. + :ivar TokenScopeError AuthError.missing_scope: The access token does not + have the required scope to access the route. """ _catch_all = 'other' @@ -140,6 +142,17 @@ class AuthError(bb.Union): # Attribute is overwritten below the class definition other = None + @classmethod + def missing_scope(cls, val): + """ + Create an instance of this class set to the ``missing_scope`` tag with + value ``val``. + + :param TokenScopeError val: + :rtype: AuthError + """ + return cls('missing_scope', val) + def is_invalid_access_token(self): """ Check if the union tag is ``invalid_access_token``. @@ -180,6 +193,14 @@ def is_expired_access_token(self): """ return self._tag == 'expired_access_token' + def is_missing_scope(self): + """ + Check if the union tag is ``missing_scope``. + + :rtype: bool + """ + return self._tag == 'missing_scope' + def is_other(self): """ Check if the union tag is ``other``. @@ -188,8 +209,20 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(AuthError, self)._process_custom_annotations(annotation_type, processor) + def get_missing_scope(self): + """ + The access token does not have the required scope to access the route. + + Only call this if :meth:`is_missing_scope` is true. + + :rtype: TokenScopeError + """ + if not self.is_missing_scope(): + raise AttributeError("tag 'missing_scope' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AuthError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AuthError(%r, %r)' % (self._tag, self._value) @@ -240,8 +273,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(InvalidAccountTypeError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(InvalidAccountTypeError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'InvalidAccountTypeError(%r, %r)' % (self._tag, self._value) @@ -291,8 +324,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PaperAccessError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperAccessError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperAccessError(%r, %r)' % (self._tag, self._value) @@ -335,7 +368,7 @@ def reason(self): """ The reason why the app is being rate limited. - :rtype: auth.RateLimitReason + :rtype: RateLimitReason """ if self._reason_present: return self._reason_value @@ -377,8 +410,8 @@ def retry_after(self): self._retry_after_value = None self._retry_after_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RateLimitError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RateLimitError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RateLimitError(reason={!r}, retry_after={!r})'.format( @@ -432,8 +465,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(RateLimitReason, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RateLimitReason, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RateLimitReason(%r, %r)' % (self._tag, self._value) @@ -515,8 +548,8 @@ def oauth1_token_secret(self): self._oauth1_token_secret_value = None self._oauth1_token_secret_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TokenFromOAuth1Arg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TokenFromOAuth1Arg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TokenFromOAuth1Arg(oauth1_token={!r}, oauth1_token_secret={!r})'.format( @@ -570,8 +603,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TokenFromOAuth1Error, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TokenFromOAuth1Error, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TokenFromOAuth1Error(%r, %r)' % (self._tag, self._value) @@ -621,8 +654,8 @@ def oauth2_token(self): self._oauth2_token_value = None self._oauth2_token_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TokenFromOAuth1Result, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TokenFromOAuth1Result, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TokenFromOAuth1Result(oauth2_token={!r})'.format( @@ -631,6 +664,59 @@ def __repr__(self): TokenFromOAuth1Result_validator = bv.Struct(TokenFromOAuth1Result) +class TokenScopeError(bb.Struct): + """ + :ivar auth.TokenScopeError.required_scope: The required scope to access the + route. + """ + + __slots__ = [ + '_required_scope_value', + '_required_scope_present', + ] + + _has_required_fields = True + + def __init__(self, + required_scope=None): + self._required_scope_value = None + self._required_scope_present = False + if required_scope is not None: + self.required_scope = required_scope + + @property + def required_scope(self): + """ + The required scope to access the route. + + :rtype: str + """ + if self._required_scope_present: + return self._required_scope_value + else: + raise AttributeError("missing required field 'required_scope'") + + @required_scope.setter + def required_scope(self, val): + val = self._required_scope_validator.validate(val) + self._required_scope_value = val + self._required_scope_present = True + + @required_scope.deleter + def required_scope(self): + self._required_scope_value = None + self._required_scope_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TokenScopeError, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TokenScopeError(required_scope={!r})'.format( + self._required_scope_value, + ) + +TokenScopeError_validator = bv.Struct(TokenScopeError) + AccessError._invalid_account_type_validator = InvalidAccountTypeError_validator AccessError._paper_access_denied_validator = PaperAccessError_validator AccessError._other_validator = bv.Void() @@ -647,6 +733,7 @@ def __repr__(self): AuthError._invalid_select_admin_validator = bv.Void() AuthError._user_suspended_validator = bv.Void() AuthError._expired_access_token_validator = bv.Void() +AuthError._missing_scope_validator = TokenScopeError_validator AuthError._other_validator = bv.Void() AuthError._tagmap = { 'invalid_access_token': AuthError._invalid_access_token_validator, @@ -654,6 +741,7 @@ def __repr__(self): 'invalid_select_admin': AuthError._invalid_select_admin_validator, 'user_suspended': AuthError._user_suspended_validator, 'expired_access_token': AuthError._expired_access_token_validator, + 'missing_scope': AuthError._missing_scope_validator, 'other': AuthError._other_validator, } @@ -742,6 +830,10 @@ def __repr__(self): TokenFromOAuth1Result._all_field_names_ = set(['oauth2_token']) TokenFromOAuth1Result._all_fields_ = [('oauth2_token', TokenFromOAuth1Result._oauth2_token_validator)] +TokenScopeError._required_scope_validator = bv.String() +TokenScopeError._all_field_names_ = set(['required_scope']) +TokenScopeError._all_fields_ = [('required_scope', TokenScopeError._required_scope_validator)] + token_from_oauth1 = bb.Route( 'token/from_oauth1', 1, diff --git a/dropbox/base.py b/dropbox/base.py index 9fe3655a..a4a5fce5 100644 --- a/dropbox/base.py +++ b/dropbox/base.py @@ -432,6 +432,22 @@ def file_properties_templates_update_for_user(self, # ------------------------------------------ # Routes in file_requests namespace + def file_requests_count(self): + """ + Returns the total number of file requests owned by this user. Includes + both open and closed file requests. + + :rtype: :class:`dropbox.file_requests.CountFileRequestsResult` + """ + arg = None + r = self.request( + file_requests.count, + 'file_requests', + arg, + None, + ) + return r + def file_requests_create(self, title, destination, @@ -467,6 +483,42 @@ def file_requests_create(self, ) return r + def file_requests_delete(self, + ids): + """ + Delete a batch of closed file requests. + + :param list ids: List IDs of the file requests to delete. + :rtype: :class:`dropbox.file_requests.DeleteFileRequestsResult` + :raises: :class:`.exceptions.ApiError` + + If this raises, ApiError will contain: + :class:`dropbox.file_requests.DeleteFileRequestError` + """ + arg = file_requests.DeleteFileRequestArgs(ids) + r = self.request( + file_requests.delete, + 'file_requests', + arg, + None, + ) + return r + + def file_requests_delete_all_closed(self): + """ + Delete all closed file requests owned by this user. + + :rtype: :class:`dropbox.file_requests.DeleteAllClosedFileRequestsResult` + """ + arg = None + r = self.request( + file_requests.delete_all_closed, + 'file_requests', + arg, + None, + ) + return r + def file_requests_get(self, id): """ @@ -484,6 +536,26 @@ def file_requests_get(self, ) return r + def file_requests_list_v2(self, + limit=1000): + """ + Returns a list of file requests owned by this user. For apps with the + app folder permission, this will only return file requests with + destinations in the app folder. + + :param int limit: The maximum number of file requests that should be + returned per request. + :rtype: :class:`dropbox.file_requests.ListFileRequestsV2Result` + """ + arg = file_requests.ListFileRequestsArg(limit) + r = self.request( + file_requests.list_v2, + 'file_requests', + arg, + None, + ) + return r + def file_requests_list(self): """ Returns a list of file requests owned by this user. For apps with the @@ -501,6 +573,31 @@ def file_requests_list(self): ) return r + def file_requests_list_continue(self, + cursor): + """ + Once a cursor has been retrieved from :meth:`file_requests_list_v2`, use + this to paginate through all file requests. The cursor must come from a + previous call to :meth:`file_requests_list_v2` or + :meth:`file_requests_list_continue`. + + :param str cursor: The cursor returned by the previous API call + specified in the endpoint description. + :rtype: :class:`dropbox.file_requests.ListFileRequestsV2Result` + :raises: :class:`.exceptions.ApiError` + + If this raises, ApiError will contain: + :class:`dropbox.file_requests.ListFileRequestsContinueError` + """ + arg = file_requests.ListFileRequestsContinueArg(cursor) + r = self.request( + file_requests.list_continue, + 'file_requests', + arg, + None, + ) + return r + def file_requests_update(self, id, title=None, @@ -704,7 +801,7 @@ def files_copy_batch_v2(self, """ Copy multiple files or folders to different locations at once in the user's Dropbox. This route will replace :meth:`files_copy_batch`. The - main difference is this route will return stutus for each entry, while + main difference is this route will return status for each entry, while :meth:`files_copy_batch` raises failure if any entry fails. This route will either finish synchronously, or return a job ID and do the async copy job in background. Please use :meth:`files_copy_batch_check_v2` to @@ -1201,6 +1298,62 @@ def files_download_zip_to_file(self, self._save_body_to_file(download_path, r[1]) return r[0] + def files_export(self, + path): + """ + Export a file from a user's Dropbox. This route only supports exporting + files that cannot be downloaded directly and whose + ``ExportResult.file_metadata`` has ``ExportInfo.export_as`` populated. + + :param str path: The path of the file to be exported. + :rtype: (:class:`dropbox.files.ExportResult`, + :class:`requests.models.Response`) + :raises: :class:`.exceptions.ApiError` + + If this raises, ApiError will contain: + :class:`dropbox.files.ExportError` + + If you do not consume the entire response body, then you must call close + on the response object, otherwise you will max out your available + connections. We recommend using the `contextlib.closing + `_ + context manager to ensure this. + """ + arg = files.ExportArg(path) + r = self.request( + files.export, + 'files', + arg, + None, + ) + return r + + def files_export_to_file(self, + download_path, + path): + """ + Export a file from a user's Dropbox. This route only supports exporting + files that cannot be downloaded directly and whose + ``ExportResult.file_metadata`` has ``ExportInfo.export_as`` populated. + + :param str download_path: Path on local machine to save file. + :param str path: The path of the file to be exported. + :rtype: :class:`dropbox.files.ExportResult` + :raises: :class:`.exceptions.ApiError` + + If this raises, ApiError will contain: + :class:`dropbox.files.ExportError` + """ + arg = files.ExportArg(path) + r = self.request( + files.export, + 'files', + arg, + None, + ) + self._save_body_to_file(download_path, r[1]) + return r[0] + def files_get_metadata(self, path, include_media_info=False, @@ -1250,9 +1403,10 @@ def files_get_preview(self, """ Get a preview for a file. Currently, PDF previews are generated for files with the following extensions: .ai, .doc, .docm, .docx, .eps, - .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf. HTML previews - are generated for files with the following extensions: .csv, .ods, .xls, - .xlsm, .xlsx. Other formats will return an unsupported extension error. + .gdoc, .gslides, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, + .rtf. HTML previews are generated for files with the following + extensions: .csv, .ods, .xls, .xlsm, .gsheet, .xlsx. Other formats will + return an unsupported extension error. :param str path: The path of the file to preview. :param Nullable rev: Please specify revision in ``path`` instead. @@ -1286,9 +1440,10 @@ def files_get_preview_to_file(self, """ Get a preview for a file. Currently, PDF previews are generated for files with the following extensions: .ai, .doc, .docm, .docx, .eps, - .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf. HTML previews - are generated for files with the following extensions: .csv, .ods, .xls, - .xlsm, .xlsx. Other formats will return an unsupported extension error. + .gdoc, .gslides, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, + .rtf. HTML previews are generated for files with the following + extensions: .csv, .ods, .xls, .xlsm, .gsheet, .xlsx. Other formats will + return an unsupported extension error. :param str download_path: Path on local machine to save file. :param str path: The path of the file to preview. @@ -1314,8 +1469,8 @@ def files_get_temporary_link(self, path): """ Get a temporary link to stream content of a file. This link will expire - in four hours and afterwards you will get 410 Gone. So this URL should - not be used to display content directly in the browser. Content-Type of + in four hours and afterwards you will get 410 Gone. This URL should not + be used to display content directly in the browser. The Content-Type of the link is determined automatically by the file's mime type. :param str path: The path to the file you want a temporary link to. @@ -1509,7 +1664,8 @@ def files_list_folder(self, include_mounted_folders=True, limit=None, shared_link=None, - include_property_groups=None): + include_property_groups=None, + include_non_downloadable_files=True): """ Starts returning the contents of a folder. If the result's ``ListFolderResult.has_more`` field is ``True``, call @@ -1541,7 +1697,8 @@ def files_list_folder(self, applied recursively to all subfolders and the response will contain contents of all subfolders. :param bool include_media_info: If true, ``FileMetadata.media_info`` is - set for photo and video. + set for photo and video. This parameter will no longer have an + effect starting December 2, 2019. :param bool include_deleted: If true, the results will include entries for files and folders that used to exist but were deleted. :param bool include_has_explicit_shared_members: If true, the results @@ -1562,6 +1719,8 @@ def files_list_folder(self, template IDs, ``FileMetadata.property_groups`` is set if there exists property data associated with the file and each of the listed templates. + :param bool include_non_downloadable_files: If true, include files that + are not downloadable, i.e. Google Docs. :rtype: :class:`dropbox.files.ListFolderResult` :raises: :class:`.exceptions.ApiError` @@ -1576,7 +1735,8 @@ def files_list_folder(self, include_mounted_folders, limit, shared_link, - include_property_groups) + include_property_groups, + include_non_downloadable_files) r = self.request( files.list_folder, 'files', @@ -1618,7 +1778,8 @@ def files_list_folder_get_latest_cursor(self, include_mounted_folders=True, limit=None, shared_link=None, - include_property_groups=None): + include_property_groups=None, + include_non_downloadable_files=True): """ A way to quickly get a cursor for the folder's state. Unlike :meth:`files_list_folder`, :meth:`files_list_folder_get_latest_cursor` @@ -1631,7 +1792,8 @@ def files_list_folder_get_latest_cursor(self, applied recursively to all subfolders and the response will contain contents of all subfolders. :param bool include_media_info: If true, ``FileMetadata.media_info`` is - set for photo and video. + set for photo and video. This parameter will no longer have an + effect starting December 2, 2019. :param bool include_deleted: If true, the results will include entries for files and folders that used to exist but were deleted. :param bool include_has_explicit_shared_members: If true, the results @@ -1652,6 +1814,8 @@ def files_list_folder_get_latest_cursor(self, template IDs, ``FileMetadata.property_groups`` is set if there exists property data associated with the file and each of the listed templates. + :param bool include_non_downloadable_files: If true, include files that + are not downloadable, i.e. Google Docs. :rtype: :class:`dropbox.files.ListFolderGetLatestCursorResult` :raises: :class:`.exceptions.ApiError` @@ -1666,7 +1830,8 @@ def files_list_folder_get_latest_cursor(self, include_mounted_folders, limit, shared_link, - include_property_groups) + include_property_groups, + include_non_downloadable_files) r = self.request( files.list_folder_get_latest_cursor, 'files', @@ -1836,8 +2001,8 @@ def files_move_batch_v2(self, allow_ownership_transfer=False): """ Move multiple files or folders to different locations at once in the - user's Dropbox. This route will replace :meth:`files_move_batch_v2`. The - main difference is this route will return stutus for each entry, while + user's Dropbox. This route will replace :meth:`files_move_batch`. The + main difference is this route will return status for each entry, while :meth:`files_move_batch` raises failure if any entry fails. This route will either finish synchronously, or return a job ID and do the async move job in background. Please use :meth:`files_move_batch_check_v2` to diff --git a/dropbox/common.py b/dropbox/common.py index df1ec22c..dc31b9e0 100644 --- a/dropbox/common.py +++ b/dropbox/common.py @@ -42,7 +42,7 @@ def root(cls, val): ``val``. :param str val: - :rtype: common.PathRoot + :rtype: PathRoot """ return cls('root', val) @@ -53,7 +53,7 @@ def namespace_id(cls, val): value ``val``. :param str val: - :rtype: common.PathRoot + :rtype: PathRoot """ return cls('namespace_id', val) @@ -117,8 +117,8 @@ def get_namespace_id(self): raise AttributeError("tag 'namespace_id' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(PathRoot, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PathRoot, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PathRoot(%r, %r)' % (self._tag, self._value) @@ -131,7 +131,7 @@ class PathRootError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar RootInfo common.PathRootError.invalid_root: The root namespace id in + :ivar RootInfo PathRootError.invalid_root: The root namespace id in Dropbox-API-Path-Root header is not valid. The value of this error is use's latest root info. :ivar common.PathRootError.no_permission: You don't have permission to @@ -150,8 +150,8 @@ def invalid_root(cls, val): Create an instance of this class set to the ``invalid_root`` tag with value ``val``. - :param common.RootInfo val: - :rtype: common.PathRootError + :param RootInfo val: + :rtype: PathRootError """ return cls('invalid_root', val) @@ -186,14 +186,14 @@ def get_invalid_root(self): Only call this if :meth:`is_invalid_root` is true. - :rtype: common.RootInfo + :rtype: RootInfo """ if not self.is_invalid_root(): raise AttributeError("tag 'invalid_root' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(PathRootError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PathRootError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PathRootError(%r, %r)' % (self._tag, self._value) @@ -281,8 +281,8 @@ def home_namespace_id(self): self._home_namespace_id_value = None self._home_namespace_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RootInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RootInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RootInfo(root_namespace_id={!r}, home_namespace_id={!r})'.format( @@ -341,8 +341,8 @@ def home_path(self): self._home_path_value = None self._home_path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamRootInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamRootInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamRootInfo(root_namespace_id={!r}, home_namespace_id={!r}, home_path={!r})'.format( @@ -370,8 +370,8 @@ def __init__(self, super(UserRootInfo, self).__init__(root_namespace_id, home_namespace_id) - def _process_custom_annotations(self, annotation_type, processor): - super(UserRootInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserRootInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserRootInfo(root_namespace_id={!r}, home_namespace_id={!r})'.format( diff --git a/dropbox/contacts.py b/dropbox/contacts.py index 1e997a47..e1f645dc 100644 --- a/dropbox/contacts.py +++ b/dropbox/contacts.py @@ -62,8 +62,8 @@ def email_addresses(self): self._email_addresses_value = None self._email_addresses_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteManualContactsArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteManualContactsArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteManualContactsArg(email_addresses={!r})'.format( @@ -94,7 +94,7 @@ def contacts_not_found(cls, val): with value ``val``. :param list of [str] val: - :rtype: contacts.DeleteManualContactsError + :rtype: DeleteManualContactsError """ return cls('contacts_not_found', val) @@ -127,8 +127,8 @@ def get_contacts_not_found(self): raise AttributeError("tag 'contacts_not_found' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteManualContactsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteManualContactsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteManualContactsError(%r, %r)' % (self._tag, self._value) diff --git a/dropbox/file_properties.py b/dropbox/file_properties.py index ea9502b8..252de5aa 100644 --- a/dropbox/file_properties.py +++ b/dropbox/file_properties.py @@ -89,7 +89,7 @@ def property_groups(self): """ The property groups which are to be added to a Dropbox file. - :rtype: list of [file_properties.PropertyGroup] + :rtype: list of [PropertyGroup] """ if self._property_groups_present: return self._property_groups_value @@ -107,8 +107,8 @@ def property_groups(self): self._property_groups_value = None self._property_groups_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AddPropertiesArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddPropertiesArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddPropertiesArg(path={!r}, property_groups={!r})'.format( @@ -143,7 +143,7 @@ def template_not_found(cls, val): with value ``val``. :param str val: - :rtype: file_properties.TemplateError + :rtype: TemplateError """ return cls('template_not_found', val) @@ -183,8 +183,8 @@ def get_template_not_found(self): raise AttributeError("tag 'template_not_found' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(TemplateError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TemplateError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TemplateError(%r, %r)' % (self._tag, self._value) @@ -210,8 +210,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param file_properties.LookupError val: - :rtype: file_properties.PropertiesError + :param LookupError val: + :rtype: PropertiesError """ return cls('path', val) @@ -235,14 +235,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: file_properties.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(PropertiesError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertiesError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertiesError(%r, %r)' % (self._tag, self._value) @@ -283,8 +283,8 @@ def is_does_not_fit_template(self): """ return self._tag == 'does_not_fit_template' - def _process_custom_annotations(self, annotation_type, processor): - super(InvalidPropertyGroupError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(InvalidPropertyGroupError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'InvalidPropertyGroupError(%r, %r)' % (self._tag, self._value) @@ -312,8 +312,8 @@ def is_property_group_already_exists(self): """ return self._tag == 'property_group_already_exists' - def _process_custom_annotations(self, annotation_type, processor): - super(AddPropertiesError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddPropertiesError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddPropertiesError(%r, %r)' % (self._tag, self._value) @@ -414,7 +414,7 @@ def fields(self): Definitions of the property fields associated with this template. There can be up to 32 properties in a single template. - :rtype: list of [file_properties.PropertyFieldTemplate] + :rtype: list of [PropertyFieldTemplate] """ if self._fields_present: return self._fields_value @@ -432,8 +432,8 @@ def fields(self): self._fields_value = None self._fields_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PropertyGroupTemplate, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertyGroupTemplate, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertyGroupTemplate(name={!r}, description={!r}, fields={!r})'.format( @@ -459,8 +459,8 @@ def __init__(self, description, fields) - def _process_custom_annotations(self, annotation_type, processor): - super(AddTemplateArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddTemplateArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddTemplateArg(name={!r}, description={!r}, fields={!r})'.format( @@ -520,8 +520,8 @@ def template_id(self): self._template_id_value = None self._template_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AddTemplateResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddTemplateResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddTemplateResult(template_id={!r})'.format( @@ -579,8 +579,8 @@ def template_id(self): self._template_id_value = None self._template_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetTemplateArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTemplateArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTemplateArg(template_id={!r})'.format( @@ -604,8 +604,8 @@ def __init__(self, description, fields) - def _process_custom_annotations(self, annotation_type, processor): - super(GetTemplateResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTemplateResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTemplateResult(name={!r}, description={!r}, fields={!r})'.format( @@ -665,8 +665,8 @@ def template_ids(self): self._template_ids_value = None self._template_ids_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListTemplateResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListTemplateResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListTemplateResult(template_ids={!r})'.format( @@ -709,8 +709,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(LogicalOperator, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LogicalOperator, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LogicalOperator(%r, %r)' % (self._tag, self._value) @@ -749,8 +749,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(LookUpPropertiesError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LookUpPropertiesError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LookUpPropertiesError(%r, %r)' % (self._tag, self._value) @@ -793,7 +793,7 @@ def malformed_path(cls, val): value ``val``. :param str val: - :rtype: file_properties.LookupError + :rtype: LookupError """ return cls('malformed_path', val) @@ -855,8 +855,8 @@ def get_malformed_path(self): raise AttributeError("tag 'malformed_path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(LookupError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LookupError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LookupError(%r, %r)' % (self._tag, self._value) @@ -922,8 +922,8 @@ def is_template_attribute_too_large(self): """ return self._tag == 'template_attribute_too_large' - def _process_custom_annotations(self, annotation_type, processor): - super(ModifyTemplateError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ModifyTemplateError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ModifyTemplateError(%r, %r)' % (self._tag, self._value) @@ -987,7 +987,7 @@ def property_groups(self): """ The property groups "snapshot" updates to force apply. - :rtype: list of [file_properties.PropertyGroup] + :rtype: list of [PropertyGroup] """ if self._property_groups_present: return self._property_groups_value @@ -1005,8 +1005,8 @@ def property_groups(self): self._property_groups_value = None self._property_groups_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(OverwritePropertyGroupArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(OverwritePropertyGroupArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'OverwritePropertyGroupArg(path={!r}, property_groups={!r})'.format( @@ -1049,7 +1049,7 @@ def queries(self): """ Queries to search. - :rtype: list of [file_properties.PropertiesSearchQuery] + :rtype: list of [PropertiesSearchQuery] """ if self._queries_present: return self._queries_value @@ -1073,7 +1073,7 @@ def template_filter(self): Filter results to contain only properties associated with these template IDs. - :rtype: file_properties.TemplateFilter + :rtype: TemplateFilter """ if self._template_filter_present: return self._template_filter_value @@ -1091,8 +1091,8 @@ def template_filter(self): self._template_filter_value = None self._template_filter_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PropertiesSearchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertiesSearchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertiesSearchArg(queries={!r}, template_filter={!r})'.format( @@ -1149,8 +1149,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PropertiesSearchContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertiesSearchContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertiesSearchContinueArg(cursor={!r})'.format( @@ -1193,8 +1193,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PropertiesSearchContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertiesSearchContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertiesSearchContinueError(%r, %r)' % (self._tag, self._value) @@ -1218,8 +1218,8 @@ def property_group_lookup(cls, val): Create an instance of this class set to the ``property_group_lookup`` tag with value ``val``. - :param file_properties.LookUpPropertiesError val: - :rtype: file_properties.PropertiesSearchError + :param LookUpPropertiesError val: + :rtype: PropertiesSearchError """ return cls('property_group_lookup', val) @@ -1243,14 +1243,14 @@ def get_property_group_lookup(self): """ Only call this if :meth:`is_property_group_lookup` is true. - :rtype: file_properties.LookUpPropertiesError + :rtype: LookUpPropertiesError """ if not self.is_property_group_lookup(): raise AttributeError("tag 'property_group_lookup' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(PropertiesSearchError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertiesSearchError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertiesSearchError(%r, %r)' % (self._tag, self._value) @@ -1378,7 +1378,7 @@ def property_groups(self): """ List of custom property groups associated with the file. - :rtype: list of [file_properties.PropertyGroup] + :rtype: list of [PropertyGroup] """ if self._property_groups_present: return self._property_groups_value @@ -1396,8 +1396,8 @@ def property_groups(self): self._property_groups_value = None self._property_groups_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PropertiesSearchMatch, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertiesSearchMatch, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertiesSearchMatch(id={!r}, path={!r}, is_deleted={!r}, property_groups={!r})'.format( @@ -1430,7 +1430,7 @@ def field_name(cls, val): value ``val``. :param str val: - :rtype: file_properties.PropertiesSearchMode + :rtype: PropertiesSearchMode """ return cls('field_name', val) @@ -1462,8 +1462,8 @@ def get_field_name(self): raise AttributeError("tag 'field_name' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(PropertiesSearchMode, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertiesSearchMode, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertiesSearchMode(%r, %r)' % (self._tag, self._value) @@ -1536,7 +1536,7 @@ def mode(self): """ The mode with which to perform the search. - :rtype: file_properties.PropertiesSearchMode + :rtype: PropertiesSearchMode """ if self._mode_present: return self._mode_value @@ -1559,7 +1559,7 @@ def logical_operator(self): """ The logical operator with which to append the query. - :rtype: file_properties.LogicalOperator + :rtype: LogicalOperator """ if self._logical_operator_present: return self._logical_operator_value @@ -1577,8 +1577,8 @@ def logical_operator(self): self._logical_operator_value = None self._logical_operator_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PropertiesSearchQuery, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertiesSearchQuery, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertiesSearchQuery(query={!r}, mode={!r}, logical_operator={!r})'.format( @@ -1625,7 +1625,7 @@ def matches(self): """ A list (possibly empty) of matches for the query. - :rtype: list of [file_properties.PropertiesSearchMatch] + :rtype: list of [PropertiesSearchMatch] """ if self._matches_present: return self._matches_value @@ -1672,8 +1672,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PropertiesSearchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertiesSearchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertiesSearchResult(matches={!r}, cursor={!r})'.format( @@ -1763,8 +1763,8 @@ def value(self): self._value_value = None self._value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PropertyField, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertyField, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertyField(name={!r}, value={!r})'.format( @@ -1870,7 +1870,7 @@ def type(self): Data type of the value of this property field. This type will be enforced upon property creation and modifications. - :rtype: file_properties.PropertyType + :rtype: PropertyType """ if self._type_present: return self._type_value @@ -1888,8 +1888,8 @@ def type(self): self._type_value = None self._type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PropertyFieldTemplate, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertyFieldTemplate, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertyFieldTemplate(name={!r}, description={!r}, type={!r})'.format( @@ -1963,7 +1963,7 @@ def fields(self): The actual properties associated with the template. There can be up to 32 property types per template. - :rtype: list of [file_properties.PropertyField] + :rtype: list of [PropertyField] """ if self._fields_present: return self._fields_value @@ -1981,8 +1981,8 @@ def fields(self): self._fields_value = None self._fields_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PropertyGroup, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertyGroup, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertyGroup(template_id={!r}, fields={!r})'.format( @@ -2061,7 +2061,7 @@ def add_or_update_fields(self): updated. If the property field doesn't exist, the property group is added. - :rtype: list of [file_properties.PropertyField] + :rtype: list of [PropertyField] """ if self._add_or_update_fields_present: return self._add_or_update_fields_value @@ -2108,8 +2108,8 @@ def remove_fields(self): self._remove_fields_value = None self._remove_fields_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PropertyGroupUpdate, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertyGroupUpdate, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertyGroupUpdate(template_id={!r}, add_or_update_fields={!r}, remove_fields={!r})'.format( @@ -2154,8 +2154,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PropertyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PropertyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PropertyType(%r, %r)' % (self._tag, self._value) @@ -2243,8 +2243,8 @@ def property_template_ids(self): self._property_template_ids_value = None self._property_template_ids_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RemovePropertiesArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemovePropertiesArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemovePropertiesArg(path={!r}, property_template_ids={!r})'.format( @@ -2267,8 +2267,8 @@ def property_group_lookup(cls, val): Create an instance of this class set to the ``property_group_lookup`` tag with value ``val``. - :param file_properties.LookUpPropertiesError val: - :rtype: file_properties.RemovePropertiesError + :param LookUpPropertiesError val: + :rtype: RemovePropertiesError """ return cls('property_group_lookup', val) @@ -2284,14 +2284,14 @@ def get_property_group_lookup(self): """ Only call this if :meth:`is_property_group_lookup` is true. - :rtype: file_properties.LookUpPropertiesError + :rtype: LookUpPropertiesError """ if not self.is_property_group_lookup(): raise AttributeError("tag 'property_group_lookup' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RemovePropertiesError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemovePropertiesError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemovePropertiesError(%r, %r)' % (self._tag, self._value) @@ -2347,8 +2347,8 @@ def template_id(self): self._template_id_value = None self._template_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RemoveTemplateArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemoveTemplateArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemoveTemplateArg(template_id={!r})'.format( @@ -2379,7 +2379,7 @@ def filter_some(cls, val): value ``val``. :param list of [str] val: - :rtype: file_properties.TemplateFilterBase + :rtype: TemplateFilterBase """ return cls('filter_some', val) @@ -2412,8 +2412,8 @@ def get_filter_some(self): raise AttributeError("tag 'filter_some' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(TemplateFilterBase, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TemplateFilterBase, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TemplateFilterBase(%r, %r)' % (self._tag, self._value) @@ -2441,8 +2441,8 @@ def is_filter_none(self): """ return self._tag == 'filter_none' - def _process_custom_annotations(self, annotation_type, processor): - super(TemplateFilter, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TemplateFilter, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TemplateFilter(%r, %r)' % (self._tag, self._value) @@ -2493,8 +2493,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TemplateOwnerType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TemplateOwnerType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TemplateOwnerType(%r, %r)' % (self._tag, self._value) @@ -2558,7 +2558,7 @@ def update_property_groups(self): """ The property groups "delta" updates to apply. - :rtype: list of [file_properties.PropertyGroupUpdate] + :rtype: list of [PropertyGroupUpdate] """ if self._update_property_groups_present: return self._update_property_groups_value @@ -2576,8 +2576,8 @@ def update_property_groups(self): self._update_property_groups_value = None self._update_property_groups_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UpdatePropertiesArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdatePropertiesArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdatePropertiesArg(path={!r}, update_property_groups={!r})'.format( @@ -2600,8 +2600,8 @@ def property_group_lookup(cls, val): Create an instance of this class set to the ``property_group_lookup`` tag with value ``val``. - :param file_properties.LookUpPropertiesError val: - :rtype: file_properties.UpdatePropertiesError + :param LookUpPropertiesError val: + :rtype: UpdatePropertiesError """ return cls('property_group_lookup', val) @@ -2617,14 +2617,14 @@ def get_property_group_lookup(self): """ Only call this if :meth:`is_property_group_lookup` is true. - :rtype: file_properties.LookUpPropertiesError + :rtype: LookUpPropertiesError """ if not self.is_property_group_lookup(): raise AttributeError("tag 'property_group_lookup' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UpdatePropertiesError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdatePropertiesError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdatePropertiesError(%r, %r)' % (self._tag, self._value) @@ -2767,7 +2767,7 @@ def add_fields(self): Property field templates to be added to the group template. There can be up to 32 properties in a single template. - :rtype: list of [file_properties.PropertyFieldTemplate] + :rtype: list of [PropertyFieldTemplate] """ if self._add_fields_present: return self._add_fields_value @@ -2788,8 +2788,8 @@ def add_fields(self): self._add_fields_value = None self._add_fields_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UpdateTemplateArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdateTemplateArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdateTemplateArg(template_id={!r}, name={!r}, description={!r}, add_fields={!r})'.format( @@ -2850,8 +2850,8 @@ def template_id(self): self._template_id_value = None self._template_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UpdateTemplateResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdateTemplateResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdateTemplateResult(template_id={!r})'.format( diff --git a/dropbox/file_requests.py b/dropbox/file_requests.py index 83790340..d2ea6f40 100644 --- a/dropbox/file_requests.py +++ b/dropbox/file_requests.py @@ -25,6 +25,120 @@ import common import files +class GeneralFileRequestsError(bb.Union): + """ + There is an error accessing the file requests functionality. + + 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 file_requests.GeneralFileRequestsError.disabled_for_team: This user's + Dropbox Business team doesn't allow file requests. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + disabled_for_team = None + # Attribute is overwritten below the class definition + other = None + + def is_disabled_for_team(self): + """ + Check if the union tag is ``disabled_for_team``. + + :rtype: bool + """ + return self._tag == 'disabled_for_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(GeneralFileRequestsError, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GeneralFileRequestsError(%r, %r)' % (self._tag, self._value) + +GeneralFileRequestsError_validator = bv.Union(GeneralFileRequestsError) + +class CountFileRequestsError(GeneralFileRequestsError): + """ + There was an error counting the file requests. + + 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. + """ + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CountFileRequestsError, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'CountFileRequestsError(%r, %r)' % (self._tag, self._value) + +CountFileRequestsError_validator = bv.Union(CountFileRequestsError) + +class CountFileRequestsResult(bb.Struct): + """ + Result for :meth:`dropbox.dropbox.Dropbox.file_requests_count`. + + :ivar file_requests.CountFileRequestsResult.file_request_count: The number + file requests owner by this user. + """ + + __slots__ = [ + '_file_request_count_value', + '_file_request_count_present', + ] + + _has_required_fields = True + + def __init__(self, + file_request_count=None): + self._file_request_count_value = None + self._file_request_count_present = False + if file_request_count is not None: + self.file_request_count = file_request_count + + @property + def file_request_count(self): + """ + The number file requests owner by this user. + + :rtype: int + """ + if self._file_request_count_present: + return self._file_request_count_value + else: + raise AttributeError("missing required field 'file_request_count'") + + @file_request_count.setter + def file_request_count(self, val): + val = self._file_request_count_validator.validate(val) + self._file_request_count_value = val + self._file_request_count_present = True + + @file_request_count.deleter + def file_request_count(self): + self._file_request_count_value = None + self._file_request_count_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CountFileRequestsResult, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'CountFileRequestsResult(file_request_count={!r})'.format( + self._file_request_count_value, + ) + +CountFileRequestsResult_validator = bv.Struct(CountFileRequestsResult) + class CreateFileRequestArgs(bb.Struct): """ Arguments for :meth:`dropbox.dropbox.Dropbox.file_requests_create`. @@ -131,7 +245,7 @@ def deadline(self): The deadline for the file request. Deadlines can only be set by Professional and Business accounts. - :rtype: file_requests.FileRequestDeadline + :rtype: FileRequestDeadline """ if self._deadline_present: return self._deadline_value @@ -177,8 +291,8 @@ def open(self): self._open_value = None self._open_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFileRequestArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFileRequestArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFileRequestArgs(title={!r}, destination={!r}, deadline={!r}, open={!r})'.format( @@ -190,48 +304,6 @@ def __repr__(self): CreateFileRequestArgs_validator = bv.Struct(CreateFileRequestArgs) -class GeneralFileRequestsError(bb.Union): - """ - There is an error accessing the file requests functionality. - - 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 file_requests.GeneralFileRequestsError.disabled_for_team: This user's - Dropbox Business team doesn't allow file requests. - """ - - _catch_all = 'other' - # Attribute is overwritten below the class definition - disabled_for_team = None - # Attribute is overwritten below the class definition - other = None - - def is_disabled_for_team(self): - """ - Check if the union tag is ``disabled_for_team``. - - :rtype: bool - """ - return self._tag == 'disabled_for_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, processor): - super(GeneralFileRequestsError, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'GeneralFileRequestsError(%r, %r)' % (self._tag, self._value) - -GeneralFileRequestsError_validator = bv.Union(GeneralFileRequestsError) - class FileRequestError(GeneralFileRequestsError): """ There is an error with the file request. @@ -319,8 +391,8 @@ def is_validation_error(self): """ return self._tag == 'validation_error' - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestError(%r, %r)' % (self._tag, self._value) @@ -363,14 +435,227 @@ def is_rate_limit(self): """ return self._tag == 'rate_limit' - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFileRequestError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFileRequestError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFileRequestError(%r, %r)' % (self._tag, self._value) CreateFileRequestError_validator = bv.Union(CreateFileRequestError) +class DeleteAllClosedFileRequestsError(FileRequestError): + """ + There was an error deleting all closed file requests. + + 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. + """ + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteAllClosedFileRequestsError, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'DeleteAllClosedFileRequestsError(%r, %r)' % (self._tag, self._value) + +DeleteAllClosedFileRequestsError_validator = bv.Union(DeleteAllClosedFileRequestsError) + +class DeleteAllClosedFileRequestsResult(bb.Struct): + """ + Result for :meth:`dropbox.dropbox.Dropbox.file_requests_delete_all_closed`. + + :ivar file_requests.DeleteAllClosedFileRequestsResult.file_requests: The + file requests deleted for this user. + """ + + __slots__ = [ + '_file_requests_value', + '_file_requests_present', + ] + + _has_required_fields = True + + def __init__(self, + file_requests=None): + self._file_requests_value = None + self._file_requests_present = False + if file_requests is not None: + self.file_requests = file_requests + + @property + def file_requests(self): + """ + The file requests deleted for this user. + + :rtype: list of [FileRequest] + """ + if self._file_requests_present: + return self._file_requests_value + else: + raise AttributeError("missing required field 'file_requests'") + + @file_requests.setter + def file_requests(self, val): + val = self._file_requests_validator.validate(val) + self._file_requests_value = val + self._file_requests_present = True + + @file_requests.deleter + def file_requests(self): + self._file_requests_value = None + self._file_requests_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteAllClosedFileRequestsResult, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'DeleteAllClosedFileRequestsResult(file_requests={!r})'.format( + self._file_requests_value, + ) + +DeleteAllClosedFileRequestsResult_validator = bv.Struct(DeleteAllClosedFileRequestsResult) + +class DeleteFileRequestArgs(bb.Struct): + """ + Arguments for :meth:`dropbox.dropbox.Dropbox.file_requests_delete`. + + :ivar file_requests.DeleteFileRequestArgs.ids: List IDs of the file requests + to delete. + """ + + __slots__ = [ + '_ids_value', + '_ids_present', + ] + + _has_required_fields = True + + def __init__(self, + ids=None): + self._ids_value = None + self._ids_present = False + if ids is not None: + self.ids = ids + + @property + def ids(self): + """ + List IDs of the file requests to delete. + + :rtype: list of [str] + """ + if self._ids_present: + return self._ids_value + else: + raise AttributeError("missing required field 'ids'") + + @ids.setter + def ids(self, val): + val = self._ids_validator.validate(val) + self._ids_value = val + self._ids_present = True + + @ids.deleter + def ids(self): + self._ids_value = None + self._ids_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteFileRequestArgs, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'DeleteFileRequestArgs(ids={!r})'.format( + self._ids_value, + ) + +DeleteFileRequestArgs_validator = bv.Struct(DeleteFileRequestArgs) + +class DeleteFileRequestError(FileRequestError): + """ + There was an error deleting these file requests. + + 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 file_requests.DeleteFileRequestError.file_request_open: One or more + file requests currently open. + """ + + # Attribute is overwritten below the class definition + file_request_open = None + + def is_file_request_open(self): + """ + Check if the union tag is ``file_request_open``. + + :rtype: bool + """ + return self._tag == 'file_request_open' + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteFileRequestError, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'DeleteFileRequestError(%r, %r)' % (self._tag, self._value) + +DeleteFileRequestError_validator = bv.Union(DeleteFileRequestError) + +class DeleteFileRequestsResult(bb.Struct): + """ + Result for :meth:`dropbox.dropbox.Dropbox.file_requests_delete`. + + :ivar file_requests.DeleteFileRequestsResult.file_requests: The file + requests deleted by the request. + """ + + __slots__ = [ + '_file_requests_value', + '_file_requests_present', + ] + + _has_required_fields = True + + def __init__(self, + file_requests=None): + self._file_requests_value = None + self._file_requests_present = False + if file_requests is not None: + self.file_requests = file_requests + + @property + def file_requests(self): + """ + The file requests deleted by the request. + + :rtype: list of [FileRequest] + """ + if self._file_requests_present: + return self._file_requests_value + else: + raise AttributeError("missing required field 'file_requests'") + + @file_requests.setter + def file_requests(self, val): + val = self._file_requests_validator.validate(val) + self._file_requests_value = val + self._file_requests_present = True + + @file_requests.deleter + def file_requests(self): + self._file_requests_value = None + self._file_requests_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteFileRequestsResult, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'DeleteFileRequestsResult(file_requests={!r})'.format( + self._file_requests_value, + ) + +DeleteFileRequestsResult_validator = bv.Struct(DeleteFileRequestsResult) + class FileRequest(bb.Struct): """ A `file request `_ for receiving files @@ -582,7 +867,7 @@ def deadline(self): The deadline for this file request. Only set if the request has a deadline. - :rtype: file_requests.FileRequestDeadline + :rtype: FileRequestDeadline """ if self._deadline_present: return self._deadline_value @@ -650,8 +935,8 @@ def file_count(self): self._file_count_value = None self._file_count_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequest, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequest, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequest(id={!r}, url={!r}, title={!r}, created={!r}, is_open={!r}, file_count={!r}, destination={!r}, deadline={!r})'.format( @@ -726,7 +1011,7 @@ def allow_late_uploads(self): If set, allow uploads after the deadline has passed. These uploads will be marked overdue. - :rtype: file_requests.GracePeriod + :rtype: GracePeriod """ if self._allow_late_uploads_present: return self._allow_late_uploads_value @@ -747,8 +1032,8 @@ def allow_late_uploads(self): self._allow_late_uploads_value = None self._allow_late_uploads_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestDeadline, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestDeadline, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestDeadline(deadline={!r}, allow_late_uploads={!r})'.format( @@ -803,8 +1088,8 @@ def id(self): self._id_value = None self._id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetFileRequestArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetFileRequestArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetFileRequestArgs(id={!r})'.format( @@ -822,8 +1107,8 @@ class GetFileRequestError(FileRequestError): corresponding ``get_*`` method. """ - def _process_custom_annotations(self, annotation_type, processor): - super(GetFileRequestError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetFileRequestError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetFileRequestError(%r, %r)' % (self._tag, self._value) @@ -899,14 +1184,154 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GracePeriod, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GracePeriod, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GracePeriod(%r, %r)' % (self._tag, self._value) GracePeriod_validator = bv.Union(GracePeriod) +class ListFileRequestsArg(bb.Struct): + """ + Arguments for :meth:`dropbox.dropbox.Dropbox.file_requests_list`. + + :ivar file_requests.ListFileRequestsArg.limit: The maximum number of file + requests that should be returned per request. + """ + + __slots__ = [ + '_limit_value', + '_limit_present', + ] + + _has_required_fields = False + + def __init__(self, + limit=None): + self._limit_value = None + self._limit_present = False + if limit is not None: + self.limit = limit + + @property + def limit(self): + """ + The maximum number of file requests that should be returned per request. + + :rtype: int + """ + if self._limit_present: + return self._limit_value + else: + return 1000 + + @limit.setter + def limit(self, val): + val = self._limit_validator.validate(val) + self._limit_value = val + self._limit_present = True + + @limit.deleter + def limit(self): + self._limit_value = None + self._limit_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileRequestsArg, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ListFileRequestsArg(limit={!r})'.format( + self._limit_value, + ) + +ListFileRequestsArg_validator = bv.Struct(ListFileRequestsArg) + +class ListFileRequestsContinueArg(bb.Struct): + """ + :ivar file_requests.ListFileRequestsContinueArg.cursor: The cursor returned + by the previous API call specified in the endpoint description. + """ + + __slots__ = [ + '_cursor_value', + '_cursor_present', + ] + + _has_required_fields = True + + def __init__(self, + cursor=None): + self._cursor_value = None + self._cursor_present = False + if cursor is not None: + self.cursor = cursor + + @property + def cursor(self): + """ + The cursor returned by the previous API call specified in the endpoint + description. + + :rtype: str + """ + if self._cursor_present: + return self._cursor_value + else: + raise AttributeError("missing required field 'cursor'") + + @cursor.setter + def cursor(self, val): + val = self._cursor_validator.validate(val) + self._cursor_value = val + self._cursor_present = True + + @cursor.deleter + def cursor(self): + self._cursor_value = None + self._cursor_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileRequestsContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ListFileRequestsContinueArg(cursor={!r})'.format( + self._cursor_value, + ) + +ListFileRequestsContinueArg_validator = bv.Struct(ListFileRequestsContinueArg) + +class ListFileRequestsContinueError(GeneralFileRequestsError): + """ + There was an error retrieving the file requests. + + 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 file_requests.ListFileRequestsContinueError.invalid_cursor: The cursor + is invalid. + """ + + # Attribute is overwritten below the class definition + invalid_cursor = None + + def is_invalid_cursor(self): + """ + Check if the union tag is ``invalid_cursor``. + + :rtype: bool + """ + return self._tag == 'invalid_cursor' + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileRequestsContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ListFileRequestsContinueError(%r, %r)' % (self._tag, self._value) + +ListFileRequestsContinueError_validator = bv.Union(ListFileRequestsContinueError) + class ListFileRequestsError(GeneralFileRequestsError): """ There was an error retrieving the file requests. @@ -916,8 +1341,8 @@ class ListFileRequestsError(GeneralFileRequestsError): corresponding ``get_*`` method. """ - def _process_custom_annotations(self, annotation_type, processor): - super(ListFileRequestsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileRequestsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFileRequestsError(%r, %r)' % (self._tag, self._value) @@ -953,7 +1378,7 @@ def file_requests(self): The file requests owned by this user. Apps with the app folder permission will only see file requests in their app folder. - :rtype: list of [file_requests.FileRequest] + :rtype: list of [FileRequest] """ if self._file_requests_present: return self._file_requests_value @@ -971,8 +1396,8 @@ def file_requests(self): self._file_requests_value = None self._file_requests_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFileRequestsResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileRequestsResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFileRequestsResult(file_requests={!r})'.format( @@ -981,6 +1406,136 @@ def __repr__(self): ListFileRequestsResult_validator = bv.Struct(ListFileRequestsResult) +class ListFileRequestsV2Result(bb.Struct): + """ + Result for :meth:`dropbox.dropbox.Dropbox.file_requests_list` and + :meth:`dropbox.dropbox.Dropbox.file_requests_list_continue`. + + :ivar file_requests.ListFileRequestsV2Result.file_requests: The file + requests owned by this user. Apps with the app folder permission will + only see file requests in their app folder. + :ivar file_requests.ListFileRequestsV2Result.cursor: Pass the cursor into + :meth:`dropbox.dropbox.Dropbox.file_requests_list_continue` to obtain + additional file requests. + :ivar file_requests.ListFileRequestsV2Result.has_more: Is true if there are + additional file requests that have not been returned yet. An additional + call to :route:list/continue` can retrieve them. + """ + + __slots__ = [ + '_file_requests_value', + '_file_requests_present', + '_cursor_value', + '_cursor_present', + '_has_more_value', + '_has_more_present', + ] + + _has_required_fields = True + + def __init__(self, + file_requests=None, + cursor=None, + has_more=None): + self._file_requests_value = None + self._file_requests_present = False + self._cursor_value = None + self._cursor_present = False + self._has_more_value = None + self._has_more_present = False + if file_requests is not None: + self.file_requests = file_requests + if cursor is not None: + self.cursor = cursor + if has_more is not None: + self.has_more = has_more + + @property + def file_requests(self): + """ + The file requests owned by this user. Apps with the app folder + permission will only see file requests in their app folder. + + :rtype: list of [FileRequest] + """ + if self._file_requests_present: + return self._file_requests_value + else: + raise AttributeError("missing required field 'file_requests'") + + @file_requests.setter + def file_requests(self, val): + val = self._file_requests_validator.validate(val) + self._file_requests_value = val + self._file_requests_present = True + + @file_requests.deleter + def file_requests(self): + self._file_requests_value = None + self._file_requests_present = False + + @property + def cursor(self): + """ + Pass the cursor into + :meth:`dropbox.dropbox.Dropbox.file_requests_list_continue` to obtain + additional file requests. + + :rtype: str + """ + if self._cursor_present: + return self._cursor_value + else: + raise AttributeError("missing required field 'cursor'") + + @cursor.setter + def cursor(self, val): + val = self._cursor_validator.validate(val) + self._cursor_value = val + self._cursor_present = True + + @cursor.deleter + def cursor(self): + self._cursor_value = None + self._cursor_present = False + + @property + def has_more(self): + """ + Is true if there are additional file requests that have not been + returned yet. An additional call to :route:list/continue` can retrieve + them. + + :rtype: bool + """ + if self._has_more_present: + return self._has_more_value + else: + raise AttributeError("missing required field 'has_more'") + + @has_more.setter + def has_more(self, val): + val = self._has_more_validator.validate(val) + self._has_more_value = val + self._has_more_present = True + + @has_more.deleter + def has_more(self): + self._has_more_value = None + self._has_more_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileRequestsV2Result, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ListFileRequestsV2Result(file_requests={!r}, cursor={!r}, has_more={!r})'.format( + self._file_requests_value, + self._cursor_value, + self._has_more_value, + ) + +ListFileRequestsV2Result_validator = bv.Struct(ListFileRequestsV2Result) + class UpdateFileRequestArgs(bb.Struct): """ Arguments for :meth:`dropbox.dropbox.Dropbox.file_requests_update`. @@ -1124,7 +1679,7 @@ def deadline(self): The new deadline for the file request. Deadlines can only be set by Professional and Business accounts. - :rtype: file_requests.UpdateFileRequestDeadline + :rtype: UpdateFileRequestDeadline """ if self._deadline_present: return self._deadline_value @@ -1168,8 +1723,8 @@ def open(self): self._open_value = None self._open_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UpdateFileRequestArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdateFileRequestArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdateFileRequestArgs(id={!r}, title={!r}, destination={!r}, deadline={!r}, open={!r})'.format( @@ -1190,7 +1745,7 @@ class UpdateFileRequestDeadline(bb.Union): :ivar file_requests.UpdateFileRequestDeadline.no_update: Do not change the file request's deadline. - :ivar Optional[file_requests.FileRequestDeadline] + :ivar Optional[FileRequestDeadline] file_requests.UpdateFileRequestDeadline.update: If :val:`null`, the file request's deadline is cleared. """ @@ -1207,8 +1762,8 @@ def update(cls, val): Create an instance of this class set to the ``update`` tag with value ``val``. - :param file_requests.FileRequestDeadline val: - :rtype: file_requests.UpdateFileRequestDeadline + :param FileRequestDeadline val: + :rtype: UpdateFileRequestDeadline """ return cls('update', val) @@ -1242,14 +1797,14 @@ def get_update(self): Only call this if :meth:`is_update` is true. - :rtype: file_requests.FileRequestDeadline + :rtype: FileRequestDeadline """ if not self.is_update(): raise AttributeError("tag 'update' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UpdateFileRequestDeadline, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdateFileRequestDeadline, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdateFileRequestDeadline(%r, %r)' % (self._tag, self._value) @@ -1265,8 +1820,8 @@ class UpdateFileRequestError(FileRequestError): corresponding ``get_*`` method. """ - def _process_custom_annotations(self, annotation_type, processor): - super(UpdateFileRequestError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdateFileRequestError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdateFileRequestError(%r, %r)' % (self._tag, self._value) @@ -1275,6 +1830,24 @@ def __repr__(self): FileRequestId_validator = bv.String(min_length=1, pattern=u'[-_0-9a-zA-Z]+') FileRequestValidationError_validator = bv.Nullable(bv.String()) +GeneralFileRequestsError._disabled_for_team_validator = bv.Void() +GeneralFileRequestsError._other_validator = bv.Void() +GeneralFileRequestsError._tagmap = { + 'disabled_for_team': GeneralFileRequestsError._disabled_for_team_validator, + 'other': GeneralFileRequestsError._other_validator, +} + +GeneralFileRequestsError.disabled_for_team = GeneralFileRequestsError('disabled_for_team') +GeneralFileRequestsError.other = GeneralFileRequestsError('other') + +CountFileRequestsError._tagmap = { +} +CountFileRequestsError._tagmap.update(GeneralFileRequestsError._tagmap) + +CountFileRequestsResult._file_request_count_validator = bv.UInt64() +CountFileRequestsResult._all_field_names_ = set(['file_request_count']) +CountFileRequestsResult._all_fields_ = [('file_request_count', CountFileRequestsResult._file_request_count_validator)] + CreateFileRequestArgs._title_validator = bv.String(min_length=1) CreateFileRequestArgs._destination_validator = files.Path_validator CreateFileRequestArgs._deadline_validator = bv.Nullable(FileRequestDeadline_validator) @@ -1292,16 +1865,6 @@ def __repr__(self): ('open', CreateFileRequestArgs._open_validator), ] -GeneralFileRequestsError._disabled_for_team_validator = bv.Void() -GeneralFileRequestsError._other_validator = bv.Void() -GeneralFileRequestsError._tagmap = { - 'disabled_for_team': GeneralFileRequestsError._disabled_for_team_validator, - 'other': GeneralFileRequestsError._other_validator, -} - -GeneralFileRequestsError.disabled_for_team = GeneralFileRequestsError('disabled_for_team') -GeneralFileRequestsError.other = GeneralFileRequestsError('other') - FileRequestError._not_found_validator = bv.Void() FileRequestError._not_a_folder_validator = bv.Void() FileRequestError._app_lacks_access_validator = bv.Void() @@ -1336,6 +1899,30 @@ def __repr__(self): CreateFileRequestError.invalid_location = CreateFileRequestError('invalid_location') CreateFileRequestError.rate_limit = CreateFileRequestError('rate_limit') +DeleteAllClosedFileRequestsError._tagmap = { +} +DeleteAllClosedFileRequestsError._tagmap.update(FileRequestError._tagmap) + +DeleteAllClosedFileRequestsResult._file_requests_validator = bv.List(FileRequest_validator) +DeleteAllClosedFileRequestsResult._all_field_names_ = set(['file_requests']) +DeleteAllClosedFileRequestsResult._all_fields_ = [('file_requests', DeleteAllClosedFileRequestsResult._file_requests_validator)] + +DeleteFileRequestArgs._ids_validator = bv.List(FileRequestId_validator) +DeleteFileRequestArgs._all_field_names_ = set(['ids']) +DeleteFileRequestArgs._all_fields_ = [('ids', DeleteFileRequestArgs._ids_validator)] + +DeleteFileRequestError._file_request_open_validator = bv.Void() +DeleteFileRequestError._tagmap = { + 'file_request_open': DeleteFileRequestError._file_request_open_validator, +} +DeleteFileRequestError._tagmap.update(FileRequestError._tagmap) + +DeleteFileRequestError.file_request_open = DeleteFileRequestError('file_request_open') + +DeleteFileRequestsResult._file_requests_validator = bv.List(FileRequest_validator) +DeleteFileRequestsResult._all_field_names_ = set(['file_requests']) +DeleteFileRequestsResult._all_fields_ = [('file_requests', DeleteFileRequestsResult._file_requests_validator)] + FileRequest._id_validator = FileRequestId_validator FileRequest._url_validator = bv.String(min_length=1) FileRequest._title_validator = bv.String(min_length=1) @@ -1406,6 +1993,22 @@ def __repr__(self): GracePeriod.always = GracePeriod('always') GracePeriod.other = GracePeriod('other') +ListFileRequestsArg._limit_validator = bv.UInt64() +ListFileRequestsArg._all_field_names_ = set(['limit']) +ListFileRequestsArg._all_fields_ = [('limit', ListFileRequestsArg._limit_validator)] + +ListFileRequestsContinueArg._cursor_validator = bv.String() +ListFileRequestsContinueArg._all_field_names_ = set(['cursor']) +ListFileRequestsContinueArg._all_fields_ = [('cursor', ListFileRequestsContinueArg._cursor_validator)] + +ListFileRequestsContinueError._invalid_cursor_validator = bv.Void() +ListFileRequestsContinueError._tagmap = { + 'invalid_cursor': ListFileRequestsContinueError._invalid_cursor_validator, +} +ListFileRequestsContinueError._tagmap.update(GeneralFileRequestsError._tagmap) + +ListFileRequestsContinueError.invalid_cursor = ListFileRequestsContinueError('invalid_cursor') + ListFileRequestsError._tagmap = { } ListFileRequestsError._tagmap.update(GeneralFileRequestsError._tagmap) @@ -1414,6 +2017,20 @@ def __repr__(self): ListFileRequestsResult._all_field_names_ = set(['file_requests']) ListFileRequestsResult._all_fields_ = [('file_requests', ListFileRequestsResult._file_requests_validator)] +ListFileRequestsV2Result._file_requests_validator = bv.List(FileRequest_validator) +ListFileRequestsV2Result._cursor_validator = bv.String() +ListFileRequestsV2Result._has_more_validator = bv.Boolean() +ListFileRequestsV2Result._all_field_names_ = set([ + 'file_requests', + 'cursor', + 'has_more', +]) +ListFileRequestsV2Result._all_fields_ = [ + ('file_requests', ListFileRequestsV2Result._file_requests_validator), + ('cursor', ListFileRequestsV2Result._cursor_validator), + ('has_more', ListFileRequestsV2Result._has_more_validator), +] + UpdateFileRequestArgs._id_validator = FileRequestId_validator UpdateFileRequestArgs._title_validator = bv.Nullable(bv.String(min_length=1)) UpdateFileRequestArgs._destination_validator = bv.Nullable(files.Path_validator) @@ -1450,6 +2067,16 @@ def __repr__(self): } UpdateFileRequestError._tagmap.update(FileRequestError._tagmap) +count = bb.Route( + 'count', + 1, + False, + bv.Void(), + CountFileRequestsResult_validator, + CountFileRequestsError_validator, + {'host': u'api', + 'style': u'rpc'}, +) create = bb.Route( 'create', 1, @@ -1460,6 +2087,26 @@ def __repr__(self): {'host': u'api', 'style': u'rpc'}, ) +delete = bb.Route( + 'delete', + 1, + False, + DeleteFileRequestArgs_validator, + DeleteFileRequestsResult_validator, + DeleteFileRequestError_validator, + {'host': u'api', + 'style': u'rpc'}, +) +delete_all_closed = bb.Route( + 'delete_all_closed', + 1, + False, + bv.Void(), + DeleteAllClosedFileRequestsResult_validator, + DeleteAllClosedFileRequestsError_validator, + {'host': u'api', + 'style': u'rpc'}, +) get = bb.Route( 'get', 1, @@ -1470,6 +2117,16 @@ def __repr__(self): {'host': u'api', 'style': u'rpc'}, ) +list_v2 = bb.Route( + 'list', + 2, + False, + ListFileRequestsArg_validator, + ListFileRequestsV2Result_validator, + ListFileRequestsError_validator, + {'host': u'api', + 'style': u'rpc'}, +) list = bb.Route( 'list', 1, @@ -1480,6 +2137,16 @@ def __repr__(self): {'host': u'api', 'style': u'rpc'}, ) +list_continue = bb.Route( + 'list/continue', + 1, + False, + ListFileRequestsContinueArg_validator, + ListFileRequestsV2Result_validator, + ListFileRequestsContinueError_validator, + {'host': u'api', + 'style': u'rpc'}, +) update = bb.Route( 'update', 1, @@ -1492,9 +2159,14 @@ def __repr__(self): ) ROUTES = { + 'count': count, 'create': create, + 'delete': delete, + 'delete_all_closed': delete_all_closed, 'get': get, + 'list:2': list_v2, 'list': list, + 'list/continue': list_continue, 'update': update, } diff --git a/dropbox/files.py b/dropbox/files.py index d6d5e3dc..91b43626 100644 --- a/dropbox/files.py +++ b/dropbox/files.py @@ -209,8 +209,8 @@ def include_property_groups(self): self._include_property_groups_value = None self._include_property_groups_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetMetadataArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetMetadataArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetMetadataArg(path={!r}, include_media_info={!r}, include_deleted={!r}, include_has_explicit_shared_members={!r}, include_property_groups={!r})'.format( @@ -281,8 +281,8 @@ def include_property_templates(self): self._include_property_templates_value = None self._include_property_templates_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AlphaGetMetadataArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AlphaGetMetadataArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AlphaGetMetadataArg(path={!r}, include_media_info={!r}, include_deleted={!r}, include_has_explicit_shared_members={!r}, include_property_groups={!r}, include_property_templates={!r})'.format( @@ -311,8 +311,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.GetMetadataError + :param LookupError val: + :rtype: GetMetadataError """ return cls('path', val) @@ -328,14 +328,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GetMetadataError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetMetadataError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetMetadataError(%r, %r)' % (self._tag, self._value) @@ -356,7 +356,7 @@ def properties_error(cls, val): with value ``val``. :param file_properties.LookUpPropertiesError val: - :rtype: files.AlphaGetMetadataError + :rtype: AlphaGetMetadataError """ return cls('properties_error', val) @@ -378,8 +378,8 @@ def get_properties_error(self): raise AttributeError("tag 'properties_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(AlphaGetMetadataError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AlphaGetMetadataError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AlphaGetMetadataError(%r, %r)' % (self._tag, self._value) @@ -495,7 +495,7 @@ def mode(self): """ Selects what to do if the file already exists. - :rtype: files.WriteMode + :rtype: WriteMode """ if self._mode_present: return self._mode_value @@ -645,8 +645,8 @@ def strict_conflict(self): self._strict_conflict_value = None self._strict_conflict_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CommitInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CommitInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CommitInfo(path={!r}, mode={!r}, autorename={!r}, client_modified={!r}, mute={!r}, property_groups={!r}, strict_conflict={!r})'.format( @@ -684,8 +684,8 @@ def __init__(self, property_groups, strict_conflict) - def _process_custom_annotations(self, annotation_type, processor): - super(CommitInfoWithProperties, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CommitInfoWithProperties, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CommitInfoWithProperties(path={!r}, mode={!r}, autorename={!r}, client_modified={!r}, mute={!r}, property_groups={!r}, strict_conflict={!r})'.format( @@ -756,7 +756,7 @@ def sync_setting(self): """ Setting for this item. - :rtype: files.SyncSetting + :rtype: SyncSetting """ if self._sync_setting_present: return self._sync_setting_value @@ -774,8 +774,8 @@ def sync_setting(self): self._sync_setting_value = None self._sync_setting_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ContentSyncSetting, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ContentSyncSetting, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ContentSyncSetting(id={!r}, sync_setting={!r})'.format( @@ -841,7 +841,7 @@ def sync_setting(self): """ Setting for this item. - :rtype: files.SyncSettingArg + :rtype: SyncSettingArg """ if self._sync_setting_present: return self._sync_setting_value @@ -859,8 +859,8 @@ def sync_setting(self): self._sync_setting_value = None self._sync_setting_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ContentSyncSettingArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ContentSyncSettingArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ContentSyncSettingArg(id={!r}, sync_setting={!r})'.format( @@ -945,8 +945,8 @@ def autorename(self): self._autorename_value = None self._autorename_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderArg(path={!r}, autorename={!r})'.format( @@ -1066,8 +1066,8 @@ def force_async(self): self._force_async_value = None self._force_async_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderBatchArg(paths={!r}, autorename={!r}, force_async={!r})'.format( @@ -1110,8 +1110,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderBatchError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderBatchError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderBatchError(%r, %r)' % (self._tag, self._value) @@ -1124,10 +1124,10 @@ class CreateFolderBatchJobStatus(async_.PollResultBase): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar CreateFolderBatchResult files.CreateFolderBatchJobStatus.complete: The - batch create folder has finished. - :ivar CreateFolderBatchError files.CreateFolderBatchJobStatus.failed: The - batch create folder has failed. + :ivar CreateFolderBatchResult CreateFolderBatchJobStatus.complete: The batch + create folder has finished. + :ivar CreateFolderBatchError CreateFolderBatchJobStatus.failed: The batch + create folder has failed. """ _catch_all = 'other' @@ -1140,8 +1140,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.CreateFolderBatchResult val: - :rtype: files.CreateFolderBatchJobStatus + :param CreateFolderBatchResult val: + :rtype: CreateFolderBatchJobStatus """ return cls('complete', val) @@ -1151,8 +1151,8 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param files.CreateFolderBatchError val: - :rtype: files.CreateFolderBatchJobStatus + :param CreateFolderBatchError val: + :rtype: CreateFolderBatchJobStatus """ return cls('failed', val) @@ -1186,7 +1186,7 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: files.CreateFolderBatchResult + :rtype: CreateFolderBatchResult """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") @@ -1198,14 +1198,14 @@ def get_failed(self): Only call this if :meth:`is_failed` is true. - :rtype: files.CreateFolderBatchError + :rtype: CreateFolderBatchError """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderBatchJobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderBatchJobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderBatchJobStatus(%r, %r)' % (self._tag, self._value) @@ -1232,8 +1232,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.CreateFolderBatchResult val: - :rtype: files.CreateFolderBatchLaunch + :param CreateFolderBatchResult val: + :rtype: CreateFolderBatchLaunch """ return cls('complete', val) @@ -1257,14 +1257,14 @@ def get_complete(self): """ Only call this if :meth:`is_complete` is true. - :rtype: files.CreateFolderBatchResult + :rtype: CreateFolderBatchResult """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderBatchLaunch, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderBatchLaunch, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderBatchLaunch(%r, %r)' % (self._tag, self._value) @@ -1281,8 +1281,8 @@ class FileOpsResult(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileOpsResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileOpsResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileOpsResult()' @@ -1317,7 +1317,7 @@ def entries(self): Each entry in ``CreateFolderBatchArg.paths`` will appear at the same position inside ``CreateFolderBatchResult.entries``. - :rtype: list of [files.CreateFolderBatchResultEntry] + :rtype: list of [CreateFolderBatchResultEntry] """ if self._entries_present: return self._entries_value @@ -1335,8 +1335,8 @@ def entries(self): self._entries_value = None self._entries_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderBatchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderBatchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderBatchResult(entries={!r})'.format( @@ -1360,8 +1360,8 @@ def success(cls, val): Create an instance of this class set to the ``success`` tag with value ``val``. - :param files.CreateFolderEntryResult val: - :rtype: files.CreateFolderBatchResultEntry + :param CreateFolderEntryResult val: + :rtype: CreateFolderBatchResultEntry """ return cls('success', val) @@ -1371,8 +1371,8 @@ def failure(cls, val): Create an instance of this class set to the ``failure`` tag with value ``val``. - :param files.CreateFolderEntryError val: - :rtype: files.CreateFolderBatchResultEntry + :param CreateFolderEntryError val: + :rtype: CreateFolderBatchResultEntry """ return cls('failure', val) @@ -1396,7 +1396,7 @@ def get_success(self): """ Only call this if :meth:`is_success` is true. - :rtype: files.CreateFolderEntryResult + :rtype: CreateFolderEntryResult """ if not self.is_success(): raise AttributeError("tag 'success' not set") @@ -1406,14 +1406,14 @@ def get_failure(self): """ Only call this if :meth:`is_failure` is true. - :rtype: files.CreateFolderEntryError + :rtype: CreateFolderEntryError """ if not self.is_failure(): raise AttributeError("tag 'failure' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderBatchResultEntry, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderBatchResultEntry, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderBatchResultEntry(%r, %r)' % (self._tag, self._value) @@ -1437,8 +1437,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.WriteError val: - :rtype: files.CreateFolderEntryError + :param WriteError val: + :rtype: CreateFolderEntryError """ return cls('path', val) @@ -1462,14 +1462,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.WriteError + :rtype: WriteError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderEntryError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderEntryError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderEntryError(%r, %r)' % (self._tag, self._value) @@ -1501,7 +1501,7 @@ def metadata(self): """ Metadata of the created folder. - :rtype: files.FolderMetadata + :rtype: FolderMetadata """ if self._metadata_present: return self._metadata_value @@ -1519,8 +1519,8 @@ def metadata(self): self._metadata_value = None self._metadata_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderEntryResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderEntryResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderEntryResult(metadata={!r})'.format( @@ -1544,8 +1544,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.WriteError val: - :rtype: files.CreateFolderError + :param WriteError val: + :rtype: CreateFolderError """ return cls('path', val) @@ -1561,14 +1561,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.WriteError + :rtype: WriteError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderError(%r, %r)' % (self._tag, self._value) @@ -1600,7 +1600,7 @@ def metadata(self): """ Metadata of the created folder. - :rtype: files.FolderMetadata + :rtype: FolderMetadata """ if self._metadata_present: return self._metadata_value @@ -1618,8 +1618,8 @@ def metadata(self): self._metadata_value = None self._metadata_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderResult(metadata={!r})'.format( @@ -1707,8 +1707,8 @@ def parent_rev(self): self._parent_rev_value = None self._parent_rev_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteArg(path={!r}, parent_rev={!r})'.format( @@ -1737,7 +1737,7 @@ def __init__(self, @property def entries(self): """ - :rtype: list of [files.DeleteArg] + :rtype: list of [DeleteArg] """ if self._entries_present: return self._entries_value @@ -1755,8 +1755,8 @@ def entries(self): self._entries_value = None self._entries_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteBatchArg(entries={!r})'.format( @@ -1799,8 +1799,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteBatchError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteBatchError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteBatchError(%r, %r)' % (self._tag, self._value) @@ -1813,10 +1813,10 @@ class DeleteBatchJobStatus(async_.PollResultBase): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar DeleteBatchResult files.DeleteBatchJobStatus.complete: The batch - delete has finished. - :ivar DeleteBatchError files.DeleteBatchJobStatus.failed: The batch delete - has failed. + :ivar DeleteBatchResult DeleteBatchJobStatus.complete: The batch delete has + finished. + :ivar DeleteBatchError DeleteBatchJobStatus.failed: The batch delete has + failed. """ _catch_all = 'other' @@ -1829,8 +1829,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.DeleteBatchResult val: - :rtype: files.DeleteBatchJobStatus + :param DeleteBatchResult val: + :rtype: DeleteBatchJobStatus """ return cls('complete', val) @@ -1840,8 +1840,8 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param files.DeleteBatchError val: - :rtype: files.DeleteBatchJobStatus + :param DeleteBatchError val: + :rtype: DeleteBatchJobStatus """ return cls('failed', val) @@ -1875,7 +1875,7 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: files.DeleteBatchResult + :rtype: DeleteBatchResult """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") @@ -1887,14 +1887,14 @@ def get_failed(self): Only call this if :meth:`is_failed` is true. - :rtype: files.DeleteBatchError + :rtype: DeleteBatchError """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteBatchJobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteBatchJobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteBatchJobStatus(%r, %r)' % (self._tag, self._value) @@ -1921,8 +1921,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.DeleteBatchResult val: - :rtype: files.DeleteBatchLaunch + :param DeleteBatchResult val: + :rtype: DeleteBatchLaunch """ return cls('complete', val) @@ -1946,14 +1946,14 @@ def get_complete(self): """ Only call this if :meth:`is_complete` is true. - :rtype: files.DeleteBatchResult + :rtype: DeleteBatchResult """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteBatchLaunch, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteBatchLaunch, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteBatchLaunch(%r, %r)' % (self._tag, self._value) @@ -1988,7 +1988,7 @@ def entries(self): Each entry in ``DeleteBatchArg.entries`` will appear at the same position inside ``DeleteBatchResult.entries``. - :rtype: list of [files.DeleteBatchResultEntry] + :rtype: list of [DeleteBatchResultEntry] """ if self._entries_present: return self._entries_value @@ -2006,8 +2006,8 @@ def entries(self): self._entries_value = None self._entries_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteBatchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteBatchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteBatchResult(entries={!r})'.format( @@ -2040,7 +2040,7 @@ def metadata(self): """ Metadata of the deleted object. - :rtype: files.Metadata + :rtype: Metadata """ if self._metadata_present: return self._metadata_value @@ -2058,8 +2058,8 @@ def metadata(self): self._metadata_value = None self._metadata_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteBatchResultData, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteBatchResultData, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteBatchResultData(metadata={!r})'.format( @@ -2083,8 +2083,8 @@ def success(cls, val): Create an instance of this class set to the ``success`` tag with value ``val``. - :param files.DeleteBatchResultData val: - :rtype: files.DeleteBatchResultEntry + :param DeleteBatchResultData val: + :rtype: DeleteBatchResultEntry """ return cls('success', val) @@ -2094,8 +2094,8 @@ def failure(cls, val): Create an instance of this class set to the ``failure`` tag with value ``val``. - :param files.DeleteError val: - :rtype: files.DeleteBatchResultEntry + :param DeleteError val: + :rtype: DeleteBatchResultEntry """ return cls('failure', val) @@ -2119,7 +2119,7 @@ def get_success(self): """ Only call this if :meth:`is_success` is true. - :rtype: files.DeleteBatchResultData + :rtype: DeleteBatchResultData """ if not self.is_success(): raise AttributeError("tag 'success' not set") @@ -2129,14 +2129,14 @@ def get_failure(self): """ Only call this if :meth:`is_failure` is true. - :rtype: files.DeleteError + :rtype: DeleteError """ if not self.is_failure(): raise AttributeError("tag 'failure' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteBatchResultEntry, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteBatchResultEntry, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteBatchResultEntry(%r, %r)' % (self._tag, self._value) @@ -2169,8 +2169,8 @@ def path_lookup(cls, val): Create an instance of this class set to the ``path_lookup`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.DeleteError + :param LookupError val: + :rtype: DeleteError """ return cls('path_lookup', val) @@ -2180,8 +2180,8 @@ def path_write(cls, val): Create an instance of this class set to the ``path_write`` tag with value ``val``. - :param files.WriteError val: - :rtype: files.DeleteError + :param WriteError val: + :rtype: DeleteError """ return cls('path_write', val) @@ -2229,7 +2229,7 @@ def get_path_lookup(self): """ Only call this if :meth:`is_path_lookup` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path_lookup(): raise AttributeError("tag 'path_lookup' not set") @@ -2239,14 +2239,14 @@ def get_path_write(self): """ Only call this if :meth:`is_path_write` is true. - :rtype: files.WriteError + :rtype: WriteError """ if not self.is_path_write(): raise AttributeError("tag 'path_write' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteError(%r, %r)' % (self._tag, self._value) @@ -2278,7 +2278,7 @@ def metadata(self): """ Metadata of the deleted object. - :rtype: files.Metadata + :rtype: Metadata """ if self._metadata_present: return self._metadata_value @@ -2296,8 +2296,8 @@ def metadata(self): self._metadata_value = None self._metadata_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeleteResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeleteResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeleteResult(metadata={!r})'.format( @@ -2472,8 +2472,8 @@ def parent_shared_folder_id(self): self._parent_shared_folder_id_value = None self._parent_shared_folder_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(Metadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(Metadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'Metadata(name={!r}, path_lower={!r}, path_display={!r}, parent_shared_folder_id={!r})'.format( @@ -2506,8 +2506,8 @@ def __init__(self, path_display, parent_shared_folder_id) - def _process_custom_annotations(self, annotation_type, processor): - super(DeletedMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeletedMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeletedMetadata(name={!r}, path_lower={!r}, path_display={!r}, parent_shared_folder_id={!r})'.format( @@ -2594,8 +2594,8 @@ def width(self): self._width_value = None self._width_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(Dimensions, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(Dimensions, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'Dimensions(height={!r}, width={!r})'.format( @@ -2681,8 +2681,8 @@ def rev(self): self._rev_value = None self._rev_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DownloadArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DownloadArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DownloadArg(path={!r}, rev={!r})'.format( @@ -2697,10 +2697,16 @@ class DownloadError(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 files.DownloadError.unsupported_file: This file type cannot be + downloaded directly; use :meth:`dropbox.dropbox.Dropbox.files_export` + instead. """ _catch_all = 'other' # Attribute is overwritten below the class definition + unsupported_file = None + # Attribute is overwritten below the class definition other = None @classmethod @@ -2709,8 +2715,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.DownloadError + :param LookupError val: + :rtype: DownloadError """ return cls('path', val) @@ -2722,6 +2728,14 @@ def is_path(self): """ return self._tag == 'path' + def is_unsupported_file(self): + """ + Check if the union tag is ``unsupported_file``. + + :rtype: bool + """ + return self._tag == 'unsupported_file' + def is_other(self): """ Check if the union tag is ``other``. @@ -2734,14 +2748,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(DownloadError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DownloadError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DownloadError(%r, %r)' % (self._tag, self._value) @@ -2790,8 +2804,8 @@ def path(self): self._path_value = None self._path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DownloadZipArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DownloadZipArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DownloadZipArg(path={!r})'.format( @@ -2826,8 +2840,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.DownloadZipError + :param LookupError val: + :rtype: DownloadZipError """ return cls('path', val) @@ -2867,14 +2881,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(DownloadZipError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DownloadZipError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DownloadZipError(%r, %r)' % (self._tag, self._value) @@ -2900,7 +2914,7 @@ def __init__(self, @property def metadata(self): """ - :rtype: files.FolderMetadata + :rtype: FolderMetadata """ if self._metadata_present: return self._metadata_value @@ -2918,8 +2932,8 @@ def metadata(self): self._metadata_value = None self._metadata_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DownloadZipResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DownloadZipResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DownloadZipResult(metadata={!r})'.format( @@ -2928,6 +2942,397 @@ def __repr__(self): DownloadZipResult_validator = bv.Struct(DownloadZipResult) +class ExportArg(bb.Struct): + """ + :ivar files.ExportArg.path: The path of the file to be exported. + """ + + __slots__ = [ + '_path_value', + '_path_present', + ] + + _has_required_fields = True + + def __init__(self, + path=None): + self._path_value = None + self._path_present = False + if path is not None: + self.path = path + + @property + def path(self): + """ + The path of the file to be exported. + + :rtype: str + """ + if self._path_present: + return self._path_value + else: + raise AttributeError("missing required field 'path'") + + @path.setter + def path(self, val): + val = self._path_validator.validate(val) + self._path_value = val + self._path_present = True + + @path.deleter + def path(self): + self._path_value = None + self._path_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExportArg, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ExportArg(path={!r})'.format( + self._path_value, + ) + +ExportArg_validator = bv.Struct(ExportArg) + +class ExportError(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 files.ExportError.non_exportable: This file type cannot be exported. + Use :meth:`dropbox.dropbox.Dropbox.files_download` instead. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + non_exportable = None + # Attribute is overwritten below the class definition + other = None + + @classmethod + def path(cls, val): + """ + Create an instance of this class set to the ``path`` tag with value + ``val``. + + :param LookupError val: + :rtype: ExportError + """ + return cls('path', val) + + def is_path(self): + """ + Check if the union tag is ``path``. + + :rtype: bool + """ + return self._tag == 'path' + + def is_non_exportable(self): + """ + Check if the union tag is ``non_exportable``. + + :rtype: bool + """ + return self._tag == 'non_exportable' + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == 'other' + + def get_path(self): + """ + Only call this if :meth:`is_path` is true. + + :rtype: LookupError + """ + if not self.is_path(): + raise AttributeError("tag 'path' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExportError, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ExportError(%r, %r)' % (self._tag, self._value) + +ExportError_validator = bv.Union(ExportError) + +class ExportInfo(bb.Struct): + """ + Export information for a file. + + :ivar files.ExportInfo.export_as: Format to which the file can be exported + to. + """ + + __slots__ = [ + '_export_as_value', + '_export_as_present', + ] + + _has_required_fields = False + + def __init__(self, + export_as=None): + self._export_as_value = None + self._export_as_present = False + if export_as is not None: + self.export_as = export_as + + @property + def export_as(self): + """ + Format to which the file can be exported to. + + :rtype: str + """ + if self._export_as_present: + return self._export_as_value + else: + return None + + @export_as.setter + def export_as(self, val): + if val is None: + del self.export_as + return + val = self._export_as_validator.validate(val) + self._export_as_value = val + self._export_as_present = True + + @export_as.deleter + def export_as(self): + self._export_as_value = None + self._export_as_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExportInfo, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ExportInfo(export_as={!r})'.format( + self._export_as_value, + ) + +ExportInfo_validator = bv.Struct(ExportInfo) + +class ExportMetadata(bb.Struct): + """ + :ivar files.ExportMetadata.name: The last component of the path (including + extension). This never contains a slash. + :ivar files.ExportMetadata.size: The file size in bytes. + :ivar files.ExportMetadata.export_hash: A hash based on the exported file + content. This field can be used to verify data integrity. Similar to + content hash. For more information see our `Content hash + `_ page. + """ + + __slots__ = [ + '_name_value', + '_name_present', + '_size_value', + '_size_present', + '_export_hash_value', + '_export_hash_present', + ] + + _has_required_fields = True + + def __init__(self, + name=None, + size=None, + export_hash=None): + self._name_value = None + self._name_present = False + self._size_value = None + self._size_present = False + self._export_hash_value = None + self._export_hash_present = False + if name is not None: + self.name = name + if size is not None: + self.size = size + if export_hash is not None: + self.export_hash = export_hash + + @property + def name(self): + """ + The last component of the path (including extension). This never + contains a slash. + + :rtype: str + """ + if self._name_present: + return self._name_value + else: + raise AttributeError("missing required field 'name'") + + @name.setter + def name(self, val): + val = self._name_validator.validate(val) + self._name_value = val + self._name_present = True + + @name.deleter + def name(self): + self._name_value = None + self._name_present = False + + @property + def size(self): + """ + The file size in bytes. + + :rtype: int + """ + if self._size_present: + return self._size_value + else: + raise AttributeError("missing required field 'size'") + + @size.setter + def size(self, val): + val = self._size_validator.validate(val) + self._size_value = val + self._size_present = True + + @size.deleter + def size(self): + self._size_value = None + self._size_present = False + + @property + def export_hash(self): + """ + A hash based on the exported file content. This field can be used to + verify data integrity. Similar to content hash. For more information see + our `Content hash + `_ page. + + :rtype: str + """ + if self._export_hash_present: + return self._export_hash_value + else: + return None + + @export_hash.setter + def export_hash(self, val): + if val is None: + del self.export_hash + return + val = self._export_hash_validator.validate(val) + self._export_hash_value = val + self._export_hash_present = True + + @export_hash.deleter + def export_hash(self): + self._export_hash_value = None + self._export_hash_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExportMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ExportMetadata(name={!r}, size={!r}, export_hash={!r})'.format( + self._name_value, + self._size_value, + self._export_hash_value, + ) + +ExportMetadata_validator = bv.Struct(ExportMetadata) + +class ExportResult(bb.Struct): + """ + :ivar files.ExportResult.export_metadata: Metadata for the exported version + of the file. + :ivar files.ExportResult.file_metadata: Metadata for the original file. + """ + + __slots__ = [ + '_export_metadata_value', + '_export_metadata_present', + '_file_metadata_value', + '_file_metadata_present', + ] + + _has_required_fields = True + + def __init__(self, + export_metadata=None, + file_metadata=None): + self._export_metadata_value = None + self._export_metadata_present = False + self._file_metadata_value = None + self._file_metadata_present = False + if export_metadata is not None: + self.export_metadata = export_metadata + if file_metadata is not None: + self.file_metadata = file_metadata + + @property + def export_metadata(self): + """ + Metadata for the exported version of the file. + + :rtype: ExportMetadata + """ + if self._export_metadata_present: + return self._export_metadata_value + else: + raise AttributeError("missing required field 'export_metadata'") + + @export_metadata.setter + def export_metadata(self, val): + self._export_metadata_validator.validate_type_only(val) + self._export_metadata_value = val + self._export_metadata_present = True + + @export_metadata.deleter + def export_metadata(self): + self._export_metadata_value = None + self._export_metadata_present = False + + @property + def file_metadata(self): + """ + Metadata for the original file. + + :rtype: FileMetadata + """ + if self._file_metadata_present: + return self._file_metadata_value + else: + raise AttributeError("missing required field 'file_metadata'") + + @file_metadata.setter + def file_metadata(self, val): + self._file_metadata_validator.validate_type_only(val) + self._file_metadata_value = val + self._file_metadata_present = True + + @file_metadata.deleter + def file_metadata(self): + self._file_metadata_value = None + self._file_metadata_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExportResult, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ExportResult(export_metadata={!r}, file_metadata={!r})'.format( + self._export_metadata_value, + self._file_metadata_value, + ) + +ExportResult_validator = bv.Struct(ExportResult) + class FileMetadata(Metadata): """ :ivar files.FileMetadata.id: A unique identifier for the file. @@ -2944,10 +3349,19 @@ class FileMetadata(Metadata): used to detect changes and avoid conflicts. :ivar files.FileMetadata.size: The file size in bytes. :ivar files.FileMetadata.media_info: Additional information if the file is a - photo or video. + photo or video. This field will not be set on entries returned by + :meth:`dropbox.dropbox.Dropbox.files_list_folder`, + :meth:`dropbox.dropbox.Dropbox.files_list_folder_continue`, or + :meth:`dropbox.dropbox.Dropbox.files_get_thumbnail_batch`, starting + December 2, 2019. :ivar files.FileMetadata.symlink_info: Set if this file is a symlink. :ivar files.FileMetadata.sharing_info: Set if this file is contained in a shared folder. + :ivar files.FileMetadata.is_downloadable: If true, file can be downloaded + directly; else the file must be exported. + :ivar files.FileMetadata.export_info: Information about format this file can + be exported to. This filed must be set if ``is_downloadable`` is set to + false. :ivar files.FileMetadata.property_groups: Additional information if the file has custom properties with the property template specified. :ivar files.FileMetadata.has_explicit_shared_members: This flag will only be @@ -2981,6 +3395,10 @@ class FileMetadata(Metadata): '_symlink_info_present', '_sharing_info_value', '_sharing_info_present', + '_is_downloadable_value', + '_is_downloadable_present', + '_export_info_value', + '_export_info_present', '_property_groups_value', '_property_groups_present', '_has_explicit_shared_members_value', @@ -3004,6 +3422,8 @@ def __init__(self, media_info=None, symlink_info=None, sharing_info=None, + is_downloadable=None, + export_info=None, property_groups=None, has_explicit_shared_members=None, content_hash=None): @@ -3027,6 +3447,10 @@ def __init__(self, self._symlink_info_present = False self._sharing_info_value = None self._sharing_info_present = False + self._is_downloadable_value = None + self._is_downloadable_present = False + self._export_info_value = None + self._export_info_present = False self._property_groups_value = None self._property_groups_present = False self._has_explicit_shared_members_value = None @@ -3049,6 +3473,10 @@ def __init__(self, self.symlink_info = symlink_info if sharing_info is not None: self.sharing_info = sharing_info + if is_downloadable is not None: + self.is_downloadable = is_downloadable + if export_info is not None: + self.export_info = export_info if property_groups is not None: self.property_groups = property_groups if has_explicit_shared_members is not None: @@ -3180,9 +3608,14 @@ def size(self): @property def media_info(self): """ - Additional information if the file is a photo or video. + Additional information if the file is a photo or video. This field will + not be set on entries returned by + :meth:`dropbox.dropbox.Dropbox.files_list_folder`, + :meth:`dropbox.dropbox.Dropbox.files_list_folder_continue`, or + :meth:`dropbox.dropbox.Dropbox.files_get_thumbnail_batch`, starting + December 2, 2019. - :rtype: files.MediaInfo + :rtype: MediaInfo """ if self._media_info_present: return self._media_info_value @@ -3208,7 +3641,7 @@ def symlink_info(self): """ Set if this file is a symlink. - :rtype: files.SymlinkInfo + :rtype: SymlinkInfo """ if self._symlink_info_present: return self._symlink_info_value @@ -3234,7 +3667,7 @@ def sharing_info(self): """ Set if this file is contained in a shared folder. - :rtype: files.FileSharingInfo + :rtype: FileSharingInfo """ if self._sharing_info_present: return self._sharing_info_value @@ -3255,6 +3688,57 @@ def sharing_info(self): self._sharing_info_value = None self._sharing_info_present = False + @property + def is_downloadable(self): + """ + If true, file can be downloaded directly; else the file must be + exported. + + :rtype: bool + """ + if self._is_downloadable_present: + return self._is_downloadable_value + else: + return True + + @is_downloadable.setter + def is_downloadable(self, val): + val = self._is_downloadable_validator.validate(val) + self._is_downloadable_value = val + self._is_downloadable_present = True + + @is_downloadable.deleter + def is_downloadable(self): + self._is_downloadable_value = None + self._is_downloadable_present = False + + @property + def export_info(self): + """ + Information about format this file can be exported to. This filed must + be set if ``is_downloadable`` is set to false. + + :rtype: ExportInfo + """ + if self._export_info_present: + return self._export_info_value + else: + return None + + @export_info.setter + def export_info(self, val): + if val is None: + del self.export_info + return + self._export_info_validator.validate_type_only(val) + self._export_info_value = val + self._export_info_present = True + + @export_info.deleter + def export_info(self): + self._export_info_value = None + self._export_info_present = False + @property def property_groups(self): """ @@ -3342,11 +3826,11 @@ def content_hash(self): self._content_hash_value = None self._content_hash_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'FileMetadata(name={!r}, id={!r}, client_modified={!r}, server_modified={!r}, rev={!r}, size={!r}, path_lower={!r}, path_display={!r}, parent_shared_folder_id={!r}, media_info={!r}, symlink_info={!r}, sharing_info={!r}, property_groups={!r}, has_explicit_shared_members={!r}, content_hash={!r})'.format( + return 'FileMetadata(name={!r}, id={!r}, client_modified={!r}, server_modified={!r}, rev={!r}, size={!r}, path_lower={!r}, path_display={!r}, parent_shared_folder_id={!r}, media_info={!r}, symlink_info={!r}, sharing_info={!r}, is_downloadable={!r}, export_info={!r}, property_groups={!r}, has_explicit_shared_members={!r}, content_hash={!r})'.format( self._name_value, self._id_value, self._client_modified_value, @@ -3359,6 +3843,8 @@ def __repr__(self): self._media_info_value, self._symlink_info_value, self._sharing_info_value, + self._is_downloadable_value, + self._export_info_value, self._property_groups_value, self._has_explicit_shared_members_value, self._content_hash_value, @@ -3411,8 +3897,8 @@ def read_only(self): self._read_only_value = None self._read_only_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharingInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharingInfo(read_only={!r})'.format( @@ -3504,8 +3990,8 @@ def modified_by(self): self._modified_by_value = None self._modified_by_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileSharingInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileSharingInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileSharingInfo(read_only={!r}, parent_shared_folder_id={!r}, modified_by={!r})'.format( @@ -3627,7 +4113,7 @@ def sharing_info(self): Set if the folder is contained in a shared folder or is a shared folder mount point. - :rtype: files.FolderSharingInfo + :rtype: FolderSharingInfo """ if self._sharing_info_present: return self._sharing_info_value @@ -3677,8 +4163,8 @@ def property_groups(self): self._property_groups_value = None self._property_groups_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FolderMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FolderMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FolderMetadata(name={!r}, id={!r}, path_lower={!r}, path_display={!r}, parent_shared_folder_id={!r}, shared_folder_id={!r}, sharing_info={!r}, property_groups={!r})'.format( @@ -3851,8 +4337,8 @@ def no_access(self): self._no_access_value = None self._no_access_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FolderSharingInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FolderSharingInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FolderSharingInfo(read_only={!r}, parent_shared_folder_id={!r}, shared_folder_id={!r}, traverse_only={!r}, no_access={!r})'.format( @@ -3908,8 +4394,8 @@ def path(self): self._path_value = None self._path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetCopyReferenceArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetCopyReferenceArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetCopyReferenceArg(path={!r})'.format( @@ -3935,8 +4421,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.GetCopyReferenceError + :param LookupError val: + :rtype: GetCopyReferenceError """ return cls('path', val) @@ -3960,14 +4446,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GetCopyReferenceError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetCopyReferenceError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetCopyReferenceError(%r, %r)' % (self._tag, self._value) @@ -4017,7 +4503,7 @@ def metadata(self): """ Metadata of the file or folder. - :rtype: files.Metadata + :rtype: Metadata """ if self._metadata_present: return self._metadata_value @@ -4083,8 +4569,8 @@ def expires(self): self._expires_value = None self._expires_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetCopyReferenceResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetCopyReferenceResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetCopyReferenceResult(metadata={!r}, copy_reference={!r}, expires={!r})'.format( @@ -4138,8 +4624,8 @@ def path(self): self._path_value = None self._path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetTemporaryLinkArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTemporaryLinkArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTemporaryLinkArg(path={!r})'.format( @@ -4153,10 +4639,20 @@ class GetTemporaryLinkError(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 files.GetTemporaryLinkError.email_not_verified: The user's email + address needs to be verified to use this functionality. + :ivar files.GetTemporaryLinkError.unsupported_file: Cannot get temporary + link to this file type; use :meth:`dropbox.dropbox.Dropbox.files_export` + instead. """ _catch_all = 'other' # Attribute is overwritten below the class definition + email_not_verified = None + # Attribute is overwritten below the class definition + unsupported_file = None + # Attribute is overwritten below the class definition other = None @classmethod @@ -4165,8 +4661,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.GetTemporaryLinkError + :param LookupError val: + :rtype: GetTemporaryLinkError """ return cls('path', val) @@ -4178,6 +4674,22 @@ def is_path(self): """ return self._tag == 'path' + def is_email_not_verified(self): + """ + Check if the union tag is ``email_not_verified``. + + :rtype: bool + """ + return self._tag == 'email_not_verified' + + def is_unsupported_file(self): + """ + Check if the union tag is ``unsupported_file``. + + :rtype: bool + """ + return self._tag == 'unsupported_file' + def is_other(self): """ Check if the union tag is ``other``. @@ -4190,14 +4702,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GetTemporaryLinkError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTemporaryLinkError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTemporaryLinkError(%r, %r)' % (self._tag, self._value) @@ -4237,7 +4749,7 @@ def metadata(self): """ Metadata of the file. - :rtype: files.FileMetadata + :rtype: FileMetadata """ if self._metadata_present: return self._metadata_value @@ -4278,8 +4790,8 @@ def link(self): self._link_value = None self._link_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetTemporaryLinkResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTemporaryLinkResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTemporaryLinkResult(metadata={!r}, link={!r})'.format( @@ -4328,7 +4840,7 @@ def commit_info(self): commit. Equivalent to the parameters provided to :meth:`dropbox.dropbox.Dropbox.files_upload`. - :rtype: files.CommitInfo + :rtype: CommitInfo """ if self._commit_info_present: return self._commit_info_value @@ -4371,8 +4883,8 @@ def duration(self): self._duration_value = None self._duration_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetTemporaryUploadLinkArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTemporaryUploadLinkArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTemporaryUploadLinkArg(commit_info={!r}, duration={!r})'.format( @@ -4426,8 +4938,8 @@ def link(self): self._link_value = None self._link_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetTemporaryUploadLinkResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTemporaryUploadLinkResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTemporaryUploadLinkResult(link={!r})'.format( @@ -4462,7 +4974,7 @@ def entries(self): """ List of files to get thumbnails. - :rtype: list of [files.ThumbnailArg] + :rtype: list of [ThumbnailArg] """ if self._entries_present: return self._entries_value @@ -4480,8 +4992,8 @@ def entries(self): self._entries_value = None self._entries_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetThumbnailBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetThumbnailBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetThumbnailBatchArg(entries={!r})'.format( @@ -4522,8 +5034,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GetThumbnailBatchError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetThumbnailBatchError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetThumbnailBatchError(%r, %r)' % (self._tag, self._value) @@ -4555,7 +5067,7 @@ def entries(self): """ List of files and their thumbnails. - :rtype: list of [files.GetThumbnailBatchResultEntry] + :rtype: list of [GetThumbnailBatchResultEntry] """ if self._entries_present: return self._entries_value @@ -4573,8 +5085,8 @@ def entries(self): self._entries_value = None self._entries_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetThumbnailBatchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetThumbnailBatchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetThumbnailBatchResult(entries={!r})'.format( @@ -4613,7 +5125,7 @@ def __init__(self, @property def metadata(self): """ - :rtype: files.FileMetadata + :rtype: FileMetadata """ if self._metadata_present: return self._metadata_value @@ -4654,8 +5166,8 @@ def thumbnail(self): self._thumbnail_value = None self._thumbnail_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetThumbnailBatchResultData, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetThumbnailBatchResultData, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetThumbnailBatchResultData(metadata={!r}, thumbnail={!r})'.format( @@ -4671,8 +5183,8 @@ class GetThumbnailBatchResultEntry(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar ThumbnailError files.GetThumbnailBatchResultEntry.failure: The result - for this file if it was an error. + :ivar ThumbnailError GetThumbnailBatchResultEntry.failure: The result for + this file if it was an error. """ _catch_all = 'other' @@ -4685,8 +5197,8 @@ def success(cls, val): Create an instance of this class set to the ``success`` tag with value ``val``. - :param files.GetThumbnailBatchResultData val: - :rtype: files.GetThumbnailBatchResultEntry + :param GetThumbnailBatchResultData val: + :rtype: GetThumbnailBatchResultEntry """ return cls('success', val) @@ -4696,8 +5208,8 @@ def failure(cls, val): Create an instance of this class set to the ``failure`` tag with value ``val``. - :param files.ThumbnailError val: - :rtype: files.GetThumbnailBatchResultEntry + :param ThumbnailError val: + :rtype: GetThumbnailBatchResultEntry """ return cls('failure', val) @@ -4729,7 +5241,7 @@ def get_success(self): """ Only call this if :meth:`is_success` is true. - :rtype: files.GetThumbnailBatchResultData + :rtype: GetThumbnailBatchResultData """ if not self.is_success(): raise AttributeError("tag 'success' not set") @@ -4741,14 +5253,14 @@ def get_failure(self): Only call this if :meth:`is_failure` is true. - :rtype: files.ThumbnailError + :rtype: ThumbnailError """ if not self.is_failure(): raise AttributeError("tag 'failure' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GetThumbnailBatchResultEntry, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetThumbnailBatchResultEntry, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetThumbnailBatchResultEntry(%r, %r)' % (self._tag, self._value) @@ -4830,8 +5342,8 @@ def longitude(self): self._longitude_value = None self._longitude_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GpsCoordinates, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GpsCoordinates, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GpsCoordinates(latitude={!r}, longitude={!r})'.format( @@ -4848,7 +5360,8 @@ class ListFolderArg(bb.Struct): be applied recursively to all subfolders and the response will contain contents of all subfolders. :ivar files.ListFolderArg.include_media_info: If true, - ``FileMetadata.media_info`` is set for photo and video. + ``FileMetadata.media_info`` is set for photo and video. This parameter + will no longer have an effect starting December 2, 2019. :ivar files.ListFolderArg.include_deleted: If true, the results will include entries for files and folders that used to exist but were deleted. :ivar files.ListFolderArg.include_has_explicit_shared_members: If true, the @@ -4868,6 +5381,8 @@ class ListFolderArg(bb.Struct): :ivar files.ListFolderArg.include_property_groups: If set to a valid list of template IDs, ``FileMetadata.property_groups`` is set if there exists property data associated with the file and each of the listed templates. + :ivar files.ListFolderArg.include_non_downloadable_files: If true, include + files that are not downloadable, i.e. Google Docs. """ __slots__ = [ @@ -4889,6 +5404,8 @@ class ListFolderArg(bb.Struct): '_shared_link_present', '_include_property_groups_value', '_include_property_groups_present', + '_include_non_downloadable_files_value', + '_include_non_downloadable_files_present', ] _has_required_fields = True @@ -4902,7 +5419,8 @@ def __init__(self, include_mounted_folders=None, limit=None, shared_link=None, - include_property_groups=None): + include_property_groups=None, + include_non_downloadable_files=None): self._path_value = None self._path_present = False self._recursive_value = None @@ -4921,6 +5439,8 @@ def __init__(self, self._shared_link_present = False self._include_property_groups_value = None self._include_property_groups_present = False + self._include_non_downloadable_files_value = None + self._include_non_downloadable_files_present = False if path is not None: self.path = path if recursive is not None: @@ -4939,6 +5459,8 @@ def __init__(self, self.shared_link = shared_link if include_property_groups is not None: self.include_property_groups = include_property_groups + if include_non_downloadable_files is not None: + self.include_non_downloadable_files = include_non_downloadable_files @property def path(self): @@ -4990,7 +5512,8 @@ def recursive(self): @property def include_media_info(self): """ - If true, ``FileMetadata.media_info`` is set for photo and video. + If true, ``FileMetadata.media_info`` is set for photo and video. This + parameter will no longer have an effect starting December 2, 2019. :rtype: bool """ @@ -5118,7 +5641,7 @@ def shared_link(self): present, ``ListFolderArg.path`` will be relative to root of the shared link. Only non-recursive mode is supported for shared link. - :rtype: files.SharedLink + :rtype: SharedLink """ if self._shared_link_present: return self._shared_link_value @@ -5167,11 +5690,34 @@ def include_property_groups(self): self._include_property_groups_value = None self._include_property_groups_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderArg, self)._process_custom_annotations(annotation_type, processor) + @property + def include_non_downloadable_files(self): + """ + If true, include files that are not downloadable, i.e. Google Docs. + + :rtype: bool + """ + if self._include_non_downloadable_files_present: + return self._include_non_downloadable_files_value + else: + return True + + @include_non_downloadable_files.setter + def include_non_downloadable_files(self, val): + val = self._include_non_downloadable_files_validator.validate(val) + self._include_non_downloadable_files_value = val + self._include_non_downloadable_files_present = True + + @include_non_downloadable_files.deleter + def include_non_downloadable_files(self): + self._include_non_downloadable_files_value = None + self._include_non_downloadable_files_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ListFolderArg(path={!r}, recursive={!r}, include_media_info={!r}, include_deleted={!r}, include_has_explicit_shared_members={!r}, include_mounted_folders={!r}, limit={!r}, shared_link={!r}, include_property_groups={!r})'.format( + return 'ListFolderArg(path={!r}, recursive={!r}, include_media_info={!r}, include_deleted={!r}, include_has_explicit_shared_members={!r}, include_mounted_folders={!r}, limit={!r}, shared_link={!r}, include_property_groups={!r}, include_non_downloadable_files={!r})'.format( self._path_value, self._recursive_value, self._include_media_info_value, @@ -5181,6 +5727,7 @@ def __repr__(self): self._limit_value, self._shared_link_value, self._include_property_groups_value, + self._include_non_downloadable_files_value, ) ListFolderArg_validator = bv.Struct(ListFolderArg) @@ -5231,8 +5778,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderContinueArg(cursor={!r})'.format( @@ -5264,8 +5811,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.ListFolderContinueError + :param LookupError val: + :rtype: ListFolderContinueError """ return cls('path', val) @@ -5297,14 +5844,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderContinueError(%r, %r)' % (self._tag, self._value) @@ -5328,8 +5875,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.ListFolderError + :param LookupError val: + :rtype: ListFolderError """ return cls('path', val) @@ -5353,14 +5900,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderError(%r, %r)' % (self._tag, self._value) @@ -5413,8 +5960,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderGetLatestCursorResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderGetLatestCursorResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderGetLatestCursorResult(cursor={!r})'.format( @@ -5511,8 +6058,8 @@ def timeout(self): self._timeout_value = None self._timeout_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderLongpollArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderLongpollArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderLongpollArg(cursor={!r}, timeout={!r})'.format( @@ -5555,8 +6102,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderLongpollError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderLongpollError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderLongpollError(%r, %r)' % (self._tag, self._value) @@ -5647,8 +6194,8 @@ def backoff(self): self._backoff_value = None self._backoff_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderLongpollResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderLongpollResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderLongpollResult(changes={!r}, backoff={!r})'.format( @@ -5704,7 +6251,7 @@ def entries(self): """ The files and (direct) subfolders in the folder. - :rtype: list of [files.Metadata] + :rtype: list of [Metadata] """ if self._entries_present: return self._entries_value @@ -5772,8 +6319,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderResult(entries={!r}, cursor={!r}, has_more={!r})'.format( @@ -5851,7 +6398,7 @@ def mode(self): Determines the behavior of the API in listing the revisions for a given file path or id. - :rtype: files.ListRevisionsMode + :rtype: ListRevisionsMode """ if self._mode_present: return self._mode_value @@ -5892,8 +6439,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListRevisionsArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListRevisionsArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListRevisionsArg(path={!r}, mode={!r}, limit={!r})'.format( @@ -5921,8 +6468,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.ListRevisionsError + :param LookupError val: + :rtype: ListRevisionsError """ return cls('path', val) @@ -5946,14 +6493,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListRevisionsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListRevisionsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListRevisionsError(%r, %r)' % (self._tag, self._value) @@ -6005,8 +6552,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListRevisionsMode, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListRevisionsMode, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListRevisionsMode(%r, %r)' % (self._tag, self._value) @@ -6107,7 +6654,7 @@ def entries(self): The revisions for the file. Only revisions that are not deleted will show up here. - :rtype: list of [files.FileMetadata] + :rtype: list of [FileMetadata] """ if self._entries_present: return self._entries_value @@ -6125,8 +6672,8 @@ def entries(self): self._entries_value = None self._entries_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListRevisionsResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListRevisionsResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListRevisionsResult(is_deleted={!r}, entries={!r}, server_deleted={!r})'.format( @@ -6156,6 +6703,8 @@ class LookupError(bb.Union): :ivar files.LookupError.restricted_content: The file cannot be transferred because the content is restricted. For example, sometimes there are legal restrictions due to copyright claims. + :ivar files.LookupError.unsupported_content_type: This operation is not + supported for this content type. """ _catch_all = 'other' @@ -6168,6 +6717,8 @@ class LookupError(bb.Union): # Attribute is overwritten below the class definition restricted_content = None # Attribute is overwritten below the class definition + unsupported_content_type = None + # Attribute is overwritten below the class definition other = None @classmethod @@ -6177,7 +6728,7 @@ def malformed_path(cls, val): value ``val``. :param Optional[str] val: - :rtype: files.LookupError + :rtype: LookupError """ return cls('malformed_path', val) @@ -6221,6 +6772,14 @@ def is_restricted_content(self): """ return self._tag == 'restricted_content' + def is_unsupported_content_type(self): + """ + Check if the union tag is ``unsupported_content_type``. + + :rtype: bool + """ + return self._tag == 'unsupported_content_type' + def is_other(self): """ Check if the union tag is ``other``. @@ -6244,8 +6803,8 @@ def get_malformed_path(self): raise AttributeError("tag 'malformed_path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(LookupError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LookupError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LookupError(%r, %r)' % (self._tag, self._value) @@ -6260,8 +6819,7 @@ class MediaInfo(bb.Union): :ivar files.MediaInfo.pending: Indicate the photo/video is still under processing and metadata is not available yet. - :ivar MediaMetadata files.MediaInfo.metadata: The metadata for the - photo/video. + :ivar MediaMetadata MediaInfo.metadata: The metadata for the photo/video. """ _catch_all = None @@ -6274,8 +6832,8 @@ def metadata(cls, val): Create an instance of this class set to the ``metadata`` tag with value ``val``. - :param files.MediaMetadata val: - :rtype: files.MediaInfo + :param MediaMetadata val: + :rtype: MediaInfo """ return cls('metadata', val) @@ -6301,14 +6859,14 @@ def get_metadata(self): Only call this if :meth:`is_metadata` is true. - :rtype: files.MediaMetadata + :rtype: MediaMetadata """ if not self.is_metadata(): raise AttributeError("tag 'metadata' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(MediaInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MediaInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MediaInfo(%r, %r)' % (self._tag, self._value) @@ -6358,7 +6916,7 @@ def dimensions(self): """ Dimension of the photo/video. - :rtype: files.Dimensions + :rtype: Dimensions """ if self._dimensions_present: return self._dimensions_value @@ -6384,7 +6942,7 @@ def location(self): """ The GPS coordinate of the photo/video. - :rtype: files.GpsCoordinates + :rtype: GpsCoordinates """ if self._location_present: return self._location_value @@ -6431,8 +6989,8 @@ def time_taken(self): self._time_taken_value = None self._time_taken_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MediaMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MediaMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MediaMetadata(dimensions={!r}, location={!r}, time_taken={!r})'.format( @@ -6479,7 +7037,7 @@ def entries(self): List of entries to be moved or copied. Each entry is :class:`RelocationPath`. - :rtype: list of [files.RelocationPath] + :rtype: list of [RelocationPath] """ if self._entries_present: return self._entries_value @@ -6521,8 +7079,8 @@ def autorename(self): self._autorename_value = None self._autorename_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchArgBase, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchArgBase, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchArgBase(entries={!r}, autorename={!r})'.format( @@ -6581,8 +7139,8 @@ def allow_ownership_transfer(self): self._allow_ownership_transfer_value = None self._allow_ownership_transfer_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MoveBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MoveBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MoveBatchArg(entries={!r}, autorename={!r}, allow_ownership_transfer={!r})'.format( @@ -6611,8 +7169,8 @@ def __init__(self, location, time_taken) - def _process_custom_annotations(self, annotation_type, processor): - super(PhotoMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PhotoMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PhotoMetadata(dimensions={!r}, location={!r}, time_taken={!r})'.format( @@ -6699,8 +7257,8 @@ def rev(self): self._rev_value = None self._rev_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PreviewArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PreviewArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PreviewArg(path={!r}, rev={!r})'.format( @@ -6716,7 +7274,7 @@ class PreviewError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar LookupError files.PreviewError.path: An error occurs when downloading + :ivar LookupError PreviewError.path: An error occurs when downloading metadata for the file. :ivar files.PreviewError.in_progress: This preview generation is still in progress and the file is not ready for preview yet. @@ -6740,8 +7298,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.PreviewError + :param LookupError val: + :rtype: PreviewError """ return cls('path', val) @@ -6783,14 +7341,14 @@ def get_path(self): Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(PreviewError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PreviewError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PreviewError(%r, %r)' % (self._tag, self._value) @@ -6872,8 +7430,8 @@ def to_path(self): self._to_path_value = None self._to_path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationPath, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationPath, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationPath(from_path={!r}, to_path={!r})'.format( @@ -7003,8 +7561,8 @@ def allow_ownership_transfer(self): self._allow_ownership_transfer_value = None self._allow_ownership_transfer_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationArg(from_path={!r}, to_path={!r}, allow_shared_folder={!r}, autorename={!r}, allow_ownership_transfer={!r})'.format( @@ -7106,8 +7664,8 @@ def allow_ownership_transfer(self): self._allow_ownership_transfer_value = None self._allow_ownership_transfer_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchArg(entries={!r}, autorename={!r}, allow_shared_folder={!r}, allow_ownership_transfer={!r})'.format( @@ -7144,6 +7702,8 @@ class RelocationError(bb.Union): :ivar files.RelocationError.internal_error: Something went wrong with the job on Dropbox's end. You'll need to verify that the action you were taking succeeded, and if not, try again. This should happen very rarely. + :ivar files.RelocationError.cant_move_shared_folder: Can't move the shared + folder to the given destination. """ _catch_all = 'other' @@ -7164,6 +7724,8 @@ class RelocationError(bb.Union): # Attribute is overwritten below the class definition internal_error = None # Attribute is overwritten below the class definition + cant_move_shared_folder = None + # Attribute is overwritten below the class definition other = None @classmethod @@ -7172,8 +7734,8 @@ def from_lookup(cls, val): Create an instance of this class set to the ``from_lookup`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.RelocationError + :param LookupError val: + :rtype: RelocationError """ return cls('from_lookup', val) @@ -7183,8 +7745,8 @@ def from_write(cls, val): Create an instance of this class set to the ``from_write`` tag with value ``val``. - :param files.WriteError val: - :rtype: files.RelocationError + :param WriteError val: + :rtype: RelocationError """ return cls('from_write', val) @@ -7194,8 +7756,8 @@ def to(cls, val): Create an instance of this class set to the ``to`` tag with value ``val``. - :param files.WriteError val: - :rtype: files.RelocationError + :param WriteError val: + :rtype: RelocationError """ return cls('to', val) @@ -7287,6 +7849,14 @@ def is_internal_error(self): """ return self._tag == 'internal_error' + def is_cant_move_shared_folder(self): + """ + Check if the union tag is ``cant_move_shared_folder``. + + :rtype: bool + """ + return self._tag == 'cant_move_shared_folder' + def is_other(self): """ Check if the union tag is ``other``. @@ -7299,7 +7869,7 @@ def get_from_lookup(self): """ Only call this if :meth:`is_from_lookup` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_from_lookup(): raise AttributeError("tag 'from_lookup' not set") @@ -7309,7 +7879,7 @@ def get_from_write(self): """ Only call this if :meth:`is_from_write` is true. - :rtype: files.WriteError + :rtype: WriteError """ if not self.is_from_write(): raise AttributeError("tag 'from_write' not set") @@ -7319,14 +7889,14 @@ def get_to(self): """ Only call this if :meth:`is_to` is true. - :rtype: files.WriteError + :rtype: WriteError """ if not self.is_to(): raise AttributeError("tag 'to' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationError(%r, %r)' % (self._tag, self._value) @@ -7354,8 +7924,8 @@ def is_too_many_write_operations(self): """ return self._tag == 'too_many_write_operations' - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchError(%r, %r)' % (self._tag, self._value) @@ -7368,7 +7938,7 @@ class RelocationBatchErrorEntry(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar RelocationError files.RelocationBatchErrorEntry.relocation_error: User + :ivar RelocationError RelocationBatchErrorEntry.relocation_error: User errors that retry won't help. :ivar files.RelocationBatchErrorEntry.internal_error: Something went wrong with the job on Dropbox's end. You'll need to verify that the action you @@ -7392,8 +7962,8 @@ def relocation_error(cls, val): Create an instance of this class set to the ``relocation_error`` tag with value ``val``. - :param files.RelocationError val: - :rtype: files.RelocationBatchErrorEntry + :param RelocationError val: + :rtype: RelocationBatchErrorEntry """ return cls('relocation_error', val) @@ -7435,14 +8005,14 @@ def get_relocation_error(self): Only call this if :meth:`is_relocation_error` is true. - :rtype: files.RelocationError + :rtype: RelocationError """ if not self.is_relocation_error(): raise AttributeError("tag 'relocation_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchErrorEntry, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchErrorEntry, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchErrorEntry(%r, %r)' % (self._tag, self._value) @@ -7455,10 +8025,10 @@ class RelocationBatchJobStatus(async_.PollResultBase): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar RelocationBatchResult files.RelocationBatchJobStatus.complete: The - copy or move batch job has finished. - :ivar RelocationBatchError files.RelocationBatchJobStatus.failed: The copy - or move batch job has failed with exception. + :ivar RelocationBatchResult RelocationBatchJobStatus.complete: The copy or + move batch job has finished. + :ivar RelocationBatchError RelocationBatchJobStatus.failed: The copy or move + batch job has failed with exception. """ @classmethod @@ -7467,8 +8037,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.RelocationBatchResult val: - :rtype: files.RelocationBatchJobStatus + :param RelocationBatchResult val: + :rtype: RelocationBatchJobStatus """ return cls('complete', val) @@ -7478,8 +8048,8 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param files.RelocationBatchError val: - :rtype: files.RelocationBatchJobStatus + :param RelocationBatchError val: + :rtype: RelocationBatchJobStatus """ return cls('failed', val) @@ -7505,7 +8075,7 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: files.RelocationBatchResult + :rtype: RelocationBatchResult """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") @@ -7517,14 +8087,14 @@ def get_failed(self): Only call this if :meth:`is_failed` is true. - :rtype: files.RelocationBatchError + :rtype: RelocationBatchError """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchJobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchJobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchJobStatus(%r, %r)' % (self._tag, self._value) @@ -7552,8 +8122,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.RelocationBatchResult val: - :rtype: files.RelocationBatchLaunch + :param RelocationBatchResult val: + :rtype: RelocationBatchLaunch """ return cls('complete', val) @@ -7577,14 +8147,14 @@ def get_complete(self): """ Only call this if :meth:`is_complete` is true. - :rtype: files.RelocationBatchResult + :rtype: RelocationBatchResult """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchLaunch, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchLaunch, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchLaunch(%r, %r)' % (self._tag, self._value) @@ -7611,7 +8181,7 @@ def __init__(self, @property def entries(self): """ - :rtype: list of [files.RelocationBatchResultData] + :rtype: list of [RelocationBatchResultData] """ if self._entries_present: return self._entries_value @@ -7629,8 +8199,8 @@ def entries(self): self._entries_value = None self._entries_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchResult(entries={!r})'.format( @@ -7664,7 +8234,7 @@ def metadata(self): """ Metadata of the relocated object. - :rtype: files.Metadata + :rtype: Metadata """ if self._metadata_present: return self._metadata_value @@ -7682,8 +8252,8 @@ def metadata(self): self._metadata_value = None self._metadata_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchResultData, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchResultData, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchResultData(metadata={!r})'.format( @@ -7709,8 +8279,8 @@ def success(cls, val): Create an instance of this class set to the ``success`` tag with value ``val``. - :param files.Metadata val: - :rtype: files.RelocationBatchResultEntry + :param Metadata val: + :rtype: RelocationBatchResultEntry """ return cls('success', val) @@ -7720,8 +8290,8 @@ def failure(cls, val): Create an instance of this class set to the ``failure`` tag with value ``val``. - :param files.RelocationBatchErrorEntry val: - :rtype: files.RelocationBatchResultEntry + :param RelocationBatchErrorEntry val: + :rtype: RelocationBatchResultEntry """ return cls('failure', val) @@ -7753,7 +8323,7 @@ def get_success(self): """ Only call this if :meth:`is_success` is true. - :rtype: files.Metadata + :rtype: Metadata """ if not self.is_success(): raise AttributeError("tag 'success' not set") @@ -7763,14 +8333,14 @@ def get_failure(self): """ Only call this if :meth:`is_failure` is true. - :rtype: files.RelocationBatchErrorEntry + :rtype: RelocationBatchErrorEntry """ if not self.is_failure(): raise AttributeError("tag 'failure' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchResultEntry, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchResultEntry, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchResultEntry(%r, %r)' % (self._tag, self._value) @@ -7779,16 +8349,16 @@ def __repr__(self): class RelocationBatchV2JobStatus(async_.PollResultBase): """ - Result returned by :meth:`dropbox.dropbox.Dropbox.files_copy_batch` or - :meth:`dropbox.dropbox.Dropbox.files_move_batch` that may either launch an - asynchronous job or complete synchronously. + Result returned by :meth:`dropbox.dropbox.Dropbox.files_copy_batch_check` or + :meth:`dropbox.dropbox.Dropbox.files_move_batch_check` that may either be in + progress or completed with result for each entry. 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 RelocationBatchV2Result files.RelocationBatchV2JobStatus.complete: The - copy or move batch job has finished. + :ivar RelocationBatchV2Result RelocationBatchV2JobStatus.complete: The copy + or move batch job has finished. """ @classmethod @@ -7797,8 +8367,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.RelocationBatchV2Result val: - :rtype: files.RelocationBatchV2JobStatus + :param RelocationBatchV2Result val: + :rtype: RelocationBatchV2JobStatus """ return cls('complete', val) @@ -7816,14 +8386,14 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: files.RelocationBatchV2Result + :rtype: RelocationBatchV2Result """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchV2JobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchV2JobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchV2JobStatus(%r, %r)' % (self._tag, self._value) @@ -7847,8 +8417,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.RelocationBatchV2Result val: - :rtype: files.RelocationBatchV2Launch + :param RelocationBatchV2Result val: + :rtype: RelocationBatchV2Launch """ return cls('complete', val) @@ -7864,14 +8434,14 @@ def get_complete(self): """ Only call this if :meth:`is_complete` is true. - :rtype: files.RelocationBatchV2Result + :rtype: RelocationBatchV2Result """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchV2Launch, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchV2Launch, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchV2Launch(%r, %r)' % (self._tag, self._value) @@ -7906,7 +8476,7 @@ def entries(self): Each entry in CopyBatchArg.entries or ``MoveBatchArg.entries`` will appear at the same position inside ``RelocationBatchV2Result.entries``. - :rtype: list of [files.RelocationBatchResultEntry] + :rtype: list of [RelocationBatchResultEntry] """ if self._entries_present: return self._entries_value @@ -7924,8 +8494,8 @@ def entries(self): self._entries_value = None self._entries_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationBatchV2Result, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationBatchV2Result, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationBatchV2Result(entries={!r})'.format( @@ -7959,7 +8529,7 @@ def metadata(self): """ Metadata of the relocated object. - :rtype: files.Metadata + :rtype: Metadata """ if self._metadata_present: return self._metadata_value @@ -7977,8 +8547,8 @@ def metadata(self): self._metadata_value = None self._metadata_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelocationResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocationResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelocationResult(metadata={!r})'.format( @@ -8060,8 +8630,8 @@ def rev(self): self._rev_value = None self._rev_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RestoreArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RestoreArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RestoreArg(path={!r}, rev={!r})'.format( @@ -8077,10 +8647,10 @@ class RestoreError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar LookupError files.RestoreError.path_lookup: An error occurs when - downloading metadata for the file. - :ivar WriteError files.RestoreError.path_write: An error occurs when trying - to restore the file to that path. + :ivar LookupError RestoreError.path_lookup: An error occurs when downloading + metadata for the file. + :ivar WriteError RestoreError.path_write: An error occurs when trying to + restore the file to that path. :ivar files.RestoreError.invalid_revision: The revision is invalid. It may not exist. """ @@ -8097,8 +8667,8 @@ def path_lookup(cls, val): Create an instance of this class set to the ``path_lookup`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.RestoreError + :param LookupError val: + :rtype: RestoreError """ return cls('path_lookup', val) @@ -8108,8 +8678,8 @@ def path_write(cls, val): Create an instance of this class set to the ``path_write`` tag with value ``val``. - :param files.WriteError val: - :rtype: files.RestoreError + :param WriteError val: + :rtype: RestoreError """ return cls('path_write', val) @@ -8151,7 +8721,7 @@ def get_path_lookup(self): Only call this if :meth:`is_path_lookup` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path_lookup(): raise AttributeError("tag 'path_lookup' not set") @@ -8163,14 +8733,14 @@ def get_path_write(self): Only call this if :meth:`is_path_write` is true. - :rtype: files.WriteError + :rtype: WriteError """ if not self.is_path_write(): raise AttributeError("tag 'path_write' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RestoreError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RestoreError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RestoreError(%r, %r)' % (self._tag, self._value) @@ -8253,8 +8823,8 @@ def path(self): self._path_value = None self._path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SaveCopyReferenceArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SaveCopyReferenceArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SaveCopyReferenceArg(copy_reference={!r}, path={!r})'.format( @@ -8300,8 +8870,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.WriteError val: - :rtype: files.SaveCopyReferenceError + :param WriteError val: + :rtype: SaveCopyReferenceError """ return cls('path', val) @@ -8357,14 +8927,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.WriteError + :rtype: WriteError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SaveCopyReferenceError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SaveCopyReferenceError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SaveCopyReferenceError(%r, %r)' % (self._tag, self._value) @@ -8396,7 +8966,7 @@ def metadata(self): """ The metadata of the saved file or folder in the user's Dropbox. - :rtype: files.Metadata + :rtype: Metadata """ if self._metadata_present: return self._metadata_value @@ -8414,8 +8984,8 @@ def metadata(self): self._metadata_value = None self._metadata_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SaveCopyReferenceResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SaveCopyReferenceResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SaveCopyReferenceResult(metadata={!r})'.format( @@ -8498,8 +9068,8 @@ def url(self): self._url_value = None self._url_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SaveUrlArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SaveUrlArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SaveUrlArg(path={!r}, url={!r})'.format( @@ -8516,6 +9086,7 @@ class SaveUrlError(bb.Union): corresponding ``get_*`` method. :ivar files.SaveUrlError.download_failed: Failed downloading the given URL. + The url may be password-protected / the password provided was incorrect. :ivar files.SaveUrlError.invalid_url: The given URL is invalid. :ivar files.SaveUrlError.not_found: The file where the URL is saved to no longer exists. @@ -8537,8 +9108,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.WriteError val: - :rtype: files.SaveUrlError + :param WriteError val: + :rtype: SaveUrlError """ return cls('path', val) @@ -8586,14 +9157,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.WriteError + :rtype: WriteError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SaveUrlError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SaveUrlError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SaveUrlError(%r, %r)' % (self._tag, self._value) @@ -8606,8 +9177,8 @@ class SaveUrlJobStatus(async_.PollResultBase): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar FileMetadata files.SaveUrlJobStatus.complete: Metadata of the file - where the URL is saved to. + :ivar FileMetadata SaveUrlJobStatus.complete: Metadata of the file where the + URL is saved to. """ @classmethod @@ -8616,8 +9187,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.FileMetadata val: - :rtype: files.SaveUrlJobStatus + :param FileMetadata val: + :rtype: SaveUrlJobStatus """ return cls('complete', val) @@ -8627,8 +9198,8 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param files.SaveUrlError val: - :rtype: files.SaveUrlJobStatus + :param SaveUrlError val: + :rtype: SaveUrlJobStatus """ return cls('failed', val) @@ -8654,7 +9225,7 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: files.FileMetadata + :rtype: FileMetadata """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") @@ -8664,14 +9235,14 @@ def get_failed(self): """ Only call this if :meth:`is_failed` is true. - :rtype: files.SaveUrlError + :rtype: SaveUrlError """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SaveUrlJobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SaveUrlJobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SaveUrlJobStatus(%r, %r)' % (self._tag, self._value) @@ -8684,8 +9255,8 @@ class SaveUrlResult(async_.LaunchResultBase): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar FileMetadata files.SaveUrlResult.complete: Metadata of the file where - the URL is saved to. + :ivar FileMetadata SaveUrlResult.complete: Metadata of the file where the + URL is saved to. """ @classmethod @@ -8694,8 +9265,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.FileMetadata val: - :rtype: files.SaveUrlResult + :param FileMetadata val: + :rtype: SaveUrlResult """ return cls('complete', val) @@ -8713,14 +9284,14 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: files.FileMetadata + :rtype: FileMetadata """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SaveUrlResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SaveUrlResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SaveUrlResult(%r, %r)' % (self._tag, self._value) @@ -8887,7 +9458,7 @@ def mode(self): Note that searching file content is only available for Dropbox Business accounts. - :rtype: files.SearchMode + :rtype: SearchMode """ if self._mode_present: return self._mode_value @@ -8905,8 +9476,8 @@ def mode(self): self._mode_value = None self._mode_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SearchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SearchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SearchArg(path={!r}, query={!r}, start={!r}, max_results={!r}, mode={!r})'.format( @@ -8936,8 +9507,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.SearchError + :param LookupError val: + :rtype: SearchError """ return cls('path', val) @@ -8961,14 +9532,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SearchError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SearchError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SearchError(%r, %r)' % (self._tag, self._value) @@ -9008,7 +9579,7 @@ def match_type(self): """ The type of the match. - :rtype: files.SearchMatchType + :rtype: SearchMatchType """ if self._match_type_present: return self._match_type_value @@ -9031,7 +9602,7 @@ def metadata(self): """ The metadata for the matched file or folder. - :rtype: files.Metadata + :rtype: Metadata """ if self._metadata_present: return self._metadata_value @@ -9049,8 +9620,8 @@ def metadata(self): self._metadata_value = None self._metadata_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SearchMatch, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SearchMatch, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SearchMatch(match_type={!r}, metadata={!r})'.format( @@ -9108,8 +9679,8 @@ def is_both(self): """ return self._tag == 'both' - def _process_custom_annotations(self, annotation_type, processor): - super(SearchMatchType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SearchMatchType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SearchMatchType(%r, %r)' % (self._tag, self._value) @@ -9161,8 +9732,8 @@ def is_deleted_filename(self): """ return self._tag == 'deleted_filename' - def _process_custom_annotations(self, annotation_type, processor): - super(SearchMode, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SearchMode, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SearchMode(%r, %r)' % (self._tag, self._value) @@ -9214,7 +9785,7 @@ def matches(self): """ A list (possibly empty) of matches for the query. - :rtype: list of [files.SearchMatch] + :rtype: list of [SearchMatch] """ if self._matches_present: return self._matches_value @@ -9282,8 +9853,8 @@ def start(self): self._start_value = None self._start_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SearchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SearchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SearchResult(matches={!r}, more={!r}, start={!r})'.format( @@ -9370,8 +9941,8 @@ def password(self): self._password_value = None self._password_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLink, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLink, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedLink(url={!r}, password={!r})'.format( @@ -9423,8 +9994,8 @@ def target(self): self._target_value = None self._target_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SymlinkInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SymlinkInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SymlinkInfo(target={!r})'.format( @@ -9491,8 +10062,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SyncSetting, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SyncSetting, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SyncSetting(%r, %r)' % (self._tag, self._value) @@ -9544,8 +10115,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SyncSettingArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SyncSettingArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SyncSettingArg(%r, %r)' % (self._tag, self._value) @@ -9578,8 +10149,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.SyncSettingsError + :param LookupError val: + :rtype: SyncSettingsError """ return cls('path', val) @@ -9619,14 +10190,14 @@ def get_path(self): """ Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SyncSettingsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SyncSettingsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SyncSettingsError(%r, %r)' % (self._tag, self._value) @@ -9710,7 +10281,7 @@ def format(self): that are photos, jpeg should be preferred, while png is better for screenshots and digital arts. - :rtype: files.ThumbnailFormat + :rtype: ThumbnailFormat """ if self._format_present: return self._format_value @@ -9733,7 +10304,7 @@ def size(self): """ The size for the thumbnail image. - :rtype: files.ThumbnailSize + :rtype: ThumbnailSize """ if self._size_present: return self._size_value @@ -9756,7 +10327,7 @@ def mode(self): """ How to resize and crop the image to achieve the desired size. - :rtype: files.ThumbnailMode + :rtype: ThumbnailMode """ if self._mode_present: return self._mode_value @@ -9774,8 +10345,8 @@ def mode(self): self._mode_value = None self._mode_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ThumbnailArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ThumbnailArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ThumbnailArg(path={!r}, format={!r}, size={!r}, mode={!r})'.format( @@ -9793,8 +10364,8 @@ class ThumbnailError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar LookupError files.ThumbnailError.path: An error occurs when - downloading metadata for the image. + :ivar LookupError ThumbnailError.path: An error occurs when downloading + metadata for the image. :ivar files.ThumbnailError.unsupported_extension: The file extension doesn't allow conversion to a thumbnail. :ivar files.ThumbnailError.unsupported_image: The image cannot be converted @@ -9817,8 +10388,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.LookupError val: - :rtype: files.ThumbnailError + :param LookupError val: + :rtype: ThumbnailError """ return cls('path', val) @@ -9860,14 +10431,14 @@ def get_path(self): Only call this if :meth:`is_path` is true. - :rtype: files.LookupError + :rtype: LookupError """ if not self.is_path(): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ThumbnailError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ThumbnailError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ThumbnailError(%r, %r)' % (self._tag, self._value) @@ -9903,8 +10474,8 @@ def is_png(self): """ return self._tag == 'png' - def _process_custom_annotations(self, annotation_type, processor): - super(ThumbnailFormat, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ThumbnailFormat, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ThumbnailFormat(%r, %r)' % (self._tag, self._value) @@ -9957,8 +10528,8 @@ def is_fitone_bestfit(self): """ return self._tag == 'fitone_bestfit' - def _process_custom_annotations(self, annotation_type, processor): - super(ThumbnailMode, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ThumbnailMode, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ThumbnailMode(%r, %r)' % (self._tag, self._value) @@ -10074,8 +10645,8 @@ def is_w2048h1536(self): """ return self._tag == 'w2048h1536' - def _process_custom_annotations(self, annotation_type, processor): - super(ThumbnailSize, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ThumbnailSize, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ThumbnailSize(%r, %r)' % (self._tag, self._value) @@ -10088,11 +10659,11 @@ class UploadError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar UploadWriteFailed files.UploadError.path: Unable to save the uploaded + :ivar UploadWriteFailed UploadError.path: Unable to save the uploaded contents to a file. - :ivar InvalidPropertyGroupError files.UploadError.properties_error: The - supplied property group is invalid. The file has uploaded without - property groups. + :ivar InvalidPropertyGroupError UploadError.properties_error: The supplied + property group is invalid. The file has uploaded without property + groups. """ _catch_all = 'other' @@ -10105,8 +10676,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.UploadWriteFailed val: - :rtype: files.UploadError + :param UploadWriteFailed val: + :rtype: UploadError """ return cls('path', val) @@ -10117,7 +10688,7 @@ def properties_error(cls, val): with value ``val``. :param file_properties.InvalidPropertyGroupError val: - :rtype: files.UploadError + :rtype: UploadError """ return cls('properties_error', val) @@ -10151,7 +10722,7 @@ def get_path(self): Only call this if :meth:`is_path` is true. - :rtype: files.UploadWriteFailed + :rtype: UploadWriteFailed """ if not self.is_path(): raise AttributeError("tag 'path' not set") @@ -10170,8 +10741,8 @@ def get_properties_error(self): raise AttributeError("tag 'properties_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UploadError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadError(%r, %r)' % (self._tag, self._value) @@ -10185,8 +10756,8 @@ class UploadErrorWithProperties(UploadError): corresponding ``get_*`` method. """ - def _process_custom_annotations(self, annotation_type, processor): - super(UploadErrorWithProperties, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadErrorWithProperties, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadErrorWithProperties(%r, %r)' % (self._tag, self._value) @@ -10229,7 +10800,7 @@ def cursor(self): """ Contains the upload session ID and the offset. - :rtype: files.UploadSessionCursor + :rtype: UploadSessionCursor """ if self._cursor_present: return self._cursor_value @@ -10272,8 +10843,8 @@ def close(self): self._close_value = None self._close_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionAppendArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionAppendArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionAppendArg(cursor={!r}, close={!r})'.format( @@ -10362,8 +10933,8 @@ def offset(self): self._offset_value = None self._offset_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionCursor, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionCursor, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionCursor(session_id={!r}, offset={!r})'.format( @@ -10407,7 +10978,7 @@ def cursor(self): """ Contains the upload session ID and the offset. - :rtype: files.UploadSessionCursor + :rtype: UploadSessionCursor """ if self._cursor_present: return self._cursor_value @@ -10430,7 +11001,7 @@ def commit(self): """ Contains the path and other optional modifiers for the commit. - :rtype: files.CommitInfo + :rtype: CommitInfo """ if self._commit_present: return self._commit_value @@ -10448,8 +11019,8 @@ def commit(self): self._commit_value = None self._commit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionFinishArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionFinishArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionFinishArg(cursor={!r}, commit={!r})'.format( @@ -10484,7 +11055,7 @@ def entries(self): """ Commit information for each file in the batch. - :rtype: list of [files.UploadSessionFinishArg] + :rtype: list of [UploadSessionFinishArg] """ if self._entries_present: return self._entries_value @@ -10502,8 +11073,8 @@ def entries(self): self._entries_value = None self._entries_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionFinishBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionFinishBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionFinishBatchArg(entries={!r})'.format( @@ -10519,7 +11090,7 @@ class UploadSessionFinishBatchJobStatus(async_.PollResultBase): corresponding ``get_*`` method. :ivar UploadSessionFinishBatchResult - files.UploadSessionFinishBatchJobStatus.complete: The + UploadSessionFinishBatchJobStatus.complete: The :meth:`dropbox.dropbox.Dropbox.files_upload_session_finish_batch` has finished. """ @@ -10530,8 +11101,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.UploadSessionFinishBatchResult val: - :rtype: files.UploadSessionFinishBatchJobStatus + :param UploadSessionFinishBatchResult val: + :rtype: UploadSessionFinishBatchJobStatus """ return cls('complete', val) @@ -10550,14 +11121,14 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: files.UploadSessionFinishBatchResult + :rtype: UploadSessionFinishBatchResult """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionFinishBatchJobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionFinishBatchJobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionFinishBatchJobStatus(%r, %r)' % (self._tag, self._value) @@ -10585,8 +11156,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param files.UploadSessionFinishBatchResult val: - :rtype: files.UploadSessionFinishBatchLaunch + :param UploadSessionFinishBatchResult val: + :rtype: UploadSessionFinishBatchLaunch """ return cls('complete', val) @@ -10610,14 +11181,14 @@ def get_complete(self): """ Only call this if :meth:`is_complete` is true. - :rtype: files.UploadSessionFinishBatchResult + :rtype: UploadSessionFinishBatchResult """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionFinishBatchLaunch, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionFinishBatchLaunch, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionFinishBatchLaunch(%r, %r)' % (self._tag, self._value) @@ -10651,7 +11222,7 @@ def entries(self): Each entry in ``UploadSessionFinishBatchArg.entries`` will appear at the same position inside ``UploadSessionFinishBatchResult.entries``. - :rtype: list of [files.UploadSessionFinishBatchResultEntry] + :rtype: list of [UploadSessionFinishBatchResultEntry] """ if self._entries_present: return self._entries_value @@ -10669,8 +11240,8 @@ def entries(self): self._entries_value = None self._entries_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionFinishBatchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionFinishBatchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionFinishBatchResult(entries={!r})'.format( @@ -10694,8 +11265,8 @@ def success(cls, val): Create an instance of this class set to the ``success`` tag with value ``val``. - :param files.FileMetadata val: - :rtype: files.UploadSessionFinishBatchResultEntry + :param FileMetadata val: + :rtype: UploadSessionFinishBatchResultEntry """ return cls('success', val) @@ -10705,8 +11276,8 @@ def failure(cls, val): Create an instance of this class set to the ``failure`` tag with value ``val``. - :param files.UploadSessionFinishError val: - :rtype: files.UploadSessionFinishBatchResultEntry + :param UploadSessionFinishError val: + :rtype: UploadSessionFinishBatchResultEntry """ return cls('failure', val) @@ -10730,7 +11301,7 @@ def get_success(self): """ Only call this if :meth:`is_success` is true. - :rtype: files.FileMetadata + :rtype: FileMetadata """ if not self.is_success(): raise AttributeError("tag 'success' not set") @@ -10740,14 +11311,14 @@ def get_failure(self): """ Only call this if :meth:`is_failure` is true. - :rtype: files.UploadSessionFinishError + :rtype: UploadSessionFinishError """ if not self.is_failure(): raise AttributeError("tag 'failure' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionFinishBatchResultEntry, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionFinishBatchResultEntry, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionFinishBatchResultEntry(%r, %r)' % (self._tag, self._value) @@ -10760,14 +11331,14 @@ class UploadSessionFinishError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar UploadSessionLookupError files.UploadSessionFinishError.lookup_failed: - The session arguments are incorrect; the value explains the reason. - :ivar WriteError files.UploadSessionFinishError.path: Unable to save the - uploaded contents to a file. Data has already been appended to the - upload session. Please retry with empty data body and updated offset. - :ivar InvalidPropertyGroupError - files.UploadSessionFinishError.properties_error: The supplied property - group is invalid. The file has uploaded without property groups. + :ivar UploadSessionLookupError UploadSessionFinishError.lookup_failed: The + session arguments are incorrect; the value explains the reason. + :ivar WriteError UploadSessionFinishError.path: Unable to save the uploaded + contents to a file. Data has already been appended to the upload + session. Please retry with empty data body and updated offset. + :ivar InvalidPropertyGroupError UploadSessionFinishError.properties_error: + The supplied property group is invalid. The file has uploaded without + property groups. :ivar files.UploadSessionFinishError.too_many_shared_folder_targets: The batch request commits files into too many different shared folders. Please limit your batch request to files contained in a single shared @@ -10791,8 +11362,8 @@ def lookup_failed(cls, val): Create an instance of this class set to the ``lookup_failed`` tag with value ``val``. - :param files.UploadSessionLookupError val: - :rtype: files.UploadSessionFinishError + :param UploadSessionLookupError val: + :rtype: UploadSessionFinishError """ return cls('lookup_failed', val) @@ -10802,8 +11373,8 @@ def path(cls, val): Create an instance of this class set to the ``path`` tag with value ``val``. - :param files.WriteError val: - :rtype: files.UploadSessionFinishError + :param WriteError val: + :rtype: UploadSessionFinishError """ return cls('path', val) @@ -10814,7 +11385,7 @@ def properties_error(cls, val): with value ``val``. :param file_properties.InvalidPropertyGroupError val: - :rtype: files.UploadSessionFinishError + :rtype: UploadSessionFinishError """ return cls('properties_error', val) @@ -10872,7 +11443,7 @@ def get_lookup_failed(self): Only call this if :meth:`is_lookup_failed` is true. - :rtype: files.UploadSessionLookupError + :rtype: UploadSessionLookupError """ if not self.is_lookup_failed(): raise AttributeError("tag 'lookup_failed' not set") @@ -10886,7 +11457,7 @@ def get_path(self): Only call this if :meth:`is_path` is true. - :rtype: files.WriteError + :rtype: WriteError """ if not self.is_path(): raise AttributeError("tag 'path' not set") @@ -10905,8 +11476,8 @@ def get_properties_error(self): raise AttributeError("tag 'properties_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionFinishError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionFinishError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionFinishError(%r, %r)' % (self._tag, self._value) @@ -10921,14 +11492,13 @@ class UploadSessionLookupError(bb.Union): :ivar files.UploadSessionLookupError.not_found: The upload session ID was not found or has expired. Upload sessions are valid for 48 hours. - :ivar UploadSessionOffsetError - files.UploadSessionLookupError.incorrect_offset: The specified offset - was incorrect. See the value for the correct offset. This error may - occur when a previous request was received and processed successfully - but the client did not receive the response, e.g. due to a network - error. + :ivar UploadSessionOffsetError UploadSessionLookupError.incorrect_offset: + The specified offset was incorrect. See the value for the correct + offset. This error may occur when a previous request was received and + processed successfully but the client did not receive the response, e.g. + due to a network error. :ivar files.UploadSessionLookupError.closed: You are attempting to append - data to an upload session that has alread been closed (i.e. committed). + data to an upload session that has already been closed (i.e. committed). :ivar files.UploadSessionLookupError.not_closed: The session must be closed before calling upload_session/finish_batch. :ivar files.UploadSessionLookupError.too_large: You can not append to the @@ -10954,8 +11524,8 @@ def incorrect_offset(cls, val): Create an instance of this class set to the ``incorrect_offset`` tag with value ``val``. - :param files.UploadSessionOffsetError val: - :rtype: files.UploadSessionLookupError + :param UploadSessionOffsetError val: + :rtype: UploadSessionLookupError """ return cls('incorrect_offset', val) @@ -11016,14 +11586,14 @@ def get_incorrect_offset(self): Only call this if :meth:`is_incorrect_offset` is true. - :rtype: files.UploadSessionOffsetError + :rtype: UploadSessionOffsetError """ if not self.is_incorrect_offset(): raise AttributeError("tag 'incorrect_offset' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionLookupError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionLookupError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionLookupError(%r, %r)' % (self._tag, self._value) @@ -11073,8 +11643,8 @@ def correct_offset(self): self._correct_offset_value = None self._correct_offset_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionOffsetError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionOffsetError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionOffsetError(correct_offset={!r})'.format( @@ -11130,8 +11700,8 @@ def close(self): self._close_value = None self._close_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionStartArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionStartArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionStartArg(close={!r})'.format( @@ -11187,8 +11757,8 @@ def session_id(self): self._session_id_value = None self._session_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UploadSessionStartResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadSessionStartResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadSessionStartResult(session_id={!r})'.format( @@ -11233,7 +11803,7 @@ def reason(self): """ The reason why the file couldn't be saved. - :rtype: files.WriteError + :rtype: WriteError """ if self._reason_present: return self._reason_value @@ -11276,8 +11846,8 @@ def upload_session_id(self): self._upload_session_id_value = None self._upload_session_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UploadWriteFailed, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadWriteFailed, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadWriteFailed(reason={!r}, upload_session_id={!r})'.format( @@ -11341,8 +11911,8 @@ def duration(self): self._duration_value = None self._duration_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(VideoMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(VideoMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'VideoMetadata(dimensions={!r}, location={!r}, time_taken={!r}, duration={!r})'.format( @@ -11408,8 +11978,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(WriteConflictError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WriteConflictError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WriteConflictError(%r, %r)' % (self._tag, self._value) @@ -11427,8 +11997,8 @@ class WriteError(bb.Union): formats documentation https://www.dropbox.com/developers/documentation/http/documentation#path-formats` for more information. - :ivar WriteConflictError files.WriteError.conflict: Couldn't write to the - target path because there was something in the way. + :ivar WriteConflictError WriteError.conflict: Couldn't write to the target + path because there was something in the way. :ivar files.WriteError.no_write_permission: The user doesn't have permissions to write to the target location. :ivar files.WriteError.insufficient_space: The user doesn't have enough @@ -11462,7 +12032,7 @@ def malformed_path(cls, val): value ``val``. :param Optional[str] val: - :rtype: files.WriteError + :rtype: WriteError """ return cls('malformed_path', val) @@ -11472,8 +12042,8 @@ def conflict(cls, val): Create an instance of this class set to the ``conflict`` tag with value ``val``. - :param files.WriteConflictError val: - :rtype: files.WriteError + :param WriteConflictError val: + :rtype: WriteError """ return cls('conflict', val) @@ -11563,14 +12133,14 @@ def get_conflict(self): Only call this if :meth:`is_conflict` is true. - :rtype: files.WriteConflictError + :rtype: WriteConflictError """ if not self.is_conflict(): raise AttributeError("tag 'conflict' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(WriteError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WriteError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WriteError(%r, %r)' % (self._tag, self._value) @@ -11618,7 +12188,7 @@ def update(cls, val): ``val``. :param str val: - :rtype: files.WriteMode + :rtype: WriteMode """ return cls('update', val) @@ -11661,8 +12231,8 @@ def get_update(self): raise AttributeError("tag 'update' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(WriteMode, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WriteMode, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WriteMode(%r, %r)' % (self._tag, self._value) @@ -12006,12 +12576,15 @@ def __repr__(self): ] DownloadError._path_validator = LookupError_validator +DownloadError._unsupported_file_validator = bv.Void() DownloadError._other_validator = bv.Void() DownloadError._tagmap = { 'path': DownloadError._path_validator, + 'unsupported_file': DownloadError._unsupported_file_validator, 'other': DownloadError._other_validator, } +DownloadError.unsupported_file = DownloadError('unsupported_file') DownloadError.other = DownloadError('other') DownloadZipArg._path_validator = ReadPath_validator @@ -12037,6 +12610,51 @@ def __repr__(self): DownloadZipResult._all_field_names_ = set(['metadata']) DownloadZipResult._all_fields_ = [('metadata', DownloadZipResult._metadata_validator)] +ExportArg._path_validator = ReadPath_validator +ExportArg._all_field_names_ = set(['path']) +ExportArg._all_fields_ = [('path', ExportArg._path_validator)] + +ExportError._path_validator = LookupError_validator +ExportError._non_exportable_validator = bv.Void() +ExportError._other_validator = bv.Void() +ExportError._tagmap = { + 'path': ExportError._path_validator, + 'non_exportable': ExportError._non_exportable_validator, + 'other': ExportError._other_validator, +} + +ExportError.non_exportable = ExportError('non_exportable') +ExportError.other = ExportError('other') + +ExportInfo._export_as_validator = bv.Nullable(bv.String()) +ExportInfo._all_field_names_ = set(['export_as']) +ExportInfo._all_fields_ = [('export_as', ExportInfo._export_as_validator)] + +ExportMetadata._name_validator = bv.String() +ExportMetadata._size_validator = bv.UInt64() +ExportMetadata._export_hash_validator = bv.Nullable(Sha256HexHash_validator) +ExportMetadata._all_field_names_ = set([ + 'name', + 'size', + 'export_hash', +]) +ExportMetadata._all_fields_ = [ + ('name', ExportMetadata._name_validator), + ('size', ExportMetadata._size_validator), + ('export_hash', ExportMetadata._export_hash_validator), +] + +ExportResult._export_metadata_validator = ExportMetadata_validator +ExportResult._file_metadata_validator = FileMetadata_validator +ExportResult._all_field_names_ = set([ + 'export_metadata', + 'file_metadata', +]) +ExportResult._all_fields_ = [ + ('export_metadata', ExportResult._export_metadata_validator), + ('file_metadata', ExportResult._file_metadata_validator), +] + FileMetadata._id_validator = Id_validator FileMetadata._client_modified_validator = common.DropboxTimestamp_validator FileMetadata._server_modified_validator = common.DropboxTimestamp_validator @@ -12045,6 +12663,8 @@ def __repr__(self): FileMetadata._media_info_validator = bv.Nullable(MediaInfo_validator) FileMetadata._symlink_info_validator = bv.Nullable(SymlinkInfo_validator) FileMetadata._sharing_info_validator = bv.Nullable(FileSharingInfo_validator) +FileMetadata._is_downloadable_validator = bv.Boolean() +FileMetadata._export_info_validator = bv.Nullable(ExportInfo_validator) FileMetadata._property_groups_validator = bv.Nullable(bv.List(file_properties.PropertyGroup_validator)) FileMetadata._has_explicit_shared_members_validator = bv.Nullable(bv.Boolean()) FileMetadata._content_hash_validator = bv.Nullable(Sha256HexHash_validator) @@ -12057,6 +12677,8 @@ def __repr__(self): 'media_info', 'symlink_info', 'sharing_info', + 'is_downloadable', + 'export_info', 'property_groups', 'has_explicit_shared_members', 'content_hash', @@ -12071,6 +12693,8 @@ def __repr__(self): ('media_info', FileMetadata._media_info_validator), ('symlink_info', FileMetadata._symlink_info_validator), ('sharing_info', FileMetadata._sharing_info_validator), + ('is_downloadable', FileMetadata._is_downloadable_validator), + ('export_info', FileMetadata._export_info_validator), ('property_groups', FileMetadata._property_groups_validator), ('has_explicit_shared_members', FileMetadata._has_explicit_shared_members_validator), ('content_hash', FileMetadata._content_hash_validator), @@ -12160,12 +12784,18 @@ def __repr__(self): GetTemporaryLinkArg._all_fields_ = [('path', GetTemporaryLinkArg._path_validator)] GetTemporaryLinkError._path_validator = LookupError_validator +GetTemporaryLinkError._email_not_verified_validator = bv.Void() +GetTemporaryLinkError._unsupported_file_validator = bv.Void() GetTemporaryLinkError._other_validator = bv.Void() GetTemporaryLinkError._tagmap = { 'path': GetTemporaryLinkError._path_validator, + 'email_not_verified': GetTemporaryLinkError._email_not_verified_validator, + 'unsupported_file': GetTemporaryLinkError._unsupported_file_validator, 'other': GetTemporaryLinkError._other_validator, } +GetTemporaryLinkError.email_not_verified = GetTemporaryLinkError('email_not_verified') +GetTemporaryLinkError.unsupported_file = GetTemporaryLinkError('unsupported_file') GetTemporaryLinkError.other = GetTemporaryLinkError('other') GetTemporaryLinkResult._metadata_validator = FileMetadata_validator @@ -12254,6 +12884,7 @@ def __repr__(self): ListFolderArg._limit_validator = bv.Nullable(bv.UInt32(min_value=1, max_value=2000)) ListFolderArg._shared_link_validator = bv.Nullable(SharedLink_validator) ListFolderArg._include_property_groups_validator = bv.Nullable(file_properties.TemplateFilterBase_validator) +ListFolderArg._include_non_downloadable_files_validator = bv.Boolean() ListFolderArg._all_field_names_ = set([ 'path', 'recursive', @@ -12264,6 +12895,7 @@ def __repr__(self): 'limit', 'shared_link', 'include_property_groups', + 'include_non_downloadable_files', ]) ListFolderArg._all_fields_ = [ ('path', ListFolderArg._path_validator), @@ -12275,6 +12907,7 @@ def __repr__(self): ('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), ] ListFolderContinueArg._cursor_validator = ListFolderCursor_validator @@ -12407,6 +13040,7 @@ def __repr__(self): LookupError._not_file_validator = bv.Void() LookupError._not_folder_validator = bv.Void() LookupError._restricted_content_validator = bv.Void() +LookupError._unsupported_content_type_validator = bv.Void() LookupError._other_validator = bv.Void() LookupError._tagmap = { 'malformed_path': LookupError._malformed_path_validator, @@ -12414,6 +13048,7 @@ def __repr__(self): 'not_file': LookupError._not_file_validator, 'not_folder': LookupError._not_folder_validator, 'restricted_content': LookupError._restricted_content_validator, + 'unsupported_content_type': LookupError._unsupported_content_type_validator, 'other': LookupError._other_validator, } @@ -12421,6 +13056,7 @@ def __repr__(self): LookupError.not_file = LookupError('not_file') LookupError.not_folder = LookupError('not_folder') LookupError.restricted_content = LookupError('restricted_content') +LookupError.unsupported_content_type = LookupError('unsupported_content_type') LookupError.other = LookupError('other') MediaInfo._pending_validator = bv.Void() @@ -12551,6 +13187,7 @@ def __repr__(self): RelocationError._cant_transfer_ownership_validator = bv.Void() RelocationError._insufficient_quota_validator = bv.Void() RelocationError._internal_error_validator = bv.Void() +RelocationError._cant_move_shared_folder_validator = bv.Void() RelocationError._other_validator = bv.Void() RelocationError._tagmap = { 'from_lookup': RelocationError._from_lookup_validator, @@ -12564,6 +13201,7 @@ def __repr__(self): 'cant_transfer_ownership': RelocationError._cant_transfer_ownership_validator, 'insufficient_quota': RelocationError._insufficient_quota_validator, 'internal_error': RelocationError._internal_error_validator, + 'cant_move_shared_folder': RelocationError._cant_move_shared_folder_validator, 'other': RelocationError._other_validator, } @@ -12575,6 +13213,7 @@ def __repr__(self): RelocationError.cant_transfer_ownership = RelocationError('cant_transfer_ownership') RelocationError.insufficient_quota = RelocationError('insufficient_quota') RelocationError.internal_error = RelocationError('internal_error') +RelocationError.cant_move_shared_folder = RelocationError('cant_move_shared_folder') RelocationError.other = RelocationError('other') RelocationBatchError._too_many_write_operations_validator = bv.Void() @@ -12763,7 +13402,7 @@ def __repr__(self): SearchArg._path_validator = PathROrId_validator SearchArg._query_validator = bv.String() -SearchArg._start_validator = bv.UInt64() +SearchArg._start_validator = bv.UInt64(max_value=9999) SearchArg._max_results_validator = bv.UInt64(min_value=1, max_value=1000) SearchArg._mode_validator = SearchMode_validator SearchArg._all_field_names_ = set([ @@ -13388,6 +14027,16 @@ def __repr__(self): {'host': u'content', 'style': u'download'}, ) +export = bb.Route( + 'export', + 1, + False, + ExportArg_validator, + ExportResult_validator, + ExportError_validator, + {'host': u'content', + 'style': u'download'}, +) get_metadata = bb.Route( 'get_metadata', 1, @@ -13760,6 +14409,7 @@ def __repr__(self): 'delete_batch/check': delete_batch_check, 'download': download, 'download_zip': download_zip, + 'export': export, 'get_metadata': get_metadata, 'get_preview': get_preview, 'get_temporary_link': get_temporary_link, diff --git a/dropbox/paper.py b/dropbox/paper.py index 830d8518..ec73ecf5 100644 --- a/dropbox/paper.py +++ b/dropbox/paper.py @@ -58,7 +58,7 @@ def permission_level(self): """ Permission for the user. - :rtype: paper.PaperDocPermissionLevel + :rtype: PaperDocPermissionLevel """ if self._permission_level_present: return self._permission_level_value @@ -100,8 +100,8 @@ def member(self): self._member_value = None self._member_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AddMember, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddMember, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddMember(member={!r}, permission_level={!r})'.format( @@ -153,8 +153,8 @@ def doc_id(self): self._doc_id_value = None self._doc_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RefPaperDoc, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RefPaperDoc, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RefPaperDoc(doc_id={!r})'.format( @@ -209,7 +209,7 @@ def members(self): User which should be added to the Paper doc. Specify only email address or Dropbox account ID. - :rtype: list of [paper.AddMember] + :rtype: list of [AddMember] """ if self._members_present: return self._members_value @@ -278,8 +278,8 @@ def quiet(self): self._quiet_value = None self._quiet_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AddPaperDocUser, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddPaperDocUser, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddPaperDocUser(doc_id={!r}, members={!r}, custom_message={!r}, quiet={!r})'.format( @@ -350,7 +350,7 @@ def result(self): """ The outcome of the action on this member. - :rtype: paper.AddPaperDocUserResult + :rtype: AddPaperDocUserResult """ if self._result_present: return self._result_value @@ -368,8 +368,8 @@ def result(self): self._result_value = None self._result_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AddPaperDocUserMemberResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddPaperDocUserMemberResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddPaperDocUserMemberResult(member={!r}, result={!r})'.format( @@ -483,8 +483,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(AddPaperDocUserResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddPaperDocUserResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddPaperDocUserResult(%r, %r)' % (self._tag, self._value) @@ -591,8 +591,8 @@ def expiration(self): self._expiration_value = None self._expiration_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(Cursor, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(Cursor, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'Cursor(value={!r}, expiration={!r})'.format( @@ -634,8 +634,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PaperApiBaseError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperApiBaseError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperApiBaseError(%r, %r)' % (self._tag, self._value) @@ -662,8 +662,8 @@ def is_doc_not_found(self): """ return self._tag == 'doc_not_found' - def _process_custom_annotations(self, annotation_type, processor): - super(DocLookupError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DocLookupError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DocLookupError(%r, %r)' % (self._tag, self._value) @@ -730,8 +730,8 @@ def is_no_email(self): """ return self._tag == 'no_email' - def _process_custom_annotations(self, annotation_type, processor): - super(DocSubscriptionLevel, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DocSubscriptionLevel, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DocSubscriptionLevel(%r, %r)' % (self._tag, self._value) @@ -782,8 +782,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ExportFormat, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExportFormat, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExportFormat(%r, %r)' % (self._tag, self._value) @@ -866,8 +866,8 @@ def name(self): self._name_value = None self._name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(Folder, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(Folder, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'Folder(id={!r}, name={!r})'.format( @@ -914,8 +914,8 @@ def is_invite_only(self): """ return self._tag == 'invite_only' - def _process_custom_annotations(self, annotation_type, processor): - super(FolderSharingPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FolderSharingPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FolderSharingPolicyType(%r, %r)' % (self._tag, self._value) @@ -982,8 +982,8 @@ def is_weekly_emails(self): """ return self._tag == 'weekly_emails' - def _process_custom_annotations(self, annotation_type, processor): - super(FolderSubscriptionLevel, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FolderSubscriptionLevel, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FolderSubscriptionLevel(%r, %r)' % (self._tag, self._value) @@ -1026,7 +1026,7 @@ def folder_sharing_policy_type(self): """ The sharing policy of the folder containing the Paper doc. - :rtype: paper.FolderSharingPolicyType + :rtype: FolderSharingPolicyType """ if self._folder_sharing_policy_type_present: return self._folder_sharing_policy_type_value @@ -1052,7 +1052,7 @@ def folders(self): """ The folder path. If present the first folder is the root folder. - :rtype: list of [paper.Folder] + :rtype: list of [Folder] """ if self._folders_present: return self._folders_value @@ -1073,8 +1073,8 @@ def folders(self): self._folders_value = None self._folders_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FoldersContainingPaperDoc, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FoldersContainingPaperDoc, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FoldersContainingPaperDoc(folder_sharing_policy_type={!r}, folders={!r})'.format( @@ -1144,8 +1144,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ImportFormat, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ImportFormat, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ImportFormat(%r, %r)' % (self._tag, self._value) @@ -1209,7 +1209,7 @@ def permission_level(self): """ Permission level for the invitee. - :rtype: paper.PaperDocPermissionLevel + :rtype: PaperDocPermissionLevel """ if self._permission_level_present: return self._permission_level_value @@ -1227,8 +1227,8 @@ def permission_level(self): self._permission_level_value = None self._permission_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(InviteeInfoWithPermissionLevel, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(InviteeInfoWithPermissionLevel, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'InviteeInfoWithPermissionLevel(invitee={!r}, permission_level={!r})'.format( @@ -1255,8 +1255,8 @@ def cursor_error(cls, val): Create an instance of this class set to the ``cursor_error`` tag with value ``val``. - :param paper.PaperApiCursorError val: - :rtype: paper.ListDocsCursorError + :param PaperApiCursorError val: + :rtype: ListDocsCursorError """ return cls('cursor_error', val) @@ -1280,14 +1280,14 @@ def get_cursor_error(self): """ Only call this if :meth:`is_cursor_error` is true. - :rtype: paper.PaperApiCursorError + :rtype: PaperApiCursorError """ if not self.is_cursor_error(): raise AttributeError("tag 'cursor_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListDocsCursorError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListDocsCursorError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListDocsCursorError(%r, %r)' % (self._tag, self._value) @@ -1347,7 +1347,7 @@ def filter_by(self): """ Allows user to specify how the Paper docs should be filtered. - :rtype: paper.ListPaperDocsFilterBy + :rtype: ListPaperDocsFilterBy """ if self._filter_by_present: return self._filter_by_value @@ -1370,7 +1370,7 @@ def sort_by(self): """ Allows user to specify how the Paper docs should be sorted. - :rtype: paper.ListPaperDocsSortBy + :rtype: ListPaperDocsSortBy """ if self._sort_by_present: return self._sort_by_value @@ -1393,7 +1393,7 @@ def sort_order(self): """ Allows user to specify the sort order of the result. - :rtype: paper.ListPaperDocsSortOrder + :rtype: ListPaperDocsSortOrder """ if self._sort_order_present: return self._sort_order_value @@ -1435,8 +1435,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListPaperDocsArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListPaperDocsArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListPaperDocsArgs(filter_by={!r}, sort_by={!r}, sort_order={!r}, limit={!r})'.format( @@ -1495,8 +1495,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListPaperDocsContinueArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListPaperDocsContinueArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListPaperDocsContinueArgs(cursor={!r})'.format( @@ -1549,8 +1549,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListPaperDocsFilterBy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListPaperDocsFilterBy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListPaperDocsFilterBy(%r, %r)' % (self._tag, self._value) @@ -1637,7 +1637,7 @@ def cursor(self): through all files. The cursor preserves all properties as specified in the original call to :meth:`dropbox.dropbox.Dropbox.paper_docs_list`. - :rtype: paper.Cursor + :rtype: Cursor """ if self._cursor_present: return self._cursor_value @@ -1682,8 +1682,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListPaperDocsResponse, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListPaperDocsResponse, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListPaperDocsResponse(doc_ids={!r}, cursor={!r}, has_more={!r})'.format( @@ -1750,8 +1750,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListPaperDocsSortBy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListPaperDocsSortBy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListPaperDocsSortBy(%r, %r)' % (self._tag, self._value) @@ -1802,8 +1802,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListPaperDocsSortOrder, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListPaperDocsSortOrder, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListPaperDocsSortOrder(%r, %r)' % (self._tag, self._value) @@ -1829,8 +1829,8 @@ def cursor_error(cls, val): Create an instance of this class set to the ``cursor_error`` tag with value ``val``. - :param paper.PaperApiCursorError val: - :rtype: paper.ListUsersCursorError + :param PaperApiCursorError val: + :rtype: ListUsersCursorError """ return cls('cursor_error', val) @@ -1854,14 +1854,14 @@ def get_cursor_error(self): """ Only call this if :meth:`is_cursor_error` is true. - :rtype: paper.PaperApiCursorError + :rtype: PaperApiCursorError """ if not self.is_cursor_error(): raise AttributeError("tag 'cursor_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListUsersCursorError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListUsersCursorError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListUsersCursorError(%r, %r)' % (self._tag, self._value) @@ -1915,8 +1915,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListUsersOnFolderArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListUsersOnFolderArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListUsersOnFolderArgs(doc_id={!r}, limit={!r})'.format( @@ -1976,8 +1976,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListUsersOnFolderContinueArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListUsersOnFolderContinueArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListUsersOnFolderContinueArgs(doc_id={!r}, cursor={!r})'.format( @@ -2096,7 +2096,7 @@ def cursor(self): specified in the original call to :meth:`dropbox.dropbox.Dropbox.paper_docs_folder_users_list`. - :rtype: paper.Cursor + :rtype: Cursor """ if self._cursor_present: return self._cursor_value @@ -2141,8 +2141,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListUsersOnFolderResponse, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListUsersOnFolderResponse, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListUsersOnFolderResponse(invitees={!r}, users={!r}, cursor={!r}, has_more={!r})'.format( @@ -2216,7 +2216,7 @@ def filter_by(self): Specify this attribute if you want to obtain users that have already accessed the Paper doc. - :rtype: paper.UserOnPaperDocFilter + :rtype: UserOnPaperDocFilter """ if self._filter_by_present: return self._filter_by_value @@ -2234,8 +2234,8 @@ def filter_by(self): self._filter_by_value = None self._filter_by_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListUsersOnPaperDocArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListUsersOnPaperDocArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListUsersOnPaperDocArgs(doc_id={!r}, limit={!r}, filter_by={!r})'.format( @@ -2296,8 +2296,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListUsersOnPaperDocContinueArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListUsersOnPaperDocContinueArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListUsersOnPaperDocContinueArgs(doc_id={!r}, cursor={!r})'.format( @@ -2377,7 +2377,7 @@ def invitees(self): List of email addresses with their respective permission levels that are invited on the Paper doc. - :rtype: list of [paper.InviteeInfoWithPermissionLevel] + :rtype: list of [InviteeInfoWithPermissionLevel] """ if self._invitees_present: return self._invitees_value @@ -2401,7 +2401,7 @@ def users(self): List of users with their respective permission levels that are invited on the Paper folder. - :rtype: list of [paper.UserInfoWithPermissionLevel] + :rtype: list of [UserInfoWithPermissionLevel] """ if self._users_present: return self._users_value @@ -2451,7 +2451,7 @@ def cursor(self): specified in the original call to :meth:`dropbox.dropbox.Dropbox.paper_docs_users_list`. - :rtype: paper.Cursor + :rtype: Cursor """ if self._cursor_present: return self._cursor_value @@ -2496,8 +2496,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListUsersOnPaperDocResponse, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListUsersOnPaperDocResponse, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListUsersOnPaperDocResponse(invitees={!r}, users={!r}, doc_owner={!r}, cursor={!r}, has_more={!r})'.format( @@ -2579,8 +2579,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PaperApiCursorError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperApiCursorError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperApiCursorError(%r, %r)' % (self._tag, self._value) @@ -2648,7 +2648,7 @@ def import_format(self): """ The format of provided data. - :rtype: paper.ImportFormat + :rtype: ImportFormat """ if self._import_format_present: return self._import_format_value @@ -2666,8 +2666,8 @@ def import_format(self): self._import_format_value = None self._import_format_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocCreateArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocCreateArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDocCreateArgs(import_format={!r}, parent_folder_id={!r})'.format( @@ -2735,8 +2735,8 @@ def is_image_size_exceeded(self): """ return self._tag == 'image_size_exceeded' - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocCreateError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocCreateError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDocCreateError(%r, %r)' % (self._tag, self._value) @@ -2849,8 +2849,8 @@ def title(self): self._title_value = None self._title_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocCreateUpdateResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocCreateUpdateResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDocCreateUpdateResult(doc_id={!r}, revision={!r}, title={!r})'.format( @@ -2882,7 +2882,7 @@ def __init__(self, @property def export_format(self): """ - :rtype: paper.ExportFormat + :rtype: ExportFormat """ if self._export_format_present: return self._export_format_value @@ -2900,8 +2900,8 @@ def export_format(self): self._export_format_value = None self._export_format_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocExport, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocExport, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDocExport(doc_id={!r}, export_format={!r})'.format( @@ -3049,8 +3049,8 @@ def mime_type(self): self._mime_type_value = None self._mime_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocExportResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocExportResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDocExportResult(owner={!r}, title={!r}, revision={!r}, mime_type={!r})'.format( @@ -3106,8 +3106,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocPermissionLevel, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocPermissionLevel, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDocPermissionLevel(%r, %r)' % (self._tag, self._value) @@ -3141,7 +3141,7 @@ def sharing_policy(self): """ The default sharing policy to be set for the Paper doc. - :rtype: paper.SharingPolicy + :rtype: SharingPolicy """ if self._sharing_policy_present: return self._sharing_policy_value @@ -3159,8 +3159,8 @@ def sharing_policy(self): self._sharing_policy_value = None self._sharing_policy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocSharingPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocSharingPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDocSharingPolicy(doc_id={!r}, sharing_policy={!r})'.format( @@ -3215,7 +3215,7 @@ def doc_update_policy(self): """ The policy used for the current update call. - :rtype: paper.PaperDocUpdatePolicy + :rtype: PaperDocUpdatePolicy """ if self._doc_update_policy_present: return self._doc_update_policy_value @@ -3262,7 +3262,7 @@ def import_format(self): """ The format of provided data. - :rtype: paper.ImportFormat + :rtype: ImportFormat """ if self._import_format_present: return self._import_format_value @@ -3280,8 +3280,8 @@ def import_format(self): self._import_format_value = None self._import_format_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocUpdateArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocUpdateArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDocUpdateArgs(doc_id={!r}, doc_update_policy={!r}, revision={!r}, import_format={!r})'.format( @@ -3375,8 +3375,8 @@ def is_doc_deleted(self): """ return self._tag == 'doc_deleted' - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocUpdateError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocUpdateError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDocUpdateError(%r, %r)' % (self._tag, self._value) @@ -3439,8 +3439,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocUpdatePolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocUpdatePolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDocUpdatePolicy(%r, %r)' % (self._tag, self._value) @@ -3493,8 +3493,8 @@ def member(self): self._member_value = None self._member_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RemovePaperDocUser, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemovePaperDocUser, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemovePaperDocUser(doc_id={!r}, member={!r})'.format( @@ -3540,7 +3540,7 @@ def public_sharing_policy(self): """ This value applies to the non-team members. - :rtype: paper.SharingPublicPolicyType + :rtype: SharingPublicPolicyType """ if self._public_sharing_policy_present: return self._public_sharing_policy_value @@ -3567,7 +3567,7 @@ def team_sharing_policy(self): This value applies to the team members only. The value is null for all personal accounts. - :rtype: paper.SharingTeamPolicyType + :rtype: SharingTeamPolicyType """ if self._team_sharing_policy_present: return self._team_sharing_policy_value @@ -3588,8 +3588,8 @@ def team_sharing_policy(self): self._team_sharing_policy_value = None self._team_sharing_policy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharingPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharingPolicy(public_sharing_policy={!r}, team_sharing_policy={!r})'.format( @@ -3647,8 +3647,8 @@ def is_invite_only(self): """ return self._tag == 'invite_only' - def _process_custom_annotations(self, annotation_type, processor): - super(SharingTeamPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingTeamPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharingTeamPolicyType(%r, %r)' % (self._tag, self._value) @@ -3676,8 +3676,8 @@ def is_disabled(self): """ return self._tag == 'disabled' - def _process_custom_annotations(self, annotation_type, processor): - super(SharingPublicPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingPublicPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharingPublicPolicyType(%r, %r)' % (self._tag, self._value) @@ -3740,7 +3740,7 @@ def permission_level(self): """ Permission level for the user. - :rtype: paper.PaperDocPermissionLevel + :rtype: PaperDocPermissionLevel """ if self._permission_level_present: return self._permission_level_value @@ -3758,8 +3758,8 @@ def permission_level(self): self._permission_level_value = None self._permission_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UserInfoWithPermissionLevel, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserInfoWithPermissionLevel, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserInfoWithPermissionLevel(user={!r}, permission_level={!r})'.format( @@ -3814,8 +3814,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(UserOnPaperDocFilter, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserOnPaperDocFilter, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserOnPaperDocFilter(%r, %r)' % (self._tag, self._value) diff --git a/dropbox/seen_state.py b/dropbox/seen_state.py index 69ada108..ed4838c7 100644 --- a/dropbox/seen_state.py +++ b/dropbox/seen_state.py @@ -21,24 +21,36 @@ class PlatformType(bb.Union): corresponding ``get_*`` method. :ivar seen_state.PlatformType.web: The content was viewed on the web. - :ivar seen_state.PlatformType.mobile: The content was viewed on a mobile - client. :ivar seen_state.PlatformType.desktop: The content was viewed on a desktop client. + :ivar seen_state.PlatformType.mobile_ios: The content was viewed on a mobile + iOS client. + :ivar seen_state.PlatformType.mobile_android: The content was viewed on a + mobile android client. + :ivar seen_state.PlatformType.api: The content was viewed from an API + client. :ivar seen_state.PlatformType.unknown: The content was viewed on an unknown platform. + :ivar seen_state.PlatformType.mobile: The content was viewed on a mobile + client. DEPRECATED: Use mobile_ios or mobile_android instead. """ _catch_all = 'other' # Attribute is overwritten below the class definition web = None # Attribute is overwritten below the class definition - mobile = None - # Attribute is overwritten below the class definition desktop = None # Attribute is overwritten below the class definition + mobile_ios = None + # Attribute is overwritten below the class definition + mobile_android = None + # Attribute is overwritten below the class definition + api = None + # Attribute is overwritten below the class definition unknown = None # Attribute is overwritten below the class definition + mobile = None + # Attribute is overwritten below the class definition other = None def is_web(self): @@ -49,21 +61,37 @@ def is_web(self): """ return self._tag == 'web' - def is_mobile(self): + def is_desktop(self): """ - Check if the union tag is ``mobile``. + Check if the union tag is ``desktop``. :rtype: bool """ - return self._tag == 'mobile' + return self._tag == 'desktop' - def is_desktop(self): + def is_mobile_ios(self): """ - Check if the union tag is ``desktop``. + Check if the union tag is ``mobile_ios``. :rtype: bool """ - return self._tag == 'desktop' + return self._tag == 'mobile_ios' + + def is_mobile_android(self): + """ + Check if the union tag is ``mobile_android``. + + :rtype: bool + """ + return self._tag == 'mobile_android' + + def is_api(self): + """ + Check if the union tag is ``api``. + + :rtype: bool + """ + return self._tag == 'api' def is_unknown(self): """ @@ -73,6 +101,14 @@ def is_unknown(self): """ return self._tag == 'unknown' + def is_mobile(self): + """ + Check if the union tag is ``mobile``. + + :rtype: bool + """ + return self._tag == 'mobile' + def is_other(self): """ Check if the union tag is ``other``. @@ -81,8 +117,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PlatformType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PlatformType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PlatformType(%r, %r)' % (self._tag, self._value) @@ -90,22 +126,31 @@ def __repr__(self): PlatformType_validator = bv.Union(PlatformType) PlatformType._web_validator = bv.Void() -PlatformType._mobile_validator = bv.Void() PlatformType._desktop_validator = bv.Void() +PlatformType._mobile_ios_validator = bv.Void() +PlatformType._mobile_android_validator = bv.Void() +PlatformType._api_validator = bv.Void() PlatformType._unknown_validator = bv.Void() +PlatformType._mobile_validator = bv.Void() PlatformType._other_validator = bv.Void() PlatformType._tagmap = { 'web': PlatformType._web_validator, - 'mobile': PlatformType._mobile_validator, 'desktop': PlatformType._desktop_validator, + 'mobile_ios': PlatformType._mobile_ios_validator, + 'mobile_android': PlatformType._mobile_android_validator, + 'api': PlatformType._api_validator, 'unknown': PlatformType._unknown_validator, + 'mobile': PlatformType._mobile_validator, 'other': PlatformType._other_validator, } PlatformType.web = PlatformType('web') -PlatformType.mobile = PlatformType('mobile') PlatformType.desktop = PlatformType('desktop') +PlatformType.mobile_ios = PlatformType('mobile_ios') +PlatformType.mobile_android = PlatformType('mobile_android') +PlatformType.api = PlatformType('api') PlatformType.unknown = PlatformType('unknown') +PlatformType.mobile = PlatformType('mobile') PlatformType.other = PlatformType('other') ROUTES = { diff --git a/dropbox/sharing.py b/dropbox/sharing.py index f4267584..33852610 100644 --- a/dropbox/sharing.py +++ b/dropbox/sharing.py @@ -81,8 +81,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(AccessInheritance, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccessInheritance, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccessInheritance(%r, %r)' % (self._tag, self._value) @@ -161,8 +161,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(AccessLevel, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccessLevel, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccessLevel(%r, %r)' % (self._tag, self._value) @@ -215,8 +215,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(AclUpdatePolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AclUpdatePolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AclUpdatePolicy(%r, %r)' % (self._tag, self._value) @@ -320,7 +320,7 @@ def members(self): result in a user being directy added to the membership if that email is the user's main account email. - :rtype: list of [sharing.MemberSelector] + :rtype: list of [MemberSelector] """ if self._members_present: return self._members_value @@ -394,7 +394,7 @@ def access_level(self): AccessLevel union object, describing what access level we want to give new members. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if self._access_level_present: return self._access_level_value @@ -435,8 +435,8 @@ def add_message_as_comment(self): self._add_message_as_comment_value = None self._add_message_as_comment_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AddFileMemberArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddFileMemberArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddFileMemberArgs(file={!r}, members={!r}, custom_message={!r}, quiet={!r}, access_level={!r}, add_message_as_comment={!r})'.format( @@ -478,8 +478,8 @@ def user_error(cls, val): Create an instance of this class set to the ``user_error`` tag with value ``val``. - :param sharing.SharingUserError val: - :rtype: sharing.AddFileMemberError + :param SharingUserError val: + :rtype: AddFileMemberError """ return cls('user_error', val) @@ -489,8 +489,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharingFileAccessError val: - :rtype: sharing.AddFileMemberError + :param SharingFileAccessError val: + :rtype: AddFileMemberError """ return cls('access_error', val) @@ -538,7 +538,7 @@ def get_user_error(self): """ Only call this if :meth:`is_user_error` is true. - :rtype: sharing.SharingUserError + :rtype: SharingUserError """ if not self.is_user_error(): raise AttributeError("tag 'user_error' not set") @@ -548,14 +548,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharingFileAccessError + :rtype: SharingFileAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(AddFileMemberError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddFileMemberError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddFileMemberError(%r, %r)' % (self._tag, self._value) @@ -638,7 +638,7 @@ def members(self): The intended list of members to add. Added members will receive invites to join the shared folder. - :rtype: list of [sharing.AddMember] + :rtype: list of [AddMember] """ if self._members_present: return self._members_value @@ -706,8 +706,8 @@ def custom_message(self): self._custom_message_value = None self._custom_message_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AddFolderMemberArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddFolderMemberArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddFolderMemberArg(shared_folder_id={!r}, members={!r}, quiet={!r}, custom_message={!r})'.format( @@ -725,11 +725,13 @@ class AddFolderMemberError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar SharedFolderAccessError sharing.AddFolderMemberError.access_error: - Unable to access shared folder. + :ivar SharedFolderAccessError AddFolderMemberError.access_error: Unable to + access shared folder. :ivar sharing.AddFolderMemberError.email_unverified: The current user's e-mail address is unverified. - :ivar AddMemberSelectorError sharing.AddFolderMemberError.bad_member: + :ivar sharing.AddFolderMemberError.banned_member: The current user has been + banned. + :ivar AddMemberSelectorError AddFolderMemberError.bad_member: ``AddFolderMemberArg.members`` contains a bad invitation recipient. :ivar sharing.AddFolderMemberError.cant_share_outside_team: Your team policy does not allow sharing outside of the team. @@ -755,6 +757,8 @@ class AddFolderMemberError(bb.Union): # Attribute is overwritten below the class definition email_unverified = None # Attribute is overwritten below the class definition + banned_member = None + # Attribute is overwritten below the class definition cant_share_outside_team = None # Attribute is overwritten below the class definition rate_limit = None @@ -775,8 +779,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.AddFolderMemberError + :param SharedFolderAccessError val: + :rtype: AddFolderMemberError """ return cls('access_error', val) @@ -786,8 +790,8 @@ def bad_member(cls, val): Create an instance of this class set to the ``bad_member`` tag with value ``val``. - :param sharing.AddMemberSelectorError val: - :rtype: sharing.AddFolderMemberError + :param AddMemberSelectorError val: + :rtype: AddFolderMemberError """ return cls('bad_member', val) @@ -798,7 +802,7 @@ def too_many_members(cls, val): with value ``val``. :param int val: - :rtype: sharing.AddFolderMemberError + :rtype: AddFolderMemberError """ return cls('too_many_members', val) @@ -809,7 +813,7 @@ def too_many_pending_invites(cls, val): tag with value ``val``. :param int val: - :rtype: sharing.AddFolderMemberError + :rtype: AddFolderMemberError """ return cls('too_many_pending_invites', val) @@ -829,6 +833,14 @@ def is_email_unverified(self): """ return self._tag == 'email_unverified' + def is_banned_member(self): + """ + Check if the union tag is ``banned_member``. + + :rtype: bool + """ + return self._tag == 'banned_member' + def is_bad_member(self): """ Check if the union tag is ``bad_member``. @@ -915,7 +927,7 @@ def get_access_error(self): Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") @@ -927,7 +939,7 @@ def get_bad_member(self): Only call this if :meth:`is_bad_member` is true. - :rtype: sharing.AddMemberSelectorError + :rtype: AddMemberSelectorError """ if not self.is_bad_member(): raise AttributeError("tag 'bad_member' not set") @@ -957,8 +969,8 @@ def get_too_many_pending_invites(self): raise AttributeError("tag 'too_many_pending_invites' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(AddFolderMemberError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddFolderMemberError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddFolderMemberError(%r, %r)' % (self._tag, self._value) @@ -1001,7 +1013,7 @@ def member(self): """ The member to add to the shared folder. - :rtype: sharing.MemberSelector + :rtype: MemberSelector """ if self._member_present: return self._member_value @@ -1025,7 +1037,7 @@ def access_level(self): The access level to grant ``member`` to the shared folder. ``AccessLevel.owner`` is disallowed. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if self._access_level_present: return self._access_level_value @@ -1043,8 +1055,8 @@ def access_level(self): self._access_level_value = None self._access_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AddMember, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddMember, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddMember(member={!r}, access_level={!r})'.format( @@ -1092,7 +1104,7 @@ def invalid_dropbox_id(cls, val): with value ``val``. :param str val: - :rtype: sharing.AddMemberSelectorError + :rtype: AddMemberSelectorError """ return cls('invalid_dropbox_id', val) @@ -1103,7 +1115,7 @@ def invalid_email(cls, val): value ``val``. :param str val: - :rtype: sharing.AddMemberSelectorError + :rtype: AddMemberSelectorError """ return cls('invalid_email', val) @@ -1114,7 +1126,7 @@ def unverified_dropbox_id(cls, val): tag with value ``val``. :param str val: - :rtype: sharing.AddMemberSelectorError + :rtype: AddMemberSelectorError """ return cls('unverified_dropbox_id', val) @@ -1212,8 +1224,8 @@ def get_unverified_dropbox_id(self): raise AttributeError("tag 'unverified_dropbox_id' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(AddMemberSelectorError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AddMemberSelectorError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AddMemberSelectorError(%r, %r)' % (self._tag, self._value) @@ -1266,8 +1278,8 @@ def name(self): self._name_value = None self._name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AudienceExceptionContentInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AudienceExceptionContentInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AudienceExceptionContentInfo(name={!r})'.format( @@ -1337,7 +1349,7 @@ def exceptions(self): of this list could be smaller than the count since it is only a sample but will not be empty as long as count is not 0. - :rtype: list of [sharing.AudienceExceptionContentInfo] + :rtype: list of [AudienceExceptionContentInfo] """ if self._exceptions_present: return self._exceptions_value @@ -1355,8 +1367,8 @@ def exceptions(self): self._exceptions_value = None self._exceptions_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AudienceExceptions, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AudienceExceptions, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AudienceExceptions(count={!r}, exceptions={!r})'.format( @@ -1458,7 +1470,7 @@ def audience(self): """ The link audience of the shared folder. - :rtype: sharing.LinkAudience + :rtype: LinkAudience """ if self._audience_present: return self._audience_value @@ -1476,8 +1488,8 @@ def audience(self): self._audience_value = None self._audience_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AudienceRestrictingSharedFolder, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AudienceRestrictingSharedFolder, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AudienceRestrictingSharedFolder(shared_folder_id={!r}, name={!r}, audience={!r})'.format( @@ -1557,7 +1569,7 @@ def member(self): """ The member whose access we are changing. - :rtype: sharing.MemberSelector + :rtype: MemberSelector """ if self._member_present: return self._member_value @@ -1580,7 +1592,7 @@ def access_level(self): """ The new access level for the member. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if self._access_level_present: return self._access_level_value @@ -1598,8 +1610,8 @@ def access_level(self): self._access_level_value = None self._access_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ChangeFileMemberAccessArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ChangeFileMemberAccessArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ChangeFileMemberAccessArgs(file={!r}, member={!r}, access_level={!r})'.format( @@ -1677,7 +1689,7 @@ def visibility(self): """ Who can access the link. - :rtype: sharing.Visibility + :rtype: Visibility """ if self._visibility_present: return self._visibility_value @@ -1721,8 +1733,8 @@ def expires(self): self._expires_value = None self._expires_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(LinkMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LinkMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LinkMetadata(url={!r}, visibility={!r}, expires={!r})'.format( @@ -1751,8 +1763,8 @@ def __init__(self, visibility, expires) - def _process_custom_annotations(self, annotation_type, processor): - super(CollectionLinkMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CollectionLinkMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CollectionLinkMetadata(url={!r}, visibility={!r}, expires={!r})'.format( @@ -1855,7 +1867,7 @@ def pending_upload(self): ``PendingUploadMode.file`` or ``PendingUploadMode.folder`` to indicate whether to assume it's a file or folder. - :rtype: sharing.PendingUploadMode + :rtype: PendingUploadMode """ if self._pending_upload_present: return self._pending_upload_value @@ -1876,8 +1888,8 @@ def pending_upload(self): self._pending_upload_value = None self._pending_upload_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CreateSharedLinkArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateSharedLinkArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateSharedLinkArg(path={!r}, short_url={!r}, pending_upload={!r})'.format( @@ -1906,7 +1918,7 @@ def path(cls, val): ``val``. :param files.LookupError val: - :rtype: sharing.CreateSharedLinkError + :rtype: CreateSharedLinkError """ return cls('path', val) @@ -1936,8 +1948,8 @@ def get_path(self): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(CreateSharedLinkError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateSharedLinkError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateSharedLinkError(%r, %r)' % (self._tag, self._value) @@ -2001,7 +2013,7 @@ def settings(self): """ The requested settings for the newly created shared link. - :rtype: sharing.SharedLinkSettings + :rtype: SharedLinkSettings """ if self._settings_present: return self._settings_value @@ -2022,8 +2034,8 @@ def settings(self): self._settings_value = None self._settings_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CreateSharedLinkWithSettingsArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateSharedLinkWithSettingsArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateSharedLinkWithSettingsArg(path={!r}, settings={!r})'.format( @@ -2041,13 +2053,14 @@ class CreateSharedLinkWithSettingsError(bb.Union): :ivar sharing.CreateSharedLinkWithSettingsError.email_not_verified: User's email should be verified. - :ivar sharing.CreateSharedLinkWithSettingsError.shared_link_already_exists: - The shared link already exists. You can call - :meth:`dropbox.dropbox.Dropbox.sharing_list_shared_links` to get the - existing link. + :ivar Optional[SharedLinkAlreadyExistsMetadata] + sharing.CreateSharedLinkWithSettingsError.shared_link_already_exists: + The shared link already exists. You can call :route:`list_shared_links` + to get the existing link, or use the provided metadata if it is + returned. :ivar SharedLinkSettingsError - sharing.CreateSharedLinkWithSettingsError.settings_error: There is an - error with the given settings. + CreateSharedLinkWithSettingsError.settings_error: There is an error with + the given settings. :ivar sharing.CreateSharedLinkWithSettingsError.access_denied: Access to the requested path is forbidden. """ @@ -2056,8 +2069,6 @@ class CreateSharedLinkWithSettingsError(bb.Union): # Attribute is overwritten below the class definition email_not_verified = None # Attribute is overwritten below the class definition - shared_link_already_exists = None - # Attribute is overwritten below the class definition access_denied = None @classmethod @@ -2067,18 +2078,29 @@ def path(cls, val): ``val``. :param files.LookupError val: - :rtype: sharing.CreateSharedLinkWithSettingsError + :rtype: CreateSharedLinkWithSettingsError """ return cls('path', val) + @classmethod + def shared_link_already_exists(cls, val): + """ + Create an instance of this class set to the + ``shared_link_already_exists`` tag with value ``val``. + + :param SharedLinkAlreadyExistsMetadata val: + :rtype: CreateSharedLinkWithSettingsError + """ + return cls('shared_link_already_exists', val) + @classmethod def settings_error(cls, val): """ Create an instance of this class set to the ``settings_error`` tag with value ``val``. - :param sharing.SharedLinkSettingsError val: - :rtype: sharing.CreateSharedLinkWithSettingsError + :param SharedLinkSettingsError val: + :rtype: CreateSharedLinkWithSettingsError """ return cls('settings_error', val) @@ -2132,20 +2154,34 @@ def get_path(self): raise AttributeError("tag 'path' not set") return self._value + def get_shared_link_already_exists(self): + """ + The shared link already exists. You can call + :meth:`dropbox.dropbox.Dropbox.sharing_list_shared_links` to get the + existing link, or use the provided metadata if it is returned. + + Only call this if :meth:`is_shared_link_already_exists` is true. + + :rtype: SharedLinkAlreadyExistsMetadata + """ + if not self.is_shared_link_already_exists(): + raise AttributeError("tag 'shared_link_already_exists' not set") + return self._value + def get_settings_error(self): """ There is an error with the given settings. Only call this if :meth:`is_settings_error` is true. - :rtype: sharing.SharedLinkSettingsError + :rtype: SharedLinkSettingsError """ if not self.is_settings_error(): raise AttributeError("tag 'settings_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(CreateSharedLinkWithSettingsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateSharedLinkWithSettingsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateSharedLinkWithSettingsError(%r, %r)' % (self._tag, self._value) @@ -2237,7 +2273,7 @@ def access_level(self): """ The access level on the link for this file. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if self._access_level_present: return self._access_level_value @@ -2266,7 +2302,7 @@ def audience_options(self): the content is not owned by a user on a team. The 'default' audience option is always available if the user can modify link settings. - :rtype: list of [sharing.LinkAudience] + :rtype: list of [LinkAudience] """ if self._audience_options_present: return self._audience_options_value @@ -2290,7 +2326,7 @@ def audience_restricting_shared_folder(self): The shared folder that prevents the link audience for this link from being more restrictive. - :rtype: sharing.AudienceRestrictingSharedFolder + :rtype: AudienceRestrictingSharedFolder """ if self._audience_restricting_shared_folder_present: return self._audience_restricting_shared_folder_value @@ -2316,7 +2352,7 @@ def current_audience(self): """ The current audience of the link. - :rtype: sharing.LinkAudience + :rtype: LinkAudience """ if self._current_audience_present: return self._current_audience_value @@ -2366,7 +2402,7 @@ def link_permissions(self): """ A list of permissions for actions you can perform on the link. - :rtype: list of [sharing.LinkPermission] + :rtype: list of [LinkPermission] """ if self._link_permissions_present: return self._link_permissions_value @@ -2407,8 +2443,8 @@ def password_protected(self): self._password_protected_value = None self._password_protected_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentLinkMetadataBase, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentLinkMetadataBase, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedContentLinkMetadataBase(audience_options={!r}, current_audience={!r}, link_permissions={!r}, password_protected={!r}, access_level={!r}, audience_restricting_shared_folder={!r}, expiry={!r})'.format( @@ -2450,8 +2486,8 @@ def __init__(self, audience_restricting_shared_folder, expiry) - def _process_custom_annotations(self, annotation_type, processor): - super(ExpectedSharedContentLinkMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExpectedSharedContentLinkMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExpectedSharedContentLinkMetadata(audience_options={!r}, current_audience={!r}, link_permissions={!r}, password_protected={!r}, access_level={!r}, audience_restricting_shared_folder={!r}, expiry={!r})'.format( @@ -2486,8 +2522,14 @@ class FileAction(bb.Union): :ivar sharing.FileAction.unshare: Stop sharing this file. :ivar sharing.FileAction.relinquish_membership: Relinquish one's own membership to the file. - :ivar sharing.FileAction.share_link: Use create_link instead. - :ivar sharing.FileAction.create_link: Create a shared link to the file. + :ivar sharing.FileAction.share_link: Use create_view_link and + create_edit_link instead. + :ivar sharing.FileAction.create_link: Use create_view_link and + create_edit_link instead. + :ivar sharing.FileAction.create_view_link: Create a shared link to a file + that only allows users to view the content. + :ivar sharing.FileAction.create_edit_link: Create a shared link to a file + that allows users to edit the content. """ _catch_all = 'other' @@ -2512,6 +2554,10 @@ class FileAction(bb.Union): # Attribute is overwritten below the class definition create_link = None # Attribute is overwritten below the class definition + create_view_link = None + # Attribute is overwritten below the class definition + create_edit_link = None + # Attribute is overwritten below the class definition other = None def is_disable_viewer_info(self): @@ -2594,6 +2640,22 @@ def is_create_link(self): """ return self._tag == 'create_link' + def is_create_view_link(self): + """ + Check if the union tag is ``create_view_link``. + + :rtype: bool + """ + return self._tag == 'create_view_link' + + def is_create_edit_link(self): + """ + Check if the union tag is ``create_edit_link``. + + :rtype: bool + """ + return self._tag == 'create_edit_link' + def is_other(self): """ Check if the union tag is ``other``. @@ -2602,8 +2664,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(FileAction, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileAction, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileAction(%r, %r)' % (self._tag, self._value) @@ -2635,7 +2697,7 @@ def file_not_found_error(cls, val): with value ``val``. :param str val: - :rtype: sharing.FileErrorResult + :rtype: FileErrorResult """ return cls('file_not_found_error', val) @@ -2646,7 +2708,7 @@ def invalid_file_action_error(cls, val): ``invalid_file_action_error`` tag with value ``val``. :param str val: - :rtype: sharing.FileErrorResult + :rtype: FileErrorResult """ return cls('invalid_file_action_error', val) @@ -2657,7 +2719,7 @@ def permission_denied_error(cls, val): tag with value ``val``. :param str val: - :rtype: sharing.FileErrorResult + :rtype: FileErrorResult """ return cls('permission_denied_error', val) @@ -2729,8 +2791,8 @@ def get_permission_denied_error(self): raise AttributeError("tag 'permission_denied_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(FileErrorResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileErrorResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileErrorResult(%r, %r)' % (self._tag, self._value) @@ -2956,7 +3018,7 @@ def link_permissions(self): """ The link's access permissions. - :rtype: sharing.LinkPermissions + :rtype: LinkPermissions """ if self._link_permissions_present: return self._link_permissions_value @@ -2980,7 +3042,7 @@ def team_member_info(self): The team membership information of the link's owner. This field will only be present if the link's owner is a team member. - :rtype: sharing.TeamMemberInfo + :rtype: TeamMemberInfo """ if self._team_member_info_present: return self._team_member_info_value @@ -3029,8 +3091,8 @@ def content_owner_team_info(self): self._content_owner_team_info_value = None self._content_owner_team_info_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedLinkMetadata(url={!r}, name={!r}, link_permissions={!r}, id={!r}, expires={!r}, path_lower={!r}, team_member_info={!r}, content_owner_team_info={!r})'.format( @@ -3213,8 +3275,8 @@ def size(self): self._size_value = None self._size_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileLinkMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileLinkMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileLinkMetadata(url={!r}, name={!r}, link_permissions={!r}, client_modified={!r}, server_modified={!r}, rev={!r}, size={!r}, id={!r}, expires={!r}, path_lower={!r}, team_member_info={!r}, content_owner_team_info={!r})'.format( @@ -3244,13 +3306,12 @@ class FileMemberActionError(bb.Union): found. :ivar sharing.FileMemberActionError.no_permission: User does not have permission to perform this action on this member. - :ivar SharingFileAccessError sharing.FileMemberActionError.access_error: - Specified file was invalid or user does not have access. - :ivar MemberAccessLevelResult - sharing.FileMemberActionError.no_explicit_access: The action cannot be - completed because the target member does not have explicit access to the - file. The return value is the access that the member has to the file - from a parent folder. + :ivar SharingFileAccessError FileMemberActionError.access_error: Specified + file was invalid or user does not have access. + :ivar MemberAccessLevelResult FileMemberActionError.no_explicit_access: The + action cannot be completed because the target member does not have + explicit access to the file. The return value is the access that the + member has to the file from a parent folder. """ _catch_all = 'other' @@ -3267,8 +3328,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharingFileAccessError val: - :rtype: sharing.FileMemberActionError + :param SharingFileAccessError val: + :rtype: FileMemberActionError """ return cls('access_error', val) @@ -3278,8 +3339,8 @@ def no_explicit_access(cls, val): Create an instance of this class set to the ``no_explicit_access`` tag with value ``val``. - :param sharing.MemberAccessLevelResult val: - :rtype: sharing.FileMemberActionError + :param MemberAccessLevelResult val: + :rtype: FileMemberActionError """ return cls('no_explicit_access', val) @@ -3329,7 +3390,7 @@ def get_access_error(self): Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharingFileAccessError + :rtype: SharingFileAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") @@ -3343,14 +3404,14 @@ def get_no_explicit_access(self): Only call this if :meth:`is_no_explicit_access` is true. - :rtype: sharing.MemberAccessLevelResult + :rtype: MemberAccessLevelResult """ if not self.is_no_explicit_access(): raise AttributeError("tag 'no_explicit_access' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(FileMemberActionError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileMemberActionError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileMemberActionError(%r, %r)' % (self._tag, self._value) @@ -3363,13 +3424,12 @@ class FileMemberActionIndividualResult(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar Optional[sharing.AccessLevel] + :ivar Optional[AccessLevel] sharing.FileMemberActionIndividualResult.success: Member was successfully removed from this file. If AccessLevel is given, the member still has access via a parent shared folder. - :ivar FileMemberActionError - sharing.FileMemberActionIndividualResult.member_error: User was not able - to perform this action. + :ivar FileMemberActionError FileMemberActionIndividualResult.member_error: + User was not able to perform this action. """ _catch_all = None @@ -3380,8 +3440,8 @@ def success(cls, val): Create an instance of this class set to the ``success`` tag with value ``val``. - :param sharing.AccessLevel val: - :rtype: sharing.FileMemberActionIndividualResult + :param AccessLevel val: + :rtype: FileMemberActionIndividualResult """ return cls('success', val) @@ -3391,8 +3451,8 @@ def member_error(cls, val): Create an instance of this class set to the ``member_error`` tag with value ``val``. - :param sharing.FileMemberActionError val: - :rtype: sharing.FileMemberActionIndividualResult + :param FileMemberActionError val: + :rtype: FileMemberActionIndividualResult """ return cls('member_error', val) @@ -3419,7 +3479,7 @@ def get_success(self): Only call this if :meth:`is_success` is true. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if not self.is_success(): raise AttributeError("tag 'success' not set") @@ -3431,14 +3491,14 @@ def get_member_error(self): Only call this if :meth:`is_member_error` is true. - :rtype: sharing.FileMemberActionError + :rtype: FileMemberActionError """ if not self.is_member_error(): raise AttributeError("tag 'member_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(FileMemberActionIndividualResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileMemberActionIndividualResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileMemberActionIndividualResult(%r, %r)' % (self._tag, self._value) @@ -3482,7 +3542,7 @@ def member(self): """ One of specified input members. - :rtype: sharing.MemberSelector + :rtype: MemberSelector """ if self._member_present: return self._member_value @@ -3505,7 +3565,7 @@ def result(self): """ The outcome of the action on this member. - :rtype: sharing.FileMemberActionIndividualResult + :rtype: FileMemberActionIndividualResult """ if self._result_present: return self._result_value @@ -3523,8 +3583,8 @@ def result(self): self._result_value = None self._result_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileMemberActionResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileMemberActionResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileMemberActionResult(member={!r}, result={!r})'.format( @@ -3540,11 +3600,10 @@ class FileMemberRemoveActionResult(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar MemberAccessLevelResult sharing.FileMemberRemoveActionResult.success: - Member was successfully removed from this file. - :ivar FileMemberActionError - sharing.FileMemberRemoveActionResult.member_error: User was not able to - remove this member. + :ivar MemberAccessLevelResult FileMemberRemoveActionResult.success: Member + was successfully removed from this file. + :ivar FileMemberActionError FileMemberRemoveActionResult.member_error: User + was not able to remove this member. """ _catch_all = 'other' @@ -3557,8 +3616,8 @@ def success(cls, val): Create an instance of this class set to the ``success`` tag with value ``val``. - :param sharing.MemberAccessLevelResult val: - :rtype: sharing.FileMemberRemoveActionResult + :param MemberAccessLevelResult val: + :rtype: FileMemberRemoveActionResult """ return cls('success', val) @@ -3568,8 +3627,8 @@ def member_error(cls, val): Create an instance of this class set to the ``member_error`` tag with value ``val``. - :param sharing.FileMemberActionError val: - :rtype: sharing.FileMemberRemoveActionResult + :param FileMemberActionError val: + :rtype: FileMemberRemoveActionResult """ return cls('member_error', val) @@ -3603,7 +3662,7 @@ def get_success(self): Only call this if :meth:`is_success` is true. - :rtype: sharing.MemberAccessLevelResult + :rtype: MemberAccessLevelResult """ if not self.is_success(): raise AttributeError("tag 'success' not set") @@ -3615,14 +3674,14 @@ def get_member_error(self): Only call this if :meth:`is_member_error` is true. - :rtype: sharing.FileMemberActionError + :rtype: FileMemberActionError """ if not self.is_member_error(): raise AttributeError("tag 'member_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(FileMemberRemoveActionResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileMemberRemoveActionResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileMemberRemoveActionResult(%r, %r)' % (self._tag, self._value) @@ -3674,7 +3733,7 @@ def action(self): """ The action that the user may wish to take on the file. - :rtype: sharing.FileAction + :rtype: FileAction """ if self._action_present: return self._action_value @@ -3721,7 +3780,7 @@ def reason(self): The reason why the user is denied the permission. Not present if the action is allowed. - :rtype: sharing.PermissionDeniedReason + :rtype: PermissionDeniedReason """ if self._reason_present: return self._reason_value @@ -3742,8 +3801,8 @@ def reason(self): self._reason_value = None self._reason_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FilePermission, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FilePermission, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FilePermission(action={!r}, allow={!r}, reason={!r})'.format( @@ -3940,8 +3999,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(FolderAction, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FolderAction, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FolderAction(%r, %r)' % (self._tag, self._value) @@ -3976,8 +4035,8 @@ def __init__(self, team_member_info, content_owner_team_info) - def _process_custom_annotations(self, annotation_type, processor): - super(FolderLinkMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FolderLinkMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FolderLinkMetadata(url={!r}, name={!r}, link_permissions={!r}, id={!r}, expires={!r}, path_lower={!r}, team_member_info={!r}, content_owner_team_info={!r})'.format( @@ -4039,7 +4098,7 @@ def action(self): """ The action that the user may wish to take on the folder. - :rtype: sharing.FolderAction + :rtype: FolderAction """ if self._action_present: return self._action_value @@ -4086,7 +4145,7 @@ def reason(self): The reason why the user is denied the permission. Not present if the action is allowed, or if no reason is available. - :rtype: sharing.PermissionDeniedReason + :rtype: PermissionDeniedReason """ if self._reason_present: return self._reason_value @@ -4107,8 +4166,8 @@ def reason(self): self._reason_value = None self._reason_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FolderPermission, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FolderPermission, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FolderPermission(action={!r}, allow={!r}, reason={!r})'.format( @@ -4188,7 +4247,7 @@ def member_policy(self): The effective policy may differ from this value if the team-wide policy is more restrictive. Present only if the folder is owned by a team. - :rtype: sharing.MemberPolicy + :rtype: MemberPolicy """ if self._member_policy_present: return self._member_policy_value @@ -4217,7 +4276,7 @@ def resolved_member_policy(self): member_policy if the team-wide policy is more restrictive than the folder policy. Present only if the folder is owned by a team. - :rtype: sharing.MemberPolicy + :rtype: MemberPolicy """ if self._resolved_member_policy_present: return self._resolved_member_policy_value @@ -4243,7 +4302,7 @@ def acl_update_policy(self): """ Who can add and remove members from this shared folder. - :rtype: sharing.AclUpdatePolicy + :rtype: AclUpdatePolicy """ if self._acl_update_policy_present: return self._acl_update_policy_value @@ -4266,7 +4325,7 @@ def shared_link_policy(self): """ Who links can be shared with. - :rtype: sharing.SharedLinkPolicy + :rtype: SharedLinkPolicy """ if self._shared_link_policy_present: return self._shared_link_policy_value @@ -4289,7 +4348,7 @@ def viewer_info_policy(self): """ Who can enable/disable viewer info for this shared folder. - :rtype: sharing.ViewerInfoPolicy + :rtype: ViewerInfoPolicy """ if self._viewer_info_policy_present: return self._viewer_info_policy_value @@ -4310,8 +4369,8 @@ def viewer_info_policy(self): self._viewer_info_policy_value = None self._viewer_info_policy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FolderPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FolderPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FolderPolicy(acl_update_policy={!r}, shared_link_policy={!r}, member_policy={!r}, resolved_member_policy={!r}, viewer_info_policy={!r})'.format( @@ -4386,7 +4445,7 @@ def actions(self): appear in the response's ``SharedFileMetadata.permissions`` field describing the actions the authenticated user can perform on the file. - :rtype: list of [sharing.FileAction] + :rtype: list of [FileAction] """ if self._actions_present: return self._actions_value @@ -4407,8 +4466,8 @@ def actions(self): self._actions_value = None self._actions_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetFileMetadataArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetFileMetadataArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetFileMetadataArg(file={!r}, actions={!r})'.format( @@ -4481,7 +4540,7 @@ def actions(self): appear in the response's ``SharedFileMetadata.permissions`` field describing the actions the authenticated user can perform on the file. - :rtype: list of [sharing.FileAction] + :rtype: list of [FileAction] """ if self._actions_present: return self._actions_value @@ -4502,8 +4561,8 @@ def actions(self): self._actions_value = None self._actions_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetFileMetadataBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetFileMetadataBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetFileMetadataBatchArg(files={!r}, actions={!r})'.format( @@ -4574,7 +4633,7 @@ def result(self): """ The result for this particular file. - :rtype: sharing.GetFileMetadataIndividualResult + :rtype: GetFileMetadataIndividualResult """ if self._result_present: return self._result_value @@ -4592,8 +4651,8 @@ def result(self): self._result_value = None self._result_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetFileMetadataBatchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetFileMetadataBatchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetFileMetadataBatchResult(file={!r}, result={!r})'.format( @@ -4622,8 +4681,8 @@ def user_error(cls, val): Create an instance of this class set to the ``user_error`` tag with value ``val``. - :param sharing.SharingUserError val: - :rtype: sharing.GetFileMetadataError + :param SharingUserError val: + :rtype: GetFileMetadataError """ return cls('user_error', val) @@ -4633,8 +4692,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharingFileAccessError val: - :rtype: sharing.GetFileMetadataError + :param SharingFileAccessError val: + :rtype: GetFileMetadataError """ return cls('access_error', val) @@ -4666,7 +4725,7 @@ def get_user_error(self): """ Only call this if :meth:`is_user_error` is true. - :rtype: sharing.SharingUserError + :rtype: SharingUserError """ if not self.is_user_error(): raise AttributeError("tag 'user_error' not set") @@ -4676,14 +4735,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharingFileAccessError + :rtype: SharingFileAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GetFileMetadataError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetFileMetadataError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetFileMetadataError(%r, %r)' % (self._tag, self._value) @@ -4696,11 +4755,10 @@ class GetFileMetadataIndividualResult(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar SharedFileMetadata sharing.GetFileMetadataIndividualResult.metadata: - The result for this file if it was successful. - :ivar SharingFileAccessError - sharing.GetFileMetadataIndividualResult.access_error: The result for - this file if it was an error. + :ivar SharedFileMetadata GetFileMetadataIndividualResult.metadata: The + result for this file if it was successful. + :ivar SharingFileAccessError GetFileMetadataIndividualResult.access_error: + The result for this file if it was an error. """ _catch_all = 'other' @@ -4713,8 +4771,8 @@ def metadata(cls, val): Create an instance of this class set to the ``metadata`` tag with value ``val``. - :param sharing.SharedFileMetadata val: - :rtype: sharing.GetFileMetadataIndividualResult + :param SharedFileMetadata val: + :rtype: GetFileMetadataIndividualResult """ return cls('metadata', val) @@ -4724,8 +4782,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharingFileAccessError val: - :rtype: sharing.GetFileMetadataIndividualResult + :param SharingFileAccessError val: + :rtype: GetFileMetadataIndividualResult """ return cls('access_error', val) @@ -4759,7 +4817,7 @@ def get_metadata(self): Only call this if :meth:`is_metadata` is true. - :rtype: sharing.SharedFileMetadata + :rtype: SharedFileMetadata """ if not self.is_metadata(): raise AttributeError("tag 'metadata' not set") @@ -4771,14 +4829,14 @@ def get_access_error(self): Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharingFileAccessError + :rtype: SharingFileAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GetFileMetadataIndividualResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetFileMetadataIndividualResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetFileMetadataIndividualResult(%r, %r)' % (self._tag, self._value) @@ -4847,7 +4905,7 @@ def actions(self): field describing the actions the authenticated user can perform on the folder. - :rtype: list of [sharing.FolderAction] + :rtype: list of [FolderAction] """ if self._actions_present: return self._actions_value @@ -4868,8 +4926,8 @@ def actions(self): self._actions_value = None self._actions_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetMetadataArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetMetadataArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetMetadataArgs(shared_folder_id={!r}, actions={!r})'.format( @@ -4890,7 +4948,8 @@ class SharedLinkError(bb.Union): :ivar sharing.SharedLinkError.shared_link_access_denied: The caller is not allowed to access this shared link. :ivar sharing.SharedLinkError.unsupported_link_type: This type of link is - not supported. + not supported; use :meth:`dropbox.dropbox.Dropbox.sharing_files` + instead. """ _catch_all = 'other' @@ -4935,8 +4994,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedLinkError(%r, %r)' % (self._tag, self._value) @@ -4964,8 +5023,8 @@ def is_shared_link_is_directory(self): """ return self._tag == 'shared_link_is_directory' - def _process_custom_annotations(self, annotation_type, processor): - super(GetSharedLinkFileError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetSharedLinkFileError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetSharedLinkFileError(%r, %r)' % (self._tag, self._value) @@ -5088,8 +5147,8 @@ def link_password(self): self._link_password_value = None self._link_password_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetSharedLinkMetadataArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetSharedLinkMetadataArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetSharedLinkMetadataArg(url={!r}, path={!r}, link_password={!r})'.format( @@ -5147,8 +5206,8 @@ def path(self): self._path_value = None self._path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetSharedLinksArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetSharedLinksArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetSharedLinksArg(path={!r})'.format( @@ -5175,7 +5234,7 @@ def path(cls, val): ``val``. :param Optional[str] val: - :rtype: sharing.GetSharedLinksError + :rtype: GetSharedLinksError """ return cls('path', val) @@ -5205,8 +5264,8 @@ def get_path(self): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GetSharedLinksError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetSharedLinksError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetSharedLinksError(%r, %r)' % (self._tag, self._value) @@ -5238,7 +5297,7 @@ def links(self): """ Shared links applicable to the path argument. - :rtype: list of [sharing.LinkMetadata] + :rtype: list of [LinkMetadata] """ if self._links_present: return self._links_value @@ -5256,8 +5315,8 @@ def links(self): self._links_value = None self._links_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetSharedLinksResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetSharedLinksResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetSharedLinksResult(links={!r})'.format( @@ -5417,8 +5476,8 @@ def same_team(self): self._same_team_value = None self._same_team_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupInfo(group_name={!r}, group_id={!r}, group_management_type={!r}, group_type={!r}, is_member={!r}, is_owner={!r}, same_team={!r}, group_external_id={!r}, member_count={!r})'.format( @@ -5491,7 +5550,7 @@ def access_type(self): The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if self._access_type_present: return self._access_type_value @@ -5515,7 +5574,7 @@ def permissions(self): The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request. - :rtype: list of [sharing.MemberPermission] + :rtype: list of [MemberPermission] """ if self._permissions_present: return self._permissions_value @@ -5585,8 +5644,8 @@ def is_inherited(self): self._is_inherited_value = None self._is_inherited_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembershipInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembershipInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembershipInfo(access_type={!r}, permissions={!r}, initials={!r}, is_inherited={!r})'.format( @@ -5633,7 +5692,7 @@ def group(self): """ The information about the membership group. - :rtype: sharing.GroupInfo + :rtype: GroupInfo """ if self._group_present: return self._group_value @@ -5651,8 +5710,8 @@ def group(self): self._group_value = None self._group_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMembershipInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMembershipInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMembershipInfo(access_type={!r}, group={!r}, permissions={!r}, initials={!r}, is_inherited={!r})'.format( @@ -5747,8 +5806,8 @@ def upsell_url(self): self._upsell_url_value = None self._upsell_url_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(InsufficientPlan, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(InsufficientPlan, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'InsufficientPlan(message={!r}, upsell_url={!r})'.format( @@ -5865,8 +5924,8 @@ def space_left(self): self._space_left_value = None self._space_left_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(InsufficientQuotaAmounts, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(InsufficientQuotaAmounts, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'InsufficientQuotaAmounts(space_needed={!r}, space_shortage={!r}, space_left={!r})'.format( @@ -5899,7 +5958,7 @@ def email(cls, val): ``val``. :param str val: - :rtype: sharing.InviteeInfo + :rtype: InviteeInfo """ return cls('email', val) @@ -5931,8 +5990,8 @@ def get_email(self): raise AttributeError("tag 'email' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(InviteeInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(InviteeInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'InviteeInfo(%r, %r)' % (self._tag, self._value) @@ -5982,7 +6041,7 @@ def invitee(self): """ Recipient of the invitation. - :rtype: sharing.InviteeInfo + :rtype: InviteeInfo """ if self._invitee_present: return self._invitee_value @@ -6005,7 +6064,7 @@ def user(self): """ The user this invitation is tied to, if available. - :rtype: sharing.UserInfo + :rtype: UserInfo """ if self._user_present: return self._user_value @@ -6026,8 +6085,8 @@ def user(self): self._user_value = None self._user_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(InviteeMembershipInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(InviteeMembershipInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'InviteeMembershipInfo(access_type={!r}, invitee={!r}, permissions={!r}, initials={!r}, is_inherited={!r}, user={!r})'.format( @@ -6051,15 +6110,15 @@ class JobError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar UnshareFolderError sharing.JobError.unshare_folder_error: Error + :ivar UnshareFolderError JobError.unshare_folder_error: Error occurred while + performing :meth:`dropbox.dropbox.Dropbox.sharing_unshare_folder` + action. + :ivar RemoveFolderMemberError JobError.remove_folder_member_error: Error occurred while performing - :meth:`dropbox.dropbox.Dropbox.sharing_unshare_folder` action. - :ivar RemoveFolderMemberError sharing.JobError.remove_folder_member_error: - Error occurred while performing :meth:`dropbox.dropbox.Dropbox.sharing_remove_folder_member` action. :ivar RelinquishFolderMembershipError - sharing.JobError.relinquish_folder_membership_error: Error occurred - while performing + JobError.relinquish_folder_membership_error: Error occurred while + performing :meth:`dropbox.dropbox.Dropbox.sharing_relinquish_folder_membership` action. """ @@ -6074,8 +6133,8 @@ def unshare_folder_error(cls, val): Create an instance of this class set to the ``unshare_folder_error`` tag with value ``val``. - :param sharing.UnshareFolderError val: - :rtype: sharing.JobError + :param UnshareFolderError val: + :rtype: JobError """ return cls('unshare_folder_error', val) @@ -6085,8 +6144,8 @@ def remove_folder_member_error(cls, val): Create an instance of this class set to the ``remove_folder_member_error`` tag with value ``val``. - :param sharing.RemoveFolderMemberError val: - :rtype: sharing.JobError + :param RemoveFolderMemberError val: + :rtype: JobError """ return cls('remove_folder_member_error', val) @@ -6096,8 +6155,8 @@ def relinquish_folder_membership_error(cls, val): Create an instance of this class set to the ``relinquish_folder_membership_error`` tag with value ``val``. - :param sharing.RelinquishFolderMembershipError val: - :rtype: sharing.JobError + :param RelinquishFolderMembershipError val: + :rtype: JobError """ return cls('relinquish_folder_membership_error', val) @@ -6140,7 +6199,7 @@ def get_unshare_folder_error(self): Only call this if :meth:`is_unshare_folder_error` is true. - :rtype: sharing.UnshareFolderError + :rtype: UnshareFolderError """ if not self.is_unshare_folder_error(): raise AttributeError("tag 'unshare_folder_error' not set") @@ -6153,7 +6212,7 @@ def get_remove_folder_member_error(self): Only call this if :meth:`is_remove_folder_member_error` is true. - :rtype: sharing.RemoveFolderMemberError + :rtype: RemoveFolderMemberError """ if not self.is_remove_folder_member_error(): raise AttributeError("tag 'remove_folder_member_error' not set") @@ -6167,14 +6226,14 @@ def get_relinquish_folder_membership_error(self): Only call this if :meth:`is_relinquish_folder_membership_error` is true. - :rtype: sharing.RelinquishFolderMembershipError + :rtype: RelinquishFolderMembershipError """ if not self.is_relinquish_folder_membership_error(): raise AttributeError("tag 'relinquish_folder_membership_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(JobError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(JobError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'JobError(%r, %r)' % (self._tag, self._value) @@ -6188,8 +6247,7 @@ class JobStatus(async_.PollResultBase): corresponding ``get_*`` method. :ivar sharing.JobStatus.complete: The asynchronous job has finished. - :ivar JobError sharing.JobStatus.failed: The asynchronous job returned an - error. + :ivar JobError JobStatus.failed: The asynchronous job returned an error. """ # Attribute is overwritten below the class definition @@ -6201,8 +6259,8 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param sharing.JobError val: - :rtype: sharing.JobStatus + :param JobError val: + :rtype: JobStatus """ return cls('failed', val) @@ -6228,20 +6286,72 @@ def get_failed(self): Only call this if :meth:`is_failed` is true. - :rtype: sharing.JobError + :rtype: JobError """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(JobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(JobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'JobStatus(%r, %r)' % (self._tag, self._value) JobStatus_validator = bv.Union(JobStatus) +class LinkAccessLevel(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 sharing.LinkAccessLevel.viewer: Users who use the link can view and + comment on the content. + :ivar sharing.LinkAccessLevel.editor: Users who use the link can edit, view + and comment on the content. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + viewer = None + # Attribute is overwritten below the class definition + editor = None + # Attribute is overwritten below the class definition + other = None + + def is_viewer(self): + """ + Check if the union tag is ``viewer``. + + :rtype: bool + """ + return self._tag == 'viewer' + + def is_editor(self): + """ + Check if the union tag is ``editor``. + + :rtype: bool + """ + return self._tag == 'editor' + + 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(LinkAccessLevel, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'LinkAccessLevel(%r, %r)' % (self._tag, self._value) + +LinkAccessLevel_validator = bv.Union(LinkAccessLevel) + class LinkAction(bb.Union): """ Actions that can be performed on a link. @@ -6333,8 +6443,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(LinkAction, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LinkAction, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LinkAction(%r, %r)' % (self._tag, self._value) @@ -6353,6 +6463,8 @@ class LinkAudience(bb.Union): merely points the user to the content, and does not grant additional rights to the user. Members of the content who use this link can only access the content with their pre-existing access rights. + :ivar sharing.LinkAudience.password: A link-specific password is required to + access the link. Login is not required. :ivar sharing.LinkAudience.members: Link is accessible only by members of the content. """ @@ -6365,6 +6477,8 @@ class LinkAudience(bb.Union): # Attribute is overwritten below the class definition no_one = None # Attribute is overwritten below the class definition + password = None + # Attribute is overwritten below the class definition members = None # Attribute is overwritten below the class definition other = None @@ -6393,6 +6507,14 @@ def is_no_one(self): """ return self._tag == 'no_one' + def is_password(self): + """ + Check if the union tag is ``password``. + + :rtype: bool + """ + return self._tag == 'password' + def is_members(self): """ Check if the union tag is ``members``. @@ -6409,8 +6531,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(LinkAudience, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LinkAudience, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LinkAudience(%r, %r)' % (self._tag, self._value) @@ -6442,7 +6564,7 @@ def set_expiry(cls, val): value ``val``. :param datetime.datetime val: - :rtype: sharing.LinkExpiry + :rtype: LinkExpiry """ return cls('set_expiry', val) @@ -6482,8 +6604,8 @@ def get_set_expiry(self): raise AttributeError("tag 'set_expiry' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(LinkExpiry, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LinkExpiry, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LinkExpiry(%r, %r)' % (self._tag, self._value) @@ -6515,7 +6637,7 @@ def set_password(cls, val): value ``val``. :param str val: - :rtype: sharing.LinkPassword + :rtype: LinkPassword """ return cls('set_password', val) @@ -6555,8 +6677,8 @@ def get_set_password(self): raise AttributeError("tag 'set_password' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(LinkPassword, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LinkPassword, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LinkPassword(%r, %r)' % (self._tag, self._value) @@ -6599,7 +6721,7 @@ def __init__(self, @property def action(self): """ - :rtype: sharing.LinkAction + :rtype: LinkAction """ if self._action_present: return self._action_value @@ -6641,7 +6763,7 @@ def allow(self): @property def reason(self): """ - :rtype: sharing.PermissionDeniedReason + :rtype: PermissionDeniedReason """ if self._reason_present: return self._reason_value @@ -6662,8 +6784,8 @@ def reason(self): self._reason_value = None self._reason_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(LinkPermission, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LinkPermission, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LinkPermission(action={!r}, allow={!r}, reason={!r})'.format( @@ -6681,17 +6803,31 @@ class LinkPermissions(bb.Struct): case the link's owner is part of a team) and the shared folder (in case the linked file is part of a shared folder). This field is shown only if the caller has access to this info (the link's owner always has access - to this data). + to this data). For some links, an effective_audience value is returned + instead. :ivar sharing.LinkPermissions.requested_visibility: The shared link's requested visibility. This can be overridden by the team and shared folder policies. The final visibility, after considering these policies, can be found in ``resolved_visibility``. This is shown only if the - caller is the link's owner. + caller is the link's owner and resolved_visibility is returned instead + of effective_audience. :ivar sharing.LinkPermissions.can_revoke: Whether the caller can revoke the shared link. :ivar sharing.LinkPermissions.revoke_failure_reason: The failure reason for revoking the link. This field will only be present if the ``can_revoke`` is ``False``. + :ivar sharing.LinkPermissions.effective_audience: The type of audience who + can benefit from the access level specified by the `link_access_level` + field. + :ivar sharing.LinkPermissions.link_access_level: The access level that the + link will grant to its users. A link can grant additional rights to a + user beyond their current access level. For example, if a user was + invited as a viewer to a file, and then opens a link with + `link_access_level` set to `editor`, then they will gain editor + privileges. The `link_access_level` is a property of the link, and does + not depend on who is calling this API. In particular, + `link_access_level` does not take into account the API caller's current + permissions to the content. """ __slots__ = [ @@ -6703,6 +6839,10 @@ class LinkPermissions(bb.Struct): '_can_revoke_present', '_revoke_failure_reason_value', '_revoke_failure_reason_present', + '_effective_audience_value', + '_effective_audience_present', + '_link_access_level_value', + '_link_access_level_present', ] _has_required_fields = True @@ -6711,7 +6851,9 @@ def __init__(self, can_revoke=None, resolved_visibility=None, requested_visibility=None, - revoke_failure_reason=None): + revoke_failure_reason=None, + effective_audience=None, + link_access_level=None): self._resolved_visibility_value = None self._resolved_visibility_present = False self._requested_visibility_value = None @@ -6720,6 +6862,10 @@ def __init__(self, self._can_revoke_present = False self._revoke_failure_reason_value = None self._revoke_failure_reason_present = False + self._effective_audience_value = None + self._effective_audience_present = False + self._link_access_level_value = None + self._link_access_level_present = False if resolved_visibility is not None: self.resolved_visibility = resolved_visibility if requested_visibility is not None: @@ -6728,6 +6874,10 @@ def __init__(self, self.can_revoke = can_revoke if revoke_failure_reason is not None: self.revoke_failure_reason = revoke_failure_reason + if effective_audience is not None: + self.effective_audience = effective_audience + if link_access_level is not None: + self.link_access_level = link_access_level @property def resolved_visibility(self): @@ -6736,9 +6886,10 @@ def resolved_visibility(self): policies of the the team (in case the link's owner is part of a team) and the shared folder (in case the linked file is part of a shared folder). This field is shown only if the caller has access to this info - (the link's owner always has access to this data). + (the link's owner always has access to this data). For some links, an + effective_audience value is returned instead. - :rtype: sharing.ResolvedVisibility + :rtype: ResolvedVisibility """ if self._resolved_visibility_present: return self._resolved_visibility_value @@ -6765,9 +6916,10 @@ def requested_visibility(self): The shared link's requested visibility. This can be overridden by the team and shared folder policies. The final visibility, after considering these policies, can be found in ``resolved_visibility``. This is shown - only if the caller is the link's owner. + only if the caller is the link's owner and resolved_visibility is + returned instead of effective_audience. - :rtype: sharing.RequestedVisibility + :rtype: RequestedVisibility """ if self._requested_visibility_present: return self._requested_visibility_value @@ -6817,7 +6969,7 @@ def revoke_failure_reason(self): The failure reason for revoking the link. This field will only be present if the ``can_revoke`` is ``False``. - :rtype: sharing.SharedLinkAccessFailureReason + :rtype: SharedLinkAccessFailureReason """ if self._revoke_failure_reason_present: return self._revoke_failure_reason_value @@ -6838,15 +6990,77 @@ def revoke_failure_reason(self): self._revoke_failure_reason_value = None self._revoke_failure_reason_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(LinkPermissions, self)._process_custom_annotations(annotation_type, processor) + @property + def effective_audience(self): + """ + The type of audience who can benefit from the access level specified by + the `link_access_level` field. + + :rtype: LinkAudience + """ + if self._effective_audience_present: + return self._effective_audience_value + else: + return None + + @effective_audience.setter + def effective_audience(self, val): + if val is None: + del self.effective_audience + return + self._effective_audience_validator.validate_type_only(val) + self._effective_audience_value = val + self._effective_audience_present = True + + @effective_audience.deleter + def effective_audience(self): + self._effective_audience_value = None + self._effective_audience_present = False + + @property + def link_access_level(self): + """ + The access level that the link will grant to its users. A link can grant + additional rights to a user beyond their current access level. For + example, if a user was invited as a viewer to a file, and then opens a + link with `link_access_level` set to `editor`, then they will gain + editor privileges. The `link_access_level` is a property of the link, + and does not depend on who is calling this API. In particular, + `link_access_level` does not take into account the API caller's current + permissions to the content. + + :rtype: LinkAccessLevel + """ + if self._link_access_level_present: + return self._link_access_level_value + else: + return None + + @link_access_level.setter + def link_access_level(self, val): + if val is None: + del self.link_access_level + return + self._link_access_level_validator.validate_type_only(val) + self._link_access_level_value = val + self._link_access_level_present = True + + @link_access_level.deleter + def link_access_level(self): + self._link_access_level_value = None + self._link_access_level_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LinkPermissions, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'LinkPermissions(can_revoke={!r}, resolved_visibility={!r}, requested_visibility={!r}, revoke_failure_reason={!r})'.format( + return 'LinkPermissions(can_revoke={!r}, resolved_visibility={!r}, requested_visibility={!r}, revoke_failure_reason={!r}, effective_audience={!r}, link_access_level={!r})'.format( self._can_revoke_value, self._resolved_visibility_value, self._requested_visibility_value, self._revoke_failure_reason_value, + self._effective_audience_value, + self._link_access_level_value, ) LinkPermissions_validator = bv.Struct(LinkPermissions) @@ -6904,7 +7118,7 @@ def access_level(self): The access level on the link for this file. Currently, it only accepts 'viewer' and 'viewer_no_comment'. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if self._access_level_present: return self._access_level_value @@ -6930,7 +7144,7 @@ def audience(self): """ The type of audience on the link for this file. - :rtype: sharing.LinkAudience + :rtype: LinkAudience """ if self._audience_present: return self._audience_value @@ -6956,7 +7170,7 @@ def expiry(self): """ An expiry timestamp to set on a link. - :rtype: sharing.LinkExpiry + :rtype: LinkExpiry """ if self._expiry_present: return self._expiry_value @@ -6982,7 +7196,7 @@ def password(self): """ The password for the link. - :rtype: sharing.LinkPassword + :rtype: LinkPassword """ if self._password_present: return self._password_value @@ -7003,8 +7217,8 @@ def password(self): self._password_value = None self._password_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(LinkSettings, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LinkSettings, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'LinkSettings(access_level={!r}, audience={!r}, expiry={!r}, password={!r})'.format( @@ -7093,7 +7307,7 @@ def actions(self): """ The actions for which to return permissions on a member. - :rtype: list of [sharing.MemberAction] + :rtype: list of [MemberAction] """ if self._actions_present: return self._actions_value @@ -7162,8 +7376,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFileMembersArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileMembersArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFileMembersArg(file={!r}, actions={!r}, include_inherited={!r}, limit={!r})'.format( @@ -7254,8 +7468,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFileMembersBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileMembersBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFileMembersBatchArg(files={!r}, limit={!r})'.format( @@ -7325,7 +7539,7 @@ def result(self): """ The result for this particular file. - :rtype: sharing.ListFileMembersIndividualResult + :rtype: ListFileMembersIndividualResult """ if self._result_present: return self._result_value @@ -7343,8 +7557,8 @@ def result(self): self._result_value = None self._result_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFileMembersBatchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileMembersBatchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFileMembersBatchResult(file={!r}, result={!r})'.format( @@ -7405,8 +7619,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFileMembersContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileMembersContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFileMembersContinueArg(cursor={!r})'.format( @@ -7440,8 +7654,8 @@ def user_error(cls, val): Create an instance of this class set to the ``user_error`` tag with value ``val``. - :param sharing.SharingUserError val: - :rtype: sharing.ListFileMembersContinueError + :param SharingUserError val: + :rtype: ListFileMembersContinueError """ return cls('user_error', val) @@ -7451,8 +7665,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharingFileAccessError val: - :rtype: sharing.ListFileMembersContinueError + :param SharingFileAccessError val: + :rtype: ListFileMembersContinueError """ return cls('access_error', val) @@ -7492,7 +7706,7 @@ def get_user_error(self): """ Only call this if :meth:`is_user_error` is true. - :rtype: sharing.SharingUserError + :rtype: SharingUserError """ if not self.is_user_error(): raise AttributeError("tag 'user_error' not set") @@ -7502,14 +7716,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharingFileAccessError + :rtype: SharingFileAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListFileMembersContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileMembersContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFileMembersContinueError(%r, %r)' % (self._tag, self._value) @@ -7550,7 +7764,7 @@ def members(self): """ A list of members on this file. - :rtype: sharing.SharedFileMembers + :rtype: SharedFileMembers """ if self._members_present: return self._members_value @@ -7592,8 +7806,8 @@ def member_count(self): self._member_count_value = None self._member_count_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFileMembersCountResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileMembersCountResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFileMembersCountResult(members={!r}, member_count={!r})'.format( @@ -7622,8 +7836,8 @@ def user_error(cls, val): Create an instance of this class set to the ``user_error`` tag with value ``val``. - :param sharing.SharingUserError val: - :rtype: sharing.ListFileMembersError + :param SharingUserError val: + :rtype: ListFileMembersError """ return cls('user_error', val) @@ -7633,8 +7847,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharingFileAccessError val: - :rtype: sharing.ListFileMembersError + :param SharingFileAccessError val: + :rtype: ListFileMembersError """ return cls('access_error', val) @@ -7666,7 +7880,7 @@ def get_user_error(self): """ Only call this if :meth:`is_user_error` is true. - :rtype: sharing.SharingUserError + :rtype: SharingUserError """ if not self.is_user_error(): raise AttributeError("tag 'user_error' not set") @@ -7676,14 +7890,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharingFileAccessError + :rtype: SharingFileAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListFileMembersError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileMembersError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFileMembersError(%r, %r)' % (self._tag, self._value) @@ -7696,12 +7910,10 @@ class ListFileMembersIndividualResult(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar ListFileMembersCountResult - sharing.ListFileMembersIndividualResult.result: The results of the query - for this file if it was successful. - :ivar SharingFileAccessError - sharing.ListFileMembersIndividualResult.access_error: The result of the - query for this file if it was an error. + :ivar ListFileMembersCountResult ListFileMembersIndividualResult.result: The + results of the query for this file if it was successful. + :ivar SharingFileAccessError ListFileMembersIndividualResult.access_error: + The result of the query for this file if it was an error. """ _catch_all = 'other' @@ -7714,8 +7926,8 @@ def result(cls, val): Create an instance of this class set to the ``result`` tag with value ``val``. - :param sharing.ListFileMembersCountResult val: - :rtype: sharing.ListFileMembersIndividualResult + :param ListFileMembersCountResult val: + :rtype: ListFileMembersIndividualResult """ return cls('result', val) @@ -7725,8 +7937,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharingFileAccessError val: - :rtype: sharing.ListFileMembersIndividualResult + :param SharingFileAccessError val: + :rtype: ListFileMembersIndividualResult """ return cls('access_error', val) @@ -7760,7 +7972,7 @@ def get_result(self): Only call this if :meth:`is_result` is true. - :rtype: sharing.ListFileMembersCountResult + :rtype: ListFileMembersCountResult """ if not self.is_result(): raise AttributeError("tag 'result' not set") @@ -7772,14 +7984,14 @@ def get_access_error(self): Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharingFileAccessError + :rtype: SharingFileAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListFileMembersIndividualResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFileMembersIndividualResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFileMembersIndividualResult(%r, %r)' % (self._tag, self._value) @@ -7850,7 +8062,7 @@ def actions(self): appear in the response's ``SharedFileMetadata.permissions`` field describing the actions the authenticated user can perform on the file. - :rtype: list of [sharing.FileAction] + :rtype: list of [FileAction] """ if self._actions_present: return self._actions_value @@ -7871,8 +8083,8 @@ def actions(self): self._actions_value = None self._actions_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFilesArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFilesArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFilesArg(limit={!r}, actions={!r})'.format( @@ -7928,8 +8140,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFilesContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFilesContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFilesContinueArg(cursor={!r})'.format( @@ -7947,8 +8159,8 @@ class ListFilesContinueError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar SharingUserError sharing.ListFilesContinueError.user_error: User - account had a problem. + :ivar SharingUserError ListFilesContinueError.user_error: User account had a + problem. :ivar sharing.ListFilesContinueError.invalid_cursor: ``ListFilesContinueArg.cursor`` is invalid. """ @@ -7965,8 +8177,8 @@ def user_error(cls, val): Create an instance of this class set to the ``user_error`` tag with value ``val``. - :param sharing.SharingUserError val: - :rtype: sharing.ListFilesContinueError + :param SharingUserError val: + :rtype: ListFilesContinueError """ return cls('user_error', val) @@ -8000,14 +8212,14 @@ def get_user_error(self): Only call this if :meth:`is_user_error` is true. - :rtype: sharing.SharingUserError + :rtype: SharingUserError """ if not self.is_user_error(): raise AttributeError("tag 'user_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListFilesContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFilesContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFilesContinueError(%r, %r)' % (self._tag, self._value) @@ -8051,7 +8263,7 @@ def entries(self): """ Information about the files shared with current user. - :rtype: list of [sharing.SharedFileMetadata] + :rtype: list of [SharedFileMetadata] """ if self._entries_present: return self._entries_value @@ -8095,8 +8307,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFilesResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFilesResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFilesResult(entries={!r}, cursor={!r})'.format( @@ -8144,7 +8356,7 @@ def actions(self): boolean value ``MemberPermission.allow`` that describes whether the current user can perform the MemberAction on the member. - :rtype: list of [sharing.MemberAction] + :rtype: list of [MemberAction] """ if self._actions_present: return self._actions_value @@ -8189,8 +8401,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderMembersCursorArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderMembersCursorArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderMembersCursorArg(actions={!r}, limit={!r})'.format( @@ -8247,8 +8459,8 @@ def shared_folder_id(self): self._shared_folder_id_value = None self._shared_folder_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderMembersArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderMembersArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderMembersArgs(shared_folder_id={!r}, actions={!r}, limit={!r})'.format( @@ -8306,8 +8518,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderMembersContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderMembersContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderMembersContinueArg(cursor={!r})'.format( @@ -8338,8 +8550,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.ListFolderMembersContinueError + :param SharedFolderAccessError val: + :rtype: ListFolderMembersContinueError """ return cls('access_error', val) @@ -8371,14 +8583,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListFolderMembersContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFolderMembersContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFolderMembersContinueError(%r, %r)' % (self._tag, self._value) @@ -8447,7 +8659,7 @@ def actions(self): field describing the actions the authenticated user can perform on the folder. - :rtype: list of [sharing.FolderAction] + :rtype: list of [FolderAction] """ if self._actions_present: return self._actions_value @@ -8468,8 +8680,8 @@ def actions(self): self._actions_value = None self._actions_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFoldersArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFoldersArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFoldersArgs(limit={!r}, actions={!r})'.format( @@ -8523,8 +8735,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFoldersContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFoldersContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFoldersContinueArg(cursor={!r})'.format( @@ -8565,8 +8777,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListFoldersContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFoldersContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFoldersContinueError(%r, %r)' % (self._tag, self._value) @@ -8616,7 +8828,7 @@ def entries(self): """ List of all shared folders the authenticated user has access to. - :rtype: list of [sharing.SharedFolderMetadata] + :rtype: list of [SharedFolderMetadata] """ if self._entries_present: return self._entries_value @@ -8664,8 +8876,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListFoldersResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListFoldersResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListFoldersResult(entries={!r}, cursor={!r})'.format( @@ -8794,8 +9006,8 @@ def direct_only(self): self._direct_only_value = None self._direct_only_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListSharedLinksArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListSharedLinksArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListSharedLinksArg(path={!r}, cursor={!r}, direct_only={!r})'.format( @@ -8831,7 +9043,7 @@ def path(cls, val): ``val``. :param files.LookupError val: - :rtype: sharing.ListSharedLinksError + :rtype: ListSharedLinksError """ return cls('path', val) @@ -8869,8 +9081,8 @@ def get_path(self): raise AttributeError("tag 'path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ListSharedLinksError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListSharedLinksError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListSharedLinksError(%r, %r)' % (self._tag, self._value) @@ -8923,7 +9135,7 @@ def links(self): """ Shared links applicable to the path argument. - :rtype: list of [sharing.SharedLinkMetadata] + :rtype: list of [SharedLinkMetadata] """ if self._links_present: return self._links_value @@ -8995,8 +9207,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListSharedLinksResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListSharedLinksResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListSharedLinksResult(links={!r}, has_more={!r}, cursor={!r})'.format( @@ -9056,7 +9268,7 @@ def access_level(self): The member still has this level of access to the content through a parent folder. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if self._access_level_present: return self._access_level_value @@ -9111,7 +9323,7 @@ def access_details(self): the user has access to the first parent folder where the member gains access. - :rtype: list of [sharing.ParentFolderAccessInfo] + :rtype: list of [ParentFolderAccessInfo] """ if self._access_details_present: return self._access_details_value @@ -9132,8 +9344,8 @@ def access_details(self): self._access_details_value = None self._access_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberAccessLevelResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberAccessLevelResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberAccessLevelResult(access_level={!r}, warning={!r}, access_details={!r})'.format( @@ -9237,8 +9449,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MemberAction, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberAction, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberAction(%r, %r)' % (self._tag, self._value) @@ -9290,7 +9502,7 @@ def action(self): """ The action that the user may wish to take on the member. - :rtype: sharing.MemberAction + :rtype: MemberAction """ if self._action_present: return self._action_value @@ -9337,7 +9549,7 @@ def reason(self): The reason why the user is denied the permission. Not present if the action is allowed. - :rtype: sharing.PermissionDeniedReason + :rtype: PermissionDeniedReason """ if self._reason_present: return self._reason_value @@ -9358,8 +9570,8 @@ def reason(self): self._reason_value = None self._reason_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberPermission, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberPermission, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberPermission(action={!r}, allow={!r}, reason={!r})'.format( @@ -9415,8 +9627,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MemberPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberPolicy(%r, %r)' % (self._tag, self._value) @@ -9447,7 +9659,7 @@ def dropbox_id(cls, val): value ``val``. :param str val: - :rtype: sharing.MemberSelector + :rtype: MemberSelector """ return cls('dropbox_id', val) @@ -9458,7 +9670,7 @@ def email(cls, val): ``val``. :param str val: - :rtype: sharing.MemberSelector + :rtype: MemberSelector """ return cls('email', val) @@ -9510,8 +9722,8 @@ def get_email(self): raise AttributeError("tag 'email' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSelector, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSelector, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberSelector(%r, %r)' % (self._tag, self._value) @@ -9584,7 +9796,7 @@ def settings(self): """ Set of settings for the shared link. - :rtype: sharing.SharedLinkSettings + :rtype: SharedLinkSettings """ if self._settings_present: return self._settings_value @@ -9625,8 +9837,8 @@ def remove_expiration(self): self._remove_expiration_value = None self._remove_expiration_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ModifySharedLinkSettingsArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ModifySharedLinkSettingsArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ModifySharedLinkSettingsArgs(url={!r}, settings={!r}, remove_expiration={!r})'.format( @@ -9643,9 +9855,8 @@ class ModifySharedLinkSettingsError(SharedLinkError): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar SharedLinkSettingsError - sharing.ModifySharedLinkSettingsError.settings_error: There is an error - with the given settings. + :ivar SharedLinkSettingsError ModifySharedLinkSettingsError.settings_error: + There is an error with the given settings. :ivar sharing.ModifySharedLinkSettingsError.email_not_verified: The caller's email should be verified. """ @@ -9659,8 +9870,8 @@ def settings_error(cls, val): Create an instance of this class set to the ``settings_error`` tag with value ``val``. - :param sharing.SharedLinkSettingsError val: - :rtype: sharing.ModifySharedLinkSettingsError + :param SharedLinkSettingsError val: + :rtype: ModifySharedLinkSettingsError """ return cls('settings_error', val) @@ -9686,14 +9897,14 @@ def get_settings_error(self): Only call this if :meth:`is_settings_error` is true. - :rtype: sharing.SharedLinkSettingsError + :rtype: SharedLinkSettingsError """ if not self.is_settings_error(): raise AttributeError("tag 'settings_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ModifySharedLinkSettingsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ModifySharedLinkSettingsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ModifySharedLinkSettingsError(%r, %r)' % (self._tag, self._value) @@ -9743,8 +9954,8 @@ def shared_folder_id(self): self._shared_folder_id_value = None self._shared_folder_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MountFolderArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MountFolderArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MountFolderArg(shared_folder_id={!r})'.format( @@ -9761,8 +9972,8 @@ class MountFolderError(bb.Union): :ivar sharing.MountFolderError.inside_shared_folder: Mounting would cause a shared folder to be inside another, which is disallowed. - :ivar InsufficientQuotaAmounts sharing.MountFolderError.insufficient_quota: - The current user does not have enough space to mount the shared folder. + :ivar InsufficientQuotaAmounts MountFolderError.insufficient_quota: The + current user does not have enough space to mount the shared folder. :ivar sharing.MountFolderError.already_mounted: The shared folder is already mounted. :ivar sharing.MountFolderError.no_permission: The current user does not have @@ -9790,8 +10001,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.MountFolderError + :param SharedFolderAccessError val: + :rtype: MountFolderError """ return cls('access_error', val) @@ -9801,8 +10012,8 @@ def insufficient_quota(cls, val): Create an instance of this class set to the ``insufficient_quota`` tag with value ``val``. - :param sharing.InsufficientQuotaAmounts val: - :rtype: sharing.MountFolderError + :param InsufficientQuotaAmounts val: + :rtype: MountFolderError """ return cls('insufficient_quota', val) @@ -9866,7 +10077,7 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") @@ -9878,14 +10089,14 @@ def get_insufficient_quota(self): Only call this if :meth:`is_insufficient_quota` is true. - :rtype: sharing.InsufficientQuotaAmounts + :rtype: InsufficientQuotaAmounts """ if not self.is_insufficient_quota(): raise AttributeError("tag 'insufficient_quota' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(MountFolderError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MountFolderError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MountFolderError(%r, %r)' % (self._tag, self._value) @@ -9992,7 +10203,7 @@ def permissions(self): """ The user's permissions for the parent shared folder. - :rtype: list of [sharing.MemberPermission] + :rtype: list of [MemberPermission] """ if self._permissions_present: return self._permissions_value @@ -10034,8 +10245,8 @@ def path(self): self._path_value = None self._path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ParentFolderAccessInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ParentFolderAccessInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ParentFolderAccessInfo(folder_name={!r}, shared_folder_id={!r}, permissions={!r}, path={!r})'.format( @@ -10097,8 +10308,8 @@ def path(self): self._path_value = None self._path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PathLinkMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PathLinkMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PathLinkMetadata(url={!r}, visibility={!r}, path={!r}, expires={!r})'.format( @@ -10145,8 +10356,8 @@ def is_folder(self): """ return self._tag == 'folder' - def _process_custom_annotations(self, annotation_type, processor): - super(PendingUploadMode, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PendingUploadMode, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PendingUploadMode(%r, %r)' % (self._tag, self._value) @@ -10229,8 +10440,8 @@ def insufficient_plan(cls, val): Create an instance of this class set to the ``insufficient_plan`` tag with value ``val``. - :param sharing.InsufficientPlan val: - :rtype: sharing.PermissionDeniedReason + :param InsufficientPlan val: + :rtype: PermissionDeniedReason """ return cls('insufficient_plan', val) @@ -10366,14 +10577,14 @@ def get_insufficient_plan(self): """ Only call this if :meth:`is_insufficient_plan` is true. - :rtype: sharing.InsufficientPlan + :rtype: InsufficientPlan """ if not self.is_insufficient_plan(): raise AttributeError("tag 'insufficient_plan' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(PermissionDeniedReason, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PermissionDeniedReason, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PermissionDeniedReason(%r, %r)' % (self._tag, self._value) @@ -10422,8 +10633,8 @@ def file(self): self._file_value = None self._file_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelinquishFileMembershipArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelinquishFileMembershipArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelinquishFileMembershipArg(file={!r})'.format( @@ -10459,8 +10670,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharingFileAccessError val: - :rtype: sharing.RelinquishFileMembershipError + :param SharingFileAccessError val: + :rtype: RelinquishFileMembershipError """ return cls('access_error', val) @@ -10500,14 +10711,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharingFileAccessError + :rtype: SharingFileAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RelinquishFileMembershipError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelinquishFileMembershipError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelinquishFileMembershipError(%r, %r)' % (self._tag, self._value) @@ -10589,8 +10800,8 @@ def leave_a_copy(self): self._leave_a_copy_value = None self._leave_a_copy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelinquishFolderMembershipArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelinquishFolderMembershipArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelinquishFolderMembershipArg(shared_folder_id={!r}, leave_a_copy={!r})'.format( @@ -10646,8 +10857,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.RelinquishFolderMembershipError + :param SharedFolderAccessError val: + :rtype: RelinquishFolderMembershipError """ return cls('access_error', val) @@ -10719,14 +10930,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RelinquishFolderMembershipError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelinquishFolderMembershipError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RelinquishFolderMembershipError(%r, %r)' % (self._tag, self._value) @@ -10795,7 +11006,7 @@ def member(self): specified, it may result in the removal of a user (not an invitee) if the user's main account corresponds to that email address. - :rtype: sharing.MemberSelector + :rtype: MemberSelector """ if self._member_present: return self._member_value @@ -10813,8 +11024,8 @@ def member(self): self._member_value = None self._member_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RemoveFileMemberArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemoveFileMemberArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemoveFileMemberArg(file={!r}, member={!r})'.format( @@ -10832,11 +11043,10 @@ class RemoveFileMemberError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar MemberAccessLevelResult - sharing.RemoveFileMemberError.no_explicit_access: This member does not - have explicit access to the file and therefore cannot be removed. The - return value is the access that a user might have to the file from a - parent folder. + :ivar MemberAccessLevelResult RemoveFileMemberError.no_explicit_access: This + member does not have explicit access to the file and therefore cannot be + removed. The return value is the access that a user might have to the + file from a parent folder. """ _catch_all = 'other' @@ -10849,8 +11059,8 @@ def user_error(cls, val): Create an instance of this class set to the ``user_error`` tag with value ``val``. - :param sharing.SharingUserError val: - :rtype: sharing.RemoveFileMemberError + :param SharingUserError val: + :rtype: RemoveFileMemberError """ return cls('user_error', val) @@ -10860,8 +11070,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharingFileAccessError val: - :rtype: sharing.RemoveFileMemberError + :param SharingFileAccessError val: + :rtype: RemoveFileMemberError """ return cls('access_error', val) @@ -10871,8 +11081,8 @@ def no_explicit_access(cls, val): Create an instance of this class set to the ``no_explicit_access`` tag with value ``val``. - :param sharing.MemberAccessLevelResult val: - :rtype: sharing.RemoveFileMemberError + :param MemberAccessLevelResult val: + :rtype: RemoveFileMemberError """ return cls('no_explicit_access', val) @@ -10912,7 +11122,7 @@ def get_user_error(self): """ Only call this if :meth:`is_user_error` is true. - :rtype: sharing.SharingUserError + :rtype: SharingUserError """ if not self.is_user_error(): raise AttributeError("tag 'user_error' not set") @@ -10922,7 +11132,7 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharingFileAccessError + :rtype: SharingFileAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") @@ -10936,14 +11146,14 @@ def get_no_explicit_access(self): Only call this if :meth:`is_no_explicit_access` is true. - :rtype: sharing.MemberAccessLevelResult + :rtype: MemberAccessLevelResult """ if not self.is_no_explicit_access(): raise AttributeError("tag 'no_explicit_access' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RemoveFileMemberError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemoveFileMemberError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemoveFileMemberError(%r, %r)' % (self._tag, self._value) @@ -11018,7 +11228,7 @@ def member(self): """ The member to remove from the folder. - :rtype: sharing.MemberSelector + :rtype: MemberSelector """ if self._member_present: return self._member_value @@ -11061,8 +11271,8 @@ def leave_a_copy(self): self._leave_a_copy_value = None self._leave_a_copy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RemoveFolderMemberArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemoveFolderMemberArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemoveFolderMemberArg(shared_folder_id={!r}, member={!r}, leave_a_copy={!r})'.format( @@ -11113,8 +11323,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.RemoveFolderMemberError + :param SharedFolderAccessError val: + :rtype: RemoveFolderMemberError """ return cls('access_error', val) @@ -11124,8 +11334,8 @@ def member_error(cls, val): Create an instance of this class set to the ``member_error`` tag with value ``val``. - :param sharing.SharedFolderMemberError val: - :rtype: sharing.RemoveFolderMemberError + :param SharedFolderMemberError val: + :rtype: RemoveFolderMemberError """ return cls('member_error', val) @@ -11197,7 +11407,7 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") @@ -11207,14 +11417,14 @@ def get_member_error(self): """ Only call this if :meth:`is_member_error` is true. - :rtype: sharing.SharedFolderMemberError + :rtype: SharedFolderMemberError """ if not self.is_member_error(): raise AttributeError("tag 'member_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RemoveFolderMemberError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemoveFolderMemberError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemoveFolderMemberError(%r, %r)' % (self._tag, self._value) @@ -11227,9 +11437,9 @@ class RemoveMemberJobStatus(async_.PollResultBase): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar MemberAccessLevelResult sharing.RemoveMemberJobStatus.complete: - Removing the folder member has finished. The value is information about - whether the member has another form of access. + :ivar MemberAccessLevelResult RemoveMemberJobStatus.complete: Removing the + folder member has finished. The value is information about whether the + member has another form of access. """ @classmethod @@ -11238,8 +11448,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param sharing.MemberAccessLevelResult val: - :rtype: sharing.RemoveMemberJobStatus + :param MemberAccessLevelResult val: + :rtype: RemoveMemberJobStatus """ return cls('complete', val) @@ -11249,8 +11459,8 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param sharing.RemoveFolderMemberError val: - :rtype: sharing.RemoveMemberJobStatus + :param RemoveFolderMemberError val: + :rtype: RemoveMemberJobStatus """ return cls('failed', val) @@ -11277,7 +11487,7 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: sharing.MemberAccessLevelResult + :rtype: MemberAccessLevelResult """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") @@ -11287,20 +11497,84 @@ def get_failed(self): """ Only call this if :meth:`is_failed` is true. - :rtype: sharing.RemoveFolderMemberError + :rtype: RemoveFolderMemberError """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RemoveMemberJobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemoveMemberJobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemoveMemberJobStatus(%r, %r)' % (self._tag, self._value) RemoveMemberJobStatus_validator = bv.Union(RemoveMemberJobStatus) +class RequestedLinkAccessLevel(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 sharing.RequestedLinkAccessLevel.viewer: Users who use the link can + view and comment on the content. + :ivar sharing.RequestedLinkAccessLevel.editor: Users who use the link can + edit, view and comment on the content. + :ivar sharing.RequestedLinkAccessLevel.max: Request for the maximum access + level you can set the link to. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + viewer = None + # Attribute is overwritten below the class definition + editor = None + # Attribute is overwritten below the class definition + max = None + # Attribute is overwritten below the class definition + other = None + + def is_viewer(self): + """ + Check if the union tag is ``viewer``. + + :rtype: bool + """ + return self._tag == 'viewer' + + def is_editor(self): + """ + Check if the union tag is ``editor``. + + :rtype: bool + """ + return self._tag == 'editor' + + def is_max(self): + """ + Check if the union tag is ``max``. + + :rtype: bool + """ + return self._tag == 'max' + + 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(RequestedLinkAccessLevel, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'RequestedLinkAccessLevel(%r, %r)' % (self._tag, self._value) + +RequestedLinkAccessLevel_validator = bv.Union(RequestedLinkAccessLevel) + class RequestedVisibility(bb.Union): """ The access permission that can be requested by the caller for the shared @@ -11353,8 +11627,8 @@ def is_password(self): """ return self._tag == 'password' - def _process_custom_annotations(self, annotation_type, processor): - super(RequestedVisibility, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RequestedVisibility, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RequestedVisibility(%r, %r)' % (self._tag, self._value) @@ -11412,8 +11686,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ResolvedVisibility, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ResolvedVisibility, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ResolvedVisibility(%r, %r)' % (self._tag, self._value) @@ -11462,8 +11736,8 @@ def url(self): self._url_value = None self._url_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeSharedLinkArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeSharedLinkArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeSharedLinkArg(url={!r})'.format( @@ -11493,8 +11767,8 @@ def is_shared_link_malformed(self): """ return self._tag == 'shared_link_malformed' - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeSharedLinkError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeSharedLinkError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeSharedLinkError(%r, %r)' % (self._tag, self._value) @@ -11535,7 +11809,7 @@ def access_inheritance(self): """ The access inheritance settings for the folder. - :rtype: sharing.AccessInheritance + :rtype: AccessInheritance """ if self._access_inheritance_present: return self._access_inheritance_value @@ -11576,8 +11850,8 @@ def shared_folder_id(self): self._shared_folder_id_value = None self._shared_folder_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SetAccessInheritanceArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SetAccessInheritanceArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SetAccessInheritanceArg(shared_folder_id={!r}, access_inheritance={!r})'.format( @@ -11593,9 +11867,8 @@ class SetAccessInheritanceError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar SharedFolderAccessError - sharing.SetAccessInheritanceError.access_error: Unable to access shared - folder. + :ivar SharedFolderAccessError SetAccessInheritanceError.access_error: Unable + to access shared folder. :ivar sharing.SetAccessInheritanceError.no_permission: The current user does not have permission to perform this action. """ @@ -11612,8 +11885,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.SetAccessInheritanceError + :param SharedFolderAccessError val: + :rtype: SetAccessInheritanceError """ return cls('access_error', val) @@ -11647,14 +11920,14 @@ def get_access_error(self): Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SetAccessInheritanceError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SetAccessInheritanceError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SetAccessInheritanceError(%r, %r)' % (self._tag, self._value) @@ -11742,7 +12015,7 @@ def acl_update_policy(self): """ Who can add and remove members of this shared folder. - :rtype: sharing.AclUpdatePolicy + :rtype: AclUpdatePolicy """ if self._acl_update_policy_present: return self._acl_update_policy_value @@ -11792,7 +12065,7 @@ def member_policy(self): Who can be a member of this shared folder. Only applicable if the current user is on a team. - :rtype: sharing.MemberPolicy + :rtype: MemberPolicy """ if self._member_policy_present: return self._member_policy_value @@ -11844,7 +12117,7 @@ def shared_link_policy(self): shared folder. The current user must be on a team to set this policy to ``SharedLinkPolicy.members``. - :rtype: sharing.SharedLinkPolicy + :rtype: SharedLinkPolicy """ if self._shared_link_policy_present: return self._shared_link_policy_value @@ -11870,7 +12143,7 @@ def viewer_info_policy(self): """ Who can enable/disable viewer info for this shared folder. - :rtype: sharing.ViewerInfoPolicy + :rtype: ViewerInfoPolicy """ if self._viewer_info_policy_present: return self._viewer_info_policy_value @@ -11896,7 +12169,7 @@ def access_inheritance(self): """ The access inheritance settings for the folder. - :rtype: sharing.AccessInheritance + :rtype: AccessInheritance """ if self._access_inheritance_present: return self._access_inheritance_value @@ -11914,8 +12187,8 @@ def access_inheritance(self): self._access_inheritance_value = None self._access_inheritance_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShareFolderArgBase, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShareFolderArgBase, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ShareFolderArgBase(path={!r}, acl_update_policy={!r}, force_async={!r}, member_policy={!r}, shared_link_policy={!r}, viewer_info_policy={!r}, access_inheritance={!r})'.format( @@ -11983,7 +12256,7 @@ def actions(self): field describing the actions the authenticated user can perform on the folder. - :rtype: list of [sharing.FolderAction] + :rtype: list of [FolderAction] """ if self._actions_present: return self._actions_value @@ -12009,7 +12282,7 @@ def link_settings(self): """ Settings on the link for this folder. - :rtype: sharing.LinkSettings + :rtype: LinkSettings """ if self._link_settings_present: return self._link_settings_value @@ -12030,8 +12303,8 @@ def link_settings(self): self._link_settings_value = None self._link_settings_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShareFolderArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShareFolderArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ShareFolderArg(path={!r}, acl_update_policy={!r}, force_async={!r}, member_policy={!r}, shared_link_policy={!r}, viewer_info_policy={!r}, access_inheritance={!r}, actions={!r}, link_settings={!r})'.format( @@ -12056,8 +12329,8 @@ class ShareFolderErrorBase(bb.Union): :ivar sharing.ShareFolderErrorBase.email_unverified: The current user's e-mail address is unverified. - :ivar SharePathError sharing.ShareFolderErrorBase.bad_path: - ``ShareFolderArg.path`` is invalid. + :ivar SharePathError ShareFolderErrorBase.bad_path: ``ShareFolderArg.path`` + is invalid. :ivar sharing.ShareFolderErrorBase.team_policy_disallows_member_policy: Team policy is more restrictive than ``ShareFolderArg.member_policy``. :ivar sharing.ShareFolderErrorBase.disallowed_shared_link_policy: The @@ -12081,8 +12354,8 @@ def bad_path(cls, val): Create an instance of this class set to the ``bad_path`` tag with value ``val``. - :param sharing.SharePathError val: - :rtype: sharing.ShareFolderErrorBase + :param SharePathError val: + :rtype: ShareFolderErrorBase """ return cls('bad_path', val) @@ -12132,14 +12405,14 @@ def get_bad_path(self): Only call this if :meth:`is_bad_path` is true. - :rtype: sharing.SharePathError + :rtype: SharePathError """ if not self.is_bad_path(): raise AttributeError("tag 'bad_path' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ShareFolderErrorBase, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShareFolderErrorBase, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ShareFolderErrorBase(%r, %r)' % (self._tag, self._value) @@ -12167,8 +12440,8 @@ def is_no_permission(self): """ return self._tag == 'no_permission' - def _process_custom_annotations(self, annotation_type, processor): - super(ShareFolderError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShareFolderError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ShareFolderError(%r, %r)' % (self._tag, self._value) @@ -12181,8 +12454,8 @@ class ShareFolderJobStatus(async_.PollResultBase): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar SharedFolderMetadata sharing.ShareFolderJobStatus.complete: The share - job has finished. The value is the metadata for the folder. + :ivar SharedFolderMetadata ShareFolderJobStatus.complete: The share job has + finished. The value is the metadata for the folder. """ @classmethod @@ -12191,8 +12464,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param sharing.SharedFolderMetadata val: - :rtype: sharing.ShareFolderJobStatus + :param SharedFolderMetadata val: + :rtype: ShareFolderJobStatus """ return cls('complete', val) @@ -12202,8 +12475,8 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param sharing.ShareFolderError val: - :rtype: sharing.ShareFolderJobStatus + :param ShareFolderError val: + :rtype: ShareFolderJobStatus """ return cls('failed', val) @@ -12229,7 +12502,7 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: sharing.SharedFolderMetadata + :rtype: SharedFolderMetadata """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") @@ -12239,14 +12512,14 @@ def get_failed(self): """ Only call this if :meth:`is_failed` is true. - :rtype: sharing.ShareFolderError + :rtype: ShareFolderError """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ShareFolderJobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShareFolderJobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ShareFolderJobStatus(%r, %r)' % (self._tag, self._value) @@ -12266,8 +12539,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param sharing.SharedFolderMetadata val: - :rtype: sharing.ShareFolderLaunch + :param SharedFolderMetadata val: + :rtype: ShareFolderLaunch """ return cls('complete', val) @@ -12283,14 +12556,14 @@ def get_complete(self): """ Only call this if :meth:`is_complete` is true. - :rtype: sharing.SharedFolderMetadata + :rtype: SharedFolderMetadata """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ShareFolderLaunch, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShareFolderLaunch, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ShareFolderLaunch(%r, %r)' % (self._tag, self._value) @@ -12320,8 +12593,8 @@ class SharePathError(bb.Union): shared this way. Use a public link instead. :ivar sharing.SharePathError.inside_public_folder: A folder inside a public folder can't be shared this way. Use a public link instead. - :ivar SharedFolderMetadata sharing.SharePathError.already_shared: Folder is - already shared. Contains metadata about the existing shared folder. + :ivar SharedFolderMetadata SharePathError.already_shared: Folder is already + shared. Contains metadata about the existing shared folder. :ivar sharing.SharePathError.invalid_path: Path is not valid. :ivar sharing.SharePathError.is_osx_package: We do not support sharing a Mac OS X package. @@ -12363,8 +12636,8 @@ def already_shared(cls, val): Create an instance of this class set to the ``already_shared`` tag with value ``val``. - :param sharing.SharedFolderMetadata val: - :rtype: sharing.SharePathError + :param SharedFolderMetadata val: + :rtype: SharePathError """ return cls('already_shared', val) @@ -12487,14 +12760,14 @@ def get_already_shared(self): Only call this if :meth:`is_already_shared` is true. - :rtype: sharing.SharedFolderMetadata + :rtype: SharedFolderMetadata """ if not self.is_already_shared(): raise AttributeError("tag 'already_shared' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SharePathError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharePathError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharePathError(%r, %r)' % (self._tag, self._value) @@ -12554,7 +12827,7 @@ def audience_exceptions(self): folder's. This is only returned when an endpoint that returns metadata for a single shared folder is called, e.g. /get_folder_metadata. - :rtype: sharing.AudienceExceptions + :rtype: AudienceExceptions """ if self._audience_exceptions_present: return self._audience_exceptions_value @@ -12598,8 +12871,8 @@ def url(self): self._url_value = None self._url_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentLinkMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentLinkMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedContentLinkMetadata(audience_options={!r}, current_audience={!r}, link_permissions={!r}, password_protected={!r}, url={!r}, access_level={!r}, audience_restricting_shared_folder={!r}, expiry={!r}, audience_exceptions={!r})'.format( @@ -12676,7 +12949,7 @@ def users(self): """ The list of user members of the shared file. - :rtype: list of [sharing.UserFileMembershipInfo] + :rtype: list of [UserFileMembershipInfo] """ if self._users_present: return self._users_value @@ -12699,7 +12972,7 @@ def groups(self): """ The list of group members of the shared file. - :rtype: list of [sharing.GroupMembershipInfo] + :rtype: list of [GroupMembershipInfo] """ if self._groups_present: return self._groups_value @@ -12723,7 +12996,7 @@ def invitees(self): The list of invited members of a file, but have not logged in and claimed this. - :rtype: list of [sharing.InviteeMembershipInfo] + :rtype: list of [InviteeMembershipInfo] """ if self._invitees_present: return self._invitees_value @@ -12770,8 +13043,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFileMembers, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFileMembers, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedFileMembers(users={!r}, groups={!r}, invitees={!r}, cursor={!r})'.format( @@ -12937,7 +13210,7 @@ def access_type(self): """ The current user's access level for this shared file. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if self._access_type_present: return self._access_type_value @@ -12988,7 +13261,7 @@ def expected_link_metadata(self): first shared. Absent if the link already exists. This is for an unreleased feature so it may not be returned yet. - :rtype: sharing.ExpectedSharedContentLinkMetadata + :rtype: ExpectedSharedContentLinkMetadata """ if self._expected_link_metadata_present: return self._expected_link_metadata_value @@ -13015,7 +13288,7 @@ def link_metadata(self): The metadata of the link associated for the file. This is for an unreleased feature so it may not be returned yet. - :rtype: sharing.SharedContentLinkMetadata + :rtype: SharedContentLinkMetadata """ if self._link_metadata_present: return self._link_metadata_value @@ -13203,7 +13476,7 @@ def permissions(self): corresponds to the entries given in ``GetFileMetadataBatchArg.actions`` or ``GetFileMetadataArg.actions``. - :rtype: list of [sharing.FilePermission] + :rtype: list of [FilePermission] """ if self._permissions_present: return self._permissions_value @@ -13229,7 +13502,7 @@ def policy(self): """ Policies governing this shared file. - :rtype: sharing.FolderPolicy + :rtype: FolderPolicy """ if self._policy_present: return self._policy_value @@ -13299,8 +13572,8 @@ def time_invited(self): self._time_invited_value = None self._time_invited_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFileMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFileMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedFileMetadata(id={!r}, name={!r}, policy={!r}, preview_url={!r}, access_type={!r}, expected_link_metadata={!r}, link_metadata={!r}, owner_display_names={!r}, owner_team={!r}, parent_shared_folder_id={!r}, path_display={!r}, path_lower={!r}, permissions={!r}, time_invited={!r})'.format( @@ -13391,8 +13664,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderAccessError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderAccessError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedFolderAccessError(%r, %r)' % (self._tag, self._value) @@ -13409,9 +13682,8 @@ class SharedFolderMemberError(bb.Union): dropbox_id is invalid. :ivar sharing.SharedFolderMemberError.not_a_member: The target dropbox_id is not a member of the shared folder. - :ivar MemberAccessLevelResult - sharing.SharedFolderMemberError.no_explicit_access: The target member - only has inherited access to the shared folder. + :ivar MemberAccessLevelResult SharedFolderMemberError.no_explicit_access: + The target member only has inherited access to the shared folder. """ _catch_all = 'other' @@ -13428,8 +13700,8 @@ def no_explicit_access(cls, val): Create an instance of this class set to the ``no_explicit_access`` tag with value ``val``. - :param sharing.MemberAccessLevelResult val: - :rtype: sharing.SharedFolderMemberError + :param MemberAccessLevelResult val: + :rtype: SharedFolderMemberError """ return cls('no_explicit_access', val) @@ -13471,14 +13743,14 @@ def get_no_explicit_access(self): Only call this if :meth:`is_no_explicit_access` is true. - :rtype: sharing.MemberAccessLevelResult + :rtype: MemberAccessLevelResult """ if not self.is_no_explicit_access(): raise AttributeError("tag 'no_explicit_access' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderMemberError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderMemberError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedFolderMemberError(%r, %r)' % (self._tag, self._value) @@ -13542,7 +13814,7 @@ def users(self): """ The list of user members of the shared folder. - :rtype: list of [sharing.UserMembershipInfo] + :rtype: list of [UserMembershipInfo] """ if self._users_present: return self._users_value @@ -13565,7 +13837,7 @@ def groups(self): """ The list of group members of the shared folder. - :rtype: list of [sharing.GroupMembershipInfo] + :rtype: list of [GroupMembershipInfo] """ if self._groups_present: return self._groups_value @@ -13588,7 +13860,7 @@ def invitees(self): """ The list of invitees to the shared folder. - :rtype: list of [sharing.InviteeMembershipInfo] + :rtype: list of [InviteeMembershipInfo] """ if self._invitees_present: return self._invitees_value @@ -13635,8 +13907,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderMembers, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderMembers, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedFolderMembers(users={!r}, groups={!r}, invitees={!r}, cursor={!r})'.format( @@ -13732,7 +14004,7 @@ def access_type(self): """ The current user's access level for this shared folder. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if self._access_type_present: return self._access_type_value @@ -13906,8 +14178,8 @@ def path_lower(self): self._path_lower_value = None self._path_lower_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderMetadataBase, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderMetadataBase, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedFolderMetadataBase(access_type={!r}, is_inside_team_folder={!r}, is_team_folder={!r}, owner_display_names={!r}, owner_team={!r}, parent_shared_folder_id={!r}, path_lower={!r})'.format( @@ -14029,7 +14301,7 @@ def link_metadata(self): there is no link on the folder. This is for an unreleased feature so it may not be returned yet. - :rtype: sharing.SharedContentLinkMetadata + :rtype: SharedContentLinkMetadata """ if self._link_metadata_present: return self._link_metadata_value @@ -14079,7 +14351,7 @@ def permissions(self): Actions the current user may perform on the folder and its contents. The set of permissions corresponds to the FolderActions in the request. - :rtype: list of [sharing.FolderPermission] + :rtype: list of [FolderPermission] """ if self._permissions_present: return self._permissions_value @@ -14105,7 +14377,7 @@ def policy(self): """ Policies governing this shared folder. - :rtype: sharing.FolderPolicy + :rtype: FolderPolicy """ if self._policy_present: return self._policy_value @@ -14198,7 +14470,7 @@ def access_inheritance(self): """ Whether the folder inherits its members from its parent. - :rtype: sharing.AccessInheritance + :rtype: AccessInheritance """ if self._access_inheritance_present: return self._access_inheritance_value @@ -14216,8 +14488,8 @@ def access_inheritance(self): self._access_inheritance_value = None self._access_inheritance_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedFolderMetadata(access_type={!r}, is_inside_team_folder={!r}, is_team_folder={!r}, name={!r}, policy={!r}, preview_url={!r}, shared_folder_id={!r}, time_invited={!r}, owner_display_names={!r}, owner_team={!r}, parent_shared_folder_id={!r}, path_lower={!r}, link_metadata={!r}, permissions={!r}, access_inheritance={!r})'.format( @@ -14320,14 +14592,75 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkAccessFailureReason, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkAccessFailureReason, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedLinkAccessFailureReason(%r, %r)' % (self._tag, self._value) SharedLinkAccessFailureReason_validator = bv.Union(SharedLinkAccessFailureReason) +class SharedLinkAlreadyExistsMetadata(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 SharedLinkMetadata SharedLinkAlreadyExistsMetadata.metadata: Metadata + of the shared link that already exists. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + other = None + + @classmethod + def metadata(cls, val): + """ + Create an instance of this class set to the ``metadata`` tag with value + ``val``. + + :param SharedLinkMetadata val: + :rtype: SharedLinkAlreadyExistsMetadata + """ + return cls('metadata', val) + + def is_metadata(self): + """ + Check if the union tag is ``metadata``. + + :rtype: bool + """ + return self._tag == 'metadata' + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == 'other' + + def get_metadata(self): + """ + Metadata of the shared link that already exists. + + Only call this if :meth:`is_metadata` is true. + + :rtype: SharedLinkMetadata + """ + if not self.is_metadata(): + raise AttributeError("tag 'metadata' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkAlreadyExistsMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharedLinkAlreadyExistsMetadata(%r, %r)' % (self._tag, self._value) + +SharedLinkAlreadyExistsMetadata_validator = bv.Union(SharedLinkAlreadyExistsMetadata) + class SharedLinkPolicy(bb.Union): """ Who can view shared links in this folder. @@ -14385,8 +14718,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedLinkPolicy(%r, %r)' % (self._tag, self._value) @@ -14402,6 +14735,14 @@ class SharedLinkSettings(bb.Struct): password to access the link. :ivar sharing.SharedLinkSettings.expires: Expiration time of the shared link. By default the link won't expire. + :ivar sharing.SharedLinkSettings.audience: The new audience who can benefit + from the access level specified by the 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. + :ivar sharing.SharedLinkSettings.access: Requested access level you want the + audience to gain from this link. """ __slots__ = [ @@ -14411,6 +14752,10 @@ class SharedLinkSettings(bb.Struct): '_link_password_present', '_expires_value', '_expires_present', + '_audience_value', + '_audience_present', + '_access_value', + '_access_present', ] _has_required_fields = False @@ -14418,26 +14763,36 @@ class SharedLinkSettings(bb.Struct): def __init__(self, requested_visibility=None, link_password=None, - expires=None): + expires=None, + audience=None, + access=None): self._requested_visibility_value = None self._requested_visibility_present = False self._link_password_value = None self._link_password_present = False self._expires_value = None self._expires_present = False + self._audience_value = None + self._audience_present = False + self._access_value = None + self._access_present = False if requested_visibility is not None: self.requested_visibility = requested_visibility if link_password is not None: self.link_password = link_password if expires is not None: self.expires = expires + if audience is not None: + self.audience = audience + if access is not None: + self.access = access @property def requested_visibility(self): """ The requested access for this shared link. - :rtype: sharing.RequestedVisibility + :rtype: RequestedVisibility """ if self._requested_visibility_present: return self._requested_visibility_value @@ -14511,14 +14866,72 @@ def expires(self): self._expires_value = None self._expires_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkSettings, self)._process_custom_annotations(annotation_type, processor) + @property + def audience(self): + """ + The new audience who can benefit from the access level specified by the + 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. + + :rtype: LinkAudience + """ + if self._audience_present: + return self._audience_value + else: + return None + + @audience.setter + def audience(self, val): + if val is None: + del self.audience + return + self._audience_validator.validate_type_only(val) + self._audience_value = val + self._audience_present = True + + @audience.deleter + def audience(self): + self._audience_value = None + self._audience_present = False + + @property + def access(self): + """ + Requested access level you want the audience to gain from this link. + + :rtype: RequestedLinkAccessLevel + """ + if self._access_present: + return self._access_value + else: + return None + + @access.setter + def access(self, val): + if val is None: + del self.access + return + self._access_validator.validate_type_only(val) + self._access_value = val + self._access_present = True + + @access.deleter + def access(self): + self._access_value = None + self._access_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkSettings, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkSettings(requested_visibility={!r}, link_password={!r}, expires={!r})'.format( + return 'SharedLinkSettings(requested_visibility={!r}, link_password={!r}, expires={!r}, audience={!r}, access={!r})'.format( self._requested_visibility_value, self._link_password_value, self._expires_value, + self._audience_value, + self._access_value, ) SharedLinkSettings_validator = bv.Struct(SharedLinkSettings) @@ -14564,8 +14977,8 @@ def is_not_authorized(self): """ return self._tag == 'not_authorized' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkSettingsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkSettingsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedLinkSettingsError(%r, %r)' % (self._tag, self._value) @@ -14654,8 +15067,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharingFileAccessError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingFileAccessError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharingFileAccessError(%r, %r)' % (self._tag, self._value) @@ -14696,8 +15109,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharingUserError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingUserError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharingUserError(%r, %r)' % (self._tag, self._value) @@ -14816,8 +15229,8 @@ def member_id(self): self._member_id_value = None self._member_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMemberInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMemberInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamMemberInfo(team_info={!r}, display_name={!r}, member_id={!r})'.format( @@ -14903,8 +15316,8 @@ def to_dropbox_id(self): self._to_dropbox_id_value = None self._to_dropbox_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TransferFolderArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TransferFolderArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TransferFolderArg(shared_folder_id={!r}, to_dropbox_id={!r})'.format( @@ -14956,8 +15369,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.TransferFolderError + :param SharedFolderAccessError val: + :rtype: TransferFolderError """ return cls('access_error', val) @@ -15029,14 +15442,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(TransferFolderError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TransferFolderError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TransferFolderError(%r, %r)' % (self._tag, self._value) @@ -15086,8 +15499,8 @@ def shared_folder_id(self): self._shared_folder_id_value = None self._shared_folder_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UnmountFolderArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UnmountFolderArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UnmountFolderArg(shared_folder_id={!r})'.format( @@ -15124,8 +15537,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.UnmountFolderError + :param SharedFolderAccessError val: + :rtype: UnmountFolderError """ return cls('access_error', val) @@ -15165,14 +15578,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UnmountFolderError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UnmountFolderError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UnmountFolderError(%r, %r)' % (self._tag, self._value) @@ -15223,8 +15636,8 @@ def file(self): self._file_value = None self._file_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UnshareFileArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UnshareFileArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UnshareFileArg(file={!r})'.format( @@ -15252,8 +15665,8 @@ def user_error(cls, val): Create an instance of this class set to the ``user_error`` tag with value ``val``. - :param sharing.SharingUserError val: - :rtype: sharing.UnshareFileError + :param SharingUserError val: + :rtype: UnshareFileError """ return cls('user_error', val) @@ -15263,8 +15676,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharingFileAccessError val: - :rtype: sharing.UnshareFileError + :param SharingFileAccessError val: + :rtype: UnshareFileError """ return cls('access_error', val) @@ -15296,7 +15709,7 @@ def get_user_error(self): """ Only call this if :meth:`is_user_error` is true. - :rtype: sharing.SharingUserError + :rtype: SharingUserError """ if not self.is_user_error(): raise AttributeError("tag 'user_error' not set") @@ -15306,14 +15719,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharingFileAccessError + :rtype: SharingFileAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UnshareFileError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UnshareFileError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UnshareFileError(%r, %r)' % (self._tag, self._value) @@ -15399,8 +15812,8 @@ def leave_a_copy(self): self._leave_a_copy_value = None self._leave_a_copy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UnshareFolderArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UnshareFolderArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UnshareFolderArg(shared_folder_id={!r}, leave_a_copy={!r})'.format( @@ -15440,8 +15853,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.UnshareFolderError + :param SharedFolderAccessError val: + :rtype: UnshareFolderError """ return cls('access_error', val) @@ -15489,14 +15902,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UnshareFolderError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UnshareFolderError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UnshareFolderError(%r, %r)' % (self._tag, self._value) @@ -15521,8 +15934,8 @@ def __init__(self, member, access_level) - def _process_custom_annotations(self, annotation_type, processor): - super(UpdateFileMemberArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdateFileMemberArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdateFileMemberArgs(file={!r}, member={!r}, access_level={!r})'.format( @@ -15601,7 +16014,7 @@ def member(self): The member of the shared folder to update. Only the ``MemberSelector.dropbox_id`` may be set at this time. - :rtype: sharing.MemberSelector + :rtype: MemberSelector """ if self._member_present: return self._member_value @@ -15625,7 +16038,7 @@ def access_level(self): The new access level for ``member``. ``AccessLevel.owner`` is disallowed. - :rtype: sharing.AccessLevel + :rtype: AccessLevel """ if self._access_level_present: return self._access_level_value @@ -15643,8 +16056,8 @@ def access_level(self): self._access_level_value = None self._access_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UpdateFolderMemberArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdateFolderMemberArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdateFolderMemberArg(shared_folder_id={!r}, member={!r}, access_level={!r})'.format( @@ -15661,10 +16074,9 @@ class UpdateFolderMemberError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar AddFolderMemberError - sharing.UpdateFolderMemberError.no_explicit_access: If updating the - access type required the member to be added to the shared folder and - there was an error when adding the member. + :ivar AddFolderMemberError UpdateFolderMemberError.no_explicit_access: If + updating the access type required the member to be added to the shared + folder and there was an error when adding the member. :ivar sharing.UpdateFolderMemberError.insufficient_plan: The current user's account doesn't support this action. An example of this is when downgrading a member from editor to viewer. This action can only be @@ -15687,8 +16099,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.UpdateFolderMemberError + :param SharedFolderAccessError val: + :rtype: UpdateFolderMemberError """ return cls('access_error', val) @@ -15698,8 +16110,8 @@ def member_error(cls, val): Create an instance of this class set to the ``member_error`` tag with value ``val``. - :param sharing.SharedFolderMemberError val: - :rtype: sharing.UpdateFolderMemberError + :param SharedFolderMemberError val: + :rtype: UpdateFolderMemberError """ return cls('member_error', val) @@ -15709,8 +16121,8 @@ def no_explicit_access(cls, val): Create an instance of this class set to the ``no_explicit_access`` tag with value ``val``. - :param sharing.AddFolderMemberError val: - :rtype: sharing.UpdateFolderMemberError + :param AddFolderMemberError val: + :rtype: UpdateFolderMemberError """ return cls('no_explicit_access', val) @@ -15766,7 +16178,7 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") @@ -15776,7 +16188,7 @@ def get_member_error(self): """ Only call this if :meth:`is_member_error` is true. - :rtype: sharing.SharedFolderMemberError + :rtype: SharedFolderMemberError """ if not self.is_member_error(): raise AttributeError("tag 'member_error' not set") @@ -15789,14 +16201,14 @@ def get_no_explicit_access(self): Only call this if :meth:`is_no_explicit_access` is true. - :rtype: sharing.AddFolderMemberError + :rtype: AddFolderMemberError """ if not self.is_no_explicit_access(): raise AttributeError("tag 'no_explicit_access' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UpdateFolderMemberError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdateFolderMemberError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdateFolderMemberError(%r, %r)' % (self._tag, self._value) @@ -15912,7 +16324,7 @@ def member_policy(self): Who can be a member of this shared folder. Only applicable if the current user is on a team. - :rtype: sharing.MemberPolicy + :rtype: MemberPolicy """ if self._member_policy_present: return self._member_policy_value @@ -15938,7 +16350,7 @@ def acl_update_policy(self): """ Who can add and remove members of this shared folder. - :rtype: sharing.AclUpdatePolicy + :rtype: AclUpdatePolicy """ if self._acl_update_policy_present: return self._acl_update_policy_value @@ -15964,7 +16376,7 @@ def viewer_info_policy(self): """ Who can enable/disable viewer info for this shared folder. - :rtype: sharing.ViewerInfoPolicy + :rtype: ViewerInfoPolicy """ if self._viewer_info_policy_present: return self._viewer_info_policy_value @@ -15992,7 +16404,7 @@ def shared_link_policy(self): shared folder. The current user must be on a team to set this policy to ``SharedLinkPolicy.members``. - :rtype: sharing.SharedLinkPolicy + :rtype: SharedLinkPolicy """ if self._shared_link_policy_present: return self._shared_link_policy_value @@ -16018,7 +16430,7 @@ def link_settings(self): """ Settings on the link for this folder. - :rtype: sharing.LinkSettings + :rtype: LinkSettings """ if self._link_settings_present: return self._link_settings_value @@ -16047,7 +16459,7 @@ def actions(self): field describing the actions the authenticated user can perform on the folder. - :rtype: list of [sharing.FolderAction] + :rtype: list of [FolderAction] """ if self._actions_present: return self._actions_value @@ -16068,8 +16480,8 @@ def actions(self): self._actions_value = None self._actions_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UpdateFolderPolicyArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdateFolderPolicyArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdateFolderPolicyArg(shared_folder_id={!r}, member_policy={!r}, acl_update_policy={!r}, viewer_info_policy={!r}, shared_link_policy={!r}, link_settings={!r}, actions={!r})'.format( @@ -16124,8 +16536,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param sharing.SharedFolderAccessError val: - :rtype: sharing.UpdateFolderPolicyError + :param SharedFolderAccessError val: + :rtype: UpdateFolderPolicyError """ return cls('access_error', val) @@ -16189,14 +16601,14 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: sharing.SharedFolderAccessError + :rtype: SharedFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UpdateFolderPolicyError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UpdateFolderPolicyError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UpdateFolderPolicyError(%r, %r)' % (self._tag, self._value) @@ -16238,7 +16650,7 @@ def user(self): """ The account information for the membership user. - :rtype: sharing.UserInfo + :rtype: UserInfo """ if self._user_present: return self._user_value @@ -16256,8 +16668,8 @@ def user(self): self._user_value = None self._user_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UserMembershipInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserMembershipInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserMembershipInfo(access_type={!r}, user={!r}, permissions={!r}, initials={!r}, is_inherited={!r})'.format( @@ -16365,8 +16777,8 @@ def platform_type(self): self._platform_type_value = None self._platform_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UserFileMembershipInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserFileMembershipInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserFileMembershipInfo(access_type={!r}, user={!r}, permissions={!r}, initials={!r}, is_inherited={!r}, time_last_seen={!r}, platform_type={!r})'.format( @@ -16558,8 +16970,8 @@ def team_member_id(self): self._team_member_id_value = None self._team_member_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UserInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserInfo(account_id={!r}, email={!r}, display_name={!r}, same_team={!r}, team_member_id={!r})'.format( @@ -16616,8 +17028,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ViewerInfoPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ViewerInfoPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ViewerInfoPolicy(%r, %r)' % (self._tag, self._value) @@ -16709,8 +17121,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(Visibility, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(Visibility, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'Visibility(%r, %r)' % (self._tag, self._value) @@ -16831,6 +17243,7 @@ def __repr__(self): AddFolderMemberError._access_error_validator = SharedFolderAccessError_validator AddFolderMemberError._email_unverified_validator = bv.Void() +AddFolderMemberError._banned_member_validator = bv.Void() AddFolderMemberError._bad_member_validator = AddMemberSelectorError_validator AddFolderMemberError._cant_share_outside_team_validator = bv.Void() AddFolderMemberError._too_many_members_validator = bv.UInt64() @@ -16844,6 +17257,7 @@ def __repr__(self): AddFolderMemberError._tagmap = { 'access_error': AddFolderMemberError._access_error_validator, 'email_unverified': AddFolderMemberError._email_unverified_validator, + 'banned_member': AddFolderMemberError._banned_member_validator, 'bad_member': AddFolderMemberError._bad_member_validator, 'cant_share_outside_team': AddFolderMemberError._cant_share_outside_team_validator, 'too_many_members': AddFolderMemberError._too_many_members_validator, @@ -16857,6 +17271,7 @@ def __repr__(self): } AddFolderMemberError.email_unverified = AddFolderMemberError('email_unverified') +AddFolderMemberError.banned_member = AddFolderMemberError('banned_member') AddFolderMemberError.cant_share_outside_team = AddFolderMemberError('cant_share_outside_team') AddFolderMemberError.rate_limit = AddFolderMemberError('rate_limit') AddFolderMemberError.too_many_invitees = AddFolderMemberError('too_many_invitees') @@ -17008,7 +17423,7 @@ def __repr__(self): CreateSharedLinkWithSettingsError._path_validator = files.LookupError_validator CreateSharedLinkWithSettingsError._email_not_verified_validator = bv.Void() -CreateSharedLinkWithSettingsError._shared_link_already_exists_validator = bv.Void() +CreateSharedLinkWithSettingsError._shared_link_already_exists_validator = bv.Nullable(SharedLinkAlreadyExistsMetadata_validator) CreateSharedLinkWithSettingsError._settings_error_validator = SharedLinkSettingsError_validator CreateSharedLinkWithSettingsError._access_denied_validator = bv.Void() CreateSharedLinkWithSettingsError._tagmap = { @@ -17020,7 +17435,6 @@ def __repr__(self): } CreateSharedLinkWithSettingsError.email_not_verified = CreateSharedLinkWithSettingsError('email_not_verified') -CreateSharedLinkWithSettingsError.shared_link_already_exists = CreateSharedLinkWithSettingsError('shared_link_already_exists') CreateSharedLinkWithSettingsError.access_denied = CreateSharedLinkWithSettingsError('access_denied') SharedContentLinkMetadataBase._access_level_validator = bv.Nullable(AccessLevel_validator) @@ -17062,6 +17476,8 @@ def __repr__(self): FileAction._relinquish_membership_validator = bv.Void() FileAction._share_link_validator = bv.Void() FileAction._create_link_validator = bv.Void() +FileAction._create_view_link_validator = bv.Void() +FileAction._create_edit_link_validator = bv.Void() FileAction._other_validator = bv.Void() FileAction._tagmap = { 'disable_viewer_info': FileAction._disable_viewer_info_validator, @@ -17074,6 +17490,8 @@ def __repr__(self): 'relinquish_membership': FileAction._relinquish_membership_validator, 'share_link': FileAction._share_link_validator, 'create_link': FileAction._create_link_validator, + 'create_view_link': FileAction._create_view_link_validator, + 'create_edit_link': FileAction._create_edit_link_validator, 'other': FileAction._other_validator, } @@ -17087,6 +17505,8 @@ def __repr__(self): FileAction.relinquish_membership = FileAction('relinquish_membership') FileAction.share_link = FileAction('share_link') FileAction.create_link = FileAction('create_link') +FileAction.create_view_link = FileAction('create_view_link') +FileAction.create_edit_link = FileAction('create_edit_link') FileAction.other = FileAction('other') FileErrorResult._file_not_found_error_validator = files.Id_validator @@ -17537,6 +17957,19 @@ def __repr__(self): JobStatus.complete = JobStatus('complete') +LinkAccessLevel._viewer_validator = bv.Void() +LinkAccessLevel._editor_validator = bv.Void() +LinkAccessLevel._other_validator = bv.Void() +LinkAccessLevel._tagmap = { + 'viewer': LinkAccessLevel._viewer_validator, + 'editor': LinkAccessLevel._editor_validator, + 'other': LinkAccessLevel._other_validator, +} + +LinkAccessLevel.viewer = LinkAccessLevel('viewer') +LinkAccessLevel.editor = LinkAccessLevel('editor') +LinkAccessLevel.other = LinkAccessLevel('other') + LinkAction._change_access_level_validator = bv.Void() LinkAction._change_audience_validator = bv.Void() LinkAction._remove_expiry_validator = bv.Void() @@ -17565,12 +17998,14 @@ def __repr__(self): LinkAudience._public_validator = bv.Void() LinkAudience._team_validator = bv.Void() LinkAudience._no_one_validator = bv.Void() +LinkAudience._password_validator = bv.Void() LinkAudience._members_validator = bv.Void() LinkAudience._other_validator = bv.Void() LinkAudience._tagmap = { 'public': LinkAudience._public_validator, 'team': LinkAudience._team_validator, 'no_one': LinkAudience._no_one_validator, + 'password': LinkAudience._password_validator, 'members': LinkAudience._members_validator, 'other': LinkAudience._other_validator, } @@ -17578,6 +18013,7 @@ def __repr__(self): LinkAudience.public = LinkAudience('public') LinkAudience.team = LinkAudience('team') LinkAudience.no_one = LinkAudience('no_one') +LinkAudience.password = LinkAudience('password') LinkAudience.members = LinkAudience('members') LinkAudience.other = LinkAudience('other') @@ -17623,17 +18059,23 @@ def __repr__(self): LinkPermissions._requested_visibility_validator = bv.Nullable(RequestedVisibility_validator) LinkPermissions._can_revoke_validator = bv.Boolean() LinkPermissions._revoke_failure_reason_validator = bv.Nullable(SharedLinkAccessFailureReason_validator) +LinkPermissions._effective_audience_validator = bv.Nullable(LinkAudience_validator) +LinkPermissions._link_access_level_validator = bv.Nullable(LinkAccessLevel_validator) LinkPermissions._all_field_names_ = set([ 'resolved_visibility', 'requested_visibility', 'can_revoke', 'revoke_failure_reason', + 'effective_audience', + 'link_access_level', ]) LinkPermissions._all_fields_ = [ ('resolved_visibility', LinkPermissions._resolved_visibility_validator), ('requested_visibility', LinkPermissions._requested_visibility_validator), ('can_revoke', LinkPermissions._can_revoke_validator), ('revoke_failure_reason', LinkPermissions._revoke_failure_reason_validator), + ('effective_audience', LinkPermissions._effective_audience_validator), + ('link_access_level', LinkPermissions._link_access_level_validator), ] LinkSettings._access_level_validator = bv.Nullable(AccessLevel_validator) @@ -18229,6 +18671,22 @@ def __repr__(self): } RemoveMemberJobStatus._tagmap.update(async_.PollResultBase._tagmap) +RequestedLinkAccessLevel._viewer_validator = bv.Void() +RequestedLinkAccessLevel._editor_validator = bv.Void() +RequestedLinkAccessLevel._max_validator = bv.Void() +RequestedLinkAccessLevel._other_validator = bv.Void() +RequestedLinkAccessLevel._tagmap = { + 'viewer': RequestedLinkAccessLevel._viewer_validator, + 'editor': RequestedLinkAccessLevel._editor_validator, + 'max': RequestedLinkAccessLevel._max_validator, + 'other': RequestedLinkAccessLevel._other_validator, +} + +RequestedLinkAccessLevel.viewer = RequestedLinkAccessLevel('viewer') +RequestedLinkAccessLevel.editor = RequestedLinkAccessLevel('editor') +RequestedLinkAccessLevel.max = RequestedLinkAccessLevel('max') +RequestedLinkAccessLevel.other = RequestedLinkAccessLevel('other') + RequestedVisibility._public_validator = bv.Void() RequestedVisibility._team_only_validator = bv.Void() RequestedVisibility._password_validator = bv.Void() @@ -18616,6 +19074,15 @@ def __repr__(self): SharedLinkAccessFailureReason.owner_only = SharedLinkAccessFailureReason('owner_only') SharedLinkAccessFailureReason.other = SharedLinkAccessFailureReason('other') +SharedLinkAlreadyExistsMetadata._metadata_validator = SharedLinkMetadata_validator +SharedLinkAlreadyExistsMetadata._other_validator = bv.Void() +SharedLinkAlreadyExistsMetadata._tagmap = { + 'metadata': SharedLinkAlreadyExistsMetadata._metadata_validator, + 'other': SharedLinkAlreadyExistsMetadata._other_validator, +} + +SharedLinkAlreadyExistsMetadata.other = SharedLinkAlreadyExistsMetadata('other') + SharedLinkPolicy._anyone_validator = bv.Void() SharedLinkPolicy._team_validator = bv.Void() SharedLinkPolicy._members_validator = bv.Void() @@ -18635,15 +19102,21 @@ def __repr__(self): SharedLinkSettings._requested_visibility_validator = bv.Nullable(RequestedVisibility_validator) SharedLinkSettings._link_password_validator = bv.Nullable(bv.String()) SharedLinkSettings._expires_validator = bv.Nullable(common.DropboxTimestamp_validator) +SharedLinkSettings._audience_validator = bv.Nullable(LinkAudience_validator) +SharedLinkSettings._access_validator = bv.Nullable(RequestedLinkAccessLevel_validator) SharedLinkSettings._all_field_names_ = set([ 'requested_visibility', 'link_password', 'expires', + 'audience', + 'access', ]) SharedLinkSettings._all_fields_ = [ ('requested_visibility', SharedLinkSettings._requested_visibility_validator), ('link_password', SharedLinkSettings._link_password_validator), ('expires', SharedLinkSettings._expires_validator), + ('audience', SharedLinkSettings._audience_validator), + ('access', SharedLinkSettings._access_validator), ] SharedLinkSettingsError._invalid_settings_validator = bv.Void() diff --git a/dropbox/stone_base.py b/dropbox/stone_base.py index 465a483f..6fa0fe55 100644 --- a/dropbox/stone_base.py +++ b/dropbox/stone_base.py @@ -31,8 +31,8 @@ class AnnotationType(object): class Struct(object): # This is a base class for all classes representing Stone structs. - def _process_custom_annotations(self, annotation_type, processor): - # type: (typing.Type[T], typing.Callable[[T, U], U]) -> None + def _process_custom_annotations(self, annotation_type, field_path, processor): + # type: (typing.Type[T], typing.Text, typing.Callable[[T, U], U]) -> None pass class Union(object): @@ -73,8 +73,8 @@ def __ne__(self, other): def __hash__(self): return hash((self._tag, self._value)) - def _process_custom_annotations(self, annotation_type, processor): - # type: (typing.Type[T], typing.Callable[[T, U], U]) -> None + def _process_custom_annotations(self, annotation_type, field_path, processor): + # type: (typing.Type[T], typing.Text, typing.Callable[[T, U], U]) -> None pass @classmethod @@ -130,23 +130,23 @@ def __repr__(self): partially_apply = functools.partial def make_struct_annotation_processor(annotation_type, processor): - def g(struct): + def g(field_path, struct): if struct is None: return struct - struct._process_custom_annotations(annotation_type, processor) + struct._process_custom_annotations(annotation_type, field_path, processor) return struct return g def make_list_annotation_processor(processor): - def g(list_): + def g(field_path, list_): if list_ is None: return list_ - return [processor(x) for x in list_] + return [processor('{}[{}]'.format(field_path, idx), x) for idx, x in enumerate(list_)] return g def make_map_value_annotation_processor(processor): - def g(map_): + def g(field_path, map_): if map_ is None: return map_ - return {k: processor(v) for k, v in map_.items()} + return {k: processor('{}[{}]'.format(field_path, repr(k)), v) for k, v in map_.items()} return g diff --git a/dropbox/team.py b/dropbox/team.py index 34f41a8c..a51786f3 100644 --- a/dropbox/team.py +++ b/dropbox/team.py @@ -214,8 +214,8 @@ def updated(self): self._updated_value = None self._updated_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceSession, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceSession, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceSession(session_id={!r}, ip_address={!r}, country={!r}, created={!r}, updated={!r})'.format( @@ -379,8 +379,8 @@ def expires(self): self._expires_value = None self._expires_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ActiveWebSession, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ActiveWebSession, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ActiveWebSession(session_id={!r}, user_agent={!r}, os={!r}, browser={!r}, ip_address={!r}, country={!r}, created={!r}, updated={!r}, expires={!r})'.format( @@ -456,8 +456,8 @@ def is_member_only(self): """ return self._tag == 'member_only' - def _process_custom_annotations(self, annotation_type, processor): - super(AdminTier, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AdminTier, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AdminTier(%r, %r)' % (self._tag, self._value) @@ -673,8 +673,8 @@ def is_app_folder(self): self._is_app_folder_value = None self._is_app_folder_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ApiApp, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ApiApp, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ApiApp(app_id={!r}, app_name={!r}, is_app_folder={!r}, publisher={!r}, publisher_url={!r}, linked={!r})'.format( @@ -733,8 +733,8 @@ def start_date(self): self._start_date_value = None self._start_date_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(BaseDfbReport, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BaseDfbReport, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'BaseDfbReport(start_date={!r})'.format( @@ -762,8 +762,8 @@ def access_error(cls, val): Create an instance of this class set to the ``access_error`` tag with value ``val``. - :param team.TeamFolderAccessError val: - :rtype: team.BaseTeamFolderError + :param TeamFolderAccessError val: + :rtype: BaseTeamFolderError """ return cls('access_error', val) @@ -773,8 +773,8 @@ def status_error(cls, val): Create an instance of this class set to the ``status_error`` tag with value ``val``. - :param team.TeamFolderInvalidStatusError val: - :rtype: team.BaseTeamFolderError + :param TeamFolderInvalidStatusError val: + :rtype: BaseTeamFolderError """ return cls('status_error', val) @@ -784,8 +784,8 @@ def team_shared_dropbox_error(cls, val): Create an instance of this class set to the ``team_shared_dropbox_error`` tag with value ``val``. - :param team.TeamFolderTeamSharedDropboxError val: - :rtype: team.BaseTeamFolderError + :param TeamFolderTeamSharedDropboxError val: + :rtype: BaseTeamFolderError """ return cls('team_shared_dropbox_error', val) @@ -825,7 +825,7 @@ def get_access_error(self): """ Only call this if :meth:`is_access_error` is true. - :rtype: team.TeamFolderAccessError + :rtype: TeamFolderAccessError """ if not self.is_access_error(): raise AttributeError("tag 'access_error' not set") @@ -835,7 +835,7 @@ def get_status_error(self): """ Only call this if :meth:`is_status_error` is true. - :rtype: team.TeamFolderInvalidStatusError + :rtype: TeamFolderInvalidStatusError """ if not self.is_status_error(): raise AttributeError("tag 'status_error' not set") @@ -845,14 +845,14 @@ def get_team_shared_dropbox_error(self): """ Only call this if :meth:`is_team_shared_dropbox_error` is true. - :rtype: team.TeamFolderTeamSharedDropboxError + :rtype: TeamFolderTeamSharedDropboxError """ if not self.is_team_shared_dropbox_error(): raise AttributeError("tag 'team_shared_dropbox_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(BaseTeamFolderError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BaseTeamFolderError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'BaseTeamFolderError(%r, %r)' % (self._tag, self._value) @@ -893,8 +893,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(CustomQuotaError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CustomQuotaError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CustomQuotaError(%r, %r)' % (self._tag, self._value) @@ -909,10 +909,9 @@ class CustomQuotaResult(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar UserCustomQuotaResult team.CustomQuotaResult.success: User's custom - quota. - :ivar UserSelectorArg team.CustomQuotaResult.invalid_user: Invalid user (not - in team). + :ivar UserCustomQuotaResult CustomQuotaResult.success: User's custom quota. + :ivar UserSelectorArg CustomQuotaResult.invalid_user: Invalid user (not in + team). """ _catch_all = 'other' @@ -925,8 +924,8 @@ def success(cls, val): Create an instance of this class set to the ``success`` tag with value ``val``. - :param team.UserCustomQuotaResult val: - :rtype: team.CustomQuotaResult + :param UserCustomQuotaResult val: + :rtype: CustomQuotaResult """ return cls('success', val) @@ -936,8 +935,8 @@ def invalid_user(cls, val): Create an instance of this class set to the ``invalid_user`` tag with value ``val``. - :param team.UserSelectorArg val: - :rtype: team.CustomQuotaResult + :param UserSelectorArg val: + :rtype: CustomQuotaResult """ return cls('invalid_user', val) @@ -971,7 +970,7 @@ def get_success(self): Only call this if :meth:`is_success` is true. - :rtype: team.UserCustomQuotaResult + :rtype: UserCustomQuotaResult """ if not self.is_success(): raise AttributeError("tag 'success' not set") @@ -983,14 +982,14 @@ def get_invalid_user(self): Only call this if :meth:`is_invalid_user` is true. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if not self.is_invalid_user(): raise AttributeError("tag 'invalid_user' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(CustomQuotaResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CustomQuotaResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CustomQuotaResult(%r, %r)' % (self._tag, self._value) @@ -1021,7 +1020,7 @@ def users(self): """ List of users. - :rtype: list of [team.UserSelectorArg] + :rtype: list of [UserSelectorArg] """ if self._users_present: return self._users_value @@ -1039,8 +1038,8 @@ def users(self): self._users_value = None self._users_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CustomQuotaUsersArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CustomQuotaUsersArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CustomQuotaUsersArg(users={!r})'.format( @@ -1130,8 +1129,8 @@ def end_date(self): self._end_date_value = None self._end_date_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DateRange, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DateRange, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DateRange(start_date={!r}, end_date={!r})'.format( @@ -1162,8 +1161,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(DateRangeError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DateRangeError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DateRangeError(%r, %r)' % (self._tag, self._value) @@ -1264,7 +1263,7 @@ def client_type(self): """ The Dropbox desktop client type. - :rtype: team.DesktopPlatform + :rtype: DesktopPlatform """ if self._client_type_present: return self._client_type_value @@ -1351,8 +1350,8 @@ def is_delete_on_unlink_supported(self): self._is_delete_on_unlink_supported_value = None self._is_delete_on_unlink_supported_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DesktopClientSession, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DesktopClientSession, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DesktopClientSession(session_id={!r}, host_name={!r}, client_type={!r}, client_version={!r}, platform={!r}, is_delete_on_unlink_supported={!r}, ip_address={!r}, country={!r}, created={!r}, updated={!r})'.format( @@ -1423,8 +1422,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(DesktopPlatform, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DesktopPlatform, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DesktopPlatform(%r, %r)' % (self._tag, self._value) @@ -1505,8 +1504,8 @@ def team_member_id(self): self._team_member_id_value = None self._team_member_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceSessionArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceSessionArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceSessionArg(session_id={!r}, team_member_id={!r})'.format( @@ -1756,8 +1755,8 @@ def total(self): self._total_value = None self._total_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DevicesActive, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DevicesActive, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DevicesActive(windows={!r}, macos={!r}, linux={!r}, ios={!r}, android={!r}, other={!r}, total={!r})'.format( @@ -1816,8 +1815,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ExcludedUsersListArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExcludedUsersListArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExcludedUsersListArg(limit={!r})'.format( @@ -1871,8 +1870,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ExcludedUsersListContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExcludedUsersListContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExcludedUsersListContinueArg(cursor={!r})'.format( @@ -1915,8 +1914,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ExcludedUsersListContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExcludedUsersListContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExcludedUsersListContinueError(%r, %r)' % (self._tag, self._value) @@ -1956,8 +1955,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ExcludedUsersListError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExcludedUsersListError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExcludedUsersListError(%r, %r)' % (self._tag, self._value) @@ -2008,7 +2007,7 @@ def __init__(self, @property def users(self): """ - :rtype: list of [team.MemberProfile] + :rtype: list of [MemberProfile] """ if self._users_present: return self._users_value @@ -2080,8 +2079,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ExcludedUsersListResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExcludedUsersListResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExcludedUsersListResult(users={!r}, has_more={!r}, cursor={!r})'.format( @@ -2120,7 +2119,7 @@ def users(self): """ List of users to be added/removed. - :rtype: list of [team.UserSelectorArg] + :rtype: list of [UserSelectorArg] """ if self._users_present: return self._users_value @@ -2141,8 +2140,8 @@ def users(self): self._users_value = None self._users_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ExcludedUsersUpdateArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExcludedUsersUpdateArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExcludedUsersUpdateArg(users={!r})'.format( @@ -2197,8 +2196,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ExcludedUsersUpdateError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExcludedUsersUpdateError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExcludedUsersUpdateError(%r, %r)' % (self._tag, self._value) @@ -2231,7 +2230,7 @@ def status(self): """ Update status. - :rtype: team.ExcludedUsersUpdateStatus + :rtype: ExcludedUsersUpdateStatus """ if self._status_present: return self._status_value @@ -2249,8 +2248,8 @@ def status(self): self._status_value = None self._status_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ExcludedUsersUpdateResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExcludedUsersUpdateResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExcludedUsersUpdateResult(status={!r})'.format( @@ -2292,8 +2291,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ExcludedUsersUpdateStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExcludedUsersUpdateStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExcludedUsersUpdateStatus(%r, %r)' % (self._tag, self._value) @@ -2369,8 +2368,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(Feature, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(Feature, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'Feature(%r, %r)' % (self._tag, self._value) @@ -2397,8 +2396,8 @@ def upload_api_rate_limit(cls, val): Create an instance of this class set to the ``upload_api_rate_limit`` tag with value ``val``. - :param team.UploadApiRateLimitValue val: - :rtype: team.FeatureValue + :param UploadApiRateLimitValue val: + :rtype: FeatureValue """ return cls('upload_api_rate_limit', val) @@ -2408,8 +2407,8 @@ def has_team_shared_dropbox(cls, val): Create an instance of this class set to the ``has_team_shared_dropbox`` tag with value ``val``. - :param team.HasTeamSharedDropboxValue val: - :rtype: team.FeatureValue + :param HasTeamSharedDropboxValue val: + :rtype: FeatureValue """ return cls('has_team_shared_dropbox', val) @@ -2419,8 +2418,8 @@ def has_team_file_events(cls, val): Create an instance of this class set to the ``has_team_file_events`` tag with value ``val``. - :param team.HasTeamFileEventsValue val: - :rtype: team.FeatureValue + :param HasTeamFileEventsValue val: + :rtype: FeatureValue """ return cls('has_team_file_events', val) @@ -2430,8 +2429,8 @@ def has_team_selective_sync(cls, val): Create an instance of this class set to the ``has_team_selective_sync`` tag with value ``val``. - :param team.HasTeamSelectiveSyncValue val: - :rtype: team.FeatureValue + :param HasTeamSelectiveSyncValue val: + :rtype: FeatureValue """ return cls('has_team_selective_sync', val) @@ -2479,7 +2478,7 @@ def get_upload_api_rate_limit(self): """ Only call this if :meth:`is_upload_api_rate_limit` is true. - :rtype: team.UploadApiRateLimitValue + :rtype: UploadApiRateLimitValue """ if not self.is_upload_api_rate_limit(): raise AttributeError("tag 'upload_api_rate_limit' not set") @@ -2489,7 +2488,7 @@ def get_has_team_shared_dropbox(self): """ Only call this if :meth:`is_has_team_shared_dropbox` is true. - :rtype: team.HasTeamSharedDropboxValue + :rtype: HasTeamSharedDropboxValue """ if not self.is_has_team_shared_dropbox(): raise AttributeError("tag 'has_team_shared_dropbox' not set") @@ -2499,7 +2498,7 @@ def get_has_team_file_events(self): """ Only call this if :meth:`is_has_team_file_events` is true. - :rtype: team.HasTeamFileEventsValue + :rtype: HasTeamFileEventsValue """ if not self.is_has_team_file_events(): raise AttributeError("tag 'has_team_file_events' not set") @@ -2509,14 +2508,14 @@ def get_has_team_selective_sync(self): """ Only call this if :meth:`is_has_team_selective_sync` is true. - :rtype: team.HasTeamSelectiveSyncValue + :rtype: HasTeamSelectiveSyncValue """ if not self.is_has_team_selective_sync(): raise AttributeError("tag 'has_team_selective_sync' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(FeatureValue, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FeatureValue, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FeatureValue(%r, %r)' % (self._tag, self._value) @@ -2550,7 +2549,7 @@ def features(self): A list of features in :class:`Feature`. If the list is empty, this route will return :class:`FeaturesGetValuesBatchError`. - :rtype: list of [team.Feature] + :rtype: list of [Feature] """ if self._features_present: return self._features_value @@ -2568,8 +2567,8 @@ def features(self): self._features_value = None self._features_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FeaturesGetValuesBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FeaturesGetValuesBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FeaturesGetValuesBatchArg(features={!r})'.format( @@ -2611,8 +2610,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(FeaturesGetValuesBatchError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FeaturesGetValuesBatchError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FeaturesGetValuesBatchError(%r, %r)' % (self._tag, self._value) @@ -2638,7 +2637,7 @@ def __init__(self, @property def values(self): """ - :rtype: list of [team.FeatureValue] + :rtype: list of [FeatureValue] """ if self._values_present: return self._values_value @@ -2656,8 +2655,8 @@ def values(self): self._values_value = None self._values_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FeaturesGetValuesBatchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FeaturesGetValuesBatchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FeaturesGetValuesBatchResult(values={!r})'.format( @@ -3141,8 +3140,8 @@ def shared_links_viewed_total(self): self._shared_links_viewed_total_value = None self._shared_links_viewed_total_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetActivityReport, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetActivityReport, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetActivityReport(start_date={!r}, adds={!r}, edits={!r}, deletes={!r}, active_users_28_day={!r}, active_users_7_day={!r}, active_users_1_day={!r}, active_shared_folders_28_day={!r}, active_shared_folders_7_day={!r}, active_shared_folders_1_day={!r}, shared_links_created={!r}, shared_links_viewed_by_team={!r}, shared_links_viewed_by_outside_user={!r}, shared_links_viewed_by_not_logged_in={!r}, shared_links_viewed_total={!r})'.format( @@ -3215,7 +3214,7 @@ def active_1_day(self): """ Report of the number of devices active in the last day. - :rtype: team.DevicesActive + :rtype: DevicesActive """ if self._active_1_day_present: return self._active_1_day_value @@ -3238,7 +3237,7 @@ def active_7_day(self): """ Report of the number of devices active in the last 7 days. - :rtype: team.DevicesActive + :rtype: DevicesActive """ if self._active_7_day_present: return self._active_7_day_value @@ -3261,7 +3260,7 @@ def active_28_day(self): """ Report of the number of devices active in the last 28 days. - :rtype: team.DevicesActive + :rtype: DevicesActive """ if self._active_28_day_present: return self._active_28_day_value @@ -3279,8 +3278,8 @@ def active_28_day(self): self._active_28_day_value = None self._active_28_day_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetDevicesReport, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetDevicesReport, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetDevicesReport(start_date={!r}, active_1_day={!r}, active_7_day={!r}, active_28_day={!r})'.format( @@ -3468,8 +3467,8 @@ def licenses(self): self._licenses_value = None self._licenses_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetMembershipReport, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetMembershipReport, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetMembershipReport(start_date={!r}, team_size={!r}, pending_invites={!r}, members_joined={!r}, suspended_members={!r}, licenses={!r})'.format( @@ -3654,7 +3653,7 @@ def member_storage_map(self): per day. If there is no data for a day, the storage summary will be empty. - :rtype: list of [list of [team.StorageBucket]] + :rtype: list of [list of [StorageBucket]] """ if self._member_storage_map_present: return self._member_storage_map_value @@ -3672,8 +3671,8 @@ def member_storage_map(self): self._member_storage_map_value = None self._member_storage_map_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetStorageReport, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetStorageReport, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetStorageReport(start_date={!r}, total_usage={!r}, shared_usage={!r}, unshared_usage={!r}, shared_folders={!r}, member_storage_map={!r})'.format( @@ -3723,8 +3722,8 @@ def is_owner(self): """ return self._tag == 'owner' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupAccessType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupAccessType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupAccessType(%r, %r)' % (self._tag, self._value) @@ -3845,8 +3844,8 @@ def group_management_type(self): self._group_management_type_value = None self._group_management_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupCreateArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupCreateArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupCreateArg(group_name={!r}, group_external_id={!r}, group_management_type={!r})'.format( @@ -3925,8 +3924,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupCreateError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupCreateError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupCreateError(%r, %r)' % (self._tag, self._value) @@ -3967,8 +3966,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupSelectorError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupSelectorError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupSelectorError(%r, %r)' % (self._tag, self._value) @@ -3999,8 +3998,8 @@ def is_system_managed_group_disallowed(self): """ return self._tag == 'system_managed_group_disallowed' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupSelectorWithTeamGroupError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupSelectorWithTeamGroupError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupSelectorWithTeamGroupError(%r, %r)' % (self._tag, self._value) @@ -4028,8 +4027,8 @@ def is_group_already_deleted(self): """ return self._tag == 'group_already_deleted' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupDeleteError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupDeleteError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupDeleteError(%r, %r)' % (self._tag, self._value) @@ -4081,7 +4080,7 @@ def members(self): """ List of group members. - :rtype: list of [team.GroupMemberInfo] + :rtype: list of [GroupMemberInfo] """ if self._members_present: return self._members_value @@ -4126,8 +4125,8 @@ def created(self): self._created_value = None self._created_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupFullInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupFullInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupFullInfo(group_name={!r}, group_id={!r}, group_management_type={!r}, created={!r}, group_external_id={!r}, member_count={!r}, members={!r})'.format( @@ -4177,7 +4176,7 @@ def profile(self): """ Profile of group member. - :rtype: team.MemberProfile + :rtype: MemberProfile """ if self._profile_present: return self._profile_value @@ -4200,7 +4199,7 @@ def access_type(self): """ The role that the user has in the group. - :rtype: team.GroupAccessType + :rtype: GroupAccessType """ if self._access_type_present: return self._access_type_value @@ -4218,8 +4217,8 @@ def access_type(self): self._access_type_value = None self._access_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMemberInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMemberInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMemberInfo(profile={!r}, access_type={!r})'.format( @@ -4264,7 +4263,7 @@ def group(self): """ Specify a group. - :rtype: team.GroupSelector + :rtype: GroupSelector """ if self._group_present: return self._group_value @@ -4287,7 +4286,7 @@ def user(self): """ Identity of a user that is a member of ``group``. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._user_present: return self._user_value @@ -4305,8 +4304,8 @@ def user(self): self._user_value = None self._user_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMemberSelector, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMemberSelector, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMemberSelector(group={!r}, user={!r})'.format( @@ -4340,8 +4339,8 @@ def is_member_not_in_group(self): """ return self._tag == 'member_not_in_group' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMemberSelectorError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMemberSelectorError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMemberSelectorError(%r, %r)' % (self._tag, self._value) @@ -4370,8 +4369,8 @@ def is_user_cannot_be_manager_of_company_managed_group(self): """ return self._tag == 'user_cannot_be_manager_of_company_managed_group' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMemberSetAccessTypeError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMemberSetAccessTypeError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMemberSetAccessTypeError(%r, %r)' % (self._tag, self._value) @@ -4425,8 +4424,8 @@ def return_members(self): self._return_members_value = None self._return_members_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(IncludeMembersArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(IncludeMembersArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'IncludeMembersArg(return_members={!r})'.format( @@ -4470,7 +4469,7 @@ def group(self): """ Group to which users will be added. - :rtype: team.GroupSelector + :rtype: GroupSelector """ if self._group_present: return self._group_value @@ -4493,7 +4492,7 @@ def members(self): """ List of users to be added to the group. - :rtype: list of [team.MemberAccess] + :rtype: list of [MemberAccess] """ if self._members_present: return self._members_value @@ -4511,8 +4510,8 @@ def members(self): self._members_value = None self._members_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMembersAddArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMembersAddArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMembersAddArg(group={!r}, members={!r}, return_members={!r})'.format( @@ -4562,7 +4561,7 @@ def members_not_in_team(cls, val): with value ``val``. :param list of [str] val: - :rtype: team.GroupMembersAddError + :rtype: GroupMembersAddError """ return cls('members_not_in_team', val) @@ -4573,7 +4572,7 @@ def users_not_found(cls, val): value ``val``. :param list of [str] val: - :rtype: team.GroupMembersAddError + :rtype: GroupMembersAddError """ return cls('users_not_found', val) @@ -4585,7 +4584,7 @@ def user_cannot_be_manager_of_company_managed_group(cls, val): ``val``. :param list of [str] val: - :rtype: team.GroupMembersAddError + :rtype: GroupMembersAddError """ return cls('user_cannot_be_manager_of_company_managed_group', val) @@ -4677,8 +4676,8 @@ def get_user_cannot_be_manager_of_company_managed_group(self): raise AttributeError("tag 'user_cannot_be_manager_of_company_managed_group' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMembersAddError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMembersAddError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMembersAddError(%r, %r)' % (self._tag, self._value) @@ -4722,7 +4721,7 @@ def group_info(self): """ The group info after member change operation has been performed. - :rtype: team.GroupFullInfo + :rtype: GroupFullInfo """ if self._group_info_present: return self._group_info_value @@ -4764,8 +4763,8 @@ def async_job_id(self): self._async_job_id_value = None self._async_job_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMembersChangeResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMembersChangeResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMembersChangeResult(group_info={!r}, async_job_id={!r})'.format( @@ -4811,7 +4810,7 @@ def group(self): """ Group from which users will be removed. - :rtype: team.GroupSelector + :rtype: GroupSelector """ if self._group_present: return self._group_value @@ -4834,7 +4833,7 @@ def users(self): """ List of users to be removed from the group. - :rtype: list of [team.UserSelectorArg] + :rtype: list of [UserSelectorArg] """ if self._users_present: return self._users_value @@ -4852,8 +4851,8 @@ def users(self): self._users_value = None self._users_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMembersRemoveArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMembersRemoveArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMembersRemoveArg(group={!r}, users={!r}, return_members={!r})'.format( @@ -4888,8 +4887,8 @@ def is_member_not_in_group(self): """ return self._tag == 'member_not_in_group' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMembersSelectorError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMembersSelectorError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMembersSelectorError(%r, %r)' % (self._tag, self._value) @@ -4921,7 +4920,7 @@ def members_not_in_team(cls, val): with value ``val``. :param list of [str] val: - :rtype: team.GroupMembersRemoveError + :rtype: GroupMembersRemoveError """ return cls('members_not_in_team', val) @@ -4932,7 +4931,7 @@ def users_not_found(cls, val): value ``val``. :param list of [str] val: - :rtype: team.GroupMembersRemoveError + :rtype: GroupMembersRemoveError """ return cls('users_not_found', val) @@ -4984,8 +4983,8 @@ def get_users_not_found(self): raise AttributeError("tag 'users_not_found' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMembersRemoveError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMembersRemoveError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMembersRemoveError(%r, %r)' % (self._tag, self._value) @@ -5027,7 +5026,7 @@ def group(self): """ Specify a group. - :rtype: team.GroupSelector + :rtype: GroupSelector """ if self._group_present: return self._group_value @@ -5050,7 +5049,7 @@ def users(self): """ A list of users that are members of ``group``. - :rtype: team.UsersSelectorArg + :rtype: UsersSelectorArg """ if self._users_present: return self._users_value @@ -5068,8 +5067,8 @@ def users(self): self._users_value = None self._users_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMembersSelector, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMembersSelector, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMembersSelector(group={!r}, users={!r})'.format( @@ -5119,7 +5118,7 @@ def access_type(self): """ New group access type the user will have. - :rtype: team.GroupAccessType + :rtype: GroupAccessType """ if self._access_type_present: return self._access_type_value @@ -5162,8 +5161,8 @@ def return_members(self): self._return_members_value = None self._return_members_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMembersSetAccessTypeArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMembersSetAccessTypeArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMembersSetAccessTypeArg(group={!r}, user={!r}, access_type={!r}, return_members={!r})'.format( @@ -5197,7 +5196,7 @@ def group_id(cls, val): ``val``. :param str val: - :rtype: team.GroupSelector + :rtype: GroupSelector """ return cls('group_id', val) @@ -5208,7 +5207,7 @@ def group_external_id(cls, val): with value ``val``. :param str val: - :rtype: team.GroupSelector + :rtype: GroupSelector """ return cls('group_external_id', val) @@ -5252,8 +5251,8 @@ def get_group_external_id(self): raise AttributeError("tag 'group_external_id' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GroupSelector, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupSelector, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupSelector(%r, %r)' % (self._tag, self._value) @@ -5315,7 +5314,7 @@ def group(self): """ Specify a group. - :rtype: team.GroupSelector + :rtype: GroupSelector """ if self._group_present: return self._group_value @@ -5413,8 +5412,8 @@ def new_group_management_type(self): self._new_group_management_type_value = None self._new_group_management_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupUpdateArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupUpdateArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupUpdateArgs(group={!r}, return_members={!r}, new_group_name={!r}, new_group_external_id={!r}, new_group_management_type={!r})'.format( @@ -5472,8 +5471,8 @@ def is_external_id_already_in_use(self): """ return self._tag == 'external_id_already_in_use' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupUpdateError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupUpdateError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupUpdateError(%r, %r)' % (self._tag, self._value) @@ -5512,8 +5511,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsGetInfoError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsGetInfoError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsGetInfoError(%r, %r)' % (self._tag, self._value) @@ -5530,7 +5529,7 @@ class GroupsGetInfoItem(bb.Union): parameter to :route:`groups/get_info`, and did not match a corresponding group. The ID can be a group ID, or an external ID, depending on how the method was called. - :ivar GroupFullInfo team.GroupsGetInfoItem.group_info: Info about a group. + :ivar GroupFullInfo GroupsGetInfoItem.group_info: Info about a group. """ _catch_all = None @@ -5542,7 +5541,7 @@ def id_not_found(cls, val): value ``val``. :param str val: - :rtype: team.GroupsGetInfoItem + :rtype: GroupsGetInfoItem """ return cls('id_not_found', val) @@ -5552,8 +5551,8 @@ def group_info(cls, val): Create an instance of this class set to the ``group_info`` tag with value ``val``. - :param team.GroupFullInfo val: - :rtype: team.GroupsGetInfoItem + :param GroupFullInfo val: + :rtype: GroupsGetInfoItem """ return cls('group_info', val) @@ -5594,14 +5593,14 @@ def get_group_info(self): Only call this if :meth:`is_group_info` is true. - :rtype: team.GroupFullInfo + :rtype: GroupFullInfo """ if not self.is_group_info(): raise AttributeError("tag 'group_info' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsGetInfoItem, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsGetInfoItem, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsGetInfoItem(%r, %r)' % (self._tag, self._value) @@ -5650,8 +5649,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsListArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsListArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsListArg(limit={!r})'.format( @@ -5703,8 +5702,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsListContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsListContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsListContinueArg(cursor={!r})'.format( @@ -5744,8 +5743,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsListContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsListContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsListContinueError(%r, %r)' % (self._tag, self._value) @@ -5863,8 +5862,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsListResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsListResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsListResult(groups={!r}, cursor={!r}, has_more={!r})'.format( @@ -5908,7 +5907,7 @@ def group(self): """ The group whose members are to be listed. - :rtype: team.GroupSelector + :rtype: GroupSelector """ if self._group_present: return self._group_value @@ -5949,8 +5948,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsMembersListArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsMembersListArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsMembersListArg(group={!r}, limit={!r})'.format( @@ -6003,8 +6002,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsMembersListContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsMembersListContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsMembersListContinueArg(cursor={!r})'.format( @@ -6045,8 +6044,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsMembersListContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsMembersListContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsMembersListContinueError(%r, %r)' % (self._tag, self._value) @@ -6095,7 +6094,7 @@ def __init__(self, @property def members(self): """ - :rtype: list of [team.GroupMemberInfo] + :rtype: list of [GroupMemberInfo] """ if self._members_present: return self._members_value @@ -6164,8 +6163,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsMembersListResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsMembersListResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsMembersListResult(members={!r}, cursor={!r}, has_more={!r})'.format( @@ -6197,8 +6196,8 @@ def is_access_denied(self): """ return self._tag == 'access_denied' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsPollError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsPollError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsPollError(%r, %r)' % (self._tag, self._value) @@ -6228,7 +6227,7 @@ def group_ids(cls, val): ``val``. :param list of [str] val: - :rtype: team.GroupsSelector + :rtype: GroupsSelector """ return cls('group_ids', val) @@ -6239,7 +6238,7 @@ def group_external_ids(cls, val): with value ``val``. :param list of [str] val: - :rtype: team.GroupsSelector + :rtype: GroupsSelector """ return cls('group_external_ids', val) @@ -6283,8 +6282,8 @@ def get_group_external_ids(self): raise AttributeError("tag 'group_external_ids' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GroupsSelector, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupsSelector, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupsSelector(%r, %r)' % (self._tag, self._value) @@ -6314,7 +6313,7 @@ def enabled(cls, val): ``val``. :param bool val: - :rtype: team.HasTeamFileEventsValue + :rtype: HasTeamFileEventsValue """ return cls('enabled', val) @@ -6346,8 +6345,8 @@ def get_enabled(self): raise AttributeError("tag 'enabled' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(HasTeamFileEventsValue, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(HasTeamFileEventsValue, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'HasTeamFileEventsValue(%r, %r)' % (self._tag, self._value) @@ -6377,7 +6376,7 @@ def has_team_selective_sync(cls, val): tag with value ``val``. :param bool val: - :rtype: team.HasTeamSelectiveSyncValue + :rtype: HasTeamSelectiveSyncValue """ return cls('has_team_selective_sync', val) @@ -6409,8 +6408,8 @@ def get_has_team_selective_sync(self): raise AttributeError("tag 'has_team_selective_sync' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(HasTeamSelectiveSyncValue, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(HasTeamSelectiveSyncValue, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'HasTeamSelectiveSyncValue(%r, %r)' % (self._tag, self._value) @@ -6440,7 +6439,7 @@ def has_team_shared_dropbox(cls, val): tag with value ``val``. :param bool val: - :rtype: team.HasTeamSharedDropboxValue + :rtype: HasTeamSharedDropboxValue """ return cls('has_team_shared_dropbox', val) @@ -6472,8 +6471,8 @@ def get_has_team_shared_dropbox(self): raise AttributeError("tag 'has_team_shared_dropbox' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(HasTeamSharedDropboxValue, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(HasTeamSharedDropboxValue, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'HasTeamSharedDropboxValue(%r, %r)' % (self._tag, self._value) @@ -6522,8 +6521,8 @@ def team_member_id(self): self._team_member_id_value = None self._team_member_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListMemberAppsArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMemberAppsArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMemberAppsArg(team_member_id={!r})'.format( @@ -6566,8 +6565,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListMemberAppsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMemberAppsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMemberAppsError(%r, %r)' % (self._tag, self._value) @@ -6599,7 +6598,7 @@ def linked_api_apps(self): """ List of third party applications linked by this team member. - :rtype: list of [team.ApiApp] + :rtype: list of [ApiApp] """ if self._linked_api_apps_present: return self._linked_api_apps_value @@ -6617,8 +6616,8 @@ def linked_api_apps(self): self._linked_api_apps_value = None self._linked_api_apps_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListMemberAppsResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMemberAppsResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMemberAppsResult(linked_api_apps={!r})'.format( @@ -6765,8 +6764,8 @@ def include_mobile_clients(self): self._include_mobile_clients_value = None self._include_mobile_clients_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListMemberDevicesArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMemberDevicesArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMemberDevicesArg(team_member_id={!r}, include_web_sessions={!r}, include_desktop_clients={!r}, include_mobile_clients={!r})'.format( @@ -6809,8 +6808,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListMemberDevicesError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMemberDevicesError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMemberDevicesError(%r, %r)' % (self._tag, self._value) @@ -6860,7 +6859,7 @@ def active_web_sessions(self): """ List of web sessions made by this team member. - :rtype: list of [team.ActiveWebSession] + :rtype: list of [ActiveWebSession] """ if self._active_web_sessions_present: return self._active_web_sessions_value @@ -6886,7 +6885,7 @@ def desktop_client_sessions(self): """ List of desktop clients used by this team member. - :rtype: list of [team.DesktopClientSession] + :rtype: list of [DesktopClientSession] """ if self._desktop_client_sessions_present: return self._desktop_client_sessions_value @@ -6912,7 +6911,7 @@ def mobile_client_sessions(self): """ List of mobile client used by this team member. - :rtype: list of [team.MobileClientSession] + :rtype: list of [MobileClientSession] """ if self._mobile_client_sessions_present: return self._mobile_client_sessions_value @@ -6933,8 +6932,8 @@ def mobile_client_sessions(self): self._mobile_client_sessions_value = None self._mobile_client_sessions_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListMemberDevicesResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMemberDevicesResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMemberDevicesResult(active_web_sessions={!r}, desktop_client_sessions={!r}, mobile_client_sessions={!r})'.format( @@ -7001,8 +7000,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListMembersAppsArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMembersAppsArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMembersAppsArg(cursor={!r})'.format( @@ -7048,8 +7047,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListMembersAppsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMembersAppsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMembersAppsError(%r, %r)' % (self._tag, self._value) @@ -7105,7 +7104,7 @@ def apps(self): """ The linked applications of each member of the team. - :rtype: list of [team.MemberLinkedApps] + :rtype: list of [MemberLinkedApps] """ if self._apps_present: return self._apps_value @@ -7176,8 +7175,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListMembersAppsResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMembersAppsResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMembersAppsResult(apps={!r}, has_more={!r}, cursor={!r})'.format( @@ -7337,8 +7336,8 @@ def include_mobile_clients(self): self._include_mobile_clients_value = None self._include_mobile_clients_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListMembersDevicesArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMembersDevicesArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMembersDevicesArg(cursor={!r}, include_web_sessions={!r}, include_desktop_clients={!r}, include_mobile_clients={!r})'.format( @@ -7384,8 +7383,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListMembersDevicesError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMembersDevicesError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMembersDevicesError(%r, %r)' % (self._tag, self._value) @@ -7438,7 +7437,7 @@ def devices(self): """ The devices of each member of the team. - :rtype: list of [team.MemberDevices] + :rtype: list of [MemberDevices] """ if self._devices_present: return self._devices_value @@ -7509,8 +7508,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListMembersDevicesResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListMembersDevicesResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListMembersDevicesResult(devices={!r}, has_more={!r}, cursor={!r})'.format( @@ -7577,8 +7576,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListTeamAppsArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListTeamAppsArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListTeamAppsArg(cursor={!r})'.format( @@ -7624,8 +7623,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListTeamAppsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListTeamAppsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListTeamAppsError(%r, %r)' % (self._tag, self._value) @@ -7681,7 +7680,7 @@ def apps(self): """ The linked applications of each member of the team. - :rtype: list of [team.MemberLinkedApps] + :rtype: list of [MemberLinkedApps] """ if self._apps_present: return self._apps_value @@ -7752,8 +7751,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListTeamAppsResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListTeamAppsResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListTeamAppsResult(apps={!r}, has_more={!r}, cursor={!r})'.format( @@ -7913,8 +7912,8 @@ def include_mobile_clients(self): self._include_mobile_clients_value = None self._include_mobile_clients_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListTeamDevicesArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListTeamDevicesArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListTeamDevicesArg(cursor={!r}, include_web_sessions={!r}, include_desktop_clients={!r}, include_mobile_clients={!r})'.format( @@ -7960,8 +7959,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ListTeamDevicesError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListTeamDevicesError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListTeamDevicesError(%r, %r)' % (self._tag, self._value) @@ -8014,7 +8013,7 @@ def devices(self): """ The devices of each member of the team. - :rtype: list of [team.MemberDevices] + :rtype: list of [MemberDevices] """ if self._devices_present: return self._devices_value @@ -8085,8 +8084,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ListTeamDevicesResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ListTeamDevicesResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ListTeamDevicesResult(devices={!r}, has_more={!r}, cursor={!r})'.format( @@ -8131,7 +8130,7 @@ def user(self): """ Identity of a user. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._user_present: return self._user_value @@ -8154,7 +8153,7 @@ def access_type(self): """ Access type. - :rtype: team.GroupAccessType + :rtype: GroupAccessType """ if self._access_type_present: return self._access_type_value @@ -8172,8 +8171,8 @@ def access_type(self): self._access_type_value = None self._access_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberAccess, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberAccess, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberAccess(user={!r}, access_type={!r})'.format( @@ -8416,7 +8415,7 @@ def send_welcome_email(self): @property def role(self): """ - :rtype: team.AdminTier + :rtype: AdminTier """ if self._role_present: return self._role_value @@ -8460,8 +8459,8 @@ def is_directory_restricted(self): self._is_directory_restricted_value = None self._is_directory_restricted_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberAddArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberAddArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberAddArg(member_email={!r}, member_given_name={!r}, member_surname={!r}, member_external_id={!r}, member_persistent_id={!r}, send_welcome_email={!r}, role={!r}, is_directory_restricted={!r})'.format( @@ -8488,7 +8487,7 @@ class MemberAddResult(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar TeamMemberInfo team.MemberAddResult.success: Describes a user that was + :ivar TeamMemberInfo MemberAddResult.success: Describes a user that was successfully added to the team. :ivar str team.MemberAddResult.team_license_limit: Team is already full. The organization has no available licenses. @@ -8525,8 +8524,8 @@ def success(cls, val): Create an instance of this class set to the ``success`` tag with value ``val``. - :param team.TeamMemberInfo val: - :rtype: team.MemberAddResult + :param TeamMemberInfo val: + :rtype: MemberAddResult """ return cls('success', val) @@ -8537,7 +8536,7 @@ def team_license_limit(cls, val): with value ``val``. :param str val: - :rtype: team.MemberAddResult + :rtype: MemberAddResult """ return cls('team_license_limit', val) @@ -8548,7 +8547,7 @@ def free_team_member_limit_reached(cls, val): ``free_team_member_limit_reached`` tag with value ``val``. :param str val: - :rtype: team.MemberAddResult + :rtype: MemberAddResult """ return cls('free_team_member_limit_reached', val) @@ -8559,7 +8558,7 @@ def user_already_on_team(cls, val): with value ``val``. :param str val: - :rtype: team.MemberAddResult + :rtype: MemberAddResult """ return cls('user_already_on_team', val) @@ -8570,7 +8569,7 @@ def user_on_another_team(cls, val): with value ``val``. :param str val: - :rtype: team.MemberAddResult + :rtype: MemberAddResult """ return cls('user_on_another_team', val) @@ -8581,7 +8580,7 @@ def user_already_paired(cls, val): with value ``val``. :param str val: - :rtype: team.MemberAddResult + :rtype: MemberAddResult """ return cls('user_already_paired', val) @@ -8592,7 +8591,7 @@ def user_migration_failed(cls, val): tag with value ``val``. :param str val: - :rtype: team.MemberAddResult + :rtype: MemberAddResult """ return cls('user_migration_failed', val) @@ -8603,7 +8602,7 @@ def duplicate_external_member_id(cls, val): ``duplicate_external_member_id`` tag with value ``val``. :param str val: - :rtype: team.MemberAddResult + :rtype: MemberAddResult """ return cls('duplicate_external_member_id', val) @@ -8614,7 +8613,7 @@ def duplicate_member_persistent_id(cls, val): ``duplicate_member_persistent_id`` tag with value ``val``. :param str val: - :rtype: team.MemberAddResult + :rtype: MemberAddResult """ return cls('duplicate_member_persistent_id', val) @@ -8625,7 +8624,7 @@ def persistent_id_disabled(cls, val): tag with value ``val``. :param str val: - :rtype: team.MemberAddResult + :rtype: MemberAddResult """ return cls('persistent_id_disabled', val) @@ -8636,7 +8635,7 @@ def user_creation_failed(cls, val): with value ``val``. :param str val: - :rtype: team.MemberAddResult + :rtype: MemberAddResult """ return cls('user_creation_failed', val) @@ -8734,7 +8733,7 @@ def get_success(self): Only call this if :meth:`is_success` is true. - :rtype: team.TeamMemberInfo + :rtype: TeamMemberInfo """ if not self.is_success(): raise AttributeError("tag 'success' not set") @@ -8867,8 +8866,8 @@ def get_user_creation_failed(self): raise AttributeError("tag 'user_creation_failed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(MemberAddResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberAddResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberAddResult(%r, %r)' % (self._tag, self._value) @@ -8951,7 +8950,7 @@ def web_sessions(self): """ List of web sessions made by this team member. - :rtype: list of [team.ActiveWebSession] + :rtype: list of [ActiveWebSession] """ if self._web_sessions_present: return self._web_sessions_value @@ -8977,7 +8976,7 @@ def desktop_clients(self): """ List of desktop clients by this team member. - :rtype: list of [team.DesktopClientSession] + :rtype: list of [DesktopClientSession] """ if self._desktop_clients_present: return self._desktop_clients_value @@ -9003,7 +9002,7 @@ def mobile_clients(self): """ List of mobile clients by this team member. - :rtype: list of [team.MobileClientSession] + :rtype: list of [MobileClientSession] """ if self._mobile_clients_present: return self._mobile_clients_value @@ -9024,8 +9023,8 @@ def mobile_clients(self): self._mobile_clients_value = None self._mobile_clients_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberDevices, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberDevices, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberDevices(team_member_id={!r}, web_sessions={!r}, desktop_clients={!r}, mobile_clients={!r})'.format( @@ -9095,7 +9094,7 @@ def linked_api_apps(self): """ List of third party applications linked by this team member. - :rtype: list of [team.ApiApp] + :rtype: list of [ApiApp] """ if self._linked_api_apps_present: return self._linked_api_apps_value @@ -9113,8 +9112,8 @@ def linked_api_apps(self): self._linked_api_apps_value = None self._linked_api_apps_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberLinkedApps, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberLinkedApps, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberLinkedApps(team_member_id={!r}, linked_api_apps={!r})'.format( @@ -9144,11 +9143,16 @@ class MemberProfile(bb.Struct): the team's shared quota). :ivar team.MemberProfile.joined_on: The date and time the user joined as a member of a specific team. + :ivar team.MemberProfile.suspended_on: The date and time the user was + suspended from the team (contains value only when the member's status + matches ``TeamMemberStatus.suspended``. :ivar team.MemberProfile.persistent_id: Persistent ID that a team can attach to the user. The persistent ID is unique ID to be used for SAML authentication. :ivar team.MemberProfile.is_directory_restricted: Whether the user is a directory restricted user. + :ivar team.MemberProfile.profile_photo_url: URL for the photo representing + the user, if one is set. """ __slots__ = [ @@ -9170,10 +9174,14 @@ class MemberProfile(bb.Struct): '_membership_type_present', '_joined_on_value', '_joined_on_present', + '_suspended_on_value', + '_suspended_on_present', '_persistent_id_value', '_persistent_id_present', '_is_directory_restricted_value', '_is_directory_restricted_present', + '_profile_photo_url_value', + '_profile_photo_url_present', ] _has_required_fields = True @@ -9188,8 +9196,10 @@ def __init__(self, external_id=None, account_id=None, joined_on=None, + suspended_on=None, persistent_id=None, - is_directory_restricted=None): + is_directory_restricted=None, + profile_photo_url=None): self._team_member_id_value = None self._team_member_id_present = False self._external_id_value = None @@ -9208,10 +9218,14 @@ def __init__(self, self._membership_type_present = False self._joined_on_value = None self._joined_on_present = False + self._suspended_on_value = None + self._suspended_on_present = False self._persistent_id_value = None self._persistent_id_present = False self._is_directory_restricted_value = None self._is_directory_restricted_present = False + self._profile_photo_url_value = None + self._profile_photo_url_present = False if team_member_id is not None: self.team_member_id = team_member_id if external_id is not None: @@ -9230,10 +9244,14 @@ def __init__(self, self.membership_type = membership_type if joined_on is not None: self.joined_on = joined_on + if suspended_on is not None: + self.suspended_on = suspended_on if persistent_id is not None: self.persistent_id = persistent_id if is_directory_restricted is not None: self.is_directory_restricted = is_directory_restricted + if profile_photo_url is not None: + self.profile_photo_url = profile_photo_url @property def team_member_id(self): @@ -9363,7 +9381,7 @@ def status(self): """ The user's status as a member of a specific team. - :rtype: team.TeamMemberStatus + :rtype: TeamMemberStatus """ if self._status_present: return self._status_value @@ -9410,7 +9428,7 @@ def membership_type(self): The user's membership type: full (normal team member) vs limited (does not use a license; no access to the team's shared quota). - :rtype: team.TeamMembershipType + :rtype: TeamMembershipType """ if self._membership_type_present: return self._membership_type_value @@ -9454,6 +9472,33 @@ def joined_on(self): self._joined_on_value = None self._joined_on_present = False + @property + def suspended_on(self): + """ + The date and time the user was suspended from the team (contains value + only when the member's status matches ``TeamMemberStatus.suspended``. + + :rtype: datetime.datetime + """ + if self._suspended_on_present: + return self._suspended_on_value + else: + return None + + @suspended_on.setter + def suspended_on(self, val): + if val is None: + del self.suspended_on + return + val = self._suspended_on_validator.validate(val) + self._suspended_on_value = val + self._suspended_on_present = True + + @suspended_on.deleter + def suspended_on(self): + self._suspended_on_value = None + self._suspended_on_present = False + @property def persistent_id(self): """ @@ -9507,11 +9552,37 @@ def is_directory_restricted(self): self._is_directory_restricted_value = None self._is_directory_restricted_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberProfile, self)._process_custom_annotations(annotation_type, processor) + @property + def profile_photo_url(self): + """ + URL for the photo representing the user, if one is set. + + :rtype: str + """ + if self._profile_photo_url_present: + return self._profile_photo_url_value + else: + return None + + @profile_photo_url.setter + def profile_photo_url(self, val): + if val is None: + del self.profile_photo_url + return + val = self._profile_photo_url_validator.validate(val) + self._profile_photo_url_value = val + self._profile_photo_url_present = True + + @profile_photo_url.deleter + def profile_photo_url(self): + self._profile_photo_url_value = None + self._profile_photo_url_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberProfile, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberProfile(team_member_id={!r}, email={!r}, email_verified={!r}, status={!r}, name={!r}, membership_type={!r}, external_id={!r}, account_id={!r}, joined_on={!r}, persistent_id={!r}, is_directory_restricted={!r})'.format( + return 'MemberProfile(team_member_id={!r}, email={!r}, email_verified={!r}, status={!r}, name={!r}, membership_type={!r}, external_id={!r}, account_id={!r}, joined_on={!r}, suspended_on={!r}, persistent_id={!r}, is_directory_restricted={!r}, profile_photo_url={!r})'.format( self._team_member_id_value, self._email_value, self._email_verified_value, @@ -9521,8 +9592,10 @@ def __repr__(self): self._external_id_value, self._account_id_value, self._joined_on_value, + self._suspended_on_value, self._persistent_id_value, self._is_directory_restricted_value, + self._profile_photo_url_value, ) MemberProfile_validator = bv.Struct(MemberProfile) @@ -9553,8 +9626,8 @@ def is_user_not_found(self): """ return self._tag == 'user_not_found' - def _process_custom_annotations(self, annotation_type, processor): - super(UserSelectorError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserSelectorError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserSelectorError(%r, %r)' % (self._tag, self._value) @@ -9582,8 +9655,8 @@ def is_user_not_in_team(self): """ return self._tag == 'user_not_in_team' - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSelectorError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSelectorError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberSelectorError(%r, %r)' % (self._tag, self._value) @@ -9624,7 +9697,7 @@ def new_members(self): """ Details of new members to be added to the team. - :rtype: list of [team.MemberAddArg] + :rtype: list of [MemberAddArg] """ if self._new_members_present: return self._new_members_value @@ -9665,8 +9738,8 @@ def force_async(self): self._force_async_value = None self._force_async_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersAddArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersAddArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersAddArg(new_members={!r}, force_async={!r})'.format( @@ -9682,7 +9755,7 @@ class MembersAddJobStatus(async_.PollResultBase): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar list of [team.MemberAddResult] team.MembersAddJobStatus.complete: The + :ivar list of [MemberAddResult] team.MembersAddJobStatus.complete: The asynchronous job has finished. For each member that was specified in the parameter :type:`MembersAddArg` that was provided to :route:`members/add`, a corresponding item is returned in this list. @@ -9696,8 +9769,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param list of [team.MemberAddResult] val: - :rtype: team.MembersAddJobStatus + :param list of [MemberAddResult] val: + :rtype: MembersAddJobStatus """ return cls('complete', val) @@ -9708,7 +9781,7 @@ def failed(cls, val): ``val``. :param str val: - :rtype: team.MembersAddJobStatus + :rtype: MembersAddJobStatus """ return cls('failed', val) @@ -9737,7 +9810,7 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: list of [team.MemberAddResult] + :rtype: list of [MemberAddResult] """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") @@ -9756,8 +9829,8 @@ def get_failed(self): raise AttributeError("tag 'failed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(MembersAddJobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersAddJobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersAddJobStatus(%r, %r)' % (self._tag, self._value) @@ -9777,8 +9850,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param list of [team.MemberAddResult] val: - :rtype: team.MembersAddLaunch + :param list of [MemberAddResult] val: + :rtype: MembersAddLaunch """ return cls('complete', val) @@ -9794,14 +9867,14 @@ def get_complete(self): """ Only call this if :meth:`is_complete` is true. - :rtype: list of [team.MemberAddResult] + :rtype: list of [MemberAddResult] """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(MembersAddLaunch, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersAddLaunch, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersAddLaunch(%r, %r)' % (self._tag, self._value) @@ -9836,7 +9909,7 @@ def user(self): """ Identity of user to remove/suspend/have their files moved. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._user_present: return self._user_value @@ -9854,8 +9927,8 @@ def user(self): self._user_value = None self._user_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersDeactivateBaseArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersDeactivateBaseArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersDeactivateBaseArg(user={!r})'.format( @@ -9900,7 +9973,7 @@ def transfer_dest_id(self): """ Files from the deleted member account will be transferred to this user. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._transfer_dest_id_present: return self._transfer_dest_id_value @@ -9923,7 +9996,7 @@ def transfer_admin_id(self): """ Errors during the transfer process will be sent via email to this user. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._transfer_admin_id_present: return self._transfer_admin_id_value @@ -9941,8 +10014,8 @@ def transfer_admin_id(self): self._transfer_admin_id_value = None self._transfer_admin_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersDataTransferArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersDataTransferArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersDataTransferArg(user={!r}, transfer_dest_id={!r}, transfer_admin_id={!r})'.format( @@ -9999,8 +10072,8 @@ def wipe_data(self): self._wipe_data_value = None self._wipe_data_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersDeactivateArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersDeactivateArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersDeactivateArg(user={!r}, wipe_data={!r})'.format( @@ -10042,8 +10115,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersDeactivateError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersDeactivateError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersDeactivateError(%r, %r)' % (self._tag, self._value) @@ -10074,7 +10147,7 @@ def members(self): """ List of team members. - :rtype: list of [team.UserSelectorArg] + :rtype: list of [UserSelectorArg] """ if self._members_present: return self._members_value @@ -10092,8 +10165,8 @@ def members(self): self._members_value = None self._members_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersGetInfoArgs, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersGetInfoArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersGetInfoArgs(members={!r})'.format( @@ -10121,8 +10194,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersGetInfoError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersGetInfoError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersGetInfoError(%r, %r)' % (self._tag, self._value) @@ -10142,7 +10215,7 @@ class MembersGetInfoItem(bb.Union): parameter to :route:`members/get_info`, and did not match a corresponding user. This might be a team_member_id, an email, or an external ID, depending on how the method was called. - :ivar TeamMemberInfo team.MembersGetInfoItem.member_info: Info about a team + :ivar TeamMemberInfo MembersGetInfoItem.member_info: Info about a team member. """ @@ -10155,7 +10228,7 @@ def id_not_found(cls, val): value ``val``. :param str val: - :rtype: team.MembersGetInfoItem + :rtype: MembersGetInfoItem """ return cls('id_not_found', val) @@ -10165,8 +10238,8 @@ def member_info(cls, val): Create an instance of this class set to the ``member_info`` tag with value ``val``. - :param team.TeamMemberInfo val: - :rtype: team.MembersGetInfoItem + :param TeamMemberInfo val: + :rtype: MembersGetInfoItem """ return cls('member_info', val) @@ -10207,14 +10280,14 @@ def get_member_info(self): Only call this if :meth:`is_member_info` is true. - :rtype: team.TeamMemberInfo + :rtype: TeamMemberInfo """ if not self.is_member_info(): raise AttributeError("tag 'member_info' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(MembersGetInfoItem, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersGetInfoItem, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersGetInfoItem(%r, %r)' % (self._tag, self._value) @@ -10295,8 +10368,8 @@ def include_removed(self): self._include_removed_value = None self._include_removed_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersListArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersListArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersListArg(limit={!r}, include_removed={!r})'.format( @@ -10349,8 +10422,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersListContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersListContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersListContinueArg(cursor={!r})'.format( @@ -10390,8 +10463,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersListContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersListContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersListContinueError(%r, %r)' % (self._tag, self._value) @@ -10417,8 +10490,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersListError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersListError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersListError(%r, %r)' % (self._tag, self._value) @@ -10470,7 +10543,7 @@ def members(self): """ List of team members. - :rtype: list of [team.TeamMemberInfo] + :rtype: list of [TeamMemberInfo] """ if self._members_present: return self._members_value @@ -10539,8 +10612,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersListResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersListResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersListResult(members={!r}, cursor={!r}, has_more={!r})'.format( @@ -10578,7 +10651,7 @@ def user(self): """ Identity of user to recover. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._user_present: return self._user_value @@ -10596,8 +10669,8 @@ def user(self): self._user_value = None self._user_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersRecoverArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersRecoverArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersRecoverArg(user={!r})'.format( @@ -10662,8 +10735,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersRecoverError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersRecoverError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersRecoverError(%r, %r)' % (self._tag, self._value) @@ -10723,7 +10796,7 @@ def transfer_dest_id(self): If provided, files from the deleted member account will be transferred to this user. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._transfer_dest_id_present: return self._transfer_dest_id_value @@ -10751,7 +10824,7 @@ def transfer_admin_id(self): to this user. If the transfer_dest_id argument was provided, then this argument must be provided as well. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._transfer_admin_id_present: return self._transfer_admin_id_value @@ -10798,8 +10871,8 @@ def keep_account(self): self._keep_account_value = None self._keep_account_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersRemoveArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersRemoveArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersRemoveArg(user={!r}, wipe_data={!r}, transfer_dest_id={!r}, transfer_admin_id={!r}, keep_account={!r})'.format( @@ -10932,8 +11005,8 @@ def is_recipient_not_verified(self): """ return self._tag == 'recipient_not_verified' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersTransferFilesError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersTransferFilesError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersTransferFilesError(%r, %r)' % (self._tag, self._value) @@ -11010,8 +11083,8 @@ def is_cannot_keep_invited_user_account(self): """ return self._tag == 'cannot_keep_invited_user_account' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersRemoveError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersRemoveError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersRemoveError(%r, %r)' % (self._tag, self._value) @@ -11037,8 +11110,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersSendWelcomeError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersSendWelcomeError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersSendWelcomeError(%r, %r)' % (self._tag, self._value) @@ -11081,7 +11154,7 @@ def user(self): """ Identity of user whose role will be set. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._user_present: return self._user_value @@ -11104,7 +11177,7 @@ def new_role(self): """ The new role of the member. - :rtype: team.AdminTier + :rtype: AdminTier """ if self._new_role_present: return self._new_role_value @@ -11122,8 +11195,8 @@ def new_role(self): self._new_role_value = None self._new_role_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersSetPermissionsArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersSetPermissionsArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersSetPermissionsArg(user={!r}, new_role={!r})'.format( @@ -11201,8 +11274,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersSetPermissionsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersSetPermissionsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersSetPermissionsError(%r, %r)' % (self._tag, self._value) @@ -11265,7 +11338,7 @@ def role(self): """ The role after the change. - :rtype: team.AdminTier + :rtype: AdminTier """ if self._role_present: return self._role_value @@ -11283,8 +11356,8 @@ def role(self): self._role_value = None self._role_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersSetPermissionsResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersSetPermissionsResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersSetPermissionsResult(team_member_id={!r}, role={!r})'.format( @@ -11373,7 +11446,7 @@ def user(self): """ Identity of user whose profile will be set. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._user_present: return self._user_value @@ -11548,8 +11621,8 @@ def new_is_directory_restricted(self): self._new_is_directory_restricted_value = None self._new_is_directory_restricted_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersSetProfileArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersSetProfileArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersSetProfileArg(user={!r}, new_email={!r}, new_external_id={!r}, new_given_name={!r}, new_surname={!r}, new_persistent_id={!r}, new_is_directory_restricted={!r})'.format( @@ -11693,8 +11766,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersSetProfileError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersSetProfileError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersSetProfileError(%r, %r)' % (self._tag, self._value) @@ -11746,8 +11819,8 @@ def is_team_license_limit(self): """ return self._tag == 'team_license_limit' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersSuspendError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersSuspendError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersSuspendError(%r, %r)' % (self._tag, self._value) @@ -11815,8 +11888,8 @@ def is_user_data_already_transferred(self): """ return self._tag == 'user_data_already_transferred' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersTransferFormerMembersFilesError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersTransferFormerMembersFilesError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersTransferFormerMembersFilesError(%r, %r)' % (self._tag, self._value) @@ -11850,7 +11923,7 @@ def user(self): """ Identity of user to unsuspend. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._user_present: return self._user_value @@ -11868,8 +11941,8 @@ def user(self): self._user_value = None self._user_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MembersUnsuspendArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersUnsuspendArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersUnsuspendArg(user={!r})'.format( @@ -11911,8 +11984,8 @@ def is_team_license_limit(self): """ return self._tag == 'team_license_limit' - def _process_custom_annotations(self, annotation_type, processor): - super(MembersUnsuspendError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MembersUnsuspendError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MembersUnsuspendError(%r, %r)' % (self._tag, self._value) @@ -11996,8 +12069,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MobileClientPlatform, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MobileClientPlatform, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MobileClientPlatform(%r, %r)' % (self._tag, self._value) @@ -12096,7 +12169,7 @@ def client_type(self): """ The mobile application type. - :rtype: team.MobileClientPlatform + :rtype: MobileClientPlatform """ if self._client_type_present: return self._client_type_value @@ -12192,8 +12265,8 @@ def last_carrier(self): self._last_carrier_value = None self._last_carrier_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MobileClientSession, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MobileClientSession, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MobileClientSession(session_id={!r}, device_name={!r}, client_type={!r}, ip_address={!r}, country={!r}, created={!r}, updated={!r}, client_version={!r}, os_version={!r}, last_carrier={!r})'.format( @@ -12309,7 +12382,7 @@ def namespace_type(self): """ The type of this namespace. - :rtype: team.NamespaceType + :rtype: NamespaceType """ if self._namespace_type_present: return self._namespace_type_value @@ -12354,8 +12427,8 @@ def team_member_id(self): self._team_member_id_value = None self._team_member_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NamespaceMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NamespaceMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'NamespaceMetadata(name={!r}, namespace_id={!r}, namespace_type={!r}, team_member_id={!r})'.format( @@ -12431,8 +12504,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(NamespaceType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NamespaceType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'NamespaceType(%r, %r)' % (self._tag, self._value) @@ -12447,10 +12520,10 @@ class RemoveCustomQuotaResult(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar UserSelectorArg team.RemoveCustomQuotaResult.success: Successfully - removed user. - :ivar UserSelectorArg team.RemoveCustomQuotaResult.invalid_user: Invalid - user (not in team). + :ivar UserSelectorArg RemoveCustomQuotaResult.success: Successfully removed + user. + :ivar UserSelectorArg RemoveCustomQuotaResult.invalid_user: Invalid user + (not in team). """ _catch_all = 'other' @@ -12463,8 +12536,8 @@ def success(cls, val): Create an instance of this class set to the ``success`` tag with value ``val``. - :param team.UserSelectorArg val: - :rtype: team.RemoveCustomQuotaResult + :param UserSelectorArg val: + :rtype: RemoveCustomQuotaResult """ return cls('success', val) @@ -12474,8 +12547,8 @@ def invalid_user(cls, val): Create an instance of this class set to the ``invalid_user`` tag with value ``val``. - :param team.UserSelectorArg val: - :rtype: team.RemoveCustomQuotaResult + :param UserSelectorArg val: + :rtype: RemoveCustomQuotaResult """ return cls('invalid_user', val) @@ -12509,7 +12582,7 @@ def get_success(self): Only call this if :meth:`is_success` is true. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if not self.is_success(): raise AttributeError("tag 'success' not set") @@ -12521,14 +12594,14 @@ def get_invalid_user(self): Only call this if :meth:`is_invalid_user` is true. - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if not self.is_invalid_user(): raise AttributeError("tag 'invalid_user' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RemoveCustomQuotaResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemoveCustomQuotaResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemoveCustomQuotaResult(%r, %r)' % (self._tag, self._value) @@ -12610,8 +12683,8 @@ def is_disconnected(self): self._is_disconnected_value = None self._is_disconnected_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RemovedStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RemovedStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RemovedStatus(is_recoverable={!r}, is_disconnected={!r})'.format( @@ -12671,8 +12744,8 @@ def delete_on_unlink(self): self._delete_on_unlink_value = None self._delete_on_unlink_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeDesktopClientArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeDesktopClientArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeDesktopClientArg(session_id={!r}, team_member_id={!r}, delete_on_unlink={!r})'.format( @@ -12689,12 +12762,12 @@ class RevokeDeviceSessionArg(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar DeviceSessionArg team.RevokeDeviceSessionArg.web_session: End an - active session. - :ivar RevokeDesktopClientArg team.RevokeDeviceSessionArg.desktop_client: - Unlink a linked desktop device. - :ivar DeviceSessionArg team.RevokeDeviceSessionArg.mobile_client: Unlink a - linked mobile device. + :ivar DeviceSessionArg RevokeDeviceSessionArg.web_session: End an active + session. + :ivar RevokeDesktopClientArg RevokeDeviceSessionArg.desktop_client: Unlink a + linked desktop device. + :ivar DeviceSessionArg RevokeDeviceSessionArg.mobile_client: Unlink a linked + mobile device. """ _catch_all = None @@ -12705,8 +12778,8 @@ def web_session(cls, val): Create an instance of this class set to the ``web_session`` tag with value ``val``. - :param team.DeviceSessionArg val: - :rtype: team.RevokeDeviceSessionArg + :param DeviceSessionArg val: + :rtype: RevokeDeviceSessionArg """ return cls('web_session', val) @@ -12716,8 +12789,8 @@ def desktop_client(cls, val): Create an instance of this class set to the ``desktop_client`` tag with value ``val``. - :param team.RevokeDesktopClientArg val: - :rtype: team.RevokeDeviceSessionArg + :param RevokeDesktopClientArg val: + :rtype: RevokeDeviceSessionArg """ return cls('desktop_client', val) @@ -12727,8 +12800,8 @@ def mobile_client(cls, val): Create an instance of this class set to the ``mobile_client`` tag with value ``val``. - :param team.DeviceSessionArg val: - :rtype: team.RevokeDeviceSessionArg + :param DeviceSessionArg val: + :rtype: RevokeDeviceSessionArg """ return cls('mobile_client', val) @@ -12762,7 +12835,7 @@ def get_web_session(self): Only call this if :meth:`is_web_session` is true. - :rtype: team.DeviceSessionArg + :rtype: DeviceSessionArg """ if not self.is_web_session(): raise AttributeError("tag 'web_session' not set") @@ -12774,7 +12847,7 @@ def get_desktop_client(self): Only call this if :meth:`is_desktop_client` is true. - :rtype: team.RevokeDesktopClientArg + :rtype: RevokeDesktopClientArg """ if not self.is_desktop_client(): raise AttributeError("tag 'desktop_client' not set") @@ -12786,14 +12859,14 @@ def get_mobile_client(self): Only call this if :meth:`is_mobile_client` is true. - :rtype: team.DeviceSessionArg + :rtype: DeviceSessionArg """ if not self.is_mobile_client(): raise AttributeError("tag 'mobile_client' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeDeviceSessionArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeDeviceSessionArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeDeviceSessionArg(%r, %r)' % (self._tag, self._value) @@ -12819,7 +12892,7 @@ def __init__(self, @property def revoke_devices(self): """ - :rtype: list of [team.RevokeDeviceSessionArg] + :rtype: list of [RevokeDeviceSessionArg] """ if self._revoke_devices_present: return self._revoke_devices_value @@ -12837,8 +12910,8 @@ def revoke_devices(self): self._revoke_devices_value = None self._revoke_devices_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeDeviceSessionBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeDeviceSessionBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeDeviceSessionBatchArg(revoke_devices={!r})'.format( @@ -12866,8 +12939,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeDeviceSessionBatchError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeDeviceSessionBatchError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeDeviceSessionBatchError(%r, %r)' % (self._tag, self._value) @@ -12893,7 +12966,7 @@ def __init__(self, @property def revoke_devices_status(self): """ - :rtype: list of [team.RevokeDeviceSessionStatus] + :rtype: list of [RevokeDeviceSessionStatus] """ if self._revoke_devices_status_present: return self._revoke_devices_status_value @@ -12911,8 +12984,8 @@ def revoke_devices_status(self): self._revoke_devices_status_value = None self._revoke_devices_status_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeDeviceSessionBatchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeDeviceSessionBatchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeDeviceSessionBatchResult(revoke_devices_status={!r})'.format( @@ -12964,8 +13037,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeDeviceSessionError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeDeviceSessionError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeDeviceSessionError(%r, %r)' % (self._tag, self._value) @@ -13029,7 +13102,7 @@ def error_type(self): """ The error cause in case of a failure. - :rtype: team.RevokeDeviceSessionError + :rtype: RevokeDeviceSessionError """ if self._error_type_present: return self._error_type_value @@ -13050,8 +13123,8 @@ def error_type(self): self._error_type_value = None self._error_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeDeviceSessionStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeDeviceSessionStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeDeviceSessionStatus(success={!r}, error_type={!r})'.format( @@ -13168,8 +13241,8 @@ def keep_app_folder(self): self._keep_app_folder_value = None self._keep_app_folder_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeLinkedApiAppArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeLinkedApiAppArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeLinkedApiAppArg(app_id={!r}, team_member_id={!r}, keep_app_folder={!r})'.format( @@ -13199,7 +13272,7 @@ def __init__(self, @property def revoke_linked_app(self): """ - :rtype: list of [team.RevokeLinkedApiAppArg] + :rtype: list of [RevokeLinkedApiAppArg] """ if self._revoke_linked_app_present: return self._revoke_linked_app_value @@ -13217,8 +13290,8 @@ def revoke_linked_app(self): self._revoke_linked_app_value = None self._revoke_linked_app_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeLinkedApiAppBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeLinkedApiAppBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeLinkedApiAppBatchArg(revoke_linked_app={!r})'.format( @@ -13249,8 +13322,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeLinkedAppBatchError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeLinkedAppBatchError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeLinkedAppBatchError(%r, %r)' % (self._tag, self._value) @@ -13276,7 +13349,7 @@ def __init__(self, @property def revoke_linked_app_status(self): """ - :rtype: list of [team.RevokeLinkedAppStatus] + :rtype: list of [RevokeLinkedAppStatus] """ if self._revoke_linked_app_status_present: return self._revoke_linked_app_status_value @@ -13294,8 +13367,8 @@ def revoke_linked_app_status(self): self._revoke_linked_app_status_value = None self._revoke_linked_app_status_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeLinkedAppBatchResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeLinkedAppBatchResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeLinkedAppBatchResult(revoke_linked_app_status={!r})'.format( @@ -13349,8 +13422,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeLinkedAppError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeLinkedAppError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeLinkedAppError(%r, %r)' % (self._tag, self._value) @@ -13413,7 +13486,7 @@ def error_type(self): """ The error cause in case of a failure. - :rtype: team.RevokeLinkedAppError + :rtype: RevokeLinkedAppError """ if self._error_type_present: return self._error_type_value @@ -13434,8 +13507,8 @@ def error_type(self): self._error_type_value = None self._error_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RevokeLinkedAppStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RevokeLinkedAppStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RevokeLinkedAppStatus(success={!r}, error_type={!r})'.format( @@ -13470,7 +13543,7 @@ def users_and_quotas(self): """ List of users and their custom quotas. - :rtype: list of [team.UserCustomQuotaArg] + :rtype: list of [UserCustomQuotaArg] """ if self._users_and_quotas_present: return self._users_and_quotas_value @@ -13488,8 +13561,8 @@ def users_and_quotas(self): self._users_and_quotas_value = None self._users_and_quotas_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SetCustomQuotaArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SetCustomQuotaArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SetCustomQuotaArg(users_and_quotas={!r})'.format( @@ -13521,8 +13594,8 @@ def is_some_users_are_excluded(self): """ return self._tag == 'some_users_are_excluded' - def _process_custom_annotations(self, annotation_type, processor): - super(SetCustomQuotaError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SetCustomQuotaError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SetCustomQuotaError(%r, %r)' % (self._tag, self._value) @@ -13608,8 +13681,8 @@ def users(self): self._users_value = None self._users_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(StorageBucket, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(StorageBucket, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'StorageBucket(bucket={!r}, users={!r})'.format( @@ -13663,8 +13736,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderAccessError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderAccessError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderAccessError(%r, %r)' % (self._tag, self._value) @@ -13678,8 +13751,8 @@ class TeamFolderActivateError(BaseTeamFolderError): corresponding ``get_*`` method. """ - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderActivateError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderActivateError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderActivateError(%r, %r)' % (self._tag, self._value) @@ -13728,8 +13801,8 @@ def team_folder_id(self): self._team_folder_id_value = None self._team_folder_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderIdArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderIdArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderIdArg(team_folder_id={!r})'.format( @@ -13783,8 +13856,8 @@ def force_async_off(self): self._force_async_off_value = None self._force_async_off_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderArchiveArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderArchiveArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderArchiveArg(team_folder_id={!r}, force_async_off={!r})'.format( @@ -13801,8 +13874,8 @@ class TeamFolderArchiveError(BaseTeamFolderError): corresponding ``get_*`` method. """ - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderArchiveError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderArchiveError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderArchiveError(%r, %r)' % (self._tag, self._value) @@ -13815,10 +13888,10 @@ class TeamFolderArchiveJobStatus(async_.PollResultBase): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar TeamFolderMetadata team.TeamFolderArchiveJobStatus.complete: The - archive job has finished. The value is the metadata for the resulting - team folder. - :ivar TeamFolderArchiveError team.TeamFolderArchiveJobStatus.failed: Error + :ivar TeamFolderMetadata TeamFolderArchiveJobStatus.complete: The archive + job has finished. The value is the metadata for the resulting team + folder. + :ivar TeamFolderArchiveError TeamFolderArchiveJobStatus.failed: Error occurred while performing an asynchronous job from :meth:`dropbox.dropbox.Dropbox.team_team_folder_archive`. """ @@ -13829,8 +13902,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param team.TeamFolderMetadata val: - :rtype: team.TeamFolderArchiveJobStatus + :param TeamFolderMetadata val: + :rtype: TeamFolderArchiveJobStatus """ return cls('complete', val) @@ -13840,8 +13913,8 @@ def failed(cls, val): Create an instance of this class set to the ``failed`` tag with value ``val``. - :param team.TeamFolderArchiveError val: - :rtype: team.TeamFolderArchiveJobStatus + :param TeamFolderArchiveError val: + :rtype: TeamFolderArchiveJobStatus """ return cls('failed', val) @@ -13868,7 +13941,7 @@ def get_complete(self): Only call this if :meth:`is_complete` is true. - :rtype: team.TeamFolderMetadata + :rtype: TeamFolderMetadata """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") @@ -13881,14 +13954,14 @@ def get_failed(self): Only call this if :meth:`is_failed` is true. - :rtype: team.TeamFolderArchiveError + :rtype: TeamFolderArchiveError """ if not self.is_failed(): raise AttributeError("tag 'failed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderArchiveJobStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderArchiveJobStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderArchiveJobStatus(%r, %r)' % (self._tag, self._value) @@ -13908,8 +13981,8 @@ def complete(cls, val): Create an instance of this class set to the ``complete`` tag with value ``val``. - :param team.TeamFolderMetadata val: - :rtype: team.TeamFolderArchiveLaunch + :param TeamFolderMetadata val: + :rtype: TeamFolderArchiveLaunch """ return cls('complete', val) @@ -13925,14 +13998,14 @@ def get_complete(self): """ Only call this if :meth:`is_complete` is true. - :rtype: team.TeamFolderMetadata + :rtype: TeamFolderMetadata """ if not self.is_complete(): raise AttributeError("tag 'complete' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderArchiveLaunch, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderArchiveLaunch, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderArchiveLaunch(%r, %r)' % (self._tag, self._value) @@ -14018,8 +14091,8 @@ def sync_setting(self): self._sync_setting_value = None self._sync_setting_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderCreateArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderCreateArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderCreateArg(name={!r}, sync_setting={!r})'.format( @@ -14041,8 +14114,8 @@ class TeamFolderCreateError(bb.Union): a team folder with the provided name. :ivar team.TeamFolderCreateError.folder_name_reserved: The provided name cannot be used because it is reserved. - :ivar SyncSettingsError team.TeamFolderCreateError.sync_settings_error: An - error occurred setting the sync settings. + :ivar SyncSettingsError TeamFolderCreateError.sync_settings_error: An error + occurred setting the sync settings. """ _catch_all = 'other' @@ -14062,7 +14135,7 @@ def sync_settings_error(cls, val): with value ``val``. :param files.SyncSettingsError val: - :rtype: team.TeamFolderCreateError + :rtype: TeamFolderCreateError """ return cls('sync_settings_error', val) @@ -14118,8 +14191,8 @@ def get_sync_settings_error(self): raise AttributeError("tag 'sync_settings_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderCreateError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderCreateError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderCreateError(%r, %r)' % (self._tag, self._value) @@ -14135,7 +14208,7 @@ class TeamFolderGetInfoItem(bb.Union): :ivar str team.TeamFolderGetInfoItem.id_not_found: An ID that was provided as a parameter to :route:`team_folder/get_info` did not match any of the team's team folders. - :ivar TeamFolderMetadata team.TeamFolderGetInfoItem.team_folder_metadata: + :ivar TeamFolderMetadata TeamFolderGetInfoItem.team_folder_metadata: Properties of a team folder. """ @@ -14148,7 +14221,7 @@ def id_not_found(cls, val): value ``val``. :param str val: - :rtype: team.TeamFolderGetInfoItem + :rtype: TeamFolderGetInfoItem """ return cls('id_not_found', val) @@ -14158,8 +14231,8 @@ def team_folder_metadata(cls, val): Create an instance of this class set to the ``team_folder_metadata`` tag with value ``val``. - :param team.TeamFolderMetadata val: - :rtype: team.TeamFolderGetInfoItem + :param TeamFolderMetadata val: + :rtype: TeamFolderGetInfoItem """ return cls('team_folder_metadata', val) @@ -14199,14 +14272,14 @@ def get_team_folder_metadata(self): Only call this if :meth:`is_team_folder_metadata` is true. - :rtype: team.TeamFolderMetadata + :rtype: TeamFolderMetadata """ if not self.is_team_folder_metadata(): raise AttributeError("tag 'team_folder_metadata' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderGetInfoItem, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderGetInfoItem, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderGetInfoItem(%r, %r)' % (self._tag, self._value) @@ -14255,8 +14328,8 @@ def team_folder_ids(self): self._team_folder_ids_value = None self._team_folder_ids_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderIdListArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderIdListArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderIdListArg(team_folder_ids={!r})'.format( @@ -14321,8 +14394,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderInvalidStatusError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderInvalidStatusError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderInvalidStatusError(%r, %r)' % (self._tag, self._value) @@ -14372,8 +14445,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderListArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderListArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderListArg(limit={!r})'.format( @@ -14425,8 +14498,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderListContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderListContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderListContinueArg(cursor={!r})'.format( @@ -14467,8 +14540,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderListContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderListContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderListContinueError(%r, %r)' % (self._tag, self._value) @@ -14494,7 +14567,7 @@ def __init__(self, @property def access_error(self): """ - :rtype: team.TeamFolderAccessError + :rtype: TeamFolderAccessError """ if self._access_error_present: return self._access_error_value @@ -14512,8 +14585,8 @@ def access_error(self): self._access_error_value = None self._access_error_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderListError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderListError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderListError(access_error={!r})'.format( @@ -14571,7 +14644,7 @@ def team_folders(self): """ List of all team folders in the authenticated team. - :rtype: list of [team.TeamFolderMetadata] + :rtype: list of [TeamFolderMetadata] """ if self._team_folders_present: return self._team_folders_value @@ -14640,8 +14713,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderListResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderListResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderListResult(team_folders={!r}, cursor={!r}, has_more={!r})'.format( @@ -14767,7 +14840,7 @@ def status(self): """ The status of the team folder. - :rtype: team.TeamFolderStatus + :rtype: TeamFolderStatus """ if self._status_present: return self._status_value @@ -14854,8 +14927,8 @@ def content_sync_settings(self): self._content_sync_settings_value = None self._content_sync_settings_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderMetadata, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderMetadata, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderMetadata(team_folder_id={!r}, name={!r}, status={!r}, is_team_shared_dropbox={!r}, sync_setting={!r}, content_sync_settings={!r})'.format( @@ -14876,8 +14949,8 @@ class TeamFolderPermanentlyDeleteError(BaseTeamFolderError): corresponding ``get_*`` method. """ - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderPermanentlyDeleteError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderPermanentlyDeleteError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderPermanentlyDeleteError(%r, %r)' % (self._tag, self._value) @@ -14928,8 +15001,8 @@ def name(self): self._name_value = None self._name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderRenameArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderRenameArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderRenameArg(team_folder_id={!r}, name={!r})'.format( @@ -14984,8 +15057,8 @@ def is_folder_name_reserved(self): """ return self._tag == 'folder_name_reserved' - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderRenameError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderRenameError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderRenameError(%r, %r)' % (self._tag, self._value) @@ -15048,8 +15121,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderStatus(%r, %r)' % (self._tag, self._value) @@ -15088,8 +15161,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderTeamSharedDropboxError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderTeamSharedDropboxError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderTeamSharedDropboxError(%r, %r)' % (self._tag, self._value) @@ -15181,8 +15254,8 @@ def content_sync_settings(self): self._content_sync_settings_value = None self._content_sync_settings_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderUpdateSyncSettingsArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderUpdateSyncSettingsArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderUpdateSyncSettingsArg(team_folder_id={!r}, sync_setting={!r}, content_sync_settings={!r})'.format( @@ -15200,8 +15273,8 @@ class TeamFolderUpdateSyncSettingsError(BaseTeamFolderError): corresponding ``get_*`` method. :ivar SyncSettingsError - team.TeamFolderUpdateSyncSettingsError.sync_settings_error: An error - occurred setting the sync settings. + TeamFolderUpdateSyncSettingsError.sync_settings_error: An error occurred + setting the sync settings. """ @classmethod @@ -15211,7 +15284,7 @@ def sync_settings_error(cls, val): with value ``val``. :param files.SyncSettingsError val: - :rtype: team.TeamFolderUpdateSyncSettingsError + :rtype: TeamFolderUpdateSyncSettingsError """ return cls('sync_settings_error', val) @@ -15235,8 +15308,8 @@ def get_sync_settings_error(self): raise AttributeError("tag 'sync_settings_error' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderUpdateSyncSettingsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderUpdateSyncSettingsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamFolderUpdateSyncSettingsError(%r, %r)' % (self._tag, self._value) @@ -15409,8 +15482,8 @@ def policies(self): self._policies_value = None self._policies_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamGetInfoResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamGetInfoResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamGetInfoResult(name={!r}, team_id={!r}, num_licensed_users={!r}, num_provisioned_users={!r}, policies={!r})'.format( @@ -15457,7 +15530,7 @@ def profile(self): """ Profile of a user as a member of a team. - :rtype: team.TeamMemberProfile + :rtype: TeamMemberProfile """ if self._profile_present: return self._profile_value @@ -15480,7 +15553,7 @@ def role(self): """ The user's role in the team. - :rtype: team.AdminTier + :rtype: AdminTier """ if self._role_present: return self._role_value @@ -15498,8 +15571,8 @@ def role(self): self._role_value = None self._role_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMemberInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMemberInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamMemberInfo(profile={!r}, role={!r})'.format( @@ -15540,8 +15613,10 @@ def __init__(self, external_id=None, account_id=None, joined_on=None, + suspended_on=None, persistent_id=None, - is_directory_restricted=None): + is_directory_restricted=None, + profile_photo_url=None): super(TeamMemberProfile, self).__init__(team_member_id, email, email_verified, @@ -15551,8 +15626,10 @@ def __init__(self, external_id, account_id, joined_on, + suspended_on, persistent_id, - is_directory_restricted) + is_directory_restricted, + profile_photo_url) self._groups_value = None self._groups_present = False self._member_folder_id_value = None @@ -15608,11 +15685,11 @@ def member_folder_id(self): self._member_folder_id_value = None self._member_folder_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMemberProfile, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMemberProfile, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamMemberProfile(team_member_id={!r}, email={!r}, email_verified={!r}, status={!r}, name={!r}, membership_type={!r}, groups={!r}, member_folder_id={!r}, external_id={!r}, account_id={!r}, joined_on={!r}, persistent_id={!r}, is_directory_restricted={!r})'.format( + return 'TeamMemberProfile(team_member_id={!r}, email={!r}, email_verified={!r}, status={!r}, name={!r}, membership_type={!r}, groups={!r}, member_folder_id={!r}, external_id={!r}, account_id={!r}, joined_on={!r}, suspended_on={!r}, persistent_id={!r}, is_directory_restricted={!r}, profile_photo_url={!r})'.format( self._team_member_id_value, self._email_value, self._email_verified_value, @@ -15624,8 +15701,10 @@ def __repr__(self): self._external_id_value, self._account_id_value, self._joined_on_value, + self._suspended_on_value, self._persistent_id_value, self._is_directory_restricted_value, + self._profile_photo_url_value, ) TeamMemberProfile_validator = bv.Struct(TeamMemberProfile) @@ -15644,9 +15723,9 @@ class TeamMemberStatus(bb.Union): :ivar team.TeamMemberStatus.suspended: User is no longer a member of the team, but the account can be un-suspended, re-establishing the user as a team member. - :ivar RemovedStatus team.TeamMemberStatus.removed: User is no longer a - member of the team. Removed users are only listed when include_removed - is true in members/list. + :ivar RemovedStatus TeamMemberStatus.removed: User is no longer a member of + the team. Removed users are only listed when include_removed is true in + members/list. """ _catch_all = None @@ -15663,8 +15742,8 @@ def removed(cls, val): Create an instance of this class set to the ``removed`` tag with value ``val``. - :param team.RemovedStatus val: - :rtype: team.TeamMemberStatus + :param RemovedStatus val: + :rtype: TeamMemberStatus """ return cls('removed', val) @@ -15707,14 +15786,14 @@ def get_removed(self): Only call this if :meth:`is_removed` is true. - :rtype: team.RemovedStatus + :rtype: RemovedStatus """ if not self.is_removed(): raise AttributeError("tag 'removed' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMemberStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMemberStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamMemberStatus(%r, %r)' % (self._tag, self._value) @@ -15755,8 +15834,8 @@ def is_limited(self): """ return self._tag == 'limited' - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMembershipType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMembershipType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamMembershipType(%r, %r)' % (self._tag, self._value) @@ -15806,8 +15885,8 @@ def limit(self): self._limit_value = None self._limit_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamNamespacesListArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamNamespacesListArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamNamespacesListArg(limit={!r})'.format( @@ -15860,8 +15939,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamNamespacesListContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamNamespacesListContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamNamespacesListContinueArg(cursor={!r})'.format( @@ -15902,8 +15981,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TeamNamespacesListError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamNamespacesListError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamNamespacesListError(%r, %r)' % (self._tag, self._value) @@ -15931,8 +16010,8 @@ def is_invalid_cursor(self): """ return self._tag == 'invalid_cursor' - def _process_custom_annotations(self, annotation_type, processor): - super(TeamNamespacesListContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamNamespacesListContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamNamespacesListContinueError(%r, %r)' % (self._tag, self._value) @@ -15985,7 +16064,7 @@ def namespaces(self): """ List of all namespaces the team can access. - :rtype: list of [team.NamespaceMetadata] + :rtype: list of [NamespaceMetadata] """ if self._namespaces_present: return self._namespaces_value @@ -16052,8 +16131,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamNamespacesListResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamNamespacesListResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamNamespacesListResult(namespaces={!r}, cursor={!r}, has_more={!r})'.format( @@ -16064,6 +16143,72 @@ def __repr__(self): TeamNamespacesListResult_validator = bv.Struct(TeamNamespacesListResult) +class TeamReportFailureReason(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 team.TeamReportFailureReason.temporary_error: We couldn't create the + report, but we think this was a fluke. Everything should work if you try + it again. + :ivar team.TeamReportFailureReason.many_reports_at_once: Too many other + reports are being created right now. Try creating this report again once + the others finish. + :ivar team.TeamReportFailureReason.too_much_data: We couldn't create the + report. Try creating the report again with less data. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + temporary_error = None + # Attribute is overwritten below the class definition + many_reports_at_once = None + # Attribute is overwritten below the class definition + too_much_data = None + # Attribute is overwritten below the class definition + other = None + + def is_temporary_error(self): + """ + Check if the union tag is ``temporary_error``. + + :rtype: bool + """ + return self._tag == 'temporary_error' + + def is_many_reports_at_once(self): + """ + Check if the union tag is ``many_reports_at_once``. + + :rtype: bool + """ + return self._tag == 'many_reports_at_once' + + def is_too_much_data(self): + """ + Check if the union tag is ``too_much_data``. + + :rtype: bool + """ + return self._tag == 'too_much_data' + + 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(TeamReportFailureReason, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamReportFailureReason(%r, %r)' % (self._tag, self._value) + +TeamReportFailureReason_validator = bv.Union(TeamReportFailureReason) + class TokenGetAuthenticatedAdminError(bb.Union): """ Error returned by @@ -16114,8 +16259,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TokenGetAuthenticatedAdminError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TokenGetAuthenticatedAdminError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TokenGetAuthenticatedAdminError(%r, %r)' % (self._tag, self._value) @@ -16150,7 +16295,7 @@ def admin_profile(self): """ The admin who authorized the token. - :rtype: team.TeamMemberProfile + :rtype: TeamMemberProfile """ if self._admin_profile_present: return self._admin_profile_value @@ -16168,8 +16313,8 @@ def admin_profile(self): self._admin_profile_value = None self._admin_profile_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TokenGetAuthenticatedAdminResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TokenGetAuthenticatedAdminResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TokenGetAuthenticatedAdminResult(admin_profile={!r})'.format( @@ -16206,7 +16351,7 @@ def limit(cls, val): ``val``. :param int val: - :rtype: team.UploadApiRateLimitValue + :rtype: UploadApiRateLimitValue """ return cls('limit', val) @@ -16246,8 +16391,8 @@ def get_limit(self): raise AttributeError("tag 'limit' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UploadApiRateLimitValue, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UploadApiRateLimitValue, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UploadApiRateLimitValue(%r, %r)' % (self._tag, self._value) @@ -16283,7 +16428,7 @@ def __init__(self, @property def user(self): """ - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._user_present: return self._user_value @@ -16322,8 +16467,8 @@ def quota_gb(self): self._quota_gb_value = None self._quota_gb_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UserCustomQuotaArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserCustomQuotaArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserCustomQuotaArg(user={!r}, quota_gb={!r})'.format( @@ -16363,7 +16508,7 @@ def __init__(self, @property def user(self): """ - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ if self._user_present: return self._user_value @@ -16405,8 +16550,8 @@ def quota_gb(self): self._quota_gb_value = None self._quota_gb_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UserCustomQuotaResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserCustomQuotaResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserCustomQuotaResult(user={!r}, quota_gb={!r})'.format( @@ -16435,7 +16580,7 @@ def team_member_id(cls, val): value ``val``. :param str val: - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ return cls('team_member_id', val) @@ -16446,7 +16591,7 @@ def external_id(cls, val): value ``val``. :param str val: - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ return cls('external_id', val) @@ -16457,7 +16602,7 @@ def email(cls, val): ``val``. :param str val: - :rtype: team.UserSelectorArg + :rtype: UserSelectorArg """ return cls('email', val) @@ -16515,8 +16660,8 @@ def get_email(self): raise AttributeError("tag 'email' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UserSelectorArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserSelectorArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserSelectorArg(%r, %r)' % (self._tag, self._value) @@ -16548,7 +16693,7 @@ def team_member_ids(cls, val): value ``val``. :param list of [str] val: - :rtype: team.UsersSelectorArg + :rtype: UsersSelectorArg """ return cls('team_member_ids', val) @@ -16559,7 +16704,7 @@ def external_ids(cls, val): value ``val``. :param list of [str] val: - :rtype: team.UsersSelectorArg + :rtype: UsersSelectorArg """ return cls('external_ids', val) @@ -16570,7 +16715,7 @@ def emails(cls, val): ``val``. :param list of [str] val: - :rtype: team.UsersSelectorArg + :rtype: UsersSelectorArg """ return cls('emails', val) @@ -16634,8 +16779,8 @@ def get_emails(self): raise AttributeError("tag 'emails' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(UsersSelectorArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UsersSelectorArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UsersSelectorArg(%r, %r)' % (self._tag, self._value) @@ -17765,8 +17910,10 @@ def __repr__(self): MemberProfile._name_validator = users.Name_validator MemberProfile._membership_type_validator = TeamMembershipType_validator MemberProfile._joined_on_validator = bv.Nullable(common.DropboxTimestamp_validator) +MemberProfile._suspended_on_validator = bv.Nullable(common.DropboxTimestamp_validator) MemberProfile._persistent_id_validator = bv.Nullable(bv.String()) MemberProfile._is_directory_restricted_validator = bv.Nullable(bv.Boolean()) +MemberProfile._profile_photo_url_validator = bv.Nullable(bv.String()) MemberProfile._all_field_names_ = set([ 'team_member_id', 'external_id', @@ -17777,8 +17924,10 @@ def __repr__(self): 'name', 'membership_type', 'joined_on', + 'suspended_on', 'persistent_id', 'is_directory_restricted', + 'profile_photo_url', ]) MemberProfile._all_fields_ = [ ('team_member_id', MemberProfile._team_member_id_validator), @@ -17790,8 +17939,10 @@ def __repr__(self): ('name', MemberProfile._name_validator), ('membership_type', MemberProfile._membership_type_validator), ('joined_on', MemberProfile._joined_on_validator), + ('suspended_on', MemberProfile._suspended_on_validator), ('persistent_id', MemberProfile._persistent_id_validator), ('is_directory_restricted', MemberProfile._is_directory_restricted_validator), + ('profile_photo_url', MemberProfile._profile_photo_url_validator), ] UserSelectorError._user_not_found_validator = bv.Void() @@ -18730,6 +18881,22 @@ def __repr__(self): ('has_more', TeamNamespacesListResult._has_more_validator), ] +TeamReportFailureReason._temporary_error_validator = bv.Void() +TeamReportFailureReason._many_reports_at_once_validator = bv.Void() +TeamReportFailureReason._too_much_data_validator = bv.Void() +TeamReportFailureReason._other_validator = bv.Void() +TeamReportFailureReason._tagmap = { + 'temporary_error': TeamReportFailureReason._temporary_error_validator, + 'many_reports_at_once': TeamReportFailureReason._many_reports_at_once_validator, + 'too_much_data': TeamReportFailureReason._too_much_data_validator, + 'other': TeamReportFailureReason._other_validator, +} + +TeamReportFailureReason.temporary_error = TeamReportFailureReason('temporary_error') +TeamReportFailureReason.many_reports_at_once = TeamReportFailureReason('many_reports_at_once') +TeamReportFailureReason.too_much_data = TeamReportFailureReason('too_much_data') +TeamReportFailureReason.other = TeamReportFailureReason('other') + TokenGetAuthenticatedAdminError._mapping_not_found_validator = bv.Void() TokenGetAuthenticatedAdminError._admin_not_active_validator = bv.Void() TokenGetAuthenticatedAdminError._other_validator = bv.Void() diff --git a/dropbox/team_common.py b/dropbox/team_common.py index 1ed4c124..e2356f89 100644 --- a/dropbox/team_common.py +++ b/dropbox/team_common.py @@ -77,8 +77,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupManagementType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupManagementType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupManagementType(%r, %r)' % (self._tag, self._value) @@ -239,7 +239,7 @@ def group_management_type(self): """ Who is allowed to manage the group. - :rtype: team_common.GroupManagementType + :rtype: GroupManagementType """ if self._group_management_type_present: return self._group_management_type_value @@ -257,8 +257,8 @@ def group_management_type(self): self._group_management_type_value = None self._group_management_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupSummary, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupSummary, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupSummary(group_name={!r}, group_id={!r}, group_management_type={!r}, group_external_id={!r}, member_count={!r})'.format( @@ -318,8 +318,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupType(%r, %r)' % (self._tag, self._value) @@ -386,8 +386,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'MemberSpaceLimitType(%r, %r)' % (self._tag, self._value) @@ -475,8 +475,8 @@ def end_time(self): self._end_time_value = None self._end_time_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TimeRange, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TimeRange, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TimeRange(start_time={!r}, end_time={!r})'.format( diff --git a/dropbox/team_log.py b/dropbox/team_log.py index 42968738..381c174d 100644 --- a/dropbox/team_log.py +++ b/dropbox/team_log.py @@ -41,16 +41,14 @@ class AccessMethodLogInfo(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar SessionLogInfo team_log.AccessMethodLogInfo.end_user: End user session + :ivar SessionLogInfo AccessMethodLogInfo.end_user: End user session details. + :ivar WebSessionLogInfo AccessMethodLogInfo.sign_in_as: Sign in as session details. - :ivar WebSessionLogInfo team_log.AccessMethodLogInfo.sign_in_as: Sign in as + :ivar WebSessionLogInfo AccessMethodLogInfo.content_manager: Content manager session details. - :ivar WebSessionLogInfo team_log.AccessMethodLogInfo.content_manager: - Content manager session details. - :ivar WebSessionLogInfo team_log.AccessMethodLogInfo.admin_console: Admin - console session details. - :ivar ApiSessionLogInfo team_log.AccessMethodLogInfo.api: Api session - details. + :ivar WebSessionLogInfo AccessMethodLogInfo.admin_console: Admin console + session details. + :ivar ApiSessionLogInfo AccessMethodLogInfo.api: Api session details. """ _catch_all = 'other' @@ -63,8 +61,8 @@ def end_user(cls, val): Create an instance of this class set to the ``end_user`` tag with value ``val``. - :param team_log.SessionLogInfo val: - :rtype: team_log.AccessMethodLogInfo + :param SessionLogInfo val: + :rtype: AccessMethodLogInfo """ return cls('end_user', val) @@ -74,8 +72,8 @@ def sign_in_as(cls, val): Create an instance of this class set to the ``sign_in_as`` tag with value ``val``. - :param team_log.WebSessionLogInfo val: - :rtype: team_log.AccessMethodLogInfo + :param WebSessionLogInfo val: + :rtype: AccessMethodLogInfo """ return cls('sign_in_as', val) @@ -85,8 +83,8 @@ def content_manager(cls, val): Create an instance of this class set to the ``content_manager`` tag with value ``val``. - :param team_log.WebSessionLogInfo val: - :rtype: team_log.AccessMethodLogInfo + :param WebSessionLogInfo val: + :rtype: AccessMethodLogInfo """ return cls('content_manager', val) @@ -96,8 +94,8 @@ def admin_console(cls, val): Create an instance of this class set to the ``admin_console`` tag with value ``val``. - :param team_log.WebSessionLogInfo val: - :rtype: team_log.AccessMethodLogInfo + :param WebSessionLogInfo val: + :rtype: AccessMethodLogInfo """ return cls('admin_console', val) @@ -107,8 +105,8 @@ def api(cls, val): Create an instance of this class set to the ``api`` tag with value ``val``. - :param team_log.ApiSessionLogInfo val: - :rtype: team_log.AccessMethodLogInfo + :param ApiSessionLogInfo val: + :rtype: AccessMethodLogInfo """ return cls('api', val) @@ -166,7 +164,7 @@ def get_end_user(self): Only call this if :meth:`is_end_user` is true. - :rtype: team_log.SessionLogInfo + :rtype: SessionLogInfo """ if not self.is_end_user(): raise AttributeError("tag 'end_user' not set") @@ -178,7 +176,7 @@ def get_sign_in_as(self): Only call this if :meth:`is_sign_in_as` is true. - :rtype: team_log.WebSessionLogInfo + :rtype: WebSessionLogInfo """ if not self.is_sign_in_as(): raise AttributeError("tag 'sign_in_as' not set") @@ -190,7 +188,7 @@ def get_content_manager(self): Only call this if :meth:`is_content_manager` is true. - :rtype: team_log.WebSessionLogInfo + :rtype: WebSessionLogInfo """ if not self.is_content_manager(): raise AttributeError("tag 'content_manager' not set") @@ -202,7 +200,7 @@ def get_admin_console(self): Only call this if :meth:`is_admin_console` is true. - :rtype: team_log.WebSessionLogInfo + :rtype: WebSessionLogInfo """ if not self.is_admin_console(): raise AttributeError("tag 'admin_console' not set") @@ -214,14 +212,14 @@ def get_api(self): Only call this if :meth:`is_api` is true. - :rtype: team_log.ApiSessionLogInfo + :rtype: ApiSessionLogInfo """ if not self.is_api(): raise AttributeError("tag 'api' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(AccessMethodLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccessMethodLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccessMethodLogInfo(%r, %r)' % (self._tag, self._value) @@ -267,8 +265,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureAvailability, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureAvailability, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureAvailability(%r, %r)' % (self._tag, self._value) @@ -312,7 +310,7 @@ def new_value(self): """ New account capture availabilty value. - :rtype: team_log.AccountCaptureAvailability + :rtype: AccountCaptureAvailability """ if self._new_value_present: return self._new_value_value @@ -336,7 +334,7 @@ def previous_value(self): Previous account capture availabilty value. Might be missing due to historical data gap. - :rtype: team_log.AccountCaptureAvailability + :rtype: AccountCaptureAvailability """ if self._previous_value_present: return self._previous_value_value @@ -357,8 +355,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureChangeAvailabilityDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureChangeAvailabilityDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureChangeAvailabilityDetails(new_value={!r}, previous_value={!r})'.format( @@ -405,8 +403,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureChangeAvailabilityType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureChangeAvailabilityType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureChangeAvailabilityType(description={!r})'.format( @@ -451,7 +449,7 @@ def new_value(self): """ New account capture policy. - :rtype: team_log.AccountCapturePolicy + :rtype: AccountCapturePolicy """ if self._new_value_present: return self._new_value_value @@ -475,7 +473,7 @@ def previous_value(self): Previous account capture policy. Might be missing due to historical data gap. - :rtype: team_log.AccountCapturePolicy + :rtype: AccountCapturePolicy """ if self._previous_value_present: return self._previous_value_value @@ -496,8 +494,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -544,8 +542,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureChangePolicyType(description={!r})'.format( @@ -598,8 +596,8 @@ def domain_name(self): self._domain_name_value = None self._domain_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureMigrateAccountDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureMigrateAccountDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureMigrateAccountDetails(domain_name={!r})'.format( @@ -645,8 +643,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureMigrateAccountType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureMigrateAccountType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureMigrateAccountType(description={!r})'.format( @@ -700,8 +698,8 @@ def domain_name(self): self._domain_name_value = None self._domain_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureNotificationEmailsSentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureNotificationEmailsSentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureNotificationEmailsSentDetails(domain_name={!r})'.format( @@ -747,8 +745,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureNotificationEmailsSentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureNotificationEmailsSentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureNotificationEmailsSentType(description={!r})'.format( @@ -806,8 +804,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCapturePolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCapturePolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCapturePolicy(%r, %r)' % (self._tag, self._value) @@ -859,8 +857,8 @@ def domain_name(self): self._domain_name_value = None self._domain_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureRelinquishAccountDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureRelinquishAccountDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureRelinquishAccountDetails(domain_name={!r})'.format( @@ -906,8 +904,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AccountCaptureRelinquishAccountType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountCaptureRelinquishAccountType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountCaptureRelinquishAccountType(description={!r})'.format( @@ -925,10 +923,10 @@ class ActionDetails(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar JoinTeamDetails team_log.ActionDetails.team_join_details: Additional + :ivar JoinTeamDetails ActionDetails.team_join_details: Additional information relevant when a new member joins the team. - :ivar MemberRemoveActionType team_log.ActionDetails.remove_action: Define - how the user was removed from the team. + :ivar MemberRemoveActionType ActionDetails.remove_action: Define how the + user was removed from the team. """ _catch_all = 'other' @@ -941,8 +939,8 @@ def team_join_details(cls, val): Create an instance of this class set to the ``team_join_details`` tag with value ``val``. - :param team_log.JoinTeamDetails val: - :rtype: team_log.ActionDetails + :param JoinTeamDetails val: + :rtype: ActionDetails """ return cls('team_join_details', val) @@ -952,8 +950,8 @@ def remove_action(cls, val): Create an instance of this class set to the ``remove_action`` tag with value ``val``. - :param team_log.MemberRemoveActionType val: - :rtype: team_log.ActionDetails + :param MemberRemoveActionType val: + :rtype: ActionDetails """ return cls('remove_action', val) @@ -987,7 +985,7 @@ def get_team_join_details(self): Only call this if :meth:`is_team_join_details` is true. - :rtype: team_log.JoinTeamDetails + :rtype: JoinTeamDetails """ if not self.is_team_join_details(): raise AttributeError("tag 'team_join_details' not set") @@ -999,14 +997,14 @@ def get_remove_action(self): Only call this if :meth:`is_remove_action` is true. - :rtype: team_log.MemberRemoveActionType + :rtype: MemberRemoveActionType """ if not self.is_remove_action(): raise AttributeError("tag 'remove_action' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ActionDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ActionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ActionDetails(%r, %r)' % (self._tag, self._value) @@ -1021,12 +1019,10 @@ class ActorLogInfo(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar UserLogInfo team_log.ActorLogInfo.user: The user who did the action. - :ivar UserLogInfo team_log.ActorLogInfo.admin: The admin who did the action. - :ivar AppLogInfo team_log.ActorLogInfo.app: The application who did the - action. - :ivar ResellerLogInfo team_log.ActorLogInfo.reseller: Action done by - reseller. + :ivar UserLogInfo ActorLogInfo.user: The user who did the action. + :ivar UserLogInfo ActorLogInfo.admin: The admin who did the action. + :ivar AppLogInfo ActorLogInfo.app: The application who did the action. + :ivar ResellerLogInfo ActorLogInfo.reseller: Action done by reseller. :ivar team_log.ActorLogInfo.dropbox: Action done by Dropbox. :ivar team_log.ActorLogInfo.anonymous: Anonymous actor. """ @@ -1045,8 +1041,8 @@ def user(cls, val): Create an instance of this class set to the ``user`` tag with value ``val``. - :param team_log.UserLogInfo val: - :rtype: team_log.ActorLogInfo + :param UserLogInfo val: + :rtype: ActorLogInfo """ return cls('user', val) @@ -1056,8 +1052,8 @@ def admin(cls, val): Create an instance of this class set to the ``admin`` tag with value ``val``. - :param team_log.UserLogInfo val: - :rtype: team_log.ActorLogInfo + :param UserLogInfo val: + :rtype: ActorLogInfo """ return cls('admin', val) @@ -1067,8 +1063,8 @@ def app(cls, val): Create an instance of this class set to the ``app`` tag with value ``val``. - :param team_log.AppLogInfo val: - :rtype: team_log.ActorLogInfo + :param AppLogInfo val: + :rtype: ActorLogInfo """ return cls('app', val) @@ -1078,8 +1074,8 @@ def reseller(cls, val): Create an instance of this class set to the ``reseller`` tag with value ``val``. - :param team_log.ResellerLogInfo val: - :rtype: team_log.ActorLogInfo + :param ResellerLogInfo val: + :rtype: ActorLogInfo """ return cls('reseller', val) @@ -1145,7 +1141,7 @@ def get_user(self): Only call this if :meth:`is_user` is true. - :rtype: team_log.UserLogInfo + :rtype: UserLogInfo """ if not self.is_user(): raise AttributeError("tag 'user' not set") @@ -1157,7 +1153,7 @@ def get_admin(self): Only call this if :meth:`is_admin` is true. - :rtype: team_log.UserLogInfo + :rtype: UserLogInfo """ if not self.is_admin(): raise AttributeError("tag 'admin' not set") @@ -1169,7 +1165,7 @@ def get_app(self): Only call this if :meth:`is_app` is true. - :rtype: team_log.AppLogInfo + :rtype: AppLogInfo """ if not self.is_app(): raise AttributeError("tag 'app' not set") @@ -1181,14 +1177,14 @@ def get_reseller(self): Only call this if :meth:`is_reseller` is true. - :rtype: team_log.ResellerLogInfo + :rtype: ResellerLogInfo """ if not self.is_reseller(): raise AttributeError("tag 'reseller' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ActorLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ActorLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ActorLogInfo(%r, %r)' % (self._tag, self._value) @@ -1264,8 +1260,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(AdminRole, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AdminRole, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AdminRole(%r, %r)' % (self._tag, self._value) @@ -1285,8 +1281,8 @@ class AllowDownloadDisabledDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(AllowDownloadDisabledDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AllowDownloadDisabledDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AllowDownloadDisabledDetails()' @@ -1330,8 +1326,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AllowDownloadDisabledType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AllowDownloadDisabledType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AllowDownloadDisabledType(description={!r})'.format( @@ -1353,8 +1349,8 @@ class AllowDownloadEnabledDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(AllowDownloadEnabledDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AllowDownloadEnabledDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AllowDownloadEnabledDetails()' @@ -1398,8 +1394,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AllowDownloadEnabledType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AllowDownloadEnabledType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AllowDownloadEnabledType(description={!r})'.format( @@ -1452,8 +1448,8 @@ def request_id(self): self._request_id_value = None self._request_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ApiSessionLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ApiSessionLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ApiSessionLogInfo(request_id={!r})'.format( @@ -1488,7 +1484,7 @@ def app_info(self): """ Relevant application details. - :rtype: team_log.AppLogInfo + :rtype: AppLogInfo """ if self._app_info_present: return self._app_info_value @@ -1506,8 +1502,8 @@ def app_info(self): self._app_info_value = None self._app_info_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AppLinkTeamDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AppLinkTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AppLinkTeamDetails(app_info={!r})'.format( @@ -1553,8 +1549,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AppLinkTeamType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AppLinkTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AppLinkTeamType(description={!r})'.format( @@ -1589,7 +1585,7 @@ def app_info(self): """ Relevant application details. - :rtype: team_log.AppLogInfo + :rtype: AppLogInfo """ if self._app_info_present: return self._app_info_value @@ -1607,8 +1603,8 @@ def app_info(self): self._app_info_value = None self._app_info_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AppLinkUserDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AppLinkUserDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AppLinkUserDetails(app_info={!r})'.format( @@ -1654,8 +1650,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AppLinkUserType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AppLinkUserType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AppLinkUserType(description={!r})'.format( @@ -1747,8 +1743,8 @@ def display_name(self): self._display_name_value = None self._display_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AppLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AppLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AppLogInfo(app_id={!r}, display_name={!r})'.format( @@ -1784,7 +1780,7 @@ def app_info(self): """ Relevant application details. - :rtype: team_log.AppLogInfo + :rtype: AppLogInfo """ if self._app_info_present: return self._app_info_value @@ -1802,8 +1798,8 @@ def app_info(self): self._app_info_value = None self._app_info_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AppUnlinkTeamDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AppUnlinkTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AppUnlinkTeamDetails(app_info={!r})'.format( @@ -1849,8 +1845,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AppUnlinkTeamType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AppUnlinkTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AppUnlinkTeamType(description={!r})'.format( @@ -1885,7 +1881,7 @@ def app_info(self): """ Relevant application details. - :rtype: team_log.AppLogInfo + :rtype: AppLogInfo """ if self._app_info_present: return self._app_info_value @@ -1903,8 +1899,8 @@ def app_info(self): self._app_info_value = None self._app_info_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AppUnlinkUserDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AppUnlinkUserDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AppUnlinkUserDetails(app_info={!r})'.format( @@ -1950,8 +1946,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(AppUnlinkUserType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AppUnlinkUserType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AppUnlinkUserType(description={!r})'.format( @@ -1968,14 +1964,13 @@ class AssetLogInfo(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar FileLogInfo team_log.AssetLogInfo.file: File's details. - :ivar FolderLogInfo team_log.AssetLogInfo.folder: Folder's details. - :ivar PaperDocumentLogInfo team_log.AssetLogInfo.paper_document: Paper - docuement's details. - :ivar PaperFolderLogInfo team_log.AssetLogInfo.paper_folder: Paper folder's + :ivar FileLogInfo AssetLogInfo.file: File's details. + :ivar FolderLogInfo AssetLogInfo.folder: Folder's details. + :ivar PaperDocumentLogInfo AssetLogInfo.paper_document: Paper document's details. - :ivar ShowcaseDocumentLogInfo team_log.AssetLogInfo.showcase_document: - Showcase document's details. + :ivar PaperFolderLogInfo AssetLogInfo.paper_folder: Paper folder's details. + :ivar ShowcaseDocumentLogInfo AssetLogInfo.showcase_document: Showcase + document's details. """ _catch_all = 'other' @@ -1988,8 +1983,8 @@ def file(cls, val): Create an instance of this class set to the ``file`` tag with value ``val``. - :param team_log.FileLogInfo val: - :rtype: team_log.AssetLogInfo + :param FileLogInfo val: + :rtype: AssetLogInfo """ return cls('file', val) @@ -1999,8 +1994,8 @@ def folder(cls, val): Create an instance of this class set to the ``folder`` tag with value ``val``. - :param team_log.FolderLogInfo val: - :rtype: team_log.AssetLogInfo + :param FolderLogInfo val: + :rtype: AssetLogInfo """ return cls('folder', val) @@ -2010,8 +2005,8 @@ def paper_document(cls, val): Create an instance of this class set to the ``paper_document`` tag with value ``val``. - :param team_log.PaperDocumentLogInfo val: - :rtype: team_log.AssetLogInfo + :param PaperDocumentLogInfo val: + :rtype: AssetLogInfo """ return cls('paper_document', val) @@ -2021,8 +2016,8 @@ def paper_folder(cls, val): Create an instance of this class set to the ``paper_folder`` tag with value ``val``. - :param team_log.PaperFolderLogInfo val: - :rtype: team_log.AssetLogInfo + :param PaperFolderLogInfo val: + :rtype: AssetLogInfo """ return cls('paper_folder', val) @@ -2032,8 +2027,8 @@ def showcase_document(cls, val): Create an instance of this class set to the ``showcase_document`` tag with value ``val``. - :param team_log.ShowcaseDocumentLogInfo val: - :rtype: team_log.AssetLogInfo + :param ShowcaseDocumentLogInfo val: + :rtype: AssetLogInfo """ return cls('showcase_document', val) @@ -2091,7 +2086,7 @@ def get_file(self): Only call this if :meth:`is_file` is true. - :rtype: team_log.FileLogInfo + :rtype: FileLogInfo """ if not self.is_file(): raise AttributeError("tag 'file' not set") @@ -2103,7 +2098,7 @@ def get_folder(self): Only call this if :meth:`is_folder` is true. - :rtype: team_log.FolderLogInfo + :rtype: FolderLogInfo """ if not self.is_folder(): raise AttributeError("tag 'folder' not set") @@ -2111,11 +2106,11 @@ def get_folder(self): def get_paper_document(self): """ - Paper docuement's details. + Paper document's details. Only call this if :meth:`is_paper_document` is true. - :rtype: team_log.PaperDocumentLogInfo + :rtype: PaperDocumentLogInfo """ if not self.is_paper_document(): raise AttributeError("tag 'paper_document' not set") @@ -2127,7 +2122,7 @@ def get_paper_folder(self): Only call this if :meth:`is_paper_folder` is true. - :rtype: team_log.PaperFolderLogInfo + :rtype: PaperFolderLogInfo """ if not self.is_paper_folder(): raise AttributeError("tag 'paper_folder' not set") @@ -2139,14 +2134,14 @@ def get_showcase_document(self): Only call this if :meth:`is_showcase_document` is true. - :rtype: team_log.ShowcaseDocumentLogInfo + :rtype: ShowcaseDocumentLogInfo """ if not self.is_showcase_document(): raise AttributeError("tag 'showcase_document' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(AssetLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AssetLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AssetLogInfo(%r, %r)' % (self._tag, self._value) @@ -2194,8 +2189,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(CameraUploadsPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CameraUploadsPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CameraUploadsPolicy(%r, %r)' % (self._tag, self._value) @@ -2238,7 +2233,7 @@ def new_value(self): """ New camera uploads setting. - :rtype: team_log.CameraUploadsPolicy + :rtype: CameraUploadsPolicy """ if self._new_value_present: return self._new_value_value @@ -2261,7 +2256,7 @@ def previous_value(self): """ Previous camera uploads setting. - :rtype: team_log.CameraUploadsPolicy + :rtype: CameraUploadsPolicy """ if self._previous_value_present: return self._previous_value_value @@ -2279,8 +2274,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CameraUploadsPolicyChangedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CameraUploadsPolicyChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CameraUploadsPolicyChangedDetails(new_value={!r}, previous_value={!r})'.format( @@ -2327,8 +2322,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CameraUploadsPolicyChangedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CameraUploadsPolicyChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CameraUploadsPolicyChangedType(description={!r})'.format( @@ -2570,8 +2565,8 @@ def common_name(self): self._common_name_value = None self._common_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(Certificate, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(Certificate, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'Certificate(subject={!r}, issuer={!r}, issue_date={!r}, expiration_date={!r}, serial_number={!r}, sha1_fingerprint={!r}, common_name={!r})'.format( @@ -2630,8 +2625,8 @@ def album_name(self): self._album_name_value = None self._album_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CollectionShareDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CollectionShareDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CollectionShareDetails(album_name={!r})'.format( @@ -2677,8 +2672,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CollectionShareType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CollectionShareType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CollectionShareType(description={!r})'.format( @@ -2728,8 +2723,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ContentPermanentDeletePolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ContentPermanentDeletePolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ContentPermanentDeletePolicy(%r, %r)' % (self._tag, self._value) @@ -2744,15 +2739,14 @@ class ContextLogInfo(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar TeamMemberLogInfo team_log.ContextLogInfo.team_member: Action was done - on behalf of a team member. - :ivar NonTeamMemberLogInfo team_log.ContextLogInfo.non_team_member: Action - was done on behalf of a non team member. + :ivar TeamMemberLogInfo ContextLogInfo.team_member: Action was done on + behalf of a team member. + :ivar NonTeamMemberLogInfo ContextLogInfo.non_team_member: Action was done + on behalf of a non team member. :ivar team_log.ContextLogInfo.anonymous: Anonymous context. :ivar team_log.ContextLogInfo.team: Action was done on behalf of the team. - :ivar TrustedNonTeamMemberLogInfo - team_log.ContextLogInfo.trusted_non_team_member: Action was done on - behalf of a trusted non team member. + :ivar TrustedNonTeamMemberLogInfo ContextLogInfo.trusted_non_team_member: + Action was done on behalf of a trusted non team member. """ _catch_all = 'other' @@ -2769,8 +2763,8 @@ def team_member(cls, val): Create an instance of this class set to the ``team_member`` tag with value ``val``. - :param team_log.TeamMemberLogInfo val: - :rtype: team_log.ContextLogInfo + :param TeamMemberLogInfo val: + :rtype: ContextLogInfo """ return cls('team_member', val) @@ -2780,8 +2774,8 @@ def non_team_member(cls, val): Create an instance of this class set to the ``non_team_member`` tag with value ``val``. - :param team_log.NonTeamMemberLogInfo val: - :rtype: team_log.ContextLogInfo + :param NonTeamMemberLogInfo val: + :rtype: ContextLogInfo """ return cls('non_team_member', val) @@ -2791,8 +2785,8 @@ def trusted_non_team_member(cls, val): Create an instance of this class set to the ``trusted_non_team_member`` tag with value ``val``. - :param team_log.TrustedNonTeamMemberLogInfo val: - :rtype: team_log.ContextLogInfo + :param TrustedNonTeamMemberLogInfo val: + :rtype: ContextLogInfo """ return cls('trusted_non_team_member', val) @@ -2850,7 +2844,7 @@ def get_team_member(self): Only call this if :meth:`is_team_member` is true. - :rtype: team_log.TeamMemberLogInfo + :rtype: TeamMemberLogInfo """ if not self.is_team_member(): raise AttributeError("tag 'team_member' not set") @@ -2862,7 +2856,7 @@ def get_non_team_member(self): Only call this if :meth:`is_non_team_member` is true. - :rtype: team_log.NonTeamMemberLogInfo + :rtype: NonTeamMemberLogInfo """ if not self.is_non_team_member(): raise AttributeError("tag 'non_team_member' not set") @@ -2874,14 +2868,14 @@ def get_trusted_non_team_member(self): Only call this if :meth:`is_trusted_non_team_member` is true. - :rtype: team_log.TrustedNonTeamMemberLogInfo + :rtype: TrustedNonTeamMemberLogInfo """ if not self.is_trusted_non_team_member(): raise AttributeError("tag 'trusted_non_team_member' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ContextLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ContextLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ContextLogInfo(%r, %r)' % (self._tag, self._value) @@ -2901,8 +2895,8 @@ class CreateFolderDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderDetails()' @@ -2946,8 +2940,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(CreateFolderType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CreateFolderType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CreateFolderType(description={!r})'.format( @@ -2992,7 +2986,7 @@ def previous_value(self): """ Previous placement restriction. - :rtype: team_log.PlacementRestriction + :rtype: PlacementRestriction """ if self._previous_value_present: return self._previous_value_value @@ -3015,7 +3009,7 @@ def new_value(self): """ New placement restriction. - :rtype: team_log.PlacementRestriction + :rtype: PlacementRestriction """ if self._new_value_present: return self._new_value_value @@ -3033,8 +3027,8 @@ def new_value(self): self._new_value_value = None self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DataPlacementRestrictionChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DataPlacementRestrictionChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DataPlacementRestrictionChangePolicyDetails(previous_value={!r}, new_value={!r})'.format( @@ -3081,8 +3075,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DataPlacementRestrictionChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DataPlacementRestrictionChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DataPlacementRestrictionChangePolicyType(description={!r})'.format( @@ -3119,7 +3113,7 @@ def placement_restriction(self): """ Placement restriction. - :rtype: team_log.PlacementRestriction + :rtype: PlacementRestriction """ if self._placement_restriction_present: return self._placement_restriction_value @@ -3137,8 +3131,8 @@ def placement_restriction(self): self._placement_restriction_value = None self._placement_restriction_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DataPlacementRestrictionSatisfyPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DataPlacementRestrictionSatisfyPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DataPlacementRestrictionSatisfyPolicyDetails(placement_restriction={!r})'.format( @@ -3184,8 +3178,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DataPlacementRestrictionSatisfyPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DataPlacementRestrictionSatisfyPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DataPlacementRestrictionSatisfyPolicyType(description={!r})'.format( @@ -3315,8 +3309,8 @@ def updated(self): self._updated_value = None self._updated_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceSessionLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceSessionLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceSessionLogInfo(ip_address={!r}, created={!r}, updated={!r})'.format( @@ -3406,7 +3400,7 @@ def session_info(self): """ Desktop session unique id. Might be missing due to historical data gap. - :rtype: team_log.DesktopSessionLogInfo + :rtype: DesktopSessionLogInfo """ if self._session_info_present: return self._session_info_value @@ -3546,8 +3540,8 @@ def is_delete_on_unlink_supported(self): self._is_delete_on_unlink_supported_value = None self._is_delete_on_unlink_supported_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DesktopDeviceSessionLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DesktopDeviceSessionLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DesktopDeviceSessionLogInfo(host_name={!r}, client_type={!r}, platform={!r}, is_delete_on_unlink_supported={!r}, ip_address={!r}, created={!r}, updated={!r}, session_info={!r}, client_version={!r})'.format( @@ -3612,8 +3606,8 @@ def session_id(self): self._session_id_value = None self._session_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SessionLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SessionLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SessionLogInfo(session_id={!r})'.format( @@ -3636,8 +3630,8 @@ def __init__(self, session_id=None): super(DesktopSessionLogInfo, self).__init__(session_id) - def _process_custom_annotations(self, annotation_type, processor): - super(DesktopSessionLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DesktopSessionLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DesktopSessionLogInfo(session_id={!r})'.format( @@ -3686,7 +3680,7 @@ def new_value(self): New desktop device approvals policy. Might be missing due to historical data gap. - :rtype: team_log.DeviceApprovalsPolicy + :rtype: DeviceApprovalsPolicy """ if self._new_value_present: return self._new_value_value @@ -3713,7 +3707,7 @@ def previous_value(self): Previous desktop device approvals policy. Might be missing due to historical data gap. - :rtype: team_log.DeviceApprovalsPolicy + :rtype: DeviceApprovalsPolicy """ if self._previous_value_present: return self._previous_value_value @@ -3734,8 +3728,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceApprovalsChangeDesktopPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceApprovalsChangeDesktopPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceApprovalsChangeDesktopPolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -3782,8 +3776,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceApprovalsChangeDesktopPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceApprovalsChangeDesktopPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceApprovalsChangeDesktopPolicyType(description={!r})'.format( @@ -3832,7 +3826,7 @@ def new_value(self): New mobile device approvals policy. Might be missing due to historical data gap. - :rtype: team_log.DeviceApprovalsPolicy + :rtype: DeviceApprovalsPolicy """ if self._new_value_present: return self._new_value_value @@ -3859,7 +3853,7 @@ def previous_value(self): Previous mobile device approvals policy. Might be missing due to historical data gap. - :rtype: team_log.DeviceApprovalsPolicy + :rtype: DeviceApprovalsPolicy """ if self._previous_value_present: return self._previous_value_value @@ -3880,8 +3874,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceApprovalsChangeMobilePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceApprovalsChangeMobilePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceApprovalsChangeMobilePolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -3928,8 +3922,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceApprovalsChangeMobilePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceApprovalsChangeMobilePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceApprovalsChangeMobilePolicyType(description={!r})'.format( @@ -4023,8 +4017,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceApprovalsChangeOverageActionDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceApprovalsChangeOverageActionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceApprovalsChangeOverageActionDetails(new_value={!r}, previous_value={!r})'.format( @@ -4071,8 +4065,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceApprovalsChangeOverageActionType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceApprovalsChangeOverageActionType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceApprovalsChangeOverageActionType(description={!r})'.format( @@ -4118,7 +4112,7 @@ def new_value(self): """ New device unlink policy. Might be missing due to historical data gap. - :rtype: team_log.DeviceUnlinkPolicy + :rtype: DeviceUnlinkPolicy """ if self._new_value_present: return self._new_value_value @@ -4145,7 +4139,7 @@ def previous_value(self): Previous device unlink policy. Might be missing due to historical data gap. - :rtype: team_log.DeviceUnlinkPolicy + :rtype: DeviceUnlinkPolicy """ if self._previous_value_present: return self._previous_value_value @@ -4166,8 +4160,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceApprovalsChangeUnlinkActionDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceApprovalsChangeUnlinkActionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceApprovalsChangeUnlinkActionDetails(new_value={!r}, previous_value={!r})'.format( @@ -4214,8 +4208,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceApprovalsChangeUnlinkActionType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceApprovalsChangeUnlinkActionType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceApprovalsChangeUnlinkActionType(description={!r})'.format( @@ -4263,8 +4257,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceApprovalsPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceApprovalsPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceApprovalsPolicy(%r, %r)' % (self._tag, self._value) @@ -4298,7 +4292,7 @@ def device_session_info(self): """ Device's session logged information. - :rtype: team_log.DeviceSessionLogInfo + :rtype: DeviceSessionLogInfo """ if self._device_session_info_present: return self._device_session_info_value @@ -4316,8 +4310,8 @@ def device_session_info(self): self._device_session_info_value = None self._device_session_info_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceChangeIpDesktopDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceChangeIpDesktopDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceChangeIpDesktopDetails(device_session_info={!r})'.format( @@ -4363,8 +4357,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceChangeIpDesktopType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceChangeIpDesktopType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceChangeIpDesktopType(description={!r})'.format( @@ -4400,7 +4394,7 @@ def device_session_info(self): """ Device's session logged information. - :rtype: team_log.DeviceSessionLogInfo + :rtype: DeviceSessionLogInfo """ if self._device_session_info_present: return self._device_session_info_value @@ -4421,8 +4415,8 @@ def device_session_info(self): self._device_session_info_value = None self._device_session_info_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceChangeIpMobileDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceChangeIpMobileDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceChangeIpMobileDetails(device_session_info={!r})'.format( @@ -4468,8 +4462,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceChangeIpMobileType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceChangeIpMobileType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceChangeIpMobileType(description={!r})'.format( @@ -4522,8 +4516,8 @@ def user_agent(self): self._user_agent_value = None self._user_agent_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceChangeIpWebDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceChangeIpWebDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceChangeIpWebDetails(user_agent={!r})'.format( @@ -4569,8 +4563,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceChangeIpWebType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceChangeIpWebType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceChangeIpWebType(description={!r})'.format( @@ -4624,7 +4618,7 @@ def session_info(self): """ Session unique id. Might be missing due to historical data gap. - :rtype: team_log.SessionLogInfo + :rtype: SessionLogInfo """ if self._session_info_present: return self._session_info_value @@ -4694,8 +4688,8 @@ def num_failures(self): self._num_failures_value = None self._num_failures_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceDeleteOnUnlinkFailDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceDeleteOnUnlinkFailDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceDeleteOnUnlinkFailDetails(num_failures={!r}, session_info={!r}, display_name={!r})'.format( @@ -4743,8 +4737,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceDeleteOnUnlinkFailType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceDeleteOnUnlinkFailType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceDeleteOnUnlinkFailType(description={!r})'.format( @@ -4789,7 +4783,7 @@ def session_info(self): """ Session unique id. Might be missing due to historical data gap. - :rtype: team_log.SessionLogInfo + :rtype: SessionLogInfo """ if self._session_info_present: return self._session_info_value @@ -4836,8 +4830,8 @@ def display_name(self): self._display_name_value = None self._display_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceDeleteOnUnlinkSuccessDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceDeleteOnUnlinkSuccessDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceDeleteOnUnlinkSuccessDetails(session_info={!r}, display_name={!r})'.format( @@ -4884,8 +4878,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceDeleteOnUnlinkSuccessType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceDeleteOnUnlinkSuccessType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceDeleteOnUnlinkSuccessType(description={!r})'.format( @@ -4956,7 +4950,7 @@ def device_type(self): """ A description of the device used while user approval blocked. - :rtype: team_log.DeviceType + :rtype: DeviceType """ if self._device_type_present: return self._device_type_value @@ -4974,8 +4968,8 @@ def device_type(self): self._device_type_value = None self._device_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceLinkFailDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceLinkFailDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceLinkFailDetails(device_type={!r}, ip_address={!r})'.format( @@ -5022,8 +5016,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceLinkFailType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceLinkFailType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceLinkFailType(description={!r})'.format( @@ -5059,7 +5053,7 @@ def device_session_info(self): """ Device's session logged information. - :rtype: team_log.DeviceSessionLogInfo + :rtype: DeviceSessionLogInfo """ if self._device_session_info_present: return self._device_session_info_value @@ -5080,8 +5074,8 @@ def device_session_info(self): self._device_session_info_value = None self._device_session_info_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceLinkSuccessDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceLinkSuccessDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceLinkSuccessDetails(device_session_info={!r})'.format( @@ -5127,8 +5121,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceLinkSuccessType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceLinkSuccessType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceLinkSuccessType(description={!r})'.format( @@ -5150,8 +5144,8 @@ class DeviceManagementDisabledDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceManagementDisabledDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceManagementDisabledDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceManagementDisabledDetails()' @@ -5195,8 +5189,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceManagementDisabledType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceManagementDisabledType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceManagementDisabledType(description={!r})'.format( @@ -5218,8 +5212,8 @@ class DeviceManagementEnabledDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceManagementEnabledDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceManagementEnabledDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceManagementEnabledDetails()' @@ -5263,8 +5257,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceManagementEnabledType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceManagementEnabledType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceManagementEnabledType(description={!r})'.format( @@ -5312,8 +5306,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceType(%r, %r)' % (self._tag, self._value) @@ -5364,7 +5358,7 @@ def session_info(self): """ Session unique id. - :rtype: team_log.SessionLogInfo + :rtype: SessionLogInfo """ if self._session_info_present: return self._session_info_value @@ -5435,8 +5429,8 @@ def delete_data(self): self._delete_data_value = None self._delete_data_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceUnlinkDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceUnlinkDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceUnlinkDetails(delete_data={!r}, session_info={!r}, display_name={!r})'.format( @@ -5486,8 +5480,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceUnlinkPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceUnlinkPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceUnlinkPolicy(%r, %r)' % (self._tag, self._value) @@ -5531,8 +5525,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DeviceUnlinkType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DeviceUnlinkType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DeviceUnlinkType(description={!r})'.format( @@ -5554,8 +5548,8 @@ class DirectoryRestrictionsAddMembersDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(DirectoryRestrictionsAddMembersDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DirectoryRestrictionsAddMembersDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DirectoryRestrictionsAddMembersDetails()' @@ -5599,8 +5593,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DirectoryRestrictionsAddMembersType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DirectoryRestrictionsAddMembersType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DirectoryRestrictionsAddMembersType(description={!r})'.format( @@ -5622,8 +5616,8 @@ class DirectoryRestrictionsRemoveMembersDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(DirectoryRestrictionsRemoveMembersDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DirectoryRestrictionsRemoveMembersDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DirectoryRestrictionsRemoveMembersDetails()' @@ -5667,8 +5661,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DirectoryRestrictionsRemoveMembersType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DirectoryRestrictionsRemoveMembersType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DirectoryRestrictionsRemoveMembersType(description={!r})'.format( @@ -5690,8 +5684,8 @@ class DisabledDomainInvitesDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(DisabledDomainInvitesDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DisabledDomainInvitesDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DisabledDomainInvitesDetails()' @@ -5735,8 +5729,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DisabledDomainInvitesType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DisabledDomainInvitesType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DisabledDomainInvitesType(description={!r})'.format( @@ -5758,8 +5752,8 @@ class DomainInvitesApproveRequestToJoinTeamDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesApproveRequestToJoinTeamDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesApproveRequestToJoinTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesApproveRequestToJoinTeamDetails()' @@ -5803,8 +5797,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesApproveRequestToJoinTeamType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesApproveRequestToJoinTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesApproveRequestToJoinTeamType(description={!r})'.format( @@ -5826,8 +5820,8 @@ class DomainInvitesDeclineRequestToJoinTeamDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesDeclineRequestToJoinTeamDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesDeclineRequestToJoinTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesDeclineRequestToJoinTeamDetails()' @@ -5871,8 +5865,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesDeclineRequestToJoinTeamType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesDeclineRequestToJoinTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesDeclineRequestToJoinTeamType(description={!r})'.format( @@ -5958,8 +5952,8 @@ def num_recipients(self): self._num_recipients_value = None self._num_recipients_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesEmailExistingUsersDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesEmailExistingUsersDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesEmailExistingUsersDetails(domain_name={!r}, num_recipients={!r})'.format( @@ -6006,8 +6000,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesEmailExistingUsersType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesEmailExistingUsersType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesEmailExistingUsersType(description={!r})'.format( @@ -6029,8 +6023,8 @@ class DomainInvitesRequestToJoinTeamDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesRequestToJoinTeamDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesRequestToJoinTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesRequestToJoinTeamDetails()' @@ -6074,8 +6068,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesRequestToJoinTeamType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesRequestToJoinTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesRequestToJoinTeamType(description={!r})'.format( @@ -6097,8 +6091,8 @@ class DomainInvitesSetInviteNewUserPrefToNoDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesSetInviteNewUserPrefToNoDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesSetInviteNewUserPrefToNoDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesSetInviteNewUserPrefToNoDetails()' @@ -6142,8 +6136,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesSetInviteNewUserPrefToNoType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesSetInviteNewUserPrefToNoType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesSetInviteNewUserPrefToNoType(description={!r})'.format( @@ -6165,8 +6159,8 @@ class DomainInvitesSetInviteNewUserPrefToYesDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesSetInviteNewUserPrefToYesDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesSetInviteNewUserPrefToYesDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesSetInviteNewUserPrefToYesDetails()' @@ -6210,8 +6204,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainInvitesSetInviteNewUserPrefToYesType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainInvitesSetInviteNewUserPrefToYesType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainInvitesSetInviteNewUserPrefToYesType(description={!r})'.format( @@ -6302,8 +6296,8 @@ def verification_method(self): self._verification_method_value = None self._verification_method_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainVerificationAddDomainFailDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainVerificationAddDomainFailDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainVerificationAddDomainFailDetails(domain_name={!r}, verification_method={!r})'.format( @@ -6350,8 +6344,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainVerificationAddDomainFailType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainVerificationAddDomainFailType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainVerificationAddDomainFailType(description={!r})'.format( @@ -6443,8 +6437,8 @@ def verification_method(self): self._verification_method_value = None self._verification_method_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainVerificationAddDomainSuccessDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainVerificationAddDomainSuccessDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainVerificationAddDomainSuccessDetails(domain_names={!r}, verification_method={!r})'.format( @@ -6491,8 +6485,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainVerificationAddDomainSuccessType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainVerificationAddDomainSuccessType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainVerificationAddDomainSuccessType(description={!r})'.format( @@ -6546,8 +6540,8 @@ def domain_names(self): self._domain_names_value = None self._domain_names_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainVerificationRemoveDomainDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainVerificationRemoveDomainDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainVerificationRemoveDomainDetails(domain_names={!r})'.format( @@ -6593,8 +6587,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DomainVerificationRemoveDomainType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DomainVerificationRemoveDomainType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DomainVerificationRemoveDomainType(description={!r})'.format( @@ -6644,8 +6638,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(DownloadPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DownloadPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DownloadPolicyType(%r, %r)' % (self._tag, self._value) @@ -6686,7 +6680,7 @@ def unit(self): """ Time unit. - :rtype: team_log.TimeUnit + :rtype: TimeUnit """ if self._unit_present: return self._unit_value @@ -6727,8 +6721,8 @@ def amount(self): self._amount_value = None self._amount_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(DurationLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(DurationLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'DurationLogInfo(unit={!r}, amount={!r})'.format( @@ -6751,8 +6745,8 @@ class EmmAddExceptionDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(EmmAddExceptionDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmAddExceptionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmAddExceptionDetails()' @@ -6796,8 +6790,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(EmmAddExceptionType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmAddExceptionType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmAddExceptionType(description={!r})'.format( @@ -6887,8 +6881,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(EmmChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -6935,8 +6929,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(EmmChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmChangePolicyType(description={!r})'.format( @@ -6958,8 +6952,8 @@ class EmmCreateExceptionsReportDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(EmmCreateExceptionsReportDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmCreateExceptionsReportDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmCreateExceptionsReportDetails()' @@ -7003,8 +6997,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(EmmCreateExceptionsReportType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmCreateExceptionsReportType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmCreateExceptionsReportType(description={!r})'.format( @@ -7026,8 +7020,8 @@ class EmmCreateUsageReportDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(EmmCreateUsageReportDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmCreateUsageReportDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmCreateUsageReportDetails()' @@ -7071,8 +7065,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(EmmCreateUsageReportType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmCreateUsageReportType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmCreateUsageReportType(description={!r})'.format( @@ -7107,7 +7101,7 @@ def error_details(self): """ Error details. - :rtype: team_log.FailureDetailsLogInfo + :rtype: FailureDetailsLogInfo """ if self._error_details_present: return self._error_details_value @@ -7125,8 +7119,8 @@ def error_details(self): self._error_details_value = None self._error_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(EmmErrorDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmErrorDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmErrorDetails(error_details={!r})'.format( @@ -7172,8 +7166,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(EmmErrorType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmErrorType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmErrorType(description={!r})'.format( @@ -7184,7 +7178,7 @@ def __repr__(self): class EmmRefreshAuthTokenDetails(bb.Struct): """ - Refreshed auth token used for setting up enterprise mobility management. + Refreshed auth token used for setting up EMM. """ __slots__ = [ @@ -7195,8 +7189,8 @@ class EmmRefreshAuthTokenDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(EmmRefreshAuthTokenDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmRefreshAuthTokenDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmRefreshAuthTokenDetails()' @@ -7240,8 +7234,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(EmmRefreshAuthTokenType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmRefreshAuthTokenType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmRefreshAuthTokenType(description={!r})'.format( @@ -7263,8 +7257,8 @@ class EmmRemoveExceptionDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(EmmRemoveExceptionDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmRemoveExceptionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmRemoveExceptionDetails()' @@ -7308,8 +7302,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(EmmRemoveExceptionType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmRemoveExceptionType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmRemoveExceptionType(description={!r})'.format( @@ -7331,8 +7325,8 @@ class EnabledDomainInvitesDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(EnabledDomainInvitesDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EnabledDomainInvitesDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EnabledDomainInvitesDetails()' @@ -7376,8 +7370,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(EnabledDomainInvitesType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EnabledDomainInvitesType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EnabledDomainInvitesType(description={!r})'.format( @@ -7432,6 +7426,8 @@ class EventCategory(bb.Union): :ivar team_log.EventCategory.tfa: Events that involve using or configuring two factor authentication as well as administrative policies concerning two factor authentication. + :ivar team_log.EventCategory.trusted_teams: Events that apply to cross-team + trust establishment. """ _catch_all = 'other' @@ -7474,6 +7470,8 @@ class EventCategory(bb.Union): # Attribute is overwritten below the class definition tfa = None # Attribute is overwritten below the class definition + trusted_teams = None + # Attribute is overwritten below the class definition other = None def is_apps(self): @@ -7628,6 +7626,14 @@ def is_tfa(self): """ return self._tag == 'tfa' + def is_trusted_teams(self): + """ + Check if the union tag is ``trusted_teams``. + + :rtype: bool + """ + return self._tag == 'trusted_teams' + def is_other(self): """ Check if the union tag is ``other``. @@ -7636,8 +7642,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(EventCategory, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EventCategory, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EventCategory(%r, %r)' % (self._tag, self._value) @@ -7652,8 +7658,8 @@ class EventDetails(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar MissingDetails team_log.EventDetails.missing_details: Hints that this - event was returned with missing details due to an internal error. + :ivar MissingDetails EventDetails.missing_details: Hints that this event was + returned with missing details due to an internal error. """ _catch_all = 'other' @@ -7666,8 +7672,8 @@ def app_link_team_details(cls, val): Create an instance of this class set to the ``app_link_team_details`` tag with value ``val``. - :param team_log.AppLinkTeamDetails val: - :rtype: team_log.EventDetails + :param AppLinkTeamDetails val: + :rtype: EventDetails """ return cls('app_link_team_details', val) @@ -7677,8 +7683,8 @@ def app_link_user_details(cls, val): Create an instance of this class set to the ``app_link_user_details`` tag with value ``val``. - :param team_log.AppLinkUserDetails val: - :rtype: team_log.EventDetails + :param AppLinkUserDetails val: + :rtype: EventDetails """ return cls('app_link_user_details', val) @@ -7688,8 +7694,8 @@ def app_unlink_team_details(cls, val): Create an instance of this class set to the ``app_unlink_team_details`` tag with value ``val``. - :param team_log.AppUnlinkTeamDetails val: - :rtype: team_log.EventDetails + :param AppUnlinkTeamDetails val: + :rtype: EventDetails """ return cls('app_unlink_team_details', val) @@ -7699,19 +7705,41 @@ def app_unlink_user_details(cls, val): Create an instance of this class set to the ``app_unlink_user_details`` tag with value ``val``. - :param team_log.AppUnlinkUserDetails val: - :rtype: team_log.EventDetails + :param AppUnlinkUserDetails val: + :rtype: EventDetails """ return cls('app_unlink_user_details', val) + @classmethod + def integration_connected_details(cls, val): + """ + Create an instance of this class set to the + ``integration_connected_details`` tag with value ``val``. + + :param IntegrationConnectedDetails val: + :rtype: EventDetails + """ + return cls('integration_connected_details', val) + + @classmethod + def integration_disconnected_details(cls, val): + """ + Create an instance of this class set to the + ``integration_disconnected_details`` tag with value ``val``. + + :param IntegrationDisconnectedDetails val: + :rtype: EventDetails + """ + return cls('integration_disconnected_details', val) + @classmethod def file_add_comment_details(cls, val): """ Create an instance of this class set to the ``file_add_comment_details`` tag with value ``val``. - :param team_log.FileAddCommentDetails val: - :rtype: team_log.EventDetails + :param FileAddCommentDetails val: + :rtype: EventDetails """ return cls('file_add_comment_details', val) @@ -7721,8 +7749,8 @@ def file_change_comment_subscription_details(cls, val): Create an instance of this class set to the ``file_change_comment_subscription_details`` tag with value ``val``. - :param team_log.FileChangeCommentSubscriptionDetails val: - :rtype: team_log.EventDetails + :param FileChangeCommentSubscriptionDetails val: + :rtype: EventDetails """ return cls('file_change_comment_subscription_details', val) @@ -7732,8 +7760,8 @@ def file_delete_comment_details(cls, val): Create an instance of this class set to the ``file_delete_comment_details`` tag with value ``val``. - :param team_log.FileDeleteCommentDetails val: - :rtype: team_log.EventDetails + :param FileDeleteCommentDetails val: + :rtype: EventDetails """ return cls('file_delete_comment_details', val) @@ -7743,8 +7771,8 @@ def file_edit_comment_details(cls, val): Create an instance of this class set to the ``file_edit_comment_details`` tag with value ``val``. - :param team_log.FileEditCommentDetails val: - :rtype: team_log.EventDetails + :param FileEditCommentDetails val: + :rtype: EventDetails """ return cls('file_edit_comment_details', val) @@ -7754,8 +7782,8 @@ def file_like_comment_details(cls, val): Create an instance of this class set to the ``file_like_comment_details`` tag with value ``val``. - :param team_log.FileLikeCommentDetails val: - :rtype: team_log.EventDetails + :param FileLikeCommentDetails val: + :rtype: EventDetails """ return cls('file_like_comment_details', val) @@ -7765,8 +7793,8 @@ def file_resolve_comment_details(cls, val): Create an instance of this class set to the ``file_resolve_comment_details`` tag with value ``val``. - :param team_log.FileResolveCommentDetails val: - :rtype: team_log.EventDetails + :param FileResolveCommentDetails val: + :rtype: EventDetails """ return cls('file_resolve_comment_details', val) @@ -7776,8 +7804,8 @@ def file_unlike_comment_details(cls, val): Create an instance of this class set to the ``file_unlike_comment_details`` tag with value ``val``. - :param team_log.FileUnlikeCommentDetails val: - :rtype: team_log.EventDetails + :param FileUnlikeCommentDetails val: + :rtype: EventDetails """ return cls('file_unlike_comment_details', val) @@ -7787,8 +7815,8 @@ def file_unresolve_comment_details(cls, val): Create an instance of this class set to the ``file_unresolve_comment_details`` tag with value ``val``. - :param team_log.FileUnresolveCommentDetails val: - :rtype: team_log.EventDetails + :param FileUnresolveCommentDetails val: + :rtype: EventDetails """ return cls('file_unresolve_comment_details', val) @@ -7798,8 +7826,8 @@ def device_change_ip_desktop_details(cls, val): Create an instance of this class set to the ``device_change_ip_desktop_details`` tag with value ``val``. - :param team_log.DeviceChangeIpDesktopDetails val: - :rtype: team_log.EventDetails + :param DeviceChangeIpDesktopDetails val: + :rtype: EventDetails """ return cls('device_change_ip_desktop_details', val) @@ -7809,8 +7837,8 @@ def device_change_ip_mobile_details(cls, val): Create an instance of this class set to the ``device_change_ip_mobile_details`` tag with value ``val``. - :param team_log.DeviceChangeIpMobileDetails val: - :rtype: team_log.EventDetails + :param DeviceChangeIpMobileDetails val: + :rtype: EventDetails """ return cls('device_change_ip_mobile_details', val) @@ -7820,8 +7848,8 @@ def device_change_ip_web_details(cls, val): Create an instance of this class set to the ``device_change_ip_web_details`` tag with value ``val``. - :param team_log.DeviceChangeIpWebDetails val: - :rtype: team_log.EventDetails + :param DeviceChangeIpWebDetails val: + :rtype: EventDetails """ return cls('device_change_ip_web_details', val) @@ -7831,8 +7859,8 @@ def device_delete_on_unlink_fail_details(cls, val): Create an instance of this class set to the ``device_delete_on_unlink_fail_details`` tag with value ``val``. - :param team_log.DeviceDeleteOnUnlinkFailDetails val: - :rtype: team_log.EventDetails + :param DeviceDeleteOnUnlinkFailDetails val: + :rtype: EventDetails """ return cls('device_delete_on_unlink_fail_details', val) @@ -7842,8 +7870,8 @@ def device_delete_on_unlink_success_details(cls, val): Create an instance of this class set to the ``device_delete_on_unlink_success_details`` tag with value ``val``. - :param team_log.DeviceDeleteOnUnlinkSuccessDetails val: - :rtype: team_log.EventDetails + :param DeviceDeleteOnUnlinkSuccessDetails val: + :rtype: EventDetails """ return cls('device_delete_on_unlink_success_details', val) @@ -7853,8 +7881,8 @@ def device_link_fail_details(cls, val): Create an instance of this class set to the ``device_link_fail_details`` tag with value ``val``. - :param team_log.DeviceLinkFailDetails val: - :rtype: team_log.EventDetails + :param DeviceLinkFailDetails val: + :rtype: EventDetails """ return cls('device_link_fail_details', val) @@ -7864,8 +7892,8 @@ def device_link_success_details(cls, val): Create an instance of this class set to the ``device_link_success_details`` tag with value ``val``. - :param team_log.DeviceLinkSuccessDetails val: - :rtype: team_log.EventDetails + :param DeviceLinkSuccessDetails val: + :rtype: EventDetails """ return cls('device_link_success_details', val) @@ -7875,8 +7903,8 @@ def device_management_disabled_details(cls, val): Create an instance of this class set to the ``device_management_disabled_details`` tag with value ``val``. - :param team_log.DeviceManagementDisabledDetails val: - :rtype: team_log.EventDetails + :param DeviceManagementDisabledDetails val: + :rtype: EventDetails """ return cls('device_management_disabled_details', val) @@ -7886,8 +7914,8 @@ def device_management_enabled_details(cls, val): Create an instance of this class set to the ``device_management_enabled_details`` tag with value ``val``. - :param team_log.DeviceManagementEnabledDetails val: - :rtype: team_log.EventDetails + :param DeviceManagementEnabledDetails val: + :rtype: EventDetails """ return cls('device_management_enabled_details', val) @@ -7897,8 +7925,8 @@ def device_unlink_details(cls, val): Create an instance of this class set to the ``device_unlink_details`` tag with value ``val``. - :param team_log.DeviceUnlinkDetails val: - :rtype: team_log.EventDetails + :param DeviceUnlinkDetails val: + :rtype: EventDetails """ return cls('device_unlink_details', val) @@ -7908,8 +7936,8 @@ def emm_refresh_auth_token_details(cls, val): Create an instance of this class set to the ``emm_refresh_auth_token_details`` tag with value ``val``. - :param team_log.EmmRefreshAuthTokenDetails val: - :rtype: team_log.EventDetails + :param EmmRefreshAuthTokenDetails val: + :rtype: EventDetails """ return cls('emm_refresh_auth_token_details', val) @@ -7919,8 +7947,8 @@ def account_capture_change_availability_details(cls, val): Create an instance of this class set to the ``account_capture_change_availability_details`` tag with value ``val``. - :param team_log.AccountCaptureChangeAvailabilityDetails val: - :rtype: team_log.EventDetails + :param AccountCaptureChangeAvailabilityDetails val: + :rtype: EventDetails """ return cls('account_capture_change_availability_details', val) @@ -7930,8 +7958,8 @@ def account_capture_migrate_account_details(cls, val): Create an instance of this class set to the ``account_capture_migrate_account_details`` tag with value ``val``. - :param team_log.AccountCaptureMigrateAccountDetails val: - :rtype: team_log.EventDetails + :param AccountCaptureMigrateAccountDetails val: + :rtype: EventDetails """ return cls('account_capture_migrate_account_details', val) @@ -7942,8 +7970,8 @@ def account_capture_notification_emails_sent_details(cls, val): ``account_capture_notification_emails_sent_details`` tag with value ``val``. - :param team_log.AccountCaptureNotificationEmailsSentDetails val: - :rtype: team_log.EventDetails + :param AccountCaptureNotificationEmailsSentDetails val: + :rtype: EventDetails """ return cls('account_capture_notification_emails_sent_details', val) @@ -7953,8 +7981,8 @@ def account_capture_relinquish_account_details(cls, val): Create an instance of this class set to the ``account_capture_relinquish_account_details`` tag with value ``val``. - :param team_log.AccountCaptureRelinquishAccountDetails val: - :rtype: team_log.EventDetails + :param AccountCaptureRelinquishAccountDetails val: + :rtype: EventDetails """ return cls('account_capture_relinquish_account_details', val) @@ -7964,8 +7992,8 @@ def disabled_domain_invites_details(cls, val): Create an instance of this class set to the ``disabled_domain_invites_details`` tag with value ``val``. - :param team_log.DisabledDomainInvitesDetails val: - :rtype: team_log.EventDetails + :param DisabledDomainInvitesDetails val: + :rtype: EventDetails """ return cls('disabled_domain_invites_details', val) @@ -7976,8 +8004,8 @@ def domain_invites_approve_request_to_join_team_details(cls, val): ``domain_invites_approve_request_to_join_team_details`` tag with value ``val``. - :param team_log.DomainInvitesApproveRequestToJoinTeamDetails val: - :rtype: team_log.EventDetails + :param DomainInvitesApproveRequestToJoinTeamDetails val: + :rtype: EventDetails """ return cls('domain_invites_approve_request_to_join_team_details', val) @@ -7988,8 +8016,8 @@ def domain_invites_decline_request_to_join_team_details(cls, val): ``domain_invites_decline_request_to_join_team_details`` tag with value ``val``. - :param team_log.DomainInvitesDeclineRequestToJoinTeamDetails val: - :rtype: team_log.EventDetails + :param DomainInvitesDeclineRequestToJoinTeamDetails val: + :rtype: EventDetails """ return cls('domain_invites_decline_request_to_join_team_details', val) @@ -7999,8 +8027,8 @@ def domain_invites_email_existing_users_details(cls, val): Create an instance of this class set to the ``domain_invites_email_existing_users_details`` tag with value ``val``. - :param team_log.DomainInvitesEmailExistingUsersDetails val: - :rtype: team_log.EventDetails + :param DomainInvitesEmailExistingUsersDetails val: + :rtype: EventDetails """ return cls('domain_invites_email_existing_users_details', val) @@ -8010,8 +8038,8 @@ def domain_invites_request_to_join_team_details(cls, val): Create an instance of this class set to the ``domain_invites_request_to_join_team_details`` tag with value ``val``. - :param team_log.DomainInvitesRequestToJoinTeamDetails val: - :rtype: team_log.EventDetails + :param DomainInvitesRequestToJoinTeamDetails val: + :rtype: EventDetails """ return cls('domain_invites_request_to_join_team_details', val) @@ -8022,8 +8050,8 @@ def domain_invites_set_invite_new_user_pref_to_no_details(cls, val): ``domain_invites_set_invite_new_user_pref_to_no_details`` tag with value ``val``. - :param team_log.DomainInvitesSetInviteNewUserPrefToNoDetails val: - :rtype: team_log.EventDetails + :param DomainInvitesSetInviteNewUserPrefToNoDetails val: + :rtype: EventDetails """ return cls('domain_invites_set_invite_new_user_pref_to_no_details', val) @@ -8034,8 +8062,8 @@ def domain_invites_set_invite_new_user_pref_to_yes_details(cls, val): ``domain_invites_set_invite_new_user_pref_to_yes_details`` tag with value ``val``. - :param team_log.DomainInvitesSetInviteNewUserPrefToYesDetails val: - :rtype: team_log.EventDetails + :param DomainInvitesSetInviteNewUserPrefToYesDetails val: + :rtype: EventDetails """ return cls('domain_invites_set_invite_new_user_pref_to_yes_details', val) @@ -8045,8 +8073,8 @@ def domain_verification_add_domain_fail_details(cls, val): Create an instance of this class set to the ``domain_verification_add_domain_fail_details`` tag with value ``val``. - :param team_log.DomainVerificationAddDomainFailDetails val: - :rtype: team_log.EventDetails + :param DomainVerificationAddDomainFailDetails val: + :rtype: EventDetails """ return cls('domain_verification_add_domain_fail_details', val) @@ -8057,8 +8085,8 @@ def domain_verification_add_domain_success_details(cls, val): ``domain_verification_add_domain_success_details`` tag with value ``val``. - :param team_log.DomainVerificationAddDomainSuccessDetails val: - :rtype: team_log.EventDetails + :param DomainVerificationAddDomainSuccessDetails val: + :rtype: EventDetails """ return cls('domain_verification_add_domain_success_details', val) @@ -8068,8 +8096,8 @@ def domain_verification_remove_domain_details(cls, val): Create an instance of this class set to the ``domain_verification_remove_domain_details`` tag with value ``val``. - :param team_log.DomainVerificationRemoveDomainDetails val: - :rtype: team_log.EventDetails + :param DomainVerificationRemoveDomainDetails val: + :rtype: EventDetails """ return cls('domain_verification_remove_domain_details', val) @@ -8079,8 +8107,8 @@ def enabled_domain_invites_details(cls, val): Create an instance of this class set to the ``enabled_domain_invites_details`` tag with value ``val``. - :param team_log.EnabledDomainInvitesDetails val: - :rtype: team_log.EventDetails + :param EnabledDomainInvitesDetails val: + :rtype: EventDetails """ return cls('enabled_domain_invites_details', val) @@ -8090,8 +8118,8 @@ def create_folder_details(cls, val): Create an instance of this class set to the ``create_folder_details`` tag with value ``val``. - :param team_log.CreateFolderDetails val: - :rtype: team_log.EventDetails + :param CreateFolderDetails val: + :rtype: EventDetails """ return cls('create_folder_details', val) @@ -8101,8 +8129,8 @@ def file_add_details(cls, val): Create an instance of this class set to the ``file_add_details`` tag with value ``val``. - :param team_log.FileAddDetails val: - :rtype: team_log.EventDetails + :param FileAddDetails val: + :rtype: EventDetails """ return cls('file_add_details', val) @@ -8112,8 +8140,8 @@ def file_copy_details(cls, val): Create an instance of this class set to the ``file_copy_details`` tag with value ``val``. - :param team_log.FileCopyDetails val: - :rtype: team_log.EventDetails + :param FileCopyDetails val: + :rtype: EventDetails """ return cls('file_copy_details', val) @@ -8123,8 +8151,8 @@ def file_delete_details(cls, val): Create an instance of this class set to the ``file_delete_details`` tag with value ``val``. - :param team_log.FileDeleteDetails val: - :rtype: team_log.EventDetails + :param FileDeleteDetails val: + :rtype: EventDetails """ return cls('file_delete_details', val) @@ -8134,8 +8162,8 @@ def file_download_details(cls, val): Create an instance of this class set to the ``file_download_details`` tag with value ``val``. - :param team_log.FileDownloadDetails val: - :rtype: team_log.EventDetails + :param FileDownloadDetails val: + :rtype: EventDetails """ return cls('file_download_details', val) @@ -8145,8 +8173,8 @@ def file_edit_details(cls, val): Create an instance of this class set to the ``file_edit_details`` tag with value ``val``. - :param team_log.FileEditDetails val: - :rtype: team_log.EventDetails + :param FileEditDetails val: + :rtype: EventDetails """ return cls('file_edit_details', val) @@ -8156,8 +8184,8 @@ def file_get_copy_reference_details(cls, val): Create an instance of this class set to the ``file_get_copy_reference_details`` tag with value ``val``. - :param team_log.FileGetCopyReferenceDetails val: - :rtype: team_log.EventDetails + :param FileGetCopyReferenceDetails val: + :rtype: EventDetails """ return cls('file_get_copy_reference_details', val) @@ -8167,8 +8195,8 @@ def file_move_details(cls, val): Create an instance of this class set to the ``file_move_details`` tag with value ``val``. - :param team_log.FileMoveDetails val: - :rtype: team_log.EventDetails + :param FileMoveDetails val: + :rtype: EventDetails """ return cls('file_move_details', val) @@ -8178,8 +8206,8 @@ def file_permanently_delete_details(cls, val): Create an instance of this class set to the ``file_permanently_delete_details`` tag with value ``val``. - :param team_log.FilePermanentlyDeleteDetails val: - :rtype: team_log.EventDetails + :param FilePermanentlyDeleteDetails val: + :rtype: EventDetails """ return cls('file_permanently_delete_details', val) @@ -8189,8 +8217,8 @@ def file_preview_details(cls, val): Create an instance of this class set to the ``file_preview_details`` tag with value ``val``. - :param team_log.FilePreviewDetails val: - :rtype: team_log.EventDetails + :param FilePreviewDetails val: + :rtype: EventDetails """ return cls('file_preview_details', val) @@ -8200,8 +8228,8 @@ def file_rename_details(cls, val): Create an instance of this class set to the ``file_rename_details`` tag with value ``val``. - :param team_log.FileRenameDetails val: - :rtype: team_log.EventDetails + :param FileRenameDetails val: + :rtype: EventDetails """ return cls('file_rename_details', val) @@ -8211,8 +8239,8 @@ def file_restore_details(cls, val): Create an instance of this class set to the ``file_restore_details`` tag with value ``val``. - :param team_log.FileRestoreDetails val: - :rtype: team_log.EventDetails + :param FileRestoreDetails val: + :rtype: EventDetails """ return cls('file_restore_details', val) @@ -8222,8 +8250,8 @@ def file_revert_details(cls, val): Create an instance of this class set to the ``file_revert_details`` tag with value ``val``. - :param team_log.FileRevertDetails val: - :rtype: team_log.EventDetails + :param FileRevertDetails val: + :rtype: EventDetails """ return cls('file_revert_details', val) @@ -8233,8 +8261,8 @@ def file_rollback_changes_details(cls, val): Create an instance of this class set to the ``file_rollback_changes_details`` tag with value ``val``. - :param team_log.FileRollbackChangesDetails val: - :rtype: team_log.EventDetails + :param FileRollbackChangesDetails val: + :rtype: EventDetails """ return cls('file_rollback_changes_details', val) @@ -8244,8 +8272,8 @@ def file_save_copy_reference_details(cls, val): Create an instance of this class set to the ``file_save_copy_reference_details`` tag with value ``val``. - :param team_log.FileSaveCopyReferenceDetails val: - :rtype: team_log.EventDetails + :param FileSaveCopyReferenceDetails val: + :rtype: EventDetails """ return cls('file_save_copy_reference_details', val) @@ -8255,8 +8283,8 @@ def file_request_change_details(cls, val): Create an instance of this class set to the ``file_request_change_details`` tag with value ``val``. - :param team_log.FileRequestChangeDetails val: - :rtype: team_log.EventDetails + :param FileRequestChangeDetails val: + :rtype: EventDetails """ return cls('file_request_change_details', val) @@ -8266,8 +8294,8 @@ def file_request_close_details(cls, val): Create an instance of this class set to the ``file_request_close_details`` tag with value ``val``. - :param team_log.FileRequestCloseDetails val: - :rtype: team_log.EventDetails + :param FileRequestCloseDetails val: + :rtype: EventDetails """ return cls('file_request_close_details', val) @@ -8277,19 +8305,30 @@ def file_request_create_details(cls, val): Create an instance of this class set to the ``file_request_create_details`` tag with value ``val``. - :param team_log.FileRequestCreateDetails val: - :rtype: team_log.EventDetails + :param FileRequestCreateDetails val: + :rtype: EventDetails """ return cls('file_request_create_details', val) + @classmethod + def file_request_delete_details(cls, val): + """ + Create an instance of this class set to the + ``file_request_delete_details`` tag with value ``val``. + + :param FileRequestDeleteDetails val: + :rtype: EventDetails + """ + return cls('file_request_delete_details', val) + @classmethod def file_request_receive_file_details(cls, val): """ Create an instance of this class set to the ``file_request_receive_file_details`` tag with value ``val``. - :param team_log.FileRequestReceiveFileDetails val: - :rtype: team_log.EventDetails + :param FileRequestReceiveFileDetails val: + :rtype: EventDetails """ return cls('file_request_receive_file_details', val) @@ -8299,8 +8338,8 @@ def group_add_external_id_details(cls, val): Create an instance of this class set to the ``group_add_external_id_details`` tag with value ``val``. - :param team_log.GroupAddExternalIdDetails val: - :rtype: team_log.EventDetails + :param GroupAddExternalIdDetails val: + :rtype: EventDetails """ return cls('group_add_external_id_details', val) @@ -8310,8 +8349,8 @@ def group_add_member_details(cls, val): Create an instance of this class set to the ``group_add_member_details`` tag with value ``val``. - :param team_log.GroupAddMemberDetails val: - :rtype: team_log.EventDetails + :param GroupAddMemberDetails val: + :rtype: EventDetails """ return cls('group_add_member_details', val) @@ -8321,8 +8360,8 @@ def group_change_external_id_details(cls, val): Create an instance of this class set to the ``group_change_external_id_details`` tag with value ``val``. - :param team_log.GroupChangeExternalIdDetails val: - :rtype: team_log.EventDetails + :param GroupChangeExternalIdDetails val: + :rtype: EventDetails """ return cls('group_change_external_id_details', val) @@ -8332,8 +8371,8 @@ def group_change_management_type_details(cls, val): Create an instance of this class set to the ``group_change_management_type_details`` tag with value ``val``. - :param team_log.GroupChangeManagementTypeDetails val: - :rtype: team_log.EventDetails + :param GroupChangeManagementTypeDetails val: + :rtype: EventDetails """ return cls('group_change_management_type_details', val) @@ -8343,8 +8382,8 @@ def group_change_member_role_details(cls, val): Create an instance of this class set to the ``group_change_member_role_details`` tag with value ``val``. - :param team_log.GroupChangeMemberRoleDetails val: - :rtype: team_log.EventDetails + :param GroupChangeMemberRoleDetails val: + :rtype: EventDetails """ return cls('group_change_member_role_details', val) @@ -8354,8 +8393,8 @@ def group_create_details(cls, val): Create an instance of this class set to the ``group_create_details`` tag with value ``val``. - :param team_log.GroupCreateDetails val: - :rtype: team_log.EventDetails + :param GroupCreateDetails val: + :rtype: EventDetails """ return cls('group_create_details', val) @@ -8365,8 +8404,8 @@ def group_delete_details(cls, val): Create an instance of this class set to the ``group_delete_details`` tag with value ``val``. - :param team_log.GroupDeleteDetails val: - :rtype: team_log.EventDetails + :param GroupDeleteDetails val: + :rtype: EventDetails """ return cls('group_delete_details', val) @@ -8376,8 +8415,8 @@ def group_description_updated_details(cls, val): Create an instance of this class set to the ``group_description_updated_details`` tag with value ``val``. - :param team_log.GroupDescriptionUpdatedDetails val: - :rtype: team_log.EventDetails + :param GroupDescriptionUpdatedDetails val: + :rtype: EventDetails """ return cls('group_description_updated_details', val) @@ -8387,8 +8426,8 @@ def group_join_policy_updated_details(cls, val): Create an instance of this class set to the ``group_join_policy_updated_details`` tag with value ``val``. - :param team_log.GroupJoinPolicyUpdatedDetails val: - :rtype: team_log.EventDetails + :param GroupJoinPolicyUpdatedDetails val: + :rtype: EventDetails """ return cls('group_join_policy_updated_details', val) @@ -8398,8 +8437,8 @@ def group_moved_details(cls, val): Create an instance of this class set to the ``group_moved_details`` tag with value ``val``. - :param team_log.GroupMovedDetails val: - :rtype: team_log.EventDetails + :param GroupMovedDetails val: + :rtype: EventDetails """ return cls('group_moved_details', val) @@ -8409,8 +8448,8 @@ def group_remove_external_id_details(cls, val): Create an instance of this class set to the ``group_remove_external_id_details`` tag with value ``val``. - :param team_log.GroupRemoveExternalIdDetails val: - :rtype: team_log.EventDetails + :param GroupRemoveExternalIdDetails val: + :rtype: EventDetails """ return cls('group_remove_external_id_details', val) @@ -8420,8 +8459,8 @@ def group_remove_member_details(cls, val): Create an instance of this class set to the ``group_remove_member_details`` tag with value ``val``. - :param team_log.GroupRemoveMemberDetails val: - :rtype: team_log.EventDetails + :param GroupRemoveMemberDetails val: + :rtype: EventDetails """ return cls('group_remove_member_details', val) @@ -8431,8 +8470,8 @@ def group_rename_details(cls, val): Create an instance of this class set to the ``group_rename_details`` tag with value ``val``. - :param team_log.GroupRenameDetails val: - :rtype: team_log.EventDetails + :param GroupRenameDetails val: + :rtype: EventDetails """ return cls('group_rename_details', val) @@ -8442,19 +8481,43 @@ def emm_error_details(cls, val): Create an instance of this class set to the ``emm_error_details`` tag with value ``val``. - :param team_log.EmmErrorDetails val: - :rtype: team_log.EventDetails + :param EmmErrorDetails val: + :rtype: EventDetails """ return cls('emm_error_details', val) + @classmethod + def guest_admin_signed_in_via_trusted_teams_details(cls, val): + """ + Create an instance of this class set to the + ``guest_admin_signed_in_via_trusted_teams_details`` tag with value + ``val``. + + :param GuestAdminSignedInViaTrustedTeamsDetails val: + :rtype: EventDetails + """ + return cls('guest_admin_signed_in_via_trusted_teams_details', val) + + @classmethod + def guest_admin_signed_out_via_trusted_teams_details(cls, val): + """ + Create an instance of this class set to the + ``guest_admin_signed_out_via_trusted_teams_details`` tag with value + ``val``. + + :param GuestAdminSignedOutViaTrustedTeamsDetails val: + :rtype: EventDetails + """ + return cls('guest_admin_signed_out_via_trusted_teams_details', val) + @classmethod def login_fail_details(cls, val): """ Create an instance of this class set to the ``login_fail_details`` tag with value ``val``. - :param team_log.LoginFailDetails val: - :rtype: team_log.EventDetails + :param LoginFailDetails val: + :rtype: EventDetails """ return cls('login_fail_details', val) @@ -8464,8 +8527,8 @@ def login_success_details(cls, val): Create an instance of this class set to the ``login_success_details`` tag with value ``val``. - :param team_log.LoginSuccessDetails val: - :rtype: team_log.EventDetails + :param LoginSuccessDetails val: + :rtype: EventDetails """ return cls('login_success_details', val) @@ -8475,8 +8538,8 @@ def logout_details(cls, val): Create an instance of this class set to the ``logout_details`` tag with value ``val``. - :param team_log.LogoutDetails val: - :rtype: team_log.EventDetails + :param LogoutDetails val: + :rtype: EventDetails """ return cls('logout_details', val) @@ -8486,8 +8549,8 @@ def reseller_support_session_end_details(cls, val): Create an instance of this class set to the ``reseller_support_session_end_details`` tag with value ``val``. - :param team_log.ResellerSupportSessionEndDetails val: - :rtype: team_log.EventDetails + :param ResellerSupportSessionEndDetails val: + :rtype: EventDetails """ return cls('reseller_support_session_end_details', val) @@ -8497,8 +8560,8 @@ def reseller_support_session_start_details(cls, val): Create an instance of this class set to the ``reseller_support_session_start_details`` tag with value ``val``. - :param team_log.ResellerSupportSessionStartDetails val: - :rtype: team_log.EventDetails + :param ResellerSupportSessionStartDetails val: + :rtype: EventDetails """ return cls('reseller_support_session_start_details', val) @@ -8508,8 +8571,8 @@ def sign_in_as_session_end_details(cls, val): Create an instance of this class set to the ``sign_in_as_session_end_details`` tag with value ``val``. - :param team_log.SignInAsSessionEndDetails val: - :rtype: team_log.EventDetails + :param SignInAsSessionEndDetails val: + :rtype: EventDetails """ return cls('sign_in_as_session_end_details', val) @@ -8519,8 +8582,8 @@ def sign_in_as_session_start_details(cls, val): Create an instance of this class set to the ``sign_in_as_session_start_details`` tag with value ``val``. - :param team_log.SignInAsSessionStartDetails val: - :rtype: team_log.EventDetails + :param SignInAsSessionStartDetails val: + :rtype: EventDetails """ return cls('sign_in_as_session_start_details', val) @@ -8530,19 +8593,30 @@ def sso_error_details(cls, val): Create an instance of this class set to the ``sso_error_details`` tag with value ``val``. - :param team_log.SsoErrorDetails val: - :rtype: team_log.EventDetails + :param SsoErrorDetails val: + :rtype: EventDetails """ return cls('sso_error_details', val) + @classmethod + def member_add_external_id_details(cls, val): + """ + Create an instance of this class set to the + ``member_add_external_id_details`` tag with value ``val``. + + :param MemberAddExternalIdDetails val: + :rtype: EventDetails + """ + return cls('member_add_external_id_details', val) + @classmethod def member_add_name_details(cls, val): """ Create an instance of this class set to the ``member_add_name_details`` tag with value ``val``. - :param team_log.MemberAddNameDetails val: - :rtype: team_log.EventDetails + :param MemberAddNameDetails val: + :rtype: EventDetails """ return cls('member_add_name_details', val) @@ -8552,8 +8626,8 @@ def member_change_admin_role_details(cls, val): Create an instance of this class set to the ``member_change_admin_role_details`` tag with value ``val``. - :param team_log.MemberChangeAdminRoleDetails val: - :rtype: team_log.EventDetails + :param MemberChangeAdminRoleDetails val: + :rtype: EventDetails """ return cls('member_change_admin_role_details', val) @@ -8563,19 +8637,30 @@ def member_change_email_details(cls, val): Create an instance of this class set to the ``member_change_email_details`` tag with value ``val``. - :param team_log.MemberChangeEmailDetails val: - :rtype: team_log.EventDetails + :param MemberChangeEmailDetails val: + :rtype: EventDetails """ return cls('member_change_email_details', val) + @classmethod + def member_change_external_id_details(cls, val): + """ + Create an instance of this class set to the + ``member_change_external_id_details`` tag with value ``val``. + + :param MemberChangeExternalIdDetails val: + :rtype: EventDetails + """ + return cls('member_change_external_id_details', val) + @classmethod def member_change_membership_type_details(cls, val): """ Create an instance of this class set to the ``member_change_membership_type_details`` tag with value ``val``. - :param team_log.MemberChangeMembershipTypeDetails val: - :rtype: team_log.EventDetails + :param MemberChangeMembershipTypeDetails val: + :rtype: EventDetails """ return cls('member_change_membership_type_details', val) @@ -8585,8 +8670,8 @@ def member_change_name_details(cls, val): Create an instance of this class set to the ``member_change_name_details`` tag with value ``val``. - :param team_log.MemberChangeNameDetails val: - :rtype: team_log.EventDetails + :param MemberChangeNameDetails val: + :rtype: EventDetails """ return cls('member_change_name_details', val) @@ -8596,8 +8681,8 @@ def member_change_status_details(cls, val): Create an instance of this class set to the ``member_change_status_details`` tag with value ``val``. - :param team_log.MemberChangeStatusDetails val: - :rtype: team_log.EventDetails + :param MemberChangeStatusDetails val: + :rtype: EventDetails """ return cls('member_change_status_details', val) @@ -8607,8 +8692,8 @@ def member_delete_manual_contacts_details(cls, val): Create an instance of this class set to the ``member_delete_manual_contacts_details`` tag with value ``val``. - :param team_log.MemberDeleteManualContactsDetails val: - :rtype: team_log.EventDetails + :param MemberDeleteManualContactsDetails val: + :rtype: EventDetails """ return cls('member_delete_manual_contacts_details', val) @@ -8619,19 +8704,30 @@ def member_permanently_delete_account_contents_details(cls, val): ``member_permanently_delete_account_contents_details`` tag with value ``val``. - :param team_log.MemberPermanentlyDeleteAccountContentsDetails val: - :rtype: team_log.EventDetails + :param MemberPermanentlyDeleteAccountContentsDetails val: + :rtype: EventDetails """ return cls('member_permanently_delete_account_contents_details', val) + @classmethod + def member_remove_external_id_details(cls, val): + """ + Create an instance of this class set to the + ``member_remove_external_id_details`` tag with value ``val``. + + :param MemberRemoveExternalIdDetails val: + :rtype: EventDetails + """ + return cls('member_remove_external_id_details', val) + @classmethod def member_space_limits_add_custom_quota_details(cls, val): """ Create an instance of this class set to the ``member_space_limits_add_custom_quota_details`` tag with value ``val``. - :param team_log.MemberSpaceLimitsAddCustomQuotaDetails val: - :rtype: team_log.EventDetails + :param MemberSpaceLimitsAddCustomQuotaDetails val: + :rtype: EventDetails """ return cls('member_space_limits_add_custom_quota_details', val) @@ -8642,8 +8738,8 @@ def member_space_limits_change_custom_quota_details(cls, val): ``member_space_limits_change_custom_quota_details`` tag with value ``val``. - :param team_log.MemberSpaceLimitsChangeCustomQuotaDetails val: - :rtype: team_log.EventDetails + :param MemberSpaceLimitsChangeCustomQuotaDetails val: + :rtype: EventDetails """ return cls('member_space_limits_change_custom_quota_details', val) @@ -8653,8 +8749,8 @@ def member_space_limits_change_status_details(cls, val): Create an instance of this class set to the ``member_space_limits_change_status_details`` tag with value ``val``. - :param team_log.MemberSpaceLimitsChangeStatusDetails val: - :rtype: team_log.EventDetails + :param MemberSpaceLimitsChangeStatusDetails val: + :rtype: EventDetails """ return cls('member_space_limits_change_status_details', val) @@ -8665,8 +8761,8 @@ def member_space_limits_remove_custom_quota_details(cls, val): ``member_space_limits_remove_custom_quota_details`` tag with value ``val``. - :param team_log.MemberSpaceLimitsRemoveCustomQuotaDetails val: - :rtype: team_log.EventDetails + :param MemberSpaceLimitsRemoveCustomQuotaDetails val: + :rtype: EventDetails """ return cls('member_space_limits_remove_custom_quota_details', val) @@ -8676,8 +8772,8 @@ def member_suggest_details(cls, val): Create an instance of this class set to the ``member_suggest_details`` tag with value ``val``. - :param team_log.MemberSuggestDetails val: - :rtype: team_log.EventDetails + :param MemberSuggestDetails val: + :rtype: EventDetails """ return cls('member_suggest_details', val) @@ -8687,8 +8783,8 @@ def member_transfer_account_contents_details(cls, val): Create an instance of this class set to the ``member_transfer_account_contents_details`` tag with value ``val``. - :param team_log.MemberTransferAccountContentsDetails val: - :rtype: team_log.EventDetails + :param MemberTransferAccountContentsDetails val: + :rtype: EventDetails """ return cls('member_transfer_account_contents_details', val) @@ -8698,8 +8794,8 @@ def secondary_mails_policy_changed_details(cls, val): Create an instance of this class set to the ``secondary_mails_policy_changed_details`` tag with value ``val``. - :param team_log.SecondaryMailsPolicyChangedDetails val: - :rtype: team_log.EventDetails + :param SecondaryMailsPolicyChangedDetails val: + :rtype: EventDetails """ return cls('secondary_mails_policy_changed_details', val) @@ -8709,8 +8805,8 @@ def paper_content_add_member_details(cls, val): Create an instance of this class set to the ``paper_content_add_member_details`` tag with value ``val``. - :param team_log.PaperContentAddMemberDetails val: - :rtype: team_log.EventDetails + :param PaperContentAddMemberDetails val: + :rtype: EventDetails """ return cls('paper_content_add_member_details', val) @@ -8720,8 +8816,8 @@ def paper_content_add_to_folder_details(cls, val): Create an instance of this class set to the ``paper_content_add_to_folder_details`` tag with value ``val``. - :param team_log.PaperContentAddToFolderDetails val: - :rtype: team_log.EventDetails + :param PaperContentAddToFolderDetails val: + :rtype: EventDetails """ return cls('paper_content_add_to_folder_details', val) @@ -8731,8 +8827,8 @@ def paper_content_archive_details(cls, val): Create an instance of this class set to the ``paper_content_archive_details`` tag with value ``val``. - :param team_log.PaperContentArchiveDetails val: - :rtype: team_log.EventDetails + :param PaperContentArchiveDetails val: + :rtype: EventDetails """ return cls('paper_content_archive_details', val) @@ -8742,8 +8838,8 @@ def paper_content_create_details(cls, val): Create an instance of this class set to the ``paper_content_create_details`` tag with value ``val``. - :param team_log.PaperContentCreateDetails val: - :rtype: team_log.EventDetails + :param PaperContentCreateDetails val: + :rtype: EventDetails """ return cls('paper_content_create_details', val) @@ -8753,8 +8849,8 @@ def paper_content_permanently_delete_details(cls, val): Create an instance of this class set to the ``paper_content_permanently_delete_details`` tag with value ``val``. - :param team_log.PaperContentPermanentlyDeleteDetails val: - :rtype: team_log.EventDetails + :param PaperContentPermanentlyDeleteDetails val: + :rtype: EventDetails """ return cls('paper_content_permanently_delete_details', val) @@ -8764,8 +8860,8 @@ def paper_content_remove_from_folder_details(cls, val): Create an instance of this class set to the ``paper_content_remove_from_folder_details`` tag with value ``val``. - :param team_log.PaperContentRemoveFromFolderDetails val: - :rtype: team_log.EventDetails + :param PaperContentRemoveFromFolderDetails val: + :rtype: EventDetails """ return cls('paper_content_remove_from_folder_details', val) @@ -8775,8 +8871,8 @@ def paper_content_remove_member_details(cls, val): Create an instance of this class set to the ``paper_content_remove_member_details`` tag with value ``val``. - :param team_log.PaperContentRemoveMemberDetails val: - :rtype: team_log.EventDetails + :param PaperContentRemoveMemberDetails val: + :rtype: EventDetails """ return cls('paper_content_remove_member_details', val) @@ -8786,8 +8882,8 @@ def paper_content_rename_details(cls, val): Create an instance of this class set to the ``paper_content_rename_details`` tag with value ``val``. - :param team_log.PaperContentRenameDetails val: - :rtype: team_log.EventDetails + :param PaperContentRenameDetails val: + :rtype: EventDetails """ return cls('paper_content_rename_details', val) @@ -8797,8 +8893,8 @@ def paper_content_restore_details(cls, val): Create an instance of this class set to the ``paper_content_restore_details`` tag with value ``val``. - :param team_log.PaperContentRestoreDetails val: - :rtype: team_log.EventDetails + :param PaperContentRestoreDetails val: + :rtype: EventDetails """ return cls('paper_content_restore_details', val) @@ -8808,8 +8904,8 @@ def paper_doc_add_comment_details(cls, val): Create an instance of this class set to the ``paper_doc_add_comment_details`` tag with value ``val``. - :param team_log.PaperDocAddCommentDetails val: - :rtype: team_log.EventDetails + :param PaperDocAddCommentDetails val: + :rtype: EventDetails """ return cls('paper_doc_add_comment_details', val) @@ -8819,8 +8915,8 @@ def paper_doc_change_member_role_details(cls, val): Create an instance of this class set to the ``paper_doc_change_member_role_details`` tag with value ``val``. - :param team_log.PaperDocChangeMemberRoleDetails val: - :rtype: team_log.EventDetails + :param PaperDocChangeMemberRoleDetails val: + :rtype: EventDetails """ return cls('paper_doc_change_member_role_details', val) @@ -8830,8 +8926,8 @@ def paper_doc_change_sharing_policy_details(cls, val): Create an instance of this class set to the ``paper_doc_change_sharing_policy_details`` tag with value ``val``. - :param team_log.PaperDocChangeSharingPolicyDetails val: - :rtype: team_log.EventDetails + :param PaperDocChangeSharingPolicyDetails val: + :rtype: EventDetails """ return cls('paper_doc_change_sharing_policy_details', val) @@ -8841,8 +8937,8 @@ def paper_doc_change_subscription_details(cls, val): Create an instance of this class set to the ``paper_doc_change_subscription_details`` tag with value ``val``. - :param team_log.PaperDocChangeSubscriptionDetails val: - :rtype: team_log.EventDetails + :param PaperDocChangeSubscriptionDetails val: + :rtype: EventDetails """ return cls('paper_doc_change_subscription_details', val) @@ -8852,8 +8948,8 @@ def paper_doc_deleted_details(cls, val): Create an instance of this class set to the ``paper_doc_deleted_details`` tag with value ``val``. - :param team_log.PaperDocDeletedDetails val: - :rtype: team_log.EventDetails + :param PaperDocDeletedDetails val: + :rtype: EventDetails """ return cls('paper_doc_deleted_details', val) @@ -8863,8 +8959,8 @@ def paper_doc_delete_comment_details(cls, val): Create an instance of this class set to the ``paper_doc_delete_comment_details`` tag with value ``val``. - :param team_log.PaperDocDeleteCommentDetails val: - :rtype: team_log.EventDetails + :param PaperDocDeleteCommentDetails val: + :rtype: EventDetails """ return cls('paper_doc_delete_comment_details', val) @@ -8874,8 +8970,8 @@ def paper_doc_download_details(cls, val): Create an instance of this class set to the ``paper_doc_download_details`` tag with value ``val``. - :param team_log.PaperDocDownloadDetails val: - :rtype: team_log.EventDetails + :param PaperDocDownloadDetails val: + :rtype: EventDetails """ return cls('paper_doc_download_details', val) @@ -8885,8 +8981,8 @@ def paper_doc_edit_details(cls, val): Create an instance of this class set to the ``paper_doc_edit_details`` tag with value ``val``. - :param team_log.PaperDocEditDetails val: - :rtype: team_log.EventDetails + :param PaperDocEditDetails val: + :rtype: EventDetails """ return cls('paper_doc_edit_details', val) @@ -8896,8 +8992,8 @@ def paper_doc_edit_comment_details(cls, val): Create an instance of this class set to the ``paper_doc_edit_comment_details`` tag with value ``val``. - :param team_log.PaperDocEditCommentDetails val: - :rtype: team_log.EventDetails + :param PaperDocEditCommentDetails val: + :rtype: EventDetails """ return cls('paper_doc_edit_comment_details', val) @@ -8907,8 +9003,8 @@ def paper_doc_followed_details(cls, val): Create an instance of this class set to the ``paper_doc_followed_details`` tag with value ``val``. - :param team_log.PaperDocFollowedDetails val: - :rtype: team_log.EventDetails + :param PaperDocFollowedDetails val: + :rtype: EventDetails """ return cls('paper_doc_followed_details', val) @@ -8918,8 +9014,8 @@ def paper_doc_mention_details(cls, val): Create an instance of this class set to the ``paper_doc_mention_details`` tag with value ``val``. - :param team_log.PaperDocMentionDetails val: - :rtype: team_log.EventDetails + :param PaperDocMentionDetails val: + :rtype: EventDetails """ return cls('paper_doc_mention_details', val) @@ -8929,8 +9025,8 @@ def paper_doc_ownership_changed_details(cls, val): Create an instance of this class set to the ``paper_doc_ownership_changed_details`` tag with value ``val``. - :param team_log.PaperDocOwnershipChangedDetails val: - :rtype: team_log.EventDetails + :param PaperDocOwnershipChangedDetails val: + :rtype: EventDetails """ return cls('paper_doc_ownership_changed_details', val) @@ -8940,8 +9036,8 @@ def paper_doc_request_access_details(cls, val): Create an instance of this class set to the ``paper_doc_request_access_details`` tag with value ``val``. - :param team_log.PaperDocRequestAccessDetails val: - :rtype: team_log.EventDetails + :param PaperDocRequestAccessDetails val: + :rtype: EventDetails """ return cls('paper_doc_request_access_details', val) @@ -8951,8 +9047,8 @@ def paper_doc_resolve_comment_details(cls, val): Create an instance of this class set to the ``paper_doc_resolve_comment_details`` tag with value ``val``. - :param team_log.PaperDocResolveCommentDetails val: - :rtype: team_log.EventDetails + :param PaperDocResolveCommentDetails val: + :rtype: EventDetails """ return cls('paper_doc_resolve_comment_details', val) @@ -8962,8 +9058,8 @@ def paper_doc_revert_details(cls, val): Create an instance of this class set to the ``paper_doc_revert_details`` tag with value ``val``. - :param team_log.PaperDocRevertDetails val: - :rtype: team_log.EventDetails + :param PaperDocRevertDetails val: + :rtype: EventDetails """ return cls('paper_doc_revert_details', val) @@ -8973,8 +9069,8 @@ def paper_doc_slack_share_details(cls, val): Create an instance of this class set to the ``paper_doc_slack_share_details`` tag with value ``val``. - :param team_log.PaperDocSlackShareDetails val: - :rtype: team_log.EventDetails + :param PaperDocSlackShareDetails val: + :rtype: EventDetails """ return cls('paper_doc_slack_share_details', val) @@ -8984,8 +9080,8 @@ def paper_doc_team_invite_details(cls, val): Create an instance of this class set to the ``paper_doc_team_invite_details`` tag with value ``val``. - :param team_log.PaperDocTeamInviteDetails val: - :rtype: team_log.EventDetails + :param PaperDocTeamInviteDetails val: + :rtype: EventDetails """ return cls('paper_doc_team_invite_details', val) @@ -8995,8 +9091,8 @@ def paper_doc_trashed_details(cls, val): Create an instance of this class set to the ``paper_doc_trashed_details`` tag with value ``val``. - :param team_log.PaperDocTrashedDetails val: - :rtype: team_log.EventDetails + :param PaperDocTrashedDetails val: + :rtype: EventDetails """ return cls('paper_doc_trashed_details', val) @@ -9006,8 +9102,8 @@ def paper_doc_unresolve_comment_details(cls, val): Create an instance of this class set to the ``paper_doc_unresolve_comment_details`` tag with value ``val``. - :param team_log.PaperDocUnresolveCommentDetails val: - :rtype: team_log.EventDetails + :param PaperDocUnresolveCommentDetails val: + :rtype: EventDetails """ return cls('paper_doc_unresolve_comment_details', val) @@ -9017,8 +9113,8 @@ def paper_doc_untrashed_details(cls, val): Create an instance of this class set to the ``paper_doc_untrashed_details`` tag with value ``val``. - :param team_log.PaperDocUntrashedDetails val: - :rtype: team_log.EventDetails + :param PaperDocUntrashedDetails val: + :rtype: EventDetails """ return cls('paper_doc_untrashed_details', val) @@ -9028,8 +9124,8 @@ def paper_doc_view_details(cls, val): Create an instance of this class set to the ``paper_doc_view_details`` tag with value ``val``. - :param team_log.PaperDocViewDetails val: - :rtype: team_log.EventDetails + :param PaperDocViewDetails val: + :rtype: EventDetails """ return cls('paper_doc_view_details', val) @@ -9039,8 +9135,8 @@ def paper_external_view_allow_details(cls, val): Create an instance of this class set to the ``paper_external_view_allow_details`` tag with value ``val``. - :param team_log.PaperExternalViewAllowDetails val: - :rtype: team_log.EventDetails + :param PaperExternalViewAllowDetails val: + :rtype: EventDetails """ return cls('paper_external_view_allow_details', val) @@ -9050,8 +9146,8 @@ def paper_external_view_default_team_details(cls, val): Create an instance of this class set to the ``paper_external_view_default_team_details`` tag with value ``val``. - :param team_log.PaperExternalViewDefaultTeamDetails val: - :rtype: team_log.EventDetails + :param PaperExternalViewDefaultTeamDetails val: + :rtype: EventDetails """ return cls('paper_external_view_default_team_details', val) @@ -9061,8 +9157,8 @@ def paper_external_view_forbid_details(cls, val): Create an instance of this class set to the ``paper_external_view_forbid_details`` tag with value ``val``. - :param team_log.PaperExternalViewForbidDetails val: - :rtype: team_log.EventDetails + :param PaperExternalViewForbidDetails val: + :rtype: EventDetails """ return cls('paper_external_view_forbid_details', val) @@ -9072,8 +9168,8 @@ def paper_folder_change_subscription_details(cls, val): Create an instance of this class set to the ``paper_folder_change_subscription_details`` tag with value ``val``. - :param team_log.PaperFolderChangeSubscriptionDetails val: - :rtype: team_log.EventDetails + :param PaperFolderChangeSubscriptionDetails val: + :rtype: EventDetails """ return cls('paper_folder_change_subscription_details', val) @@ -9083,8 +9179,8 @@ def paper_folder_deleted_details(cls, val): Create an instance of this class set to the ``paper_folder_deleted_details`` tag with value ``val``. - :param team_log.PaperFolderDeletedDetails val: - :rtype: team_log.EventDetails + :param PaperFolderDeletedDetails val: + :rtype: EventDetails """ return cls('paper_folder_deleted_details', val) @@ -9094,8 +9190,8 @@ def paper_folder_followed_details(cls, val): Create an instance of this class set to the ``paper_folder_followed_details`` tag with value ``val``. - :param team_log.PaperFolderFollowedDetails val: - :rtype: team_log.EventDetails + :param PaperFolderFollowedDetails val: + :rtype: EventDetails """ return cls('paper_folder_followed_details', val) @@ -9105,19 +9201,52 @@ def paper_folder_team_invite_details(cls, val): Create an instance of this class set to the ``paper_folder_team_invite_details`` tag with value ``val``. - :param team_log.PaperFolderTeamInviteDetails val: - :rtype: team_log.EventDetails + :param PaperFolderTeamInviteDetails val: + :rtype: EventDetails """ return cls('paper_folder_team_invite_details', val) + @classmethod + def paper_published_link_create_details(cls, val): + """ + Create an instance of this class set to the + ``paper_published_link_create_details`` tag with value ``val``. + + :param PaperPublishedLinkCreateDetails val: + :rtype: EventDetails + """ + return cls('paper_published_link_create_details', val) + + @classmethod + def paper_published_link_disabled_details(cls, val): + """ + Create an instance of this class set to the + ``paper_published_link_disabled_details`` tag with value ``val``. + + :param PaperPublishedLinkDisabledDetails val: + :rtype: EventDetails + """ + return cls('paper_published_link_disabled_details', val) + + @classmethod + def paper_published_link_view_details(cls, val): + """ + Create an instance of this class set to the + ``paper_published_link_view_details`` tag with value ``val``. + + :param PaperPublishedLinkViewDetails val: + :rtype: EventDetails + """ + return cls('paper_published_link_view_details', val) + @classmethod def password_change_details(cls, val): """ Create an instance of this class set to the ``password_change_details`` tag with value ``val``. - :param team_log.PasswordChangeDetails val: - :rtype: team_log.EventDetails + :param PasswordChangeDetails val: + :rtype: EventDetails """ return cls('password_change_details', val) @@ -9127,8 +9256,8 @@ def password_reset_details(cls, val): Create an instance of this class set to the ``password_reset_details`` tag with value ``val``. - :param team_log.PasswordResetDetails val: - :rtype: team_log.EventDetails + :param PasswordResetDetails val: + :rtype: EventDetails """ return cls('password_reset_details', val) @@ -9138,8 +9267,8 @@ def password_reset_all_details(cls, val): Create an instance of this class set to the ``password_reset_all_details`` tag with value ``val``. - :param team_log.PasswordResetAllDetails val: - :rtype: team_log.EventDetails + :param PasswordResetAllDetails val: + :rtype: EventDetails """ return cls('password_reset_all_details', val) @@ -9149,8 +9278,8 @@ def emm_create_exceptions_report_details(cls, val): Create an instance of this class set to the ``emm_create_exceptions_report_details`` tag with value ``val``. - :param team_log.EmmCreateExceptionsReportDetails val: - :rtype: team_log.EventDetails + :param EmmCreateExceptionsReportDetails val: + :rtype: EventDetails """ return cls('emm_create_exceptions_report_details', val) @@ -9160,8 +9289,8 @@ def emm_create_usage_report_details(cls, val): Create an instance of this class set to the ``emm_create_usage_report_details`` tag with value ``val``. - :param team_log.EmmCreateUsageReportDetails val: - :rtype: team_log.EventDetails + :param EmmCreateUsageReportDetails val: + :rtype: EventDetails """ return cls('emm_create_usage_report_details', val) @@ -9171,8 +9300,8 @@ def export_members_report_details(cls, val): Create an instance of this class set to the ``export_members_report_details`` tag with value ``val``. - :param team_log.ExportMembersReportDetails val: - :rtype: team_log.EventDetails + :param ExportMembersReportDetails val: + :rtype: EventDetails """ return cls('export_members_report_details', val) @@ -9182,8 +9311,8 @@ def paper_admin_export_start_details(cls, val): Create an instance of this class set to the ``paper_admin_export_start_details`` tag with value ``val``. - :param team_log.PaperAdminExportStartDetails val: - :rtype: team_log.EventDetails + :param PaperAdminExportStartDetails val: + :rtype: EventDetails """ return cls('paper_admin_export_start_details', val) @@ -9194,8 +9323,8 @@ def smart_sync_create_admin_privilege_report_details(cls, val): ``smart_sync_create_admin_privilege_report_details`` tag with value ``val``. - :param team_log.SmartSyncCreateAdminPrivilegeReportDetails val: - :rtype: team_log.EventDetails + :param SmartSyncCreateAdminPrivilegeReportDetails val: + :rtype: EventDetails """ return cls('smart_sync_create_admin_privilege_report_details', val) @@ -9205,19 +9334,30 @@ def team_activity_create_report_details(cls, val): Create an instance of this class set to the ``team_activity_create_report_details`` tag with value ``val``. - :param team_log.TeamActivityCreateReportDetails val: - :rtype: team_log.EventDetails + :param TeamActivityCreateReportDetails val: + :rtype: EventDetails """ return cls('team_activity_create_report_details', val) + @classmethod + def team_activity_create_report_fail_details(cls, val): + """ + Create an instance of this class set to the + ``team_activity_create_report_fail_details`` tag with value ``val``. + + :param TeamActivityCreateReportFailDetails val: + :rtype: EventDetails + """ + return cls('team_activity_create_report_fail_details', val) + @classmethod def collection_share_details(cls, val): """ Create an instance of this class set to the ``collection_share_details`` tag with value ``val``. - :param team_log.CollectionShareDetails val: - :rtype: team_log.EventDetails + :param CollectionShareDetails val: + :rtype: EventDetails """ return cls('collection_share_details', val) @@ -9227,8 +9367,8 @@ def note_acl_invite_only_details(cls, val): Create an instance of this class set to the ``note_acl_invite_only_details`` tag with value ``val``. - :param team_log.NoteAclInviteOnlyDetails val: - :rtype: team_log.EventDetails + :param NoteAclInviteOnlyDetails val: + :rtype: EventDetails """ return cls('note_acl_invite_only_details', val) @@ -9238,8 +9378,8 @@ def note_acl_link_details(cls, val): Create an instance of this class set to the ``note_acl_link_details`` tag with value ``val``. - :param team_log.NoteAclLinkDetails val: - :rtype: team_log.EventDetails + :param NoteAclLinkDetails val: + :rtype: EventDetails """ return cls('note_acl_link_details', val) @@ -9249,8 +9389,8 @@ def note_acl_team_link_details(cls, val): Create an instance of this class set to the ``note_acl_team_link_details`` tag with value ``val``. - :param team_log.NoteAclTeamLinkDetails val: - :rtype: team_log.EventDetails + :param NoteAclTeamLinkDetails val: + :rtype: EventDetails """ return cls('note_acl_team_link_details', val) @@ -9260,8 +9400,8 @@ def note_shared_details(cls, val): Create an instance of this class set to the ``note_shared_details`` tag with value ``val``. - :param team_log.NoteSharedDetails val: - :rtype: team_log.EventDetails + :param NoteSharedDetails val: + :rtype: EventDetails """ return cls('note_shared_details', val) @@ -9271,8 +9411,8 @@ def note_share_receive_details(cls, val): Create an instance of this class set to the ``note_share_receive_details`` tag with value ``val``. - :param team_log.NoteShareReceiveDetails val: - :rtype: team_log.EventDetails + :param NoteShareReceiveDetails val: + :rtype: EventDetails """ return cls('note_share_receive_details', val) @@ -9282,8 +9422,8 @@ def open_note_shared_details(cls, val): Create an instance of this class set to the ``open_note_shared_details`` tag with value ``val``. - :param team_log.OpenNoteSharedDetails val: - :rtype: team_log.EventDetails + :param OpenNoteSharedDetails val: + :rtype: EventDetails """ return cls('open_note_shared_details', val) @@ -9293,8 +9433,8 @@ def sf_add_group_details(cls, val): Create an instance of this class set to the ``sf_add_group_details`` tag with value ``val``. - :param team_log.SfAddGroupDetails val: - :rtype: team_log.EventDetails + :param SfAddGroupDetails val: + :rtype: EventDetails """ return cls('sf_add_group_details', val) @@ -9305,8 +9445,8 @@ def sf_allow_non_members_to_view_shared_links_details(cls, val): ``sf_allow_non_members_to_view_shared_links_details`` tag with value ``val``. - :param team_log.SfAllowNonMembersToViewSharedLinksDetails val: - :rtype: team_log.EventDetails + :param SfAllowNonMembersToViewSharedLinksDetails val: + :rtype: EventDetails """ return cls('sf_allow_non_members_to_view_shared_links_details', val) @@ -9316,8 +9456,8 @@ def sf_external_invite_warn_details(cls, val): Create an instance of this class set to the ``sf_external_invite_warn_details`` tag with value ``val``. - :param team_log.SfExternalInviteWarnDetails val: - :rtype: team_log.EventDetails + :param SfExternalInviteWarnDetails val: + :rtype: EventDetails """ return cls('sf_external_invite_warn_details', val) @@ -9327,8 +9467,8 @@ def sf_fb_invite_details(cls, val): Create an instance of this class set to the ``sf_fb_invite_details`` tag with value ``val``. - :param team_log.SfFbInviteDetails val: - :rtype: team_log.EventDetails + :param SfFbInviteDetails val: + :rtype: EventDetails """ return cls('sf_fb_invite_details', val) @@ -9338,8 +9478,8 @@ def sf_fb_invite_change_role_details(cls, val): Create an instance of this class set to the ``sf_fb_invite_change_role_details`` tag with value ``val``. - :param team_log.SfFbInviteChangeRoleDetails val: - :rtype: team_log.EventDetails + :param SfFbInviteChangeRoleDetails val: + :rtype: EventDetails """ return cls('sf_fb_invite_change_role_details', val) @@ -9349,8 +9489,8 @@ def sf_fb_uninvite_details(cls, val): Create an instance of this class set to the ``sf_fb_uninvite_details`` tag with value ``val``. - :param team_log.SfFbUninviteDetails val: - :rtype: team_log.EventDetails + :param SfFbUninviteDetails val: + :rtype: EventDetails """ return cls('sf_fb_uninvite_details', val) @@ -9360,8 +9500,8 @@ def sf_invite_group_details(cls, val): Create an instance of this class set to the ``sf_invite_group_details`` tag with value ``val``. - :param team_log.SfInviteGroupDetails val: - :rtype: team_log.EventDetails + :param SfInviteGroupDetails val: + :rtype: EventDetails """ return cls('sf_invite_group_details', val) @@ -9371,8 +9511,8 @@ def sf_team_grant_access_details(cls, val): Create an instance of this class set to the ``sf_team_grant_access_details`` tag with value ``val``. - :param team_log.SfTeamGrantAccessDetails val: - :rtype: team_log.EventDetails + :param SfTeamGrantAccessDetails val: + :rtype: EventDetails """ return cls('sf_team_grant_access_details', val) @@ -9382,8 +9522,8 @@ def sf_team_invite_details(cls, val): Create an instance of this class set to the ``sf_team_invite_details`` tag with value ``val``. - :param team_log.SfTeamInviteDetails val: - :rtype: team_log.EventDetails + :param SfTeamInviteDetails val: + :rtype: EventDetails """ return cls('sf_team_invite_details', val) @@ -9393,8 +9533,8 @@ def sf_team_invite_change_role_details(cls, val): Create an instance of this class set to the ``sf_team_invite_change_role_details`` tag with value ``val``. - :param team_log.SfTeamInviteChangeRoleDetails val: - :rtype: team_log.EventDetails + :param SfTeamInviteChangeRoleDetails val: + :rtype: EventDetails """ return cls('sf_team_invite_change_role_details', val) @@ -9404,8 +9544,8 @@ def sf_team_join_details(cls, val): Create an instance of this class set to the ``sf_team_join_details`` tag with value ``val``. - :param team_log.SfTeamJoinDetails val: - :rtype: team_log.EventDetails + :param SfTeamJoinDetails val: + :rtype: EventDetails """ return cls('sf_team_join_details', val) @@ -9415,8 +9555,8 @@ def sf_team_join_from_oob_link_details(cls, val): Create an instance of this class set to the ``sf_team_join_from_oob_link_details`` tag with value ``val``. - :param team_log.SfTeamJoinFromOobLinkDetails val: - :rtype: team_log.EventDetails + :param SfTeamJoinFromOobLinkDetails val: + :rtype: EventDetails """ return cls('sf_team_join_from_oob_link_details', val) @@ -9426,8 +9566,8 @@ def sf_team_uninvite_details(cls, val): Create an instance of this class set to the ``sf_team_uninvite_details`` tag with value ``val``. - :param team_log.SfTeamUninviteDetails val: - :rtype: team_log.EventDetails + :param SfTeamUninviteDetails val: + :rtype: EventDetails """ return cls('sf_team_uninvite_details', val) @@ -9437,8 +9577,8 @@ def shared_content_add_invitees_details(cls, val): Create an instance of this class set to the ``shared_content_add_invitees_details`` tag with value ``val``. - :param team_log.SharedContentAddInviteesDetails val: - :rtype: team_log.EventDetails + :param SharedContentAddInviteesDetails val: + :rtype: EventDetails """ return cls('shared_content_add_invitees_details', val) @@ -9448,8 +9588,8 @@ def shared_content_add_link_expiry_details(cls, val): Create an instance of this class set to the ``shared_content_add_link_expiry_details`` tag with value ``val``. - :param team_log.SharedContentAddLinkExpiryDetails val: - :rtype: team_log.EventDetails + :param SharedContentAddLinkExpiryDetails val: + :rtype: EventDetails """ return cls('shared_content_add_link_expiry_details', val) @@ -9459,8 +9599,8 @@ def shared_content_add_link_password_details(cls, val): Create an instance of this class set to the ``shared_content_add_link_password_details`` tag with value ``val``. - :param team_log.SharedContentAddLinkPasswordDetails val: - :rtype: team_log.EventDetails + :param SharedContentAddLinkPasswordDetails val: + :rtype: EventDetails """ return cls('shared_content_add_link_password_details', val) @@ -9470,8 +9610,8 @@ def shared_content_add_member_details(cls, val): Create an instance of this class set to the ``shared_content_add_member_details`` tag with value ``val``. - :param team_log.SharedContentAddMemberDetails val: - :rtype: team_log.EventDetails + :param SharedContentAddMemberDetails val: + :rtype: EventDetails """ return cls('shared_content_add_member_details', val) @@ -9482,8 +9622,8 @@ def shared_content_change_downloads_policy_details(cls, val): ``shared_content_change_downloads_policy_details`` tag with value ``val``. - :param team_log.SharedContentChangeDownloadsPolicyDetails val: - :rtype: team_log.EventDetails + :param SharedContentChangeDownloadsPolicyDetails val: + :rtype: EventDetails """ return cls('shared_content_change_downloads_policy_details', val) @@ -9493,8 +9633,8 @@ def shared_content_change_invitee_role_details(cls, val): Create an instance of this class set to the ``shared_content_change_invitee_role_details`` tag with value ``val``. - :param team_log.SharedContentChangeInviteeRoleDetails val: - :rtype: team_log.EventDetails + :param SharedContentChangeInviteeRoleDetails val: + :rtype: EventDetails """ return cls('shared_content_change_invitee_role_details', val) @@ -9504,8 +9644,8 @@ def shared_content_change_link_audience_details(cls, val): Create an instance of this class set to the ``shared_content_change_link_audience_details`` tag with value ``val``. - :param team_log.SharedContentChangeLinkAudienceDetails val: - :rtype: team_log.EventDetails + :param SharedContentChangeLinkAudienceDetails val: + :rtype: EventDetails """ return cls('shared_content_change_link_audience_details', val) @@ -9515,8 +9655,8 @@ def shared_content_change_link_expiry_details(cls, val): Create an instance of this class set to the ``shared_content_change_link_expiry_details`` tag with value ``val``. - :param team_log.SharedContentChangeLinkExpiryDetails val: - :rtype: team_log.EventDetails + :param SharedContentChangeLinkExpiryDetails val: + :rtype: EventDetails """ return cls('shared_content_change_link_expiry_details', val) @@ -9526,8 +9666,8 @@ def shared_content_change_link_password_details(cls, val): Create an instance of this class set to the ``shared_content_change_link_password_details`` tag with value ``val``. - :param team_log.SharedContentChangeLinkPasswordDetails val: - :rtype: team_log.EventDetails + :param SharedContentChangeLinkPasswordDetails val: + :rtype: EventDetails """ return cls('shared_content_change_link_password_details', val) @@ -9537,8 +9677,8 @@ def shared_content_change_member_role_details(cls, val): Create an instance of this class set to the ``shared_content_change_member_role_details`` tag with value ``val``. - :param team_log.SharedContentChangeMemberRoleDetails val: - :rtype: team_log.EventDetails + :param SharedContentChangeMemberRoleDetails val: + :rtype: EventDetails """ return cls('shared_content_change_member_role_details', val) @@ -9549,8 +9689,8 @@ def shared_content_change_viewer_info_policy_details(cls, val): ``shared_content_change_viewer_info_policy_details`` tag with value ``val``. - :param team_log.SharedContentChangeViewerInfoPolicyDetails val: - :rtype: team_log.EventDetails + :param SharedContentChangeViewerInfoPolicyDetails val: + :rtype: EventDetails """ return cls('shared_content_change_viewer_info_policy_details', val) @@ -9560,8 +9700,8 @@ def shared_content_claim_invitation_details(cls, val): Create an instance of this class set to the ``shared_content_claim_invitation_details`` tag with value ``val``. - :param team_log.SharedContentClaimInvitationDetails val: - :rtype: team_log.EventDetails + :param SharedContentClaimInvitationDetails val: + :rtype: EventDetails """ return cls('shared_content_claim_invitation_details', val) @@ -9571,8 +9711,8 @@ def shared_content_copy_details(cls, val): Create an instance of this class set to the ``shared_content_copy_details`` tag with value ``val``. - :param team_log.SharedContentCopyDetails val: - :rtype: team_log.EventDetails + :param SharedContentCopyDetails val: + :rtype: EventDetails """ return cls('shared_content_copy_details', val) @@ -9582,8 +9722,8 @@ def shared_content_download_details(cls, val): Create an instance of this class set to the ``shared_content_download_details`` tag with value ``val``. - :param team_log.SharedContentDownloadDetails val: - :rtype: team_log.EventDetails + :param SharedContentDownloadDetails val: + :rtype: EventDetails """ return cls('shared_content_download_details', val) @@ -9593,8 +9733,8 @@ def shared_content_relinquish_membership_details(cls, val): Create an instance of this class set to the ``shared_content_relinquish_membership_details`` tag with value ``val``. - :param team_log.SharedContentRelinquishMembershipDetails val: - :rtype: team_log.EventDetails + :param SharedContentRelinquishMembershipDetails val: + :rtype: EventDetails """ return cls('shared_content_relinquish_membership_details', val) @@ -9604,8 +9744,8 @@ def shared_content_remove_invitees_details(cls, val): Create an instance of this class set to the ``shared_content_remove_invitees_details`` tag with value ``val``. - :param team_log.SharedContentRemoveInviteesDetails val: - :rtype: team_log.EventDetails + :param SharedContentRemoveInviteesDetails val: + :rtype: EventDetails """ return cls('shared_content_remove_invitees_details', val) @@ -9615,8 +9755,8 @@ def shared_content_remove_link_expiry_details(cls, val): Create an instance of this class set to the ``shared_content_remove_link_expiry_details`` tag with value ``val``. - :param team_log.SharedContentRemoveLinkExpiryDetails val: - :rtype: team_log.EventDetails + :param SharedContentRemoveLinkExpiryDetails val: + :rtype: EventDetails """ return cls('shared_content_remove_link_expiry_details', val) @@ -9626,8 +9766,8 @@ def shared_content_remove_link_password_details(cls, val): Create an instance of this class set to the ``shared_content_remove_link_password_details`` tag with value ``val``. - :param team_log.SharedContentRemoveLinkPasswordDetails val: - :rtype: team_log.EventDetails + :param SharedContentRemoveLinkPasswordDetails val: + :rtype: EventDetails """ return cls('shared_content_remove_link_password_details', val) @@ -9637,8 +9777,8 @@ def shared_content_remove_member_details(cls, val): Create an instance of this class set to the ``shared_content_remove_member_details`` tag with value ``val``. - :param team_log.SharedContentRemoveMemberDetails val: - :rtype: team_log.EventDetails + :param SharedContentRemoveMemberDetails val: + :rtype: EventDetails """ return cls('shared_content_remove_member_details', val) @@ -9648,8 +9788,8 @@ def shared_content_request_access_details(cls, val): Create an instance of this class set to the ``shared_content_request_access_details`` tag with value ``val``. - :param team_log.SharedContentRequestAccessDetails val: - :rtype: team_log.EventDetails + :param SharedContentRequestAccessDetails val: + :rtype: EventDetails """ return cls('shared_content_request_access_details', val) @@ -9659,8 +9799,8 @@ def shared_content_unshare_details(cls, val): Create an instance of this class set to the ``shared_content_unshare_details`` tag with value ``val``. - :param team_log.SharedContentUnshareDetails val: - :rtype: team_log.EventDetails + :param SharedContentUnshareDetails val: + :rtype: EventDetails """ return cls('shared_content_unshare_details', val) @@ -9670,8 +9810,8 @@ def shared_content_view_details(cls, val): Create an instance of this class set to the ``shared_content_view_details`` tag with value ``val``. - :param team_log.SharedContentViewDetails val: - :rtype: team_log.EventDetails + :param SharedContentViewDetails val: + :rtype: EventDetails """ return cls('shared_content_view_details', val) @@ -9681,8 +9821,8 @@ def shared_folder_change_link_policy_details(cls, val): Create an instance of this class set to the ``shared_folder_change_link_policy_details`` tag with value ``val``. - :param team_log.SharedFolderChangeLinkPolicyDetails val: - :rtype: team_log.EventDetails + :param SharedFolderChangeLinkPolicyDetails val: + :rtype: EventDetails """ return cls('shared_folder_change_link_policy_details', val) @@ -9693,8 +9833,8 @@ def shared_folder_change_members_inheritance_policy_details(cls, val): ``shared_folder_change_members_inheritance_policy_details`` tag with value ``val``. - :param team_log.SharedFolderChangeMembersInheritancePolicyDetails val: - :rtype: team_log.EventDetails + :param SharedFolderChangeMembersInheritancePolicyDetails val: + :rtype: EventDetails """ return cls('shared_folder_change_members_inheritance_policy_details', val) @@ -9705,8 +9845,8 @@ def shared_folder_change_members_management_policy_details(cls, val): ``shared_folder_change_members_management_policy_details`` tag with value ``val``. - :param team_log.SharedFolderChangeMembersManagementPolicyDetails val: - :rtype: team_log.EventDetails + :param SharedFolderChangeMembersManagementPolicyDetails val: + :rtype: EventDetails """ return cls('shared_folder_change_members_management_policy_details', val) @@ -9716,8 +9856,8 @@ def shared_folder_change_members_policy_details(cls, val): Create an instance of this class set to the ``shared_folder_change_members_policy_details`` tag with value ``val``. - :param team_log.SharedFolderChangeMembersPolicyDetails val: - :rtype: team_log.EventDetails + :param SharedFolderChangeMembersPolicyDetails val: + :rtype: EventDetails """ return cls('shared_folder_change_members_policy_details', val) @@ -9727,8 +9867,8 @@ def shared_folder_create_details(cls, val): Create an instance of this class set to the ``shared_folder_create_details`` tag with value ``val``. - :param team_log.SharedFolderCreateDetails val: - :rtype: team_log.EventDetails + :param SharedFolderCreateDetails val: + :rtype: EventDetails """ return cls('shared_folder_create_details', val) @@ -9738,8 +9878,8 @@ def shared_folder_decline_invitation_details(cls, val): Create an instance of this class set to the ``shared_folder_decline_invitation_details`` tag with value ``val``. - :param team_log.SharedFolderDeclineInvitationDetails val: - :rtype: team_log.EventDetails + :param SharedFolderDeclineInvitationDetails val: + :rtype: EventDetails """ return cls('shared_folder_decline_invitation_details', val) @@ -9749,8 +9889,8 @@ def shared_folder_mount_details(cls, val): Create an instance of this class set to the ``shared_folder_mount_details`` tag with value ``val``. - :param team_log.SharedFolderMountDetails val: - :rtype: team_log.EventDetails + :param SharedFolderMountDetails val: + :rtype: EventDetails """ return cls('shared_folder_mount_details', val) @@ -9760,8 +9900,8 @@ def shared_folder_nest_details(cls, val): Create an instance of this class set to the ``shared_folder_nest_details`` tag with value ``val``. - :param team_log.SharedFolderNestDetails val: - :rtype: team_log.EventDetails + :param SharedFolderNestDetails val: + :rtype: EventDetails """ return cls('shared_folder_nest_details', val) @@ -9771,8 +9911,8 @@ def shared_folder_transfer_ownership_details(cls, val): Create an instance of this class set to the ``shared_folder_transfer_ownership_details`` tag with value ``val``. - :param team_log.SharedFolderTransferOwnershipDetails val: - :rtype: team_log.EventDetails + :param SharedFolderTransferOwnershipDetails val: + :rtype: EventDetails """ return cls('shared_folder_transfer_ownership_details', val) @@ -9782,8 +9922,8 @@ def shared_folder_unmount_details(cls, val): Create an instance of this class set to the ``shared_folder_unmount_details`` tag with value ``val``. - :param team_log.SharedFolderUnmountDetails val: - :rtype: team_log.EventDetails + :param SharedFolderUnmountDetails val: + :rtype: EventDetails """ return cls('shared_folder_unmount_details', val) @@ -9793,8 +9933,8 @@ def shared_link_add_expiry_details(cls, val): Create an instance of this class set to the ``shared_link_add_expiry_details`` tag with value ``val``. - :param team_log.SharedLinkAddExpiryDetails val: - :rtype: team_log.EventDetails + :param SharedLinkAddExpiryDetails val: + :rtype: EventDetails """ return cls('shared_link_add_expiry_details', val) @@ -9804,8 +9944,8 @@ def shared_link_change_expiry_details(cls, val): Create an instance of this class set to the ``shared_link_change_expiry_details`` tag with value ``val``. - :param team_log.SharedLinkChangeExpiryDetails val: - :rtype: team_log.EventDetails + :param SharedLinkChangeExpiryDetails val: + :rtype: EventDetails """ return cls('shared_link_change_expiry_details', val) @@ -9815,8 +9955,8 @@ def shared_link_change_visibility_details(cls, val): Create an instance of this class set to the ``shared_link_change_visibility_details`` tag with value ``val``. - :param team_log.SharedLinkChangeVisibilityDetails val: - :rtype: team_log.EventDetails + :param SharedLinkChangeVisibilityDetails val: + :rtype: EventDetails """ return cls('shared_link_change_visibility_details', val) @@ -9826,8 +9966,8 @@ def shared_link_copy_details(cls, val): Create an instance of this class set to the ``shared_link_copy_details`` tag with value ``val``. - :param team_log.SharedLinkCopyDetails val: - :rtype: team_log.EventDetails + :param SharedLinkCopyDetails val: + :rtype: EventDetails """ return cls('shared_link_copy_details', val) @@ -9837,8 +9977,8 @@ def shared_link_create_details(cls, val): Create an instance of this class set to the ``shared_link_create_details`` tag with value ``val``. - :param team_log.SharedLinkCreateDetails val: - :rtype: team_log.EventDetails + :param SharedLinkCreateDetails val: + :rtype: EventDetails """ return cls('shared_link_create_details', val) @@ -9848,8 +9988,8 @@ def shared_link_disable_details(cls, val): Create an instance of this class set to the ``shared_link_disable_details`` tag with value ``val``. - :param team_log.SharedLinkDisableDetails val: - :rtype: team_log.EventDetails + :param SharedLinkDisableDetails val: + :rtype: EventDetails """ return cls('shared_link_disable_details', val) @@ -9859,8 +9999,8 @@ def shared_link_download_details(cls, val): Create an instance of this class set to the ``shared_link_download_details`` tag with value ``val``. - :param team_log.SharedLinkDownloadDetails val: - :rtype: team_log.EventDetails + :param SharedLinkDownloadDetails val: + :rtype: EventDetails """ return cls('shared_link_download_details', val) @@ -9870,8 +10010,8 @@ def shared_link_remove_expiry_details(cls, val): Create an instance of this class set to the ``shared_link_remove_expiry_details`` tag with value ``val``. - :param team_log.SharedLinkRemoveExpiryDetails val: - :rtype: team_log.EventDetails + :param SharedLinkRemoveExpiryDetails val: + :rtype: EventDetails """ return cls('shared_link_remove_expiry_details', val) @@ -9881,8 +10021,8 @@ def shared_link_share_details(cls, val): Create an instance of this class set to the ``shared_link_share_details`` tag with value ``val``. - :param team_log.SharedLinkShareDetails val: - :rtype: team_log.EventDetails + :param SharedLinkShareDetails val: + :rtype: EventDetails """ return cls('shared_link_share_details', val) @@ -9892,8 +10032,8 @@ def shared_link_view_details(cls, val): Create an instance of this class set to the ``shared_link_view_details`` tag with value ``val``. - :param team_log.SharedLinkViewDetails val: - :rtype: team_log.EventDetails + :param SharedLinkViewDetails val: + :rtype: EventDetails """ return cls('shared_link_view_details', val) @@ -9903,8 +10043,8 @@ def shared_note_opened_details(cls, val): Create an instance of this class set to the ``shared_note_opened_details`` tag with value ``val``. - :param team_log.SharedNoteOpenedDetails val: - :rtype: team_log.EventDetails + :param SharedNoteOpenedDetails val: + :rtype: EventDetails """ return cls('shared_note_opened_details', val) @@ -9914,8 +10054,8 @@ def shmodel_group_share_details(cls, val): Create an instance of this class set to the ``shmodel_group_share_details`` tag with value ``val``. - :param team_log.ShmodelGroupShareDetails val: - :rtype: team_log.EventDetails + :param ShmodelGroupShareDetails val: + :rtype: EventDetails """ return cls('shmodel_group_share_details', val) @@ -9925,8 +10065,8 @@ def showcase_access_granted_details(cls, val): Create an instance of this class set to the ``showcase_access_granted_details`` tag with value ``val``. - :param team_log.ShowcaseAccessGrantedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseAccessGrantedDetails val: + :rtype: EventDetails """ return cls('showcase_access_granted_details', val) @@ -9936,8 +10076,8 @@ def showcase_add_member_details(cls, val): Create an instance of this class set to the ``showcase_add_member_details`` tag with value ``val``. - :param team_log.ShowcaseAddMemberDetails val: - :rtype: team_log.EventDetails + :param ShowcaseAddMemberDetails val: + :rtype: EventDetails """ return cls('showcase_add_member_details', val) @@ -9947,8 +10087,8 @@ def showcase_archived_details(cls, val): Create an instance of this class set to the ``showcase_archived_details`` tag with value ``val``. - :param team_log.ShowcaseArchivedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseArchivedDetails val: + :rtype: EventDetails """ return cls('showcase_archived_details', val) @@ -9958,8 +10098,8 @@ def showcase_created_details(cls, val): Create an instance of this class set to the ``showcase_created_details`` tag with value ``val``. - :param team_log.ShowcaseCreatedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseCreatedDetails val: + :rtype: EventDetails """ return cls('showcase_created_details', val) @@ -9969,8 +10109,8 @@ def showcase_delete_comment_details(cls, val): Create an instance of this class set to the ``showcase_delete_comment_details`` tag with value ``val``. - :param team_log.ShowcaseDeleteCommentDetails val: - :rtype: team_log.EventDetails + :param ShowcaseDeleteCommentDetails val: + :rtype: EventDetails """ return cls('showcase_delete_comment_details', val) @@ -9980,8 +10120,8 @@ def showcase_edited_details(cls, val): Create an instance of this class set to the ``showcase_edited_details`` tag with value ``val``. - :param team_log.ShowcaseEditedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseEditedDetails val: + :rtype: EventDetails """ return cls('showcase_edited_details', val) @@ -9991,8 +10131,8 @@ def showcase_edit_comment_details(cls, val): Create an instance of this class set to the ``showcase_edit_comment_details`` tag with value ``val``. - :param team_log.ShowcaseEditCommentDetails val: - :rtype: team_log.EventDetails + :param ShowcaseEditCommentDetails val: + :rtype: EventDetails """ return cls('showcase_edit_comment_details', val) @@ -10002,8 +10142,8 @@ def showcase_file_added_details(cls, val): Create an instance of this class set to the ``showcase_file_added_details`` tag with value ``val``. - :param team_log.ShowcaseFileAddedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseFileAddedDetails val: + :rtype: EventDetails """ return cls('showcase_file_added_details', val) @@ -10013,8 +10153,8 @@ def showcase_file_download_details(cls, val): Create an instance of this class set to the ``showcase_file_download_details`` tag with value ``val``. - :param team_log.ShowcaseFileDownloadDetails val: - :rtype: team_log.EventDetails + :param ShowcaseFileDownloadDetails val: + :rtype: EventDetails """ return cls('showcase_file_download_details', val) @@ -10024,8 +10164,8 @@ def showcase_file_removed_details(cls, val): Create an instance of this class set to the ``showcase_file_removed_details`` tag with value ``val``. - :param team_log.ShowcaseFileRemovedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseFileRemovedDetails val: + :rtype: EventDetails """ return cls('showcase_file_removed_details', val) @@ -10035,8 +10175,8 @@ def showcase_file_view_details(cls, val): Create an instance of this class set to the ``showcase_file_view_details`` tag with value ``val``. - :param team_log.ShowcaseFileViewDetails val: - :rtype: team_log.EventDetails + :param ShowcaseFileViewDetails val: + :rtype: EventDetails """ return cls('showcase_file_view_details', val) @@ -10046,8 +10186,8 @@ def showcase_permanently_deleted_details(cls, val): Create an instance of this class set to the ``showcase_permanently_deleted_details`` tag with value ``val``. - :param team_log.ShowcasePermanentlyDeletedDetails val: - :rtype: team_log.EventDetails + :param ShowcasePermanentlyDeletedDetails val: + :rtype: EventDetails """ return cls('showcase_permanently_deleted_details', val) @@ -10057,8 +10197,8 @@ def showcase_post_comment_details(cls, val): Create an instance of this class set to the ``showcase_post_comment_details`` tag with value ``val``. - :param team_log.ShowcasePostCommentDetails val: - :rtype: team_log.EventDetails + :param ShowcasePostCommentDetails val: + :rtype: EventDetails """ return cls('showcase_post_comment_details', val) @@ -10068,8 +10208,8 @@ def showcase_remove_member_details(cls, val): Create an instance of this class set to the ``showcase_remove_member_details`` tag with value ``val``. - :param team_log.ShowcaseRemoveMemberDetails val: - :rtype: team_log.EventDetails + :param ShowcaseRemoveMemberDetails val: + :rtype: EventDetails """ return cls('showcase_remove_member_details', val) @@ -10079,8 +10219,8 @@ def showcase_renamed_details(cls, val): Create an instance of this class set to the ``showcase_renamed_details`` tag with value ``val``. - :param team_log.ShowcaseRenamedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseRenamedDetails val: + :rtype: EventDetails """ return cls('showcase_renamed_details', val) @@ -10090,8 +10230,8 @@ def showcase_request_access_details(cls, val): Create an instance of this class set to the ``showcase_request_access_details`` tag with value ``val``. - :param team_log.ShowcaseRequestAccessDetails val: - :rtype: team_log.EventDetails + :param ShowcaseRequestAccessDetails val: + :rtype: EventDetails """ return cls('showcase_request_access_details', val) @@ -10101,8 +10241,8 @@ def showcase_resolve_comment_details(cls, val): Create an instance of this class set to the ``showcase_resolve_comment_details`` tag with value ``val``. - :param team_log.ShowcaseResolveCommentDetails val: - :rtype: team_log.EventDetails + :param ShowcaseResolveCommentDetails val: + :rtype: EventDetails """ return cls('showcase_resolve_comment_details', val) @@ -10112,8 +10252,8 @@ def showcase_restored_details(cls, val): Create an instance of this class set to the ``showcase_restored_details`` tag with value ``val``. - :param team_log.ShowcaseRestoredDetails val: - :rtype: team_log.EventDetails + :param ShowcaseRestoredDetails val: + :rtype: EventDetails """ return cls('showcase_restored_details', val) @@ -10123,8 +10263,8 @@ def showcase_trashed_details(cls, val): Create an instance of this class set to the ``showcase_trashed_details`` tag with value ``val``. - :param team_log.ShowcaseTrashedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseTrashedDetails val: + :rtype: EventDetails """ return cls('showcase_trashed_details', val) @@ -10134,8 +10274,8 @@ def showcase_trashed_deprecated_details(cls, val): Create an instance of this class set to the ``showcase_trashed_deprecated_details`` tag with value ``val``. - :param team_log.ShowcaseTrashedDeprecatedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseTrashedDeprecatedDetails val: + :rtype: EventDetails """ return cls('showcase_trashed_deprecated_details', val) @@ -10145,8 +10285,8 @@ def showcase_unresolve_comment_details(cls, val): Create an instance of this class set to the ``showcase_unresolve_comment_details`` tag with value ``val``. - :param team_log.ShowcaseUnresolveCommentDetails val: - :rtype: team_log.EventDetails + :param ShowcaseUnresolveCommentDetails val: + :rtype: EventDetails """ return cls('showcase_unresolve_comment_details', val) @@ -10156,8 +10296,8 @@ def showcase_untrashed_details(cls, val): Create an instance of this class set to the ``showcase_untrashed_details`` tag with value ``val``. - :param team_log.ShowcaseUntrashedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseUntrashedDetails val: + :rtype: EventDetails """ return cls('showcase_untrashed_details', val) @@ -10167,8 +10307,8 @@ def showcase_untrashed_deprecated_details(cls, val): Create an instance of this class set to the ``showcase_untrashed_deprecated_details`` tag with value ``val``. - :param team_log.ShowcaseUntrashedDeprecatedDetails val: - :rtype: team_log.EventDetails + :param ShowcaseUntrashedDeprecatedDetails val: + :rtype: EventDetails """ return cls('showcase_untrashed_deprecated_details', val) @@ -10178,8 +10318,8 @@ def showcase_view_details(cls, val): Create an instance of this class set to the ``showcase_view_details`` tag with value ``val``. - :param team_log.ShowcaseViewDetails val: - :rtype: team_log.EventDetails + :param ShowcaseViewDetails val: + :rtype: EventDetails """ return cls('showcase_view_details', val) @@ -10189,8 +10329,8 @@ def sso_add_cert_details(cls, val): Create an instance of this class set to the ``sso_add_cert_details`` tag with value ``val``. - :param team_log.SsoAddCertDetails val: - :rtype: team_log.EventDetails + :param SsoAddCertDetails val: + :rtype: EventDetails """ return cls('sso_add_cert_details', val) @@ -10200,8 +10340,8 @@ def sso_add_login_url_details(cls, val): Create an instance of this class set to the ``sso_add_login_url_details`` tag with value ``val``. - :param team_log.SsoAddLoginUrlDetails val: - :rtype: team_log.EventDetails + :param SsoAddLoginUrlDetails val: + :rtype: EventDetails """ return cls('sso_add_login_url_details', val) @@ -10211,8 +10351,8 @@ def sso_add_logout_url_details(cls, val): Create an instance of this class set to the ``sso_add_logout_url_details`` tag with value ``val``. - :param team_log.SsoAddLogoutUrlDetails val: - :rtype: team_log.EventDetails + :param SsoAddLogoutUrlDetails val: + :rtype: EventDetails """ return cls('sso_add_logout_url_details', val) @@ -10222,8 +10362,8 @@ def sso_change_cert_details(cls, val): Create an instance of this class set to the ``sso_change_cert_details`` tag with value ``val``. - :param team_log.SsoChangeCertDetails val: - :rtype: team_log.EventDetails + :param SsoChangeCertDetails val: + :rtype: EventDetails """ return cls('sso_change_cert_details', val) @@ -10233,8 +10373,8 @@ def sso_change_login_url_details(cls, val): Create an instance of this class set to the ``sso_change_login_url_details`` tag with value ``val``. - :param team_log.SsoChangeLoginUrlDetails val: - :rtype: team_log.EventDetails + :param SsoChangeLoginUrlDetails val: + :rtype: EventDetails """ return cls('sso_change_login_url_details', val) @@ -10244,8 +10384,8 @@ def sso_change_logout_url_details(cls, val): Create an instance of this class set to the ``sso_change_logout_url_details`` tag with value ``val``. - :param team_log.SsoChangeLogoutUrlDetails val: - :rtype: team_log.EventDetails + :param SsoChangeLogoutUrlDetails val: + :rtype: EventDetails """ return cls('sso_change_logout_url_details', val) @@ -10255,8 +10395,8 @@ def sso_change_saml_identity_mode_details(cls, val): Create an instance of this class set to the ``sso_change_saml_identity_mode_details`` tag with value ``val``. - :param team_log.SsoChangeSamlIdentityModeDetails val: - :rtype: team_log.EventDetails + :param SsoChangeSamlIdentityModeDetails val: + :rtype: EventDetails """ return cls('sso_change_saml_identity_mode_details', val) @@ -10266,8 +10406,8 @@ def sso_remove_cert_details(cls, val): Create an instance of this class set to the ``sso_remove_cert_details`` tag with value ``val``. - :param team_log.SsoRemoveCertDetails val: - :rtype: team_log.EventDetails + :param SsoRemoveCertDetails val: + :rtype: EventDetails """ return cls('sso_remove_cert_details', val) @@ -10277,8 +10417,8 @@ def sso_remove_login_url_details(cls, val): Create an instance of this class set to the ``sso_remove_login_url_details`` tag with value ``val``. - :param team_log.SsoRemoveLoginUrlDetails val: - :rtype: team_log.EventDetails + :param SsoRemoveLoginUrlDetails val: + :rtype: EventDetails """ return cls('sso_remove_login_url_details', val) @@ -10288,8 +10428,8 @@ def sso_remove_logout_url_details(cls, val): Create an instance of this class set to the ``sso_remove_logout_url_details`` tag with value ``val``. - :param team_log.SsoRemoveLogoutUrlDetails val: - :rtype: team_log.EventDetails + :param SsoRemoveLogoutUrlDetails val: + :rtype: EventDetails """ return cls('sso_remove_logout_url_details', val) @@ -10299,8 +10439,8 @@ def team_folder_change_status_details(cls, val): Create an instance of this class set to the ``team_folder_change_status_details`` tag with value ``val``. - :param team_log.TeamFolderChangeStatusDetails val: - :rtype: team_log.EventDetails + :param TeamFolderChangeStatusDetails val: + :rtype: EventDetails """ return cls('team_folder_change_status_details', val) @@ -10310,8 +10450,8 @@ def team_folder_create_details(cls, val): Create an instance of this class set to the ``team_folder_create_details`` tag with value ``val``. - :param team_log.TeamFolderCreateDetails val: - :rtype: team_log.EventDetails + :param TeamFolderCreateDetails val: + :rtype: EventDetails """ return cls('team_folder_create_details', val) @@ -10321,8 +10461,8 @@ def team_folder_downgrade_details(cls, val): Create an instance of this class set to the ``team_folder_downgrade_details`` tag with value ``val``. - :param team_log.TeamFolderDowngradeDetails val: - :rtype: team_log.EventDetails + :param TeamFolderDowngradeDetails val: + :rtype: EventDetails """ return cls('team_folder_downgrade_details', val) @@ -10332,8 +10472,8 @@ def team_folder_permanently_delete_details(cls, val): Create an instance of this class set to the ``team_folder_permanently_delete_details`` tag with value ``val``. - :param team_log.TeamFolderPermanentlyDeleteDetails val: - :rtype: team_log.EventDetails + :param TeamFolderPermanentlyDeleteDetails val: + :rtype: EventDetails """ return cls('team_folder_permanently_delete_details', val) @@ -10343,8 +10483,8 @@ def team_folder_rename_details(cls, val): Create an instance of this class set to the ``team_folder_rename_details`` tag with value ``val``. - :param team_log.TeamFolderRenameDetails val: - :rtype: team_log.EventDetails + :param TeamFolderRenameDetails val: + :rtype: EventDetails """ return cls('team_folder_rename_details', val) @@ -10354,8 +10494,8 @@ def team_selective_sync_settings_changed_details(cls, val): Create an instance of this class set to the ``team_selective_sync_settings_changed_details`` tag with value ``val``. - :param team_log.TeamSelectiveSyncSettingsChangedDetails val: - :rtype: team_log.EventDetails + :param TeamSelectiveSyncSettingsChangedDetails val: + :rtype: EventDetails """ return cls('team_selective_sync_settings_changed_details', val) @@ -10365,8 +10505,8 @@ def account_capture_change_policy_details(cls, val): Create an instance of this class set to the ``account_capture_change_policy_details`` tag with value ``val``. - :param team_log.AccountCaptureChangePolicyDetails val: - :rtype: team_log.EventDetails + :param AccountCaptureChangePolicyDetails val: + :rtype: EventDetails """ return cls('account_capture_change_policy_details', val) @@ -10376,8 +10516,8 @@ def allow_download_disabled_details(cls, val): Create an instance of this class set to the ``allow_download_disabled_details`` tag with value ``val``. - :param team_log.AllowDownloadDisabledDetails val: - :rtype: team_log.EventDetails + :param AllowDownloadDisabledDetails val: + :rtype: EventDetails """ return cls('allow_download_disabled_details', val) @@ -10387,8 +10527,8 @@ def allow_download_enabled_details(cls, val): Create an instance of this class set to the ``allow_download_enabled_details`` tag with value ``val``. - :param team_log.AllowDownloadEnabledDetails val: - :rtype: team_log.EventDetails + :param AllowDownloadEnabledDetails val: + :rtype: EventDetails """ return cls('allow_download_enabled_details', val) @@ -10398,8 +10538,8 @@ def camera_uploads_policy_changed_details(cls, val): Create an instance of this class set to the ``camera_uploads_policy_changed_details`` tag with value ``val``. - :param team_log.CameraUploadsPolicyChangedDetails val: - :rtype: team_log.EventDetails + :param CameraUploadsPolicyChangedDetails val: + :rtype: EventDetails """ return cls('camera_uploads_policy_changed_details', val) @@ -10410,8 +10550,8 @@ def data_placement_restriction_change_policy_details(cls, val): ``data_placement_restriction_change_policy_details`` tag with value ``val``. - :param team_log.DataPlacementRestrictionChangePolicyDetails val: - :rtype: team_log.EventDetails + :param DataPlacementRestrictionChangePolicyDetails val: + :rtype: EventDetails """ return cls('data_placement_restriction_change_policy_details', val) @@ -10422,8 +10562,8 @@ def data_placement_restriction_satisfy_policy_details(cls, val): ``data_placement_restriction_satisfy_policy_details`` tag with value ``val``. - :param team_log.DataPlacementRestrictionSatisfyPolicyDetails val: - :rtype: team_log.EventDetails + :param DataPlacementRestrictionSatisfyPolicyDetails val: + :rtype: EventDetails """ return cls('data_placement_restriction_satisfy_policy_details', val) @@ -10434,8 +10574,8 @@ def device_approvals_change_desktop_policy_details(cls, val): ``device_approvals_change_desktop_policy_details`` tag with value ``val``. - :param team_log.DeviceApprovalsChangeDesktopPolicyDetails val: - :rtype: team_log.EventDetails + :param DeviceApprovalsChangeDesktopPolicyDetails val: + :rtype: EventDetails """ return cls('device_approvals_change_desktop_policy_details', val) @@ -10446,8 +10586,8 @@ def device_approvals_change_mobile_policy_details(cls, val): ``device_approvals_change_mobile_policy_details`` tag with value ``val``. - :param team_log.DeviceApprovalsChangeMobilePolicyDetails val: - :rtype: team_log.EventDetails + :param DeviceApprovalsChangeMobilePolicyDetails val: + :rtype: EventDetails """ return cls('device_approvals_change_mobile_policy_details', val) @@ -10458,8 +10598,8 @@ def device_approvals_change_overage_action_details(cls, val): ``device_approvals_change_overage_action_details`` tag with value ``val``. - :param team_log.DeviceApprovalsChangeOverageActionDetails val: - :rtype: team_log.EventDetails + :param DeviceApprovalsChangeOverageActionDetails val: + :rtype: EventDetails """ return cls('device_approvals_change_overage_action_details', val) @@ -10470,8 +10610,8 @@ def device_approvals_change_unlink_action_details(cls, val): ``device_approvals_change_unlink_action_details`` tag with value ``val``. - :param team_log.DeviceApprovalsChangeUnlinkActionDetails val: - :rtype: team_log.EventDetails + :param DeviceApprovalsChangeUnlinkActionDetails val: + :rtype: EventDetails """ return cls('device_approvals_change_unlink_action_details', val) @@ -10481,8 +10621,8 @@ def directory_restrictions_add_members_details(cls, val): Create an instance of this class set to the ``directory_restrictions_add_members_details`` tag with value ``val``. - :param team_log.DirectoryRestrictionsAddMembersDetails val: - :rtype: team_log.EventDetails + :param DirectoryRestrictionsAddMembersDetails val: + :rtype: EventDetails """ return cls('directory_restrictions_add_members_details', val) @@ -10493,8 +10633,8 @@ def directory_restrictions_remove_members_details(cls, val): ``directory_restrictions_remove_members_details`` tag with value ``val``. - :param team_log.DirectoryRestrictionsRemoveMembersDetails val: - :rtype: team_log.EventDetails + :param DirectoryRestrictionsRemoveMembersDetails val: + :rtype: EventDetails """ return cls('directory_restrictions_remove_members_details', val) @@ -10504,8 +10644,8 @@ def emm_add_exception_details(cls, val): Create an instance of this class set to the ``emm_add_exception_details`` tag with value ``val``. - :param team_log.EmmAddExceptionDetails val: - :rtype: team_log.EventDetails + :param EmmAddExceptionDetails val: + :rtype: EventDetails """ return cls('emm_add_exception_details', val) @@ -10515,8 +10655,8 @@ def emm_change_policy_details(cls, val): Create an instance of this class set to the ``emm_change_policy_details`` tag with value ``val``. - :param team_log.EmmChangePolicyDetails val: - :rtype: team_log.EventDetails + :param EmmChangePolicyDetails val: + :rtype: EventDetails """ return cls('emm_change_policy_details', val) @@ -10526,8 +10666,8 @@ def emm_remove_exception_details(cls, val): Create an instance of this class set to the ``emm_remove_exception_details`` tag with value ``val``. - :param team_log.EmmRemoveExceptionDetails val: - :rtype: team_log.EventDetails + :param EmmRemoveExceptionDetails val: + :rtype: EventDetails """ return cls('emm_remove_exception_details', val) @@ -10538,8 +10678,8 @@ def extended_version_history_change_policy_details(cls, val): ``extended_version_history_change_policy_details`` tag with value ``val``. - :param team_log.ExtendedVersionHistoryChangePolicyDetails val: - :rtype: team_log.EventDetails + :param ExtendedVersionHistoryChangePolicyDetails val: + :rtype: EventDetails """ return cls('extended_version_history_change_policy_details', val) @@ -10549,8 +10689,8 @@ def file_comments_change_policy_details(cls, val): Create an instance of this class set to the ``file_comments_change_policy_details`` tag with value ``val``. - :param team_log.FileCommentsChangePolicyDetails val: - :rtype: team_log.EventDetails + :param FileCommentsChangePolicyDetails val: + :rtype: EventDetails """ return cls('file_comments_change_policy_details', val) @@ -10560,8 +10700,8 @@ def file_requests_change_policy_details(cls, val): Create an instance of this class set to the ``file_requests_change_policy_details`` tag with value ``val``. - :param team_log.FileRequestsChangePolicyDetails val: - :rtype: team_log.EventDetails + :param FileRequestsChangePolicyDetails val: + :rtype: EventDetails """ return cls('file_requests_change_policy_details', val) @@ -10571,8 +10711,8 @@ def file_requests_emails_enabled_details(cls, val): Create an instance of this class set to the ``file_requests_emails_enabled_details`` tag with value ``val``. - :param team_log.FileRequestsEmailsEnabledDetails val: - :rtype: team_log.EventDetails + :param FileRequestsEmailsEnabledDetails val: + :rtype: EventDetails """ return cls('file_requests_emails_enabled_details', val) @@ -10583,8 +10723,8 @@ def file_requests_emails_restricted_to_team_only_details(cls, val): ``file_requests_emails_restricted_to_team_only_details`` tag with value ``val``. - :param team_log.FileRequestsEmailsRestrictedToTeamOnlyDetails val: - :rtype: team_log.EventDetails + :param FileRequestsEmailsRestrictedToTeamOnlyDetails val: + :rtype: EventDetails """ return cls('file_requests_emails_restricted_to_team_only_details', val) @@ -10594,8 +10734,8 @@ def google_sso_change_policy_details(cls, val): Create an instance of this class set to the ``google_sso_change_policy_details`` tag with value ``val``. - :param team_log.GoogleSsoChangePolicyDetails val: - :rtype: team_log.EventDetails + :param GoogleSsoChangePolicyDetails val: + :rtype: EventDetails """ return cls('google_sso_change_policy_details', val) @@ -10605,19 +10745,30 @@ def group_user_management_change_policy_details(cls, val): Create an instance of this class set to the ``group_user_management_change_policy_details`` tag with value ``val``. - :param team_log.GroupUserManagementChangePolicyDetails val: - :rtype: team_log.EventDetails + :param GroupUserManagementChangePolicyDetails val: + :rtype: EventDetails """ return cls('group_user_management_change_policy_details', val) + @classmethod + def integration_policy_changed_details(cls, val): + """ + Create an instance of this class set to the + ``integration_policy_changed_details`` tag with value ``val``. + + :param IntegrationPolicyChangedDetails val: + :rtype: EventDetails + """ + return cls('integration_policy_changed_details', val) + @classmethod def member_requests_change_policy_details(cls, val): """ Create an instance of this class set to the ``member_requests_change_policy_details`` tag with value ``val``. - :param team_log.MemberRequestsChangePolicyDetails val: - :rtype: team_log.EventDetails + :param MemberRequestsChangePolicyDetails val: + :rtype: EventDetails """ return cls('member_requests_change_policy_details', val) @@ -10627,8 +10778,8 @@ def member_space_limits_add_exception_details(cls, val): Create an instance of this class set to the ``member_space_limits_add_exception_details`` tag with value ``val``. - :param team_log.MemberSpaceLimitsAddExceptionDetails val: - :rtype: team_log.EventDetails + :param MemberSpaceLimitsAddExceptionDetails val: + :rtype: EventDetails """ return cls('member_space_limits_add_exception_details', val) @@ -10639,8 +10790,8 @@ def member_space_limits_change_caps_type_policy_details(cls, val): ``member_space_limits_change_caps_type_policy_details`` tag with value ``val``. - :param team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails val: - :rtype: team_log.EventDetails + :param MemberSpaceLimitsChangeCapsTypePolicyDetails val: + :rtype: EventDetails """ return cls('member_space_limits_change_caps_type_policy_details', val) @@ -10650,8 +10801,8 @@ def member_space_limits_change_policy_details(cls, val): Create an instance of this class set to the ``member_space_limits_change_policy_details`` tag with value ``val``. - :param team_log.MemberSpaceLimitsChangePolicyDetails val: - :rtype: team_log.EventDetails + :param MemberSpaceLimitsChangePolicyDetails val: + :rtype: EventDetails """ return cls('member_space_limits_change_policy_details', val) @@ -10661,8 +10812,8 @@ def member_space_limits_remove_exception_details(cls, val): Create an instance of this class set to the ``member_space_limits_remove_exception_details`` tag with value ``val``. - :param team_log.MemberSpaceLimitsRemoveExceptionDetails val: - :rtype: team_log.EventDetails + :param MemberSpaceLimitsRemoveExceptionDetails val: + :rtype: EventDetails """ return cls('member_space_limits_remove_exception_details', val) @@ -10672,8 +10823,8 @@ def member_suggestions_change_policy_details(cls, val): Create an instance of this class set to the ``member_suggestions_change_policy_details`` tag with value ``val``. - :param team_log.MemberSuggestionsChangePolicyDetails val: - :rtype: team_log.EventDetails + :param MemberSuggestionsChangePolicyDetails val: + :rtype: EventDetails """ return cls('member_suggestions_change_policy_details', val) @@ -10683,8 +10834,8 @@ def microsoft_office_addin_change_policy_details(cls, val): Create an instance of this class set to the ``microsoft_office_addin_change_policy_details`` tag with value ``val``. - :param team_log.MicrosoftOfficeAddinChangePolicyDetails val: - :rtype: team_log.EventDetails + :param MicrosoftOfficeAddinChangePolicyDetails val: + :rtype: EventDetails """ return cls('microsoft_office_addin_change_policy_details', val) @@ -10694,8 +10845,8 @@ def network_control_change_policy_details(cls, val): Create an instance of this class set to the ``network_control_change_policy_details`` tag with value ``val``. - :param team_log.NetworkControlChangePolicyDetails val: - :rtype: team_log.EventDetails + :param NetworkControlChangePolicyDetails val: + :rtype: EventDetails """ return cls('network_control_change_policy_details', val) @@ -10705,8 +10856,8 @@ def paper_change_deployment_policy_details(cls, val): Create an instance of this class set to the ``paper_change_deployment_policy_details`` tag with value ``val``. - :param team_log.PaperChangeDeploymentPolicyDetails val: - :rtype: team_log.EventDetails + :param PaperChangeDeploymentPolicyDetails val: + :rtype: EventDetails """ return cls('paper_change_deployment_policy_details', val) @@ -10716,8 +10867,8 @@ def paper_change_member_link_policy_details(cls, val): Create an instance of this class set to the ``paper_change_member_link_policy_details`` tag with value ``val``. - :param team_log.PaperChangeMemberLinkPolicyDetails val: - :rtype: team_log.EventDetails + :param PaperChangeMemberLinkPolicyDetails val: + :rtype: EventDetails """ return cls('paper_change_member_link_policy_details', val) @@ -10727,8 +10878,8 @@ def paper_change_member_policy_details(cls, val): Create an instance of this class set to the ``paper_change_member_policy_details`` tag with value ``val``. - :param team_log.PaperChangeMemberPolicyDetails val: - :rtype: team_log.EventDetails + :param PaperChangeMemberPolicyDetails val: + :rtype: EventDetails """ return cls('paper_change_member_policy_details', val) @@ -10738,19 +10889,41 @@ def paper_change_policy_details(cls, val): Create an instance of this class set to the ``paper_change_policy_details`` tag with value ``val``. - :param team_log.PaperChangePolicyDetails val: - :rtype: team_log.EventDetails + :param PaperChangePolicyDetails val: + :rtype: EventDetails """ return cls('paper_change_policy_details', val) + @classmethod + def paper_default_folder_policy_changed_details(cls, val): + """ + Create an instance of this class set to the + ``paper_default_folder_policy_changed_details`` tag with value ``val``. + + :param PaperDefaultFolderPolicyChangedDetails val: + :rtype: EventDetails + """ + return cls('paper_default_folder_policy_changed_details', val) + + @classmethod + def paper_desktop_policy_changed_details(cls, val): + """ + Create an instance of this class set to the + ``paper_desktop_policy_changed_details`` tag with value ``val``. + + :param PaperDesktopPolicyChangedDetails val: + :rtype: EventDetails + """ + return cls('paper_desktop_policy_changed_details', val) + @classmethod def paper_enabled_users_group_addition_details(cls, val): """ Create an instance of this class set to the ``paper_enabled_users_group_addition_details`` tag with value ``val``. - :param team_log.PaperEnabledUsersGroupAdditionDetails val: - :rtype: team_log.EventDetails + :param PaperEnabledUsersGroupAdditionDetails val: + :rtype: EventDetails """ return cls('paper_enabled_users_group_addition_details', val) @@ -10760,8 +10933,8 @@ def paper_enabled_users_group_removal_details(cls, val): Create an instance of this class set to the ``paper_enabled_users_group_removal_details`` tag with value ``val``. - :param team_log.PaperEnabledUsersGroupRemovalDetails val: - :rtype: team_log.EventDetails + :param PaperEnabledUsersGroupRemovalDetails val: + :rtype: EventDetails """ return cls('paper_enabled_users_group_removal_details', val) @@ -10771,19 +10944,30 @@ def permanent_delete_change_policy_details(cls, val): Create an instance of this class set to the ``permanent_delete_change_policy_details`` tag with value ``val``. - :param team_log.PermanentDeleteChangePolicyDetails val: - :rtype: team_log.EventDetails + :param PermanentDeleteChangePolicyDetails val: + :rtype: EventDetails """ return cls('permanent_delete_change_policy_details', val) + @classmethod + def reseller_support_change_policy_details(cls, val): + """ + Create an instance of this class set to the + ``reseller_support_change_policy_details`` tag with value ``val``. + + :param ResellerSupportChangePolicyDetails val: + :rtype: EventDetails + """ + return cls('reseller_support_change_policy_details', val) + @classmethod def sharing_change_folder_join_policy_details(cls, val): """ Create an instance of this class set to the ``sharing_change_folder_join_policy_details`` tag with value ``val``. - :param team_log.SharingChangeFolderJoinPolicyDetails val: - :rtype: team_log.EventDetails + :param SharingChangeFolderJoinPolicyDetails val: + :rtype: EventDetails """ return cls('sharing_change_folder_join_policy_details', val) @@ -10793,8 +10977,8 @@ def sharing_change_link_policy_details(cls, val): Create an instance of this class set to the ``sharing_change_link_policy_details`` tag with value ``val``. - :param team_log.SharingChangeLinkPolicyDetails val: - :rtype: team_log.EventDetails + :param SharingChangeLinkPolicyDetails val: + :rtype: EventDetails """ return cls('sharing_change_link_policy_details', val) @@ -10804,8 +10988,8 @@ def sharing_change_member_policy_details(cls, val): Create an instance of this class set to the ``sharing_change_member_policy_details`` tag with value ``val``. - :param team_log.SharingChangeMemberPolicyDetails val: - :rtype: team_log.EventDetails + :param SharingChangeMemberPolicyDetails val: + :rtype: EventDetails """ return cls('sharing_change_member_policy_details', val) @@ -10815,8 +10999,8 @@ def showcase_change_download_policy_details(cls, val): Create an instance of this class set to the ``showcase_change_download_policy_details`` tag with value ``val``. - :param team_log.ShowcaseChangeDownloadPolicyDetails val: - :rtype: team_log.EventDetails + :param ShowcaseChangeDownloadPolicyDetails val: + :rtype: EventDetails """ return cls('showcase_change_download_policy_details', val) @@ -10826,8 +11010,8 @@ def showcase_change_enabled_policy_details(cls, val): Create an instance of this class set to the ``showcase_change_enabled_policy_details`` tag with value ``val``. - :param team_log.ShowcaseChangeEnabledPolicyDetails val: - :rtype: team_log.EventDetails + :param ShowcaseChangeEnabledPolicyDetails val: + :rtype: EventDetails """ return cls('showcase_change_enabled_policy_details', val) @@ -10838,8 +11022,8 @@ def showcase_change_external_sharing_policy_details(cls, val): ``showcase_change_external_sharing_policy_details`` tag with value ``val``. - :param team_log.ShowcaseChangeExternalSharingPolicyDetails val: - :rtype: team_log.EventDetails + :param ShowcaseChangeExternalSharingPolicyDetails val: + :rtype: EventDetails """ return cls('showcase_change_external_sharing_policy_details', val) @@ -10849,8 +11033,8 @@ def smart_sync_change_policy_details(cls, val): Create an instance of this class set to the ``smart_sync_change_policy_details`` tag with value ``val``. - :param team_log.SmartSyncChangePolicyDetails val: - :rtype: team_log.EventDetails + :param SmartSyncChangePolicyDetails val: + :rtype: EventDetails """ return cls('smart_sync_change_policy_details', val) @@ -10860,8 +11044,8 @@ def smart_sync_not_opt_out_details(cls, val): Create an instance of this class set to the ``smart_sync_not_opt_out_details`` tag with value ``val``. - :param team_log.SmartSyncNotOptOutDetails val: - :rtype: team_log.EventDetails + :param SmartSyncNotOptOutDetails val: + :rtype: EventDetails """ return cls('smart_sync_not_opt_out_details', val) @@ -10871,8 +11055,8 @@ def smart_sync_opt_out_details(cls, val): Create an instance of this class set to the ``smart_sync_opt_out_details`` tag with value ``val``. - :param team_log.SmartSyncOptOutDetails val: - :rtype: team_log.EventDetails + :param SmartSyncOptOutDetails val: + :rtype: EventDetails """ return cls('smart_sync_opt_out_details', val) @@ -10882,19 +11066,30 @@ def sso_change_policy_details(cls, val): Create an instance of this class set to the ``sso_change_policy_details`` tag with value ``val``. - :param team_log.SsoChangePolicyDetails val: - :rtype: team_log.EventDetails + :param SsoChangePolicyDetails val: + :rtype: EventDetails """ return cls('sso_change_policy_details', val) + @classmethod + def team_extensions_policy_changed_details(cls, val): + """ + Create an instance of this class set to the + ``team_extensions_policy_changed_details`` tag with value ``val``. + + :param TeamExtensionsPolicyChangedDetails val: + :rtype: EventDetails + """ + return cls('team_extensions_policy_changed_details', val) + @classmethod def team_selective_sync_policy_changed_details(cls, val): """ Create an instance of this class set to the ``team_selective_sync_policy_changed_details`` tag with value ``val``. - :param team_log.TeamSelectiveSyncPolicyChangedDetails val: - :rtype: team_log.EventDetails + :param TeamSelectiveSyncPolicyChangedDetails val: + :rtype: EventDetails """ return cls('team_selective_sync_policy_changed_details', val) @@ -10904,8 +11099,8 @@ def tfa_change_policy_details(cls, val): Create an instance of this class set to the ``tfa_change_policy_details`` tag with value ``val``. - :param team_log.TfaChangePolicyDetails val: - :rtype: team_log.EventDetails + :param TfaChangePolicyDetails val: + :rtype: EventDetails """ return cls('tfa_change_policy_details', val) @@ -10915,8 +11110,8 @@ def two_account_change_policy_details(cls, val): Create an instance of this class set to the ``two_account_change_policy_details`` tag with value ``val``. - :param team_log.TwoAccountChangePolicyDetails val: - :rtype: team_log.EventDetails + :param TwoAccountChangePolicyDetails val: + :rtype: EventDetails """ return cls('two_account_change_policy_details', val) @@ -10926,8 +11121,8 @@ def viewer_info_policy_changed_details(cls, val): Create an instance of this class set to the ``viewer_info_policy_changed_details`` tag with value ``val``. - :param team_log.ViewerInfoPolicyChangedDetails val: - :rtype: team_log.EventDetails + :param ViewerInfoPolicyChangedDetails val: + :rtype: EventDetails """ return cls('viewer_info_policy_changed_details', val) @@ -10938,8 +11133,8 @@ def web_sessions_change_fixed_length_policy_details(cls, val): ``web_sessions_change_fixed_length_policy_details`` tag with value ``val``. - :param team_log.WebSessionsChangeFixedLengthPolicyDetails val: - :rtype: team_log.EventDetails + :param WebSessionsChangeFixedLengthPolicyDetails val: + :rtype: EventDetails """ return cls('web_sessions_change_fixed_length_policy_details', val) @@ -10950,8 +11145,8 @@ def web_sessions_change_idle_length_policy_details(cls, val): ``web_sessions_change_idle_length_policy_details`` tag with value ``val``. - :param team_log.WebSessionsChangeIdleLengthPolicyDetails val: - :rtype: team_log.EventDetails + :param WebSessionsChangeIdleLengthPolicyDetails val: + :rtype: EventDetails """ return cls('web_sessions_change_idle_length_policy_details', val) @@ -10961,8 +11156,8 @@ def team_merge_from_details(cls, val): Create an instance of this class set to the ``team_merge_from_details`` tag with value ``val``. - :param team_log.TeamMergeFromDetails val: - :rtype: team_log.EventDetails + :param TeamMergeFromDetails val: + :rtype: EventDetails """ return cls('team_merge_from_details', val) @@ -10972,8 +11167,8 @@ def team_merge_to_details(cls, val): Create an instance of this class set to the ``team_merge_to_details`` tag with value ``val``. - :param team_log.TeamMergeToDetails val: - :rtype: team_log.EventDetails + :param TeamMergeToDetails val: + :rtype: EventDetails """ return cls('team_merge_to_details', val) @@ -10983,8 +11178,8 @@ def team_profile_add_logo_details(cls, val): Create an instance of this class set to the ``team_profile_add_logo_details`` tag with value ``val``. - :param team_log.TeamProfileAddLogoDetails val: - :rtype: team_log.EventDetails + :param TeamProfileAddLogoDetails val: + :rtype: EventDetails """ return cls('team_profile_add_logo_details', val) @@ -10994,8 +11189,8 @@ def team_profile_change_default_language_details(cls, val): Create an instance of this class set to the ``team_profile_change_default_language_details`` tag with value ``val``. - :param team_log.TeamProfileChangeDefaultLanguageDetails val: - :rtype: team_log.EventDetails + :param TeamProfileChangeDefaultLanguageDetails val: + :rtype: EventDetails """ return cls('team_profile_change_default_language_details', val) @@ -11005,8 +11200,8 @@ def team_profile_change_logo_details(cls, val): Create an instance of this class set to the ``team_profile_change_logo_details`` tag with value ``val``. - :param team_log.TeamProfileChangeLogoDetails val: - :rtype: team_log.EventDetails + :param TeamProfileChangeLogoDetails val: + :rtype: EventDetails """ return cls('team_profile_change_logo_details', val) @@ -11016,8 +11211,8 @@ def team_profile_change_name_details(cls, val): Create an instance of this class set to the ``team_profile_change_name_details`` tag with value ``val``. - :param team_log.TeamProfileChangeNameDetails val: - :rtype: team_log.EventDetails + :param TeamProfileChangeNameDetails val: + :rtype: EventDetails """ return cls('team_profile_change_name_details', val) @@ -11027,8 +11222,8 @@ def team_profile_remove_logo_details(cls, val): Create an instance of this class set to the ``team_profile_remove_logo_details`` tag with value ``val``. - :param team_log.TeamProfileRemoveLogoDetails val: - :rtype: team_log.EventDetails + :param TeamProfileRemoveLogoDetails val: + :rtype: EventDetails """ return cls('team_profile_remove_logo_details', val) @@ -11038,8 +11233,8 @@ def tfa_add_backup_phone_details(cls, val): Create an instance of this class set to the ``tfa_add_backup_phone_details`` tag with value ``val``. - :param team_log.TfaAddBackupPhoneDetails val: - :rtype: team_log.EventDetails + :param TfaAddBackupPhoneDetails val: + :rtype: EventDetails """ return cls('tfa_add_backup_phone_details', val) @@ -11049,8 +11244,8 @@ def tfa_add_security_key_details(cls, val): Create an instance of this class set to the ``tfa_add_security_key_details`` tag with value ``val``. - :param team_log.TfaAddSecurityKeyDetails val: - :rtype: team_log.EventDetails + :param TfaAddSecurityKeyDetails val: + :rtype: EventDetails """ return cls('tfa_add_security_key_details', val) @@ -11060,8 +11255,8 @@ def tfa_change_backup_phone_details(cls, val): Create an instance of this class set to the ``tfa_change_backup_phone_details`` tag with value ``val``. - :param team_log.TfaChangeBackupPhoneDetails val: - :rtype: team_log.EventDetails + :param TfaChangeBackupPhoneDetails val: + :rtype: EventDetails """ return cls('tfa_change_backup_phone_details', val) @@ -11071,8 +11266,8 @@ def tfa_change_status_details(cls, val): Create an instance of this class set to the ``tfa_change_status_details`` tag with value ``val``. - :param team_log.TfaChangeStatusDetails val: - :rtype: team_log.EventDetails + :param TfaChangeStatusDetails val: + :rtype: EventDetails """ return cls('tfa_change_status_details', val) @@ -11082,8 +11277,8 @@ def tfa_remove_backup_phone_details(cls, val): Create an instance of this class set to the ``tfa_remove_backup_phone_details`` tag with value ``val``. - :param team_log.TfaRemoveBackupPhoneDetails val: - :rtype: team_log.EventDetails + :param TfaRemoveBackupPhoneDetails val: + :rtype: EventDetails """ return cls('tfa_remove_backup_phone_details', val) @@ -11093,8 +11288,8 @@ def tfa_remove_security_key_details(cls, val): Create an instance of this class set to the ``tfa_remove_security_key_details`` tag with value ``val``. - :param team_log.TfaRemoveSecurityKeyDetails val: - :rtype: team_log.EventDetails + :param TfaRemoveSecurityKeyDetails val: + :rtype: EventDetails """ return cls('tfa_remove_security_key_details', val) @@ -11104,19 +11299,240 @@ def tfa_reset_details(cls, val): Create an instance of this class set to the ``tfa_reset_details`` tag with value ``val``. - :param team_log.TfaResetDetails val: - :rtype: team_log.EventDetails + :param TfaResetDetails val: + :rtype: EventDetails """ return cls('tfa_reset_details', val) + @classmethod + def guest_admin_change_status_details(cls, val): + """ + Create an instance of this class set to the + ``guest_admin_change_status_details`` tag with value ``val``. + + :param GuestAdminChangeStatusDetails val: + :rtype: EventDetails + """ + return cls('guest_admin_change_status_details', val) + + @classmethod + def team_merge_request_accepted_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_accepted_details`` tag with value ``val``. + + :param TeamMergeRequestAcceptedDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_accepted_details', val) + + @classmethod + def team_merge_request_accepted_shown_to_primary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_accepted_shown_to_primary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestAcceptedShownToPrimaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_accepted_shown_to_primary_team_details', val) + + @classmethod + def team_merge_request_accepted_shown_to_secondary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_accepted_shown_to_secondary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestAcceptedShownToSecondaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_accepted_shown_to_secondary_team_details', val) + + @classmethod + def team_merge_request_auto_canceled_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_auto_canceled_details`` tag with value ``val``. + + :param TeamMergeRequestAutoCanceledDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_auto_canceled_details', val) + + @classmethod + def team_merge_request_canceled_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_canceled_details`` tag with value ``val``. + + :param TeamMergeRequestCanceledDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_canceled_details', val) + + @classmethod + def team_merge_request_canceled_shown_to_primary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_canceled_shown_to_primary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestCanceledShownToPrimaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_canceled_shown_to_primary_team_details', val) + + @classmethod + def team_merge_request_canceled_shown_to_secondary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_canceled_shown_to_secondary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestCanceledShownToSecondaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_canceled_shown_to_secondary_team_details', val) + + @classmethod + def team_merge_request_expired_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_expired_details`` tag with value ``val``. + + :param TeamMergeRequestExpiredDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_expired_details', val) + + @classmethod + def team_merge_request_expired_shown_to_primary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_expired_shown_to_primary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestExpiredShownToPrimaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_expired_shown_to_primary_team_details', val) + + @classmethod + def team_merge_request_expired_shown_to_secondary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_expired_shown_to_secondary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestExpiredShownToSecondaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_expired_shown_to_secondary_team_details', val) + + @classmethod + def team_merge_request_rejected_shown_to_primary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_rejected_shown_to_primary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestRejectedShownToPrimaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_rejected_shown_to_primary_team_details', val) + + @classmethod + def team_merge_request_rejected_shown_to_secondary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_rejected_shown_to_secondary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestRejectedShownToSecondaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_rejected_shown_to_secondary_team_details', val) + + @classmethod + def team_merge_request_reminder_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_reminder_details`` tag with value ``val``. + + :param TeamMergeRequestReminderDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_reminder_details', val) + + @classmethod + def team_merge_request_reminder_shown_to_primary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_reminder_shown_to_primary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestReminderShownToPrimaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_reminder_shown_to_primary_team_details', val) + + @classmethod + def team_merge_request_reminder_shown_to_secondary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_reminder_shown_to_secondary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestReminderShownToSecondaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_reminder_shown_to_secondary_team_details', val) + + @classmethod + def team_merge_request_revoked_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_revoked_details`` tag with value ``val``. + + :param TeamMergeRequestRevokedDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_revoked_details', val) + + @classmethod + def team_merge_request_sent_shown_to_primary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_sent_shown_to_primary_team_details`` tag with value + ``val``. + + :param TeamMergeRequestSentShownToPrimaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_sent_shown_to_primary_team_details', val) + + @classmethod + def team_merge_request_sent_shown_to_secondary_team_details(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_sent_shown_to_secondary_team_details`` tag with + value ``val``. + + :param TeamMergeRequestSentShownToSecondaryTeamDetails val: + :rtype: EventDetails + """ + return cls('team_merge_request_sent_shown_to_secondary_team_details', val) + @classmethod def missing_details(cls, val): """ Create an instance of this class set to the ``missing_details`` tag with value ``val``. - :param team_log.MissingDetails val: - :rtype: team_log.EventDetails + :param MissingDetails val: + :rtype: EventDetails """ return cls('missing_details', val) @@ -11152,6 +11568,22 @@ def is_app_unlink_user_details(self): """ return self._tag == 'app_unlink_user_details' + def is_integration_connected_details(self): + """ + Check if the union tag is ``integration_connected_details``. + + :rtype: bool + """ + return self._tag == 'integration_connected_details' + + def is_integration_disconnected_details(self): + """ + Check if the union tag is ``integration_disconnected_details``. + + :rtype: bool + """ + return self._tag == 'integration_disconnected_details' + def is_file_add_comment_details(self): """ Check if the union tag is ``file_add_comment_details``. @@ -11568,6 +12000,14 @@ def is_file_request_create_details(self): """ return self._tag == 'file_request_create_details' + def is_file_request_delete_details(self): + """ + Check if the union tag is ``file_request_delete_details``. + + :rtype: bool + """ + return self._tag == 'file_request_delete_details' + def is_file_request_receive_file_details(self): """ Check if the union tag is ``file_request_receive_file_details``. @@ -11688,6 +12128,22 @@ def is_emm_error_details(self): """ return self._tag == 'emm_error_details' + def is_guest_admin_signed_in_via_trusted_teams_details(self): + """ + Check if the union tag is ``guest_admin_signed_in_via_trusted_teams_details``. + + :rtype: bool + """ + return self._tag == 'guest_admin_signed_in_via_trusted_teams_details' + + def is_guest_admin_signed_out_via_trusted_teams_details(self): + """ + Check if the union tag is ``guest_admin_signed_out_via_trusted_teams_details``. + + :rtype: bool + """ + return self._tag == 'guest_admin_signed_out_via_trusted_teams_details' + def is_login_fail_details(self): """ Check if the union tag is ``login_fail_details``. @@ -11752,6 +12208,14 @@ def is_sso_error_details(self): """ return self._tag == 'sso_error_details' + def is_member_add_external_id_details(self): + """ + Check if the union tag is ``member_add_external_id_details``. + + :rtype: bool + """ + return self._tag == 'member_add_external_id_details' + def is_member_add_name_details(self): """ Check if the union tag is ``member_add_name_details``. @@ -11776,6 +12240,14 @@ def is_member_change_email_details(self): """ return self._tag == 'member_change_email_details' + def is_member_change_external_id_details(self): + """ + Check if the union tag is ``member_change_external_id_details``. + + :rtype: bool + """ + return self._tag == 'member_change_external_id_details' + def is_member_change_membership_type_details(self): """ Check if the union tag is ``member_change_membership_type_details``. @@ -11816,6 +12288,14 @@ def is_member_permanently_delete_account_contents_details(self): """ return self._tag == 'member_permanently_delete_account_contents_details' + def is_member_remove_external_id_details(self): + """ + Check if the union tag is ``member_remove_external_id_details``. + + :rtype: bool + """ + return self._tag == 'member_remove_external_id_details' + def is_member_space_limits_add_custom_quota_details(self): """ Check if the union tag is ``member_space_limits_add_custom_quota_details``. @@ -12168,6 +12648,30 @@ def is_paper_folder_team_invite_details(self): """ return self._tag == 'paper_folder_team_invite_details' + def is_paper_published_link_create_details(self): + """ + Check if the union tag is ``paper_published_link_create_details``. + + :rtype: bool + """ + return self._tag == 'paper_published_link_create_details' + + def is_paper_published_link_disabled_details(self): + """ + Check if the union tag is ``paper_published_link_disabled_details``. + + :rtype: bool + """ + return self._tag == 'paper_published_link_disabled_details' + + def is_paper_published_link_view_details(self): + """ + Check if the union tag is ``paper_published_link_view_details``. + + :rtype: bool + """ + return self._tag == 'paper_published_link_view_details' + def is_password_change_details(self): """ Check if the union tag is ``password_change_details``. @@ -12240,6 +12744,14 @@ def is_team_activity_create_report_details(self): """ return self._tag == 'team_activity_create_report_details' + def is_team_activity_create_report_fail_details(self): + """ + Check if the union tag is ``team_activity_create_report_fail_details``. + + :rtype: bool + """ + return self._tag == 'team_activity_create_report_fail_details' + def is_collection_share_details(self): """ Check if the union tag is ``collection_share_details``. @@ -13248,6 +13760,14 @@ def is_group_user_management_change_policy_details(self): """ return self._tag == 'group_user_management_change_policy_details' + def is_integration_policy_changed_details(self): + """ + Check if the union tag is ``integration_policy_changed_details``. + + :rtype: bool + """ + return self._tag == 'integration_policy_changed_details' + def is_member_requests_change_policy_details(self): """ Check if the union tag is ``member_requests_change_policy_details``. @@ -13344,6 +13864,22 @@ def is_paper_change_policy_details(self): """ return self._tag == 'paper_change_policy_details' + def is_paper_default_folder_policy_changed_details(self): + """ + Check if the union tag is ``paper_default_folder_policy_changed_details``. + + :rtype: bool + """ + return self._tag == 'paper_default_folder_policy_changed_details' + + def is_paper_desktop_policy_changed_details(self): + """ + Check if the union tag is ``paper_desktop_policy_changed_details``. + + :rtype: bool + """ + return self._tag == 'paper_desktop_policy_changed_details' + def is_paper_enabled_users_group_addition_details(self): """ Check if the union tag is ``paper_enabled_users_group_addition_details``. @@ -13368,6 +13904,14 @@ def is_permanent_delete_change_policy_details(self): """ return self._tag == 'permanent_delete_change_policy_details' + def is_reseller_support_change_policy_details(self): + """ + Check if the union tag is ``reseller_support_change_policy_details``. + + :rtype: bool + """ + return self._tag == 'reseller_support_change_policy_details' + def is_sharing_change_folder_join_policy_details(self): """ Check if the union tag is ``sharing_change_folder_join_policy_details``. @@ -13448,6 +13992,14 @@ def is_sso_change_policy_details(self): """ return self._tag == 'sso_change_policy_details' + def is_team_extensions_policy_changed_details(self): + """ + Check if the union tag is ``team_extensions_policy_changed_details``. + + :rtype: bool + """ + return self._tag == 'team_extensions_policy_changed_details' + def is_team_selective_sync_policy_changed_details(self): """ Check if the union tag is ``team_selective_sync_policy_changed_details``. @@ -13608,6 +14160,158 @@ def is_tfa_reset_details(self): """ return self._tag == 'tfa_reset_details' + def is_guest_admin_change_status_details(self): + """ + Check if the union tag is ``guest_admin_change_status_details``. + + :rtype: bool + """ + return self._tag == 'guest_admin_change_status_details' + + def is_team_merge_request_accepted_details(self): + """ + Check if the union tag is ``team_merge_request_accepted_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_accepted_details' + + def is_team_merge_request_accepted_shown_to_primary_team_details(self): + """ + Check if the union tag is ``team_merge_request_accepted_shown_to_primary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_accepted_shown_to_primary_team_details' + + def is_team_merge_request_accepted_shown_to_secondary_team_details(self): + """ + Check if the union tag is ``team_merge_request_accepted_shown_to_secondary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_accepted_shown_to_secondary_team_details' + + def is_team_merge_request_auto_canceled_details(self): + """ + Check if the union tag is ``team_merge_request_auto_canceled_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_auto_canceled_details' + + def is_team_merge_request_canceled_details(self): + """ + Check if the union tag is ``team_merge_request_canceled_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_canceled_details' + + def is_team_merge_request_canceled_shown_to_primary_team_details(self): + """ + Check if the union tag is ``team_merge_request_canceled_shown_to_primary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_canceled_shown_to_primary_team_details' + + def is_team_merge_request_canceled_shown_to_secondary_team_details(self): + """ + Check if the union tag is ``team_merge_request_canceled_shown_to_secondary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_canceled_shown_to_secondary_team_details' + + def is_team_merge_request_expired_details(self): + """ + Check if the union tag is ``team_merge_request_expired_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_expired_details' + + def is_team_merge_request_expired_shown_to_primary_team_details(self): + """ + Check if the union tag is ``team_merge_request_expired_shown_to_primary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_expired_shown_to_primary_team_details' + + def is_team_merge_request_expired_shown_to_secondary_team_details(self): + """ + Check if the union tag is ``team_merge_request_expired_shown_to_secondary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_expired_shown_to_secondary_team_details' + + def is_team_merge_request_rejected_shown_to_primary_team_details(self): + """ + Check if the union tag is ``team_merge_request_rejected_shown_to_primary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_rejected_shown_to_primary_team_details' + + def is_team_merge_request_rejected_shown_to_secondary_team_details(self): + """ + Check if the union tag is ``team_merge_request_rejected_shown_to_secondary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_rejected_shown_to_secondary_team_details' + + def is_team_merge_request_reminder_details(self): + """ + Check if the union tag is ``team_merge_request_reminder_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_reminder_details' + + def is_team_merge_request_reminder_shown_to_primary_team_details(self): + """ + Check if the union tag is ``team_merge_request_reminder_shown_to_primary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_reminder_shown_to_primary_team_details' + + def is_team_merge_request_reminder_shown_to_secondary_team_details(self): + """ + Check if the union tag is ``team_merge_request_reminder_shown_to_secondary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_reminder_shown_to_secondary_team_details' + + def is_team_merge_request_revoked_details(self): + """ + Check if the union tag is ``team_merge_request_revoked_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_revoked_details' + + def is_team_merge_request_sent_shown_to_primary_team_details(self): + """ + Check if the union tag is ``team_merge_request_sent_shown_to_primary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_sent_shown_to_primary_team_details' + + def is_team_merge_request_sent_shown_to_secondary_team_details(self): + """ + Check if the union tag is ``team_merge_request_sent_shown_to_secondary_team_details``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_sent_shown_to_secondary_team_details' + def is_missing_details(self): """ Check if the union tag is ``missing_details``. @@ -13628,7 +14332,7 @@ def get_app_link_team_details(self): """ Only call this if :meth:`is_app_link_team_details` is true. - :rtype: team_log.AppLinkTeamDetails + :rtype: AppLinkTeamDetails """ if not self.is_app_link_team_details(): raise AttributeError("tag 'app_link_team_details' not set") @@ -13638,7 +14342,7 @@ def get_app_link_user_details(self): """ Only call this if :meth:`is_app_link_user_details` is true. - :rtype: team_log.AppLinkUserDetails + :rtype: AppLinkUserDetails """ if not self.is_app_link_user_details(): raise AttributeError("tag 'app_link_user_details' not set") @@ -13648,7 +14352,7 @@ def get_app_unlink_team_details(self): """ Only call this if :meth:`is_app_unlink_team_details` is true. - :rtype: team_log.AppUnlinkTeamDetails + :rtype: AppUnlinkTeamDetails """ if not self.is_app_unlink_team_details(): raise AttributeError("tag 'app_unlink_team_details' not set") @@ -13658,17 +14362,37 @@ def get_app_unlink_user_details(self): """ Only call this if :meth:`is_app_unlink_user_details` is true. - :rtype: team_log.AppUnlinkUserDetails + :rtype: AppUnlinkUserDetails """ if not self.is_app_unlink_user_details(): raise AttributeError("tag 'app_unlink_user_details' not set") return self._value + def get_integration_connected_details(self): + """ + Only call this if :meth:`is_integration_connected_details` is true. + + :rtype: IntegrationConnectedDetails + """ + if not self.is_integration_connected_details(): + raise AttributeError("tag 'integration_connected_details' not set") + return self._value + + def get_integration_disconnected_details(self): + """ + Only call this if :meth:`is_integration_disconnected_details` is true. + + :rtype: IntegrationDisconnectedDetails + """ + if not self.is_integration_disconnected_details(): + raise AttributeError("tag 'integration_disconnected_details' not set") + return self._value + def get_file_add_comment_details(self): """ Only call this if :meth:`is_file_add_comment_details` is true. - :rtype: team_log.FileAddCommentDetails + :rtype: FileAddCommentDetails """ if not self.is_file_add_comment_details(): raise AttributeError("tag 'file_add_comment_details' not set") @@ -13678,7 +14402,7 @@ def get_file_change_comment_subscription_details(self): """ Only call this if :meth:`is_file_change_comment_subscription_details` is true. - :rtype: team_log.FileChangeCommentSubscriptionDetails + :rtype: FileChangeCommentSubscriptionDetails """ if not self.is_file_change_comment_subscription_details(): raise AttributeError("tag 'file_change_comment_subscription_details' not set") @@ -13688,7 +14412,7 @@ def get_file_delete_comment_details(self): """ Only call this if :meth:`is_file_delete_comment_details` is true. - :rtype: team_log.FileDeleteCommentDetails + :rtype: FileDeleteCommentDetails """ if not self.is_file_delete_comment_details(): raise AttributeError("tag 'file_delete_comment_details' not set") @@ -13698,7 +14422,7 @@ def get_file_edit_comment_details(self): """ Only call this if :meth:`is_file_edit_comment_details` is true. - :rtype: team_log.FileEditCommentDetails + :rtype: FileEditCommentDetails """ if not self.is_file_edit_comment_details(): raise AttributeError("tag 'file_edit_comment_details' not set") @@ -13708,7 +14432,7 @@ def get_file_like_comment_details(self): """ Only call this if :meth:`is_file_like_comment_details` is true. - :rtype: team_log.FileLikeCommentDetails + :rtype: FileLikeCommentDetails """ if not self.is_file_like_comment_details(): raise AttributeError("tag 'file_like_comment_details' not set") @@ -13718,7 +14442,7 @@ def get_file_resolve_comment_details(self): """ Only call this if :meth:`is_file_resolve_comment_details` is true. - :rtype: team_log.FileResolveCommentDetails + :rtype: FileResolveCommentDetails """ if not self.is_file_resolve_comment_details(): raise AttributeError("tag 'file_resolve_comment_details' not set") @@ -13728,7 +14452,7 @@ def get_file_unlike_comment_details(self): """ Only call this if :meth:`is_file_unlike_comment_details` is true. - :rtype: team_log.FileUnlikeCommentDetails + :rtype: FileUnlikeCommentDetails """ if not self.is_file_unlike_comment_details(): raise AttributeError("tag 'file_unlike_comment_details' not set") @@ -13738,7 +14462,7 @@ def get_file_unresolve_comment_details(self): """ Only call this if :meth:`is_file_unresolve_comment_details` is true. - :rtype: team_log.FileUnresolveCommentDetails + :rtype: FileUnresolveCommentDetails """ if not self.is_file_unresolve_comment_details(): raise AttributeError("tag 'file_unresolve_comment_details' not set") @@ -13748,7 +14472,7 @@ def get_device_change_ip_desktop_details(self): """ Only call this if :meth:`is_device_change_ip_desktop_details` is true. - :rtype: team_log.DeviceChangeIpDesktopDetails + :rtype: DeviceChangeIpDesktopDetails """ if not self.is_device_change_ip_desktop_details(): raise AttributeError("tag 'device_change_ip_desktop_details' not set") @@ -13758,7 +14482,7 @@ def get_device_change_ip_mobile_details(self): """ Only call this if :meth:`is_device_change_ip_mobile_details` is true. - :rtype: team_log.DeviceChangeIpMobileDetails + :rtype: DeviceChangeIpMobileDetails """ if not self.is_device_change_ip_mobile_details(): raise AttributeError("tag 'device_change_ip_mobile_details' not set") @@ -13768,7 +14492,7 @@ def get_device_change_ip_web_details(self): """ Only call this if :meth:`is_device_change_ip_web_details` is true. - :rtype: team_log.DeviceChangeIpWebDetails + :rtype: DeviceChangeIpWebDetails """ if not self.is_device_change_ip_web_details(): raise AttributeError("tag 'device_change_ip_web_details' not set") @@ -13778,7 +14502,7 @@ def get_device_delete_on_unlink_fail_details(self): """ Only call this if :meth:`is_device_delete_on_unlink_fail_details` is true. - :rtype: team_log.DeviceDeleteOnUnlinkFailDetails + :rtype: DeviceDeleteOnUnlinkFailDetails """ if not self.is_device_delete_on_unlink_fail_details(): raise AttributeError("tag 'device_delete_on_unlink_fail_details' not set") @@ -13788,7 +14512,7 @@ def get_device_delete_on_unlink_success_details(self): """ Only call this if :meth:`is_device_delete_on_unlink_success_details` is true. - :rtype: team_log.DeviceDeleteOnUnlinkSuccessDetails + :rtype: DeviceDeleteOnUnlinkSuccessDetails """ if not self.is_device_delete_on_unlink_success_details(): raise AttributeError("tag 'device_delete_on_unlink_success_details' not set") @@ -13798,7 +14522,7 @@ def get_device_link_fail_details(self): """ Only call this if :meth:`is_device_link_fail_details` is true. - :rtype: team_log.DeviceLinkFailDetails + :rtype: DeviceLinkFailDetails """ if not self.is_device_link_fail_details(): raise AttributeError("tag 'device_link_fail_details' not set") @@ -13808,7 +14532,7 @@ def get_device_link_success_details(self): """ Only call this if :meth:`is_device_link_success_details` is true. - :rtype: team_log.DeviceLinkSuccessDetails + :rtype: DeviceLinkSuccessDetails """ if not self.is_device_link_success_details(): raise AttributeError("tag 'device_link_success_details' not set") @@ -13818,7 +14542,7 @@ def get_device_management_disabled_details(self): """ Only call this if :meth:`is_device_management_disabled_details` is true. - :rtype: team_log.DeviceManagementDisabledDetails + :rtype: DeviceManagementDisabledDetails """ if not self.is_device_management_disabled_details(): raise AttributeError("tag 'device_management_disabled_details' not set") @@ -13828,7 +14552,7 @@ def get_device_management_enabled_details(self): """ Only call this if :meth:`is_device_management_enabled_details` is true. - :rtype: team_log.DeviceManagementEnabledDetails + :rtype: DeviceManagementEnabledDetails """ if not self.is_device_management_enabled_details(): raise AttributeError("tag 'device_management_enabled_details' not set") @@ -13838,7 +14562,7 @@ def get_device_unlink_details(self): """ Only call this if :meth:`is_device_unlink_details` is true. - :rtype: team_log.DeviceUnlinkDetails + :rtype: DeviceUnlinkDetails """ if not self.is_device_unlink_details(): raise AttributeError("tag 'device_unlink_details' not set") @@ -13848,7 +14572,7 @@ def get_emm_refresh_auth_token_details(self): """ Only call this if :meth:`is_emm_refresh_auth_token_details` is true. - :rtype: team_log.EmmRefreshAuthTokenDetails + :rtype: EmmRefreshAuthTokenDetails """ if not self.is_emm_refresh_auth_token_details(): raise AttributeError("tag 'emm_refresh_auth_token_details' not set") @@ -13858,7 +14582,7 @@ def get_account_capture_change_availability_details(self): """ Only call this if :meth:`is_account_capture_change_availability_details` is true. - :rtype: team_log.AccountCaptureChangeAvailabilityDetails + :rtype: AccountCaptureChangeAvailabilityDetails """ if not self.is_account_capture_change_availability_details(): raise AttributeError("tag 'account_capture_change_availability_details' not set") @@ -13868,7 +14592,7 @@ def get_account_capture_migrate_account_details(self): """ Only call this if :meth:`is_account_capture_migrate_account_details` is true. - :rtype: team_log.AccountCaptureMigrateAccountDetails + :rtype: AccountCaptureMigrateAccountDetails """ if not self.is_account_capture_migrate_account_details(): raise AttributeError("tag 'account_capture_migrate_account_details' not set") @@ -13878,7 +14602,7 @@ def get_account_capture_notification_emails_sent_details(self): """ Only call this if :meth:`is_account_capture_notification_emails_sent_details` is true. - :rtype: team_log.AccountCaptureNotificationEmailsSentDetails + :rtype: AccountCaptureNotificationEmailsSentDetails """ if not self.is_account_capture_notification_emails_sent_details(): raise AttributeError("tag 'account_capture_notification_emails_sent_details' not set") @@ -13888,7 +14612,7 @@ def get_account_capture_relinquish_account_details(self): """ Only call this if :meth:`is_account_capture_relinquish_account_details` is true. - :rtype: team_log.AccountCaptureRelinquishAccountDetails + :rtype: AccountCaptureRelinquishAccountDetails """ if not self.is_account_capture_relinquish_account_details(): raise AttributeError("tag 'account_capture_relinquish_account_details' not set") @@ -13898,7 +14622,7 @@ def get_disabled_domain_invites_details(self): """ Only call this if :meth:`is_disabled_domain_invites_details` is true. - :rtype: team_log.DisabledDomainInvitesDetails + :rtype: DisabledDomainInvitesDetails """ if not self.is_disabled_domain_invites_details(): raise AttributeError("tag 'disabled_domain_invites_details' not set") @@ -13908,7 +14632,7 @@ def get_domain_invites_approve_request_to_join_team_details(self): """ Only call this if :meth:`is_domain_invites_approve_request_to_join_team_details` is true. - :rtype: team_log.DomainInvitesApproveRequestToJoinTeamDetails + :rtype: DomainInvitesApproveRequestToJoinTeamDetails """ if not self.is_domain_invites_approve_request_to_join_team_details(): raise AttributeError("tag 'domain_invites_approve_request_to_join_team_details' not set") @@ -13918,7 +14642,7 @@ def get_domain_invites_decline_request_to_join_team_details(self): """ Only call this if :meth:`is_domain_invites_decline_request_to_join_team_details` is true. - :rtype: team_log.DomainInvitesDeclineRequestToJoinTeamDetails + :rtype: DomainInvitesDeclineRequestToJoinTeamDetails """ if not self.is_domain_invites_decline_request_to_join_team_details(): raise AttributeError("tag 'domain_invites_decline_request_to_join_team_details' not set") @@ -13928,7 +14652,7 @@ def get_domain_invites_email_existing_users_details(self): """ Only call this if :meth:`is_domain_invites_email_existing_users_details` is true. - :rtype: team_log.DomainInvitesEmailExistingUsersDetails + :rtype: DomainInvitesEmailExistingUsersDetails """ if not self.is_domain_invites_email_existing_users_details(): raise AttributeError("tag 'domain_invites_email_existing_users_details' not set") @@ -13938,7 +14662,7 @@ def get_domain_invites_request_to_join_team_details(self): """ Only call this if :meth:`is_domain_invites_request_to_join_team_details` is true. - :rtype: team_log.DomainInvitesRequestToJoinTeamDetails + :rtype: DomainInvitesRequestToJoinTeamDetails """ if not self.is_domain_invites_request_to_join_team_details(): raise AttributeError("tag 'domain_invites_request_to_join_team_details' not set") @@ -13948,7 +14672,7 @@ def get_domain_invites_set_invite_new_user_pref_to_no_details(self): """ Only call this if :meth:`is_domain_invites_set_invite_new_user_pref_to_no_details` is true. - :rtype: team_log.DomainInvitesSetInviteNewUserPrefToNoDetails + :rtype: DomainInvitesSetInviteNewUserPrefToNoDetails """ if not self.is_domain_invites_set_invite_new_user_pref_to_no_details(): raise AttributeError("tag 'domain_invites_set_invite_new_user_pref_to_no_details' not set") @@ -13958,7 +14682,7 @@ def get_domain_invites_set_invite_new_user_pref_to_yes_details(self): """ Only call this if :meth:`is_domain_invites_set_invite_new_user_pref_to_yes_details` is true. - :rtype: team_log.DomainInvitesSetInviteNewUserPrefToYesDetails + :rtype: DomainInvitesSetInviteNewUserPrefToYesDetails """ if not self.is_domain_invites_set_invite_new_user_pref_to_yes_details(): raise AttributeError("tag 'domain_invites_set_invite_new_user_pref_to_yes_details' not set") @@ -13968,7 +14692,7 @@ def get_domain_verification_add_domain_fail_details(self): """ Only call this if :meth:`is_domain_verification_add_domain_fail_details` is true. - :rtype: team_log.DomainVerificationAddDomainFailDetails + :rtype: DomainVerificationAddDomainFailDetails """ if not self.is_domain_verification_add_domain_fail_details(): raise AttributeError("tag 'domain_verification_add_domain_fail_details' not set") @@ -13978,7 +14702,7 @@ def get_domain_verification_add_domain_success_details(self): """ Only call this if :meth:`is_domain_verification_add_domain_success_details` is true. - :rtype: team_log.DomainVerificationAddDomainSuccessDetails + :rtype: DomainVerificationAddDomainSuccessDetails """ if not self.is_domain_verification_add_domain_success_details(): raise AttributeError("tag 'domain_verification_add_domain_success_details' not set") @@ -13988,7 +14712,7 @@ def get_domain_verification_remove_domain_details(self): """ Only call this if :meth:`is_domain_verification_remove_domain_details` is true. - :rtype: team_log.DomainVerificationRemoveDomainDetails + :rtype: DomainVerificationRemoveDomainDetails """ if not self.is_domain_verification_remove_domain_details(): raise AttributeError("tag 'domain_verification_remove_domain_details' not set") @@ -13998,7 +14722,7 @@ def get_enabled_domain_invites_details(self): """ Only call this if :meth:`is_enabled_domain_invites_details` is true. - :rtype: team_log.EnabledDomainInvitesDetails + :rtype: EnabledDomainInvitesDetails """ if not self.is_enabled_domain_invites_details(): raise AttributeError("tag 'enabled_domain_invites_details' not set") @@ -14008,7 +14732,7 @@ def get_create_folder_details(self): """ Only call this if :meth:`is_create_folder_details` is true. - :rtype: team_log.CreateFolderDetails + :rtype: CreateFolderDetails """ if not self.is_create_folder_details(): raise AttributeError("tag 'create_folder_details' not set") @@ -14018,7 +14742,7 @@ def get_file_add_details(self): """ Only call this if :meth:`is_file_add_details` is true. - :rtype: team_log.FileAddDetails + :rtype: FileAddDetails """ if not self.is_file_add_details(): raise AttributeError("tag 'file_add_details' not set") @@ -14028,7 +14752,7 @@ def get_file_copy_details(self): """ Only call this if :meth:`is_file_copy_details` is true. - :rtype: team_log.FileCopyDetails + :rtype: FileCopyDetails """ if not self.is_file_copy_details(): raise AttributeError("tag 'file_copy_details' not set") @@ -14038,7 +14762,7 @@ def get_file_delete_details(self): """ Only call this if :meth:`is_file_delete_details` is true. - :rtype: team_log.FileDeleteDetails + :rtype: FileDeleteDetails """ if not self.is_file_delete_details(): raise AttributeError("tag 'file_delete_details' not set") @@ -14048,7 +14772,7 @@ def get_file_download_details(self): """ Only call this if :meth:`is_file_download_details` is true. - :rtype: team_log.FileDownloadDetails + :rtype: FileDownloadDetails """ if not self.is_file_download_details(): raise AttributeError("tag 'file_download_details' not set") @@ -14058,7 +14782,7 @@ def get_file_edit_details(self): """ Only call this if :meth:`is_file_edit_details` is true. - :rtype: team_log.FileEditDetails + :rtype: FileEditDetails """ if not self.is_file_edit_details(): raise AttributeError("tag 'file_edit_details' not set") @@ -14068,7 +14792,7 @@ def get_file_get_copy_reference_details(self): """ Only call this if :meth:`is_file_get_copy_reference_details` is true. - :rtype: team_log.FileGetCopyReferenceDetails + :rtype: FileGetCopyReferenceDetails """ if not self.is_file_get_copy_reference_details(): raise AttributeError("tag 'file_get_copy_reference_details' not set") @@ -14078,7 +14802,7 @@ def get_file_move_details(self): """ Only call this if :meth:`is_file_move_details` is true. - :rtype: team_log.FileMoveDetails + :rtype: FileMoveDetails """ if not self.is_file_move_details(): raise AttributeError("tag 'file_move_details' not set") @@ -14088,7 +14812,7 @@ def get_file_permanently_delete_details(self): """ Only call this if :meth:`is_file_permanently_delete_details` is true. - :rtype: team_log.FilePermanentlyDeleteDetails + :rtype: FilePermanentlyDeleteDetails """ if not self.is_file_permanently_delete_details(): raise AttributeError("tag 'file_permanently_delete_details' not set") @@ -14098,7 +14822,7 @@ def get_file_preview_details(self): """ Only call this if :meth:`is_file_preview_details` is true. - :rtype: team_log.FilePreviewDetails + :rtype: FilePreviewDetails """ if not self.is_file_preview_details(): raise AttributeError("tag 'file_preview_details' not set") @@ -14108,7 +14832,7 @@ def get_file_rename_details(self): """ Only call this if :meth:`is_file_rename_details` is true. - :rtype: team_log.FileRenameDetails + :rtype: FileRenameDetails """ if not self.is_file_rename_details(): raise AttributeError("tag 'file_rename_details' not set") @@ -14118,7 +14842,7 @@ def get_file_restore_details(self): """ Only call this if :meth:`is_file_restore_details` is true. - :rtype: team_log.FileRestoreDetails + :rtype: FileRestoreDetails """ if not self.is_file_restore_details(): raise AttributeError("tag 'file_restore_details' not set") @@ -14128,7 +14852,7 @@ def get_file_revert_details(self): """ Only call this if :meth:`is_file_revert_details` is true. - :rtype: team_log.FileRevertDetails + :rtype: FileRevertDetails """ if not self.is_file_revert_details(): raise AttributeError("tag 'file_revert_details' not set") @@ -14138,7 +14862,7 @@ def get_file_rollback_changes_details(self): """ Only call this if :meth:`is_file_rollback_changes_details` is true. - :rtype: team_log.FileRollbackChangesDetails + :rtype: FileRollbackChangesDetails """ if not self.is_file_rollback_changes_details(): raise AttributeError("tag 'file_rollback_changes_details' not set") @@ -14148,7 +14872,7 @@ def get_file_save_copy_reference_details(self): """ Only call this if :meth:`is_file_save_copy_reference_details` is true. - :rtype: team_log.FileSaveCopyReferenceDetails + :rtype: FileSaveCopyReferenceDetails """ if not self.is_file_save_copy_reference_details(): raise AttributeError("tag 'file_save_copy_reference_details' not set") @@ -14158,7 +14882,7 @@ def get_file_request_change_details(self): """ Only call this if :meth:`is_file_request_change_details` is true. - :rtype: team_log.FileRequestChangeDetails + :rtype: FileRequestChangeDetails """ if not self.is_file_request_change_details(): raise AttributeError("tag 'file_request_change_details' not set") @@ -14168,7 +14892,7 @@ def get_file_request_close_details(self): """ Only call this if :meth:`is_file_request_close_details` is true. - :rtype: team_log.FileRequestCloseDetails + :rtype: FileRequestCloseDetails """ if not self.is_file_request_close_details(): raise AttributeError("tag 'file_request_close_details' not set") @@ -14178,17 +14902,27 @@ def get_file_request_create_details(self): """ Only call this if :meth:`is_file_request_create_details` is true. - :rtype: team_log.FileRequestCreateDetails + :rtype: FileRequestCreateDetails """ if not self.is_file_request_create_details(): raise AttributeError("tag 'file_request_create_details' not set") return self._value + def get_file_request_delete_details(self): + """ + Only call this if :meth:`is_file_request_delete_details` is true. + + :rtype: FileRequestDeleteDetails + """ + if not self.is_file_request_delete_details(): + raise AttributeError("tag 'file_request_delete_details' not set") + return self._value + def get_file_request_receive_file_details(self): """ Only call this if :meth:`is_file_request_receive_file_details` is true. - :rtype: team_log.FileRequestReceiveFileDetails + :rtype: FileRequestReceiveFileDetails """ if not self.is_file_request_receive_file_details(): raise AttributeError("tag 'file_request_receive_file_details' not set") @@ -14198,7 +14932,7 @@ def get_group_add_external_id_details(self): """ Only call this if :meth:`is_group_add_external_id_details` is true. - :rtype: team_log.GroupAddExternalIdDetails + :rtype: GroupAddExternalIdDetails """ if not self.is_group_add_external_id_details(): raise AttributeError("tag 'group_add_external_id_details' not set") @@ -14208,7 +14942,7 @@ def get_group_add_member_details(self): """ Only call this if :meth:`is_group_add_member_details` is true. - :rtype: team_log.GroupAddMemberDetails + :rtype: GroupAddMemberDetails """ if not self.is_group_add_member_details(): raise AttributeError("tag 'group_add_member_details' not set") @@ -14218,7 +14952,7 @@ def get_group_change_external_id_details(self): """ Only call this if :meth:`is_group_change_external_id_details` is true. - :rtype: team_log.GroupChangeExternalIdDetails + :rtype: GroupChangeExternalIdDetails """ if not self.is_group_change_external_id_details(): raise AttributeError("tag 'group_change_external_id_details' not set") @@ -14228,7 +14962,7 @@ def get_group_change_management_type_details(self): """ Only call this if :meth:`is_group_change_management_type_details` is true. - :rtype: team_log.GroupChangeManagementTypeDetails + :rtype: GroupChangeManagementTypeDetails """ if not self.is_group_change_management_type_details(): raise AttributeError("tag 'group_change_management_type_details' not set") @@ -14238,7 +14972,7 @@ def get_group_change_member_role_details(self): """ Only call this if :meth:`is_group_change_member_role_details` is true. - :rtype: team_log.GroupChangeMemberRoleDetails + :rtype: GroupChangeMemberRoleDetails """ if not self.is_group_change_member_role_details(): raise AttributeError("tag 'group_change_member_role_details' not set") @@ -14248,7 +14982,7 @@ def get_group_create_details(self): """ Only call this if :meth:`is_group_create_details` is true. - :rtype: team_log.GroupCreateDetails + :rtype: GroupCreateDetails """ if not self.is_group_create_details(): raise AttributeError("tag 'group_create_details' not set") @@ -14258,7 +14992,7 @@ def get_group_delete_details(self): """ Only call this if :meth:`is_group_delete_details` is true. - :rtype: team_log.GroupDeleteDetails + :rtype: GroupDeleteDetails """ if not self.is_group_delete_details(): raise AttributeError("tag 'group_delete_details' not set") @@ -14268,7 +15002,7 @@ def get_group_description_updated_details(self): """ Only call this if :meth:`is_group_description_updated_details` is true. - :rtype: team_log.GroupDescriptionUpdatedDetails + :rtype: GroupDescriptionUpdatedDetails """ if not self.is_group_description_updated_details(): raise AttributeError("tag 'group_description_updated_details' not set") @@ -14278,7 +15012,7 @@ def get_group_join_policy_updated_details(self): """ Only call this if :meth:`is_group_join_policy_updated_details` is true. - :rtype: team_log.GroupJoinPolicyUpdatedDetails + :rtype: GroupJoinPolicyUpdatedDetails """ if not self.is_group_join_policy_updated_details(): raise AttributeError("tag 'group_join_policy_updated_details' not set") @@ -14288,7 +15022,7 @@ def get_group_moved_details(self): """ Only call this if :meth:`is_group_moved_details` is true. - :rtype: team_log.GroupMovedDetails + :rtype: GroupMovedDetails """ if not self.is_group_moved_details(): raise AttributeError("tag 'group_moved_details' not set") @@ -14298,7 +15032,7 @@ def get_group_remove_external_id_details(self): """ Only call this if :meth:`is_group_remove_external_id_details` is true. - :rtype: team_log.GroupRemoveExternalIdDetails + :rtype: GroupRemoveExternalIdDetails """ if not self.is_group_remove_external_id_details(): raise AttributeError("tag 'group_remove_external_id_details' not set") @@ -14308,7 +15042,7 @@ def get_group_remove_member_details(self): """ Only call this if :meth:`is_group_remove_member_details` is true. - :rtype: team_log.GroupRemoveMemberDetails + :rtype: GroupRemoveMemberDetails """ if not self.is_group_remove_member_details(): raise AttributeError("tag 'group_remove_member_details' not set") @@ -14318,7 +15052,7 @@ def get_group_rename_details(self): """ Only call this if :meth:`is_group_rename_details` is true. - :rtype: team_log.GroupRenameDetails + :rtype: GroupRenameDetails """ if not self.is_group_rename_details(): raise AttributeError("tag 'group_rename_details' not set") @@ -14328,17 +15062,37 @@ def get_emm_error_details(self): """ Only call this if :meth:`is_emm_error_details` is true. - :rtype: team_log.EmmErrorDetails + :rtype: EmmErrorDetails """ if not self.is_emm_error_details(): raise AttributeError("tag 'emm_error_details' not set") return self._value + def get_guest_admin_signed_in_via_trusted_teams_details(self): + """ + Only call this if :meth:`is_guest_admin_signed_in_via_trusted_teams_details` is true. + + :rtype: GuestAdminSignedInViaTrustedTeamsDetails + """ + if not self.is_guest_admin_signed_in_via_trusted_teams_details(): + raise AttributeError("tag 'guest_admin_signed_in_via_trusted_teams_details' not set") + return self._value + + def get_guest_admin_signed_out_via_trusted_teams_details(self): + """ + Only call this if :meth:`is_guest_admin_signed_out_via_trusted_teams_details` is true. + + :rtype: GuestAdminSignedOutViaTrustedTeamsDetails + """ + if not self.is_guest_admin_signed_out_via_trusted_teams_details(): + raise AttributeError("tag 'guest_admin_signed_out_via_trusted_teams_details' not set") + return self._value + def get_login_fail_details(self): """ Only call this if :meth:`is_login_fail_details` is true. - :rtype: team_log.LoginFailDetails + :rtype: LoginFailDetails """ if not self.is_login_fail_details(): raise AttributeError("tag 'login_fail_details' not set") @@ -14348,7 +15102,7 @@ def get_login_success_details(self): """ Only call this if :meth:`is_login_success_details` is true. - :rtype: team_log.LoginSuccessDetails + :rtype: LoginSuccessDetails """ if not self.is_login_success_details(): raise AttributeError("tag 'login_success_details' not set") @@ -14358,7 +15112,7 @@ def get_logout_details(self): """ Only call this if :meth:`is_logout_details` is true. - :rtype: team_log.LogoutDetails + :rtype: LogoutDetails """ if not self.is_logout_details(): raise AttributeError("tag 'logout_details' not set") @@ -14368,7 +15122,7 @@ def get_reseller_support_session_end_details(self): """ Only call this if :meth:`is_reseller_support_session_end_details` is true. - :rtype: team_log.ResellerSupportSessionEndDetails + :rtype: ResellerSupportSessionEndDetails """ if not self.is_reseller_support_session_end_details(): raise AttributeError("tag 'reseller_support_session_end_details' not set") @@ -14378,7 +15132,7 @@ def get_reseller_support_session_start_details(self): """ Only call this if :meth:`is_reseller_support_session_start_details` is true. - :rtype: team_log.ResellerSupportSessionStartDetails + :rtype: ResellerSupportSessionStartDetails """ if not self.is_reseller_support_session_start_details(): raise AttributeError("tag 'reseller_support_session_start_details' not set") @@ -14388,7 +15142,7 @@ def get_sign_in_as_session_end_details(self): """ Only call this if :meth:`is_sign_in_as_session_end_details` is true. - :rtype: team_log.SignInAsSessionEndDetails + :rtype: SignInAsSessionEndDetails """ if not self.is_sign_in_as_session_end_details(): raise AttributeError("tag 'sign_in_as_session_end_details' not set") @@ -14398,7 +15152,7 @@ def get_sign_in_as_session_start_details(self): """ Only call this if :meth:`is_sign_in_as_session_start_details` is true. - :rtype: team_log.SignInAsSessionStartDetails + :rtype: SignInAsSessionStartDetails """ if not self.is_sign_in_as_session_start_details(): raise AttributeError("tag 'sign_in_as_session_start_details' not set") @@ -14408,17 +15162,27 @@ def get_sso_error_details(self): """ Only call this if :meth:`is_sso_error_details` is true. - :rtype: team_log.SsoErrorDetails + :rtype: SsoErrorDetails """ if not self.is_sso_error_details(): raise AttributeError("tag 'sso_error_details' not set") return self._value + def get_member_add_external_id_details(self): + """ + Only call this if :meth:`is_member_add_external_id_details` is true. + + :rtype: MemberAddExternalIdDetails + """ + if not self.is_member_add_external_id_details(): + raise AttributeError("tag 'member_add_external_id_details' not set") + return self._value + def get_member_add_name_details(self): """ Only call this if :meth:`is_member_add_name_details` is true. - :rtype: team_log.MemberAddNameDetails + :rtype: MemberAddNameDetails """ if not self.is_member_add_name_details(): raise AttributeError("tag 'member_add_name_details' not set") @@ -14428,7 +15192,7 @@ def get_member_change_admin_role_details(self): """ Only call this if :meth:`is_member_change_admin_role_details` is true. - :rtype: team_log.MemberChangeAdminRoleDetails + :rtype: MemberChangeAdminRoleDetails """ if not self.is_member_change_admin_role_details(): raise AttributeError("tag 'member_change_admin_role_details' not set") @@ -14438,17 +15202,27 @@ def get_member_change_email_details(self): """ Only call this if :meth:`is_member_change_email_details` is true. - :rtype: team_log.MemberChangeEmailDetails + :rtype: MemberChangeEmailDetails """ if not self.is_member_change_email_details(): raise AttributeError("tag 'member_change_email_details' not set") return self._value + def get_member_change_external_id_details(self): + """ + Only call this if :meth:`is_member_change_external_id_details` is true. + + :rtype: MemberChangeExternalIdDetails + """ + if not self.is_member_change_external_id_details(): + raise AttributeError("tag 'member_change_external_id_details' not set") + return self._value + def get_member_change_membership_type_details(self): """ Only call this if :meth:`is_member_change_membership_type_details` is true. - :rtype: team_log.MemberChangeMembershipTypeDetails + :rtype: MemberChangeMembershipTypeDetails """ if not self.is_member_change_membership_type_details(): raise AttributeError("tag 'member_change_membership_type_details' not set") @@ -14458,7 +15232,7 @@ def get_member_change_name_details(self): """ Only call this if :meth:`is_member_change_name_details` is true. - :rtype: team_log.MemberChangeNameDetails + :rtype: MemberChangeNameDetails """ if not self.is_member_change_name_details(): raise AttributeError("tag 'member_change_name_details' not set") @@ -14468,7 +15242,7 @@ def get_member_change_status_details(self): """ Only call this if :meth:`is_member_change_status_details` is true. - :rtype: team_log.MemberChangeStatusDetails + :rtype: MemberChangeStatusDetails """ if not self.is_member_change_status_details(): raise AttributeError("tag 'member_change_status_details' not set") @@ -14478,7 +15252,7 @@ def get_member_delete_manual_contacts_details(self): """ Only call this if :meth:`is_member_delete_manual_contacts_details` is true. - :rtype: team_log.MemberDeleteManualContactsDetails + :rtype: MemberDeleteManualContactsDetails """ if not self.is_member_delete_manual_contacts_details(): raise AttributeError("tag 'member_delete_manual_contacts_details' not set") @@ -14488,17 +15262,27 @@ def get_member_permanently_delete_account_contents_details(self): """ Only call this if :meth:`is_member_permanently_delete_account_contents_details` is true. - :rtype: team_log.MemberPermanentlyDeleteAccountContentsDetails + :rtype: MemberPermanentlyDeleteAccountContentsDetails """ if not self.is_member_permanently_delete_account_contents_details(): raise AttributeError("tag 'member_permanently_delete_account_contents_details' not set") return self._value + def get_member_remove_external_id_details(self): + """ + Only call this if :meth:`is_member_remove_external_id_details` is true. + + :rtype: MemberRemoveExternalIdDetails + """ + if not self.is_member_remove_external_id_details(): + raise AttributeError("tag 'member_remove_external_id_details' not set") + return self._value + def get_member_space_limits_add_custom_quota_details(self): """ Only call this if :meth:`is_member_space_limits_add_custom_quota_details` is true. - :rtype: team_log.MemberSpaceLimitsAddCustomQuotaDetails + :rtype: MemberSpaceLimitsAddCustomQuotaDetails """ if not self.is_member_space_limits_add_custom_quota_details(): raise AttributeError("tag 'member_space_limits_add_custom_quota_details' not set") @@ -14508,7 +15292,7 @@ def get_member_space_limits_change_custom_quota_details(self): """ Only call this if :meth:`is_member_space_limits_change_custom_quota_details` is true. - :rtype: team_log.MemberSpaceLimitsChangeCustomQuotaDetails + :rtype: MemberSpaceLimitsChangeCustomQuotaDetails """ if not self.is_member_space_limits_change_custom_quota_details(): raise AttributeError("tag 'member_space_limits_change_custom_quota_details' not set") @@ -14518,7 +15302,7 @@ def get_member_space_limits_change_status_details(self): """ Only call this if :meth:`is_member_space_limits_change_status_details` is true. - :rtype: team_log.MemberSpaceLimitsChangeStatusDetails + :rtype: MemberSpaceLimitsChangeStatusDetails """ if not self.is_member_space_limits_change_status_details(): raise AttributeError("tag 'member_space_limits_change_status_details' not set") @@ -14528,7 +15312,7 @@ def get_member_space_limits_remove_custom_quota_details(self): """ Only call this if :meth:`is_member_space_limits_remove_custom_quota_details` is true. - :rtype: team_log.MemberSpaceLimitsRemoveCustomQuotaDetails + :rtype: MemberSpaceLimitsRemoveCustomQuotaDetails """ if not self.is_member_space_limits_remove_custom_quota_details(): raise AttributeError("tag 'member_space_limits_remove_custom_quota_details' not set") @@ -14538,7 +15322,7 @@ def get_member_suggest_details(self): """ Only call this if :meth:`is_member_suggest_details` is true. - :rtype: team_log.MemberSuggestDetails + :rtype: MemberSuggestDetails """ if not self.is_member_suggest_details(): raise AttributeError("tag 'member_suggest_details' not set") @@ -14548,7 +15332,7 @@ def get_member_transfer_account_contents_details(self): """ Only call this if :meth:`is_member_transfer_account_contents_details` is true. - :rtype: team_log.MemberTransferAccountContentsDetails + :rtype: MemberTransferAccountContentsDetails """ if not self.is_member_transfer_account_contents_details(): raise AttributeError("tag 'member_transfer_account_contents_details' not set") @@ -14558,7 +15342,7 @@ def get_secondary_mails_policy_changed_details(self): """ Only call this if :meth:`is_secondary_mails_policy_changed_details` is true. - :rtype: team_log.SecondaryMailsPolicyChangedDetails + :rtype: SecondaryMailsPolicyChangedDetails """ if not self.is_secondary_mails_policy_changed_details(): raise AttributeError("tag 'secondary_mails_policy_changed_details' not set") @@ -14568,7 +15352,7 @@ def get_paper_content_add_member_details(self): """ Only call this if :meth:`is_paper_content_add_member_details` is true. - :rtype: team_log.PaperContentAddMemberDetails + :rtype: PaperContentAddMemberDetails """ if not self.is_paper_content_add_member_details(): raise AttributeError("tag 'paper_content_add_member_details' not set") @@ -14578,7 +15362,7 @@ def get_paper_content_add_to_folder_details(self): """ Only call this if :meth:`is_paper_content_add_to_folder_details` is true. - :rtype: team_log.PaperContentAddToFolderDetails + :rtype: PaperContentAddToFolderDetails """ if not self.is_paper_content_add_to_folder_details(): raise AttributeError("tag 'paper_content_add_to_folder_details' not set") @@ -14588,7 +15372,7 @@ def get_paper_content_archive_details(self): """ Only call this if :meth:`is_paper_content_archive_details` is true. - :rtype: team_log.PaperContentArchiveDetails + :rtype: PaperContentArchiveDetails """ if not self.is_paper_content_archive_details(): raise AttributeError("tag 'paper_content_archive_details' not set") @@ -14598,7 +15382,7 @@ def get_paper_content_create_details(self): """ Only call this if :meth:`is_paper_content_create_details` is true. - :rtype: team_log.PaperContentCreateDetails + :rtype: PaperContentCreateDetails """ if not self.is_paper_content_create_details(): raise AttributeError("tag 'paper_content_create_details' not set") @@ -14608,7 +15392,7 @@ def get_paper_content_permanently_delete_details(self): """ Only call this if :meth:`is_paper_content_permanently_delete_details` is true. - :rtype: team_log.PaperContentPermanentlyDeleteDetails + :rtype: PaperContentPermanentlyDeleteDetails """ if not self.is_paper_content_permanently_delete_details(): raise AttributeError("tag 'paper_content_permanently_delete_details' not set") @@ -14618,7 +15402,7 @@ def get_paper_content_remove_from_folder_details(self): """ Only call this if :meth:`is_paper_content_remove_from_folder_details` is true. - :rtype: team_log.PaperContentRemoveFromFolderDetails + :rtype: PaperContentRemoveFromFolderDetails """ if not self.is_paper_content_remove_from_folder_details(): raise AttributeError("tag 'paper_content_remove_from_folder_details' not set") @@ -14628,7 +15412,7 @@ def get_paper_content_remove_member_details(self): """ Only call this if :meth:`is_paper_content_remove_member_details` is true. - :rtype: team_log.PaperContentRemoveMemberDetails + :rtype: PaperContentRemoveMemberDetails """ if not self.is_paper_content_remove_member_details(): raise AttributeError("tag 'paper_content_remove_member_details' not set") @@ -14638,7 +15422,7 @@ def get_paper_content_rename_details(self): """ Only call this if :meth:`is_paper_content_rename_details` is true. - :rtype: team_log.PaperContentRenameDetails + :rtype: PaperContentRenameDetails """ if not self.is_paper_content_rename_details(): raise AttributeError("tag 'paper_content_rename_details' not set") @@ -14648,7 +15432,7 @@ def get_paper_content_restore_details(self): """ Only call this if :meth:`is_paper_content_restore_details` is true. - :rtype: team_log.PaperContentRestoreDetails + :rtype: PaperContentRestoreDetails """ if not self.is_paper_content_restore_details(): raise AttributeError("tag 'paper_content_restore_details' not set") @@ -14658,7 +15442,7 @@ def get_paper_doc_add_comment_details(self): """ Only call this if :meth:`is_paper_doc_add_comment_details` is true. - :rtype: team_log.PaperDocAddCommentDetails + :rtype: PaperDocAddCommentDetails """ if not self.is_paper_doc_add_comment_details(): raise AttributeError("tag 'paper_doc_add_comment_details' not set") @@ -14668,7 +15452,7 @@ def get_paper_doc_change_member_role_details(self): """ Only call this if :meth:`is_paper_doc_change_member_role_details` is true. - :rtype: team_log.PaperDocChangeMemberRoleDetails + :rtype: PaperDocChangeMemberRoleDetails """ if not self.is_paper_doc_change_member_role_details(): raise AttributeError("tag 'paper_doc_change_member_role_details' not set") @@ -14678,7 +15462,7 @@ def get_paper_doc_change_sharing_policy_details(self): """ Only call this if :meth:`is_paper_doc_change_sharing_policy_details` is true. - :rtype: team_log.PaperDocChangeSharingPolicyDetails + :rtype: PaperDocChangeSharingPolicyDetails """ if not self.is_paper_doc_change_sharing_policy_details(): raise AttributeError("tag 'paper_doc_change_sharing_policy_details' not set") @@ -14688,7 +15472,7 @@ def get_paper_doc_change_subscription_details(self): """ Only call this if :meth:`is_paper_doc_change_subscription_details` is true. - :rtype: team_log.PaperDocChangeSubscriptionDetails + :rtype: PaperDocChangeSubscriptionDetails """ if not self.is_paper_doc_change_subscription_details(): raise AttributeError("tag 'paper_doc_change_subscription_details' not set") @@ -14698,7 +15482,7 @@ def get_paper_doc_deleted_details(self): """ Only call this if :meth:`is_paper_doc_deleted_details` is true. - :rtype: team_log.PaperDocDeletedDetails + :rtype: PaperDocDeletedDetails """ if not self.is_paper_doc_deleted_details(): raise AttributeError("tag 'paper_doc_deleted_details' not set") @@ -14708,7 +15492,7 @@ def get_paper_doc_delete_comment_details(self): """ Only call this if :meth:`is_paper_doc_delete_comment_details` is true. - :rtype: team_log.PaperDocDeleteCommentDetails + :rtype: PaperDocDeleteCommentDetails """ if not self.is_paper_doc_delete_comment_details(): raise AttributeError("tag 'paper_doc_delete_comment_details' not set") @@ -14718,7 +15502,7 @@ def get_paper_doc_download_details(self): """ Only call this if :meth:`is_paper_doc_download_details` is true. - :rtype: team_log.PaperDocDownloadDetails + :rtype: PaperDocDownloadDetails """ if not self.is_paper_doc_download_details(): raise AttributeError("tag 'paper_doc_download_details' not set") @@ -14728,7 +15512,7 @@ def get_paper_doc_edit_details(self): """ Only call this if :meth:`is_paper_doc_edit_details` is true. - :rtype: team_log.PaperDocEditDetails + :rtype: PaperDocEditDetails """ if not self.is_paper_doc_edit_details(): raise AttributeError("tag 'paper_doc_edit_details' not set") @@ -14738,7 +15522,7 @@ def get_paper_doc_edit_comment_details(self): """ Only call this if :meth:`is_paper_doc_edit_comment_details` is true. - :rtype: team_log.PaperDocEditCommentDetails + :rtype: PaperDocEditCommentDetails """ if not self.is_paper_doc_edit_comment_details(): raise AttributeError("tag 'paper_doc_edit_comment_details' not set") @@ -14748,7 +15532,7 @@ def get_paper_doc_followed_details(self): """ Only call this if :meth:`is_paper_doc_followed_details` is true. - :rtype: team_log.PaperDocFollowedDetails + :rtype: PaperDocFollowedDetails """ if not self.is_paper_doc_followed_details(): raise AttributeError("tag 'paper_doc_followed_details' not set") @@ -14758,7 +15542,7 @@ def get_paper_doc_mention_details(self): """ Only call this if :meth:`is_paper_doc_mention_details` is true. - :rtype: team_log.PaperDocMentionDetails + :rtype: PaperDocMentionDetails """ if not self.is_paper_doc_mention_details(): raise AttributeError("tag 'paper_doc_mention_details' not set") @@ -14768,7 +15552,7 @@ def get_paper_doc_ownership_changed_details(self): """ Only call this if :meth:`is_paper_doc_ownership_changed_details` is true. - :rtype: team_log.PaperDocOwnershipChangedDetails + :rtype: PaperDocOwnershipChangedDetails """ if not self.is_paper_doc_ownership_changed_details(): raise AttributeError("tag 'paper_doc_ownership_changed_details' not set") @@ -14778,7 +15562,7 @@ def get_paper_doc_request_access_details(self): """ Only call this if :meth:`is_paper_doc_request_access_details` is true. - :rtype: team_log.PaperDocRequestAccessDetails + :rtype: PaperDocRequestAccessDetails """ if not self.is_paper_doc_request_access_details(): raise AttributeError("tag 'paper_doc_request_access_details' not set") @@ -14788,7 +15572,7 @@ def get_paper_doc_resolve_comment_details(self): """ Only call this if :meth:`is_paper_doc_resolve_comment_details` is true. - :rtype: team_log.PaperDocResolveCommentDetails + :rtype: PaperDocResolveCommentDetails """ if not self.is_paper_doc_resolve_comment_details(): raise AttributeError("tag 'paper_doc_resolve_comment_details' not set") @@ -14798,7 +15582,7 @@ def get_paper_doc_revert_details(self): """ Only call this if :meth:`is_paper_doc_revert_details` is true. - :rtype: team_log.PaperDocRevertDetails + :rtype: PaperDocRevertDetails """ if not self.is_paper_doc_revert_details(): raise AttributeError("tag 'paper_doc_revert_details' not set") @@ -14808,7 +15592,7 @@ def get_paper_doc_slack_share_details(self): """ Only call this if :meth:`is_paper_doc_slack_share_details` is true. - :rtype: team_log.PaperDocSlackShareDetails + :rtype: PaperDocSlackShareDetails """ if not self.is_paper_doc_slack_share_details(): raise AttributeError("tag 'paper_doc_slack_share_details' not set") @@ -14818,7 +15602,7 @@ def get_paper_doc_team_invite_details(self): """ Only call this if :meth:`is_paper_doc_team_invite_details` is true. - :rtype: team_log.PaperDocTeamInviteDetails + :rtype: PaperDocTeamInviteDetails """ if not self.is_paper_doc_team_invite_details(): raise AttributeError("tag 'paper_doc_team_invite_details' not set") @@ -14828,7 +15612,7 @@ def get_paper_doc_trashed_details(self): """ Only call this if :meth:`is_paper_doc_trashed_details` is true. - :rtype: team_log.PaperDocTrashedDetails + :rtype: PaperDocTrashedDetails """ if not self.is_paper_doc_trashed_details(): raise AttributeError("tag 'paper_doc_trashed_details' not set") @@ -14838,7 +15622,7 @@ def get_paper_doc_unresolve_comment_details(self): """ Only call this if :meth:`is_paper_doc_unresolve_comment_details` is true. - :rtype: team_log.PaperDocUnresolveCommentDetails + :rtype: PaperDocUnresolveCommentDetails """ if not self.is_paper_doc_unresolve_comment_details(): raise AttributeError("tag 'paper_doc_unresolve_comment_details' not set") @@ -14848,7 +15632,7 @@ def get_paper_doc_untrashed_details(self): """ Only call this if :meth:`is_paper_doc_untrashed_details` is true. - :rtype: team_log.PaperDocUntrashedDetails + :rtype: PaperDocUntrashedDetails """ if not self.is_paper_doc_untrashed_details(): raise AttributeError("tag 'paper_doc_untrashed_details' not set") @@ -14858,7 +15642,7 @@ def get_paper_doc_view_details(self): """ Only call this if :meth:`is_paper_doc_view_details` is true. - :rtype: team_log.PaperDocViewDetails + :rtype: PaperDocViewDetails """ if not self.is_paper_doc_view_details(): raise AttributeError("tag 'paper_doc_view_details' not set") @@ -14868,7 +15652,7 @@ def get_paper_external_view_allow_details(self): """ Only call this if :meth:`is_paper_external_view_allow_details` is true. - :rtype: team_log.PaperExternalViewAllowDetails + :rtype: PaperExternalViewAllowDetails """ if not self.is_paper_external_view_allow_details(): raise AttributeError("tag 'paper_external_view_allow_details' not set") @@ -14878,7 +15662,7 @@ def get_paper_external_view_default_team_details(self): """ Only call this if :meth:`is_paper_external_view_default_team_details` is true. - :rtype: team_log.PaperExternalViewDefaultTeamDetails + :rtype: PaperExternalViewDefaultTeamDetails """ if not self.is_paper_external_view_default_team_details(): raise AttributeError("tag 'paper_external_view_default_team_details' not set") @@ -14888,7 +15672,7 @@ def get_paper_external_view_forbid_details(self): """ Only call this if :meth:`is_paper_external_view_forbid_details` is true. - :rtype: team_log.PaperExternalViewForbidDetails + :rtype: PaperExternalViewForbidDetails """ if not self.is_paper_external_view_forbid_details(): raise AttributeError("tag 'paper_external_view_forbid_details' not set") @@ -14898,7 +15682,7 @@ def get_paper_folder_change_subscription_details(self): """ Only call this if :meth:`is_paper_folder_change_subscription_details` is true. - :rtype: team_log.PaperFolderChangeSubscriptionDetails + :rtype: PaperFolderChangeSubscriptionDetails """ if not self.is_paper_folder_change_subscription_details(): raise AttributeError("tag 'paper_folder_change_subscription_details' not set") @@ -14908,7 +15692,7 @@ def get_paper_folder_deleted_details(self): """ Only call this if :meth:`is_paper_folder_deleted_details` is true. - :rtype: team_log.PaperFolderDeletedDetails + :rtype: PaperFolderDeletedDetails """ if not self.is_paper_folder_deleted_details(): raise AttributeError("tag 'paper_folder_deleted_details' not set") @@ -14918,7 +15702,7 @@ def get_paper_folder_followed_details(self): """ Only call this if :meth:`is_paper_folder_followed_details` is true. - :rtype: team_log.PaperFolderFollowedDetails + :rtype: PaperFolderFollowedDetails """ if not self.is_paper_folder_followed_details(): raise AttributeError("tag 'paper_folder_followed_details' not set") @@ -14928,17 +15712,47 @@ def get_paper_folder_team_invite_details(self): """ Only call this if :meth:`is_paper_folder_team_invite_details` is true. - :rtype: team_log.PaperFolderTeamInviteDetails + :rtype: PaperFolderTeamInviteDetails """ if not self.is_paper_folder_team_invite_details(): raise AttributeError("tag 'paper_folder_team_invite_details' not set") return self._value + def get_paper_published_link_create_details(self): + """ + Only call this if :meth:`is_paper_published_link_create_details` is true. + + :rtype: PaperPublishedLinkCreateDetails + """ + if not self.is_paper_published_link_create_details(): + raise AttributeError("tag 'paper_published_link_create_details' not set") + return self._value + + def get_paper_published_link_disabled_details(self): + """ + Only call this if :meth:`is_paper_published_link_disabled_details` is true. + + :rtype: PaperPublishedLinkDisabledDetails + """ + if not self.is_paper_published_link_disabled_details(): + raise AttributeError("tag 'paper_published_link_disabled_details' not set") + return self._value + + def get_paper_published_link_view_details(self): + """ + Only call this if :meth:`is_paper_published_link_view_details` is true. + + :rtype: PaperPublishedLinkViewDetails + """ + if not self.is_paper_published_link_view_details(): + raise AttributeError("tag 'paper_published_link_view_details' not set") + return self._value + def get_password_change_details(self): """ Only call this if :meth:`is_password_change_details` is true. - :rtype: team_log.PasswordChangeDetails + :rtype: PasswordChangeDetails """ if not self.is_password_change_details(): raise AttributeError("tag 'password_change_details' not set") @@ -14948,7 +15762,7 @@ def get_password_reset_details(self): """ Only call this if :meth:`is_password_reset_details` is true. - :rtype: team_log.PasswordResetDetails + :rtype: PasswordResetDetails """ if not self.is_password_reset_details(): raise AttributeError("tag 'password_reset_details' not set") @@ -14958,7 +15772,7 @@ def get_password_reset_all_details(self): """ Only call this if :meth:`is_password_reset_all_details` is true. - :rtype: team_log.PasswordResetAllDetails + :rtype: PasswordResetAllDetails """ if not self.is_password_reset_all_details(): raise AttributeError("tag 'password_reset_all_details' not set") @@ -14968,7 +15782,7 @@ def get_emm_create_exceptions_report_details(self): """ Only call this if :meth:`is_emm_create_exceptions_report_details` is true. - :rtype: team_log.EmmCreateExceptionsReportDetails + :rtype: EmmCreateExceptionsReportDetails """ if not self.is_emm_create_exceptions_report_details(): raise AttributeError("tag 'emm_create_exceptions_report_details' not set") @@ -14978,7 +15792,7 @@ def get_emm_create_usage_report_details(self): """ Only call this if :meth:`is_emm_create_usage_report_details` is true. - :rtype: team_log.EmmCreateUsageReportDetails + :rtype: EmmCreateUsageReportDetails """ if not self.is_emm_create_usage_report_details(): raise AttributeError("tag 'emm_create_usage_report_details' not set") @@ -14988,7 +15802,7 @@ def get_export_members_report_details(self): """ Only call this if :meth:`is_export_members_report_details` is true. - :rtype: team_log.ExportMembersReportDetails + :rtype: ExportMembersReportDetails """ if not self.is_export_members_report_details(): raise AttributeError("tag 'export_members_report_details' not set") @@ -14998,7 +15812,7 @@ def get_paper_admin_export_start_details(self): """ Only call this if :meth:`is_paper_admin_export_start_details` is true. - :rtype: team_log.PaperAdminExportStartDetails + :rtype: PaperAdminExportStartDetails """ if not self.is_paper_admin_export_start_details(): raise AttributeError("tag 'paper_admin_export_start_details' not set") @@ -15008,7 +15822,7 @@ def get_smart_sync_create_admin_privilege_report_details(self): """ Only call this if :meth:`is_smart_sync_create_admin_privilege_report_details` is true. - :rtype: team_log.SmartSyncCreateAdminPrivilegeReportDetails + :rtype: SmartSyncCreateAdminPrivilegeReportDetails """ if not self.is_smart_sync_create_admin_privilege_report_details(): raise AttributeError("tag 'smart_sync_create_admin_privilege_report_details' not set") @@ -15018,17 +15832,27 @@ def get_team_activity_create_report_details(self): """ Only call this if :meth:`is_team_activity_create_report_details` is true. - :rtype: team_log.TeamActivityCreateReportDetails + :rtype: TeamActivityCreateReportDetails """ if not self.is_team_activity_create_report_details(): raise AttributeError("tag 'team_activity_create_report_details' not set") return self._value + def get_team_activity_create_report_fail_details(self): + """ + Only call this if :meth:`is_team_activity_create_report_fail_details` is true. + + :rtype: TeamActivityCreateReportFailDetails + """ + if not self.is_team_activity_create_report_fail_details(): + raise AttributeError("tag 'team_activity_create_report_fail_details' not set") + return self._value + def get_collection_share_details(self): """ Only call this if :meth:`is_collection_share_details` is true. - :rtype: team_log.CollectionShareDetails + :rtype: CollectionShareDetails """ if not self.is_collection_share_details(): raise AttributeError("tag 'collection_share_details' not set") @@ -15038,7 +15862,7 @@ def get_note_acl_invite_only_details(self): """ Only call this if :meth:`is_note_acl_invite_only_details` is true. - :rtype: team_log.NoteAclInviteOnlyDetails + :rtype: NoteAclInviteOnlyDetails """ if not self.is_note_acl_invite_only_details(): raise AttributeError("tag 'note_acl_invite_only_details' not set") @@ -15048,7 +15872,7 @@ def get_note_acl_link_details(self): """ Only call this if :meth:`is_note_acl_link_details` is true. - :rtype: team_log.NoteAclLinkDetails + :rtype: NoteAclLinkDetails """ if not self.is_note_acl_link_details(): raise AttributeError("tag 'note_acl_link_details' not set") @@ -15058,7 +15882,7 @@ def get_note_acl_team_link_details(self): """ Only call this if :meth:`is_note_acl_team_link_details` is true. - :rtype: team_log.NoteAclTeamLinkDetails + :rtype: NoteAclTeamLinkDetails """ if not self.is_note_acl_team_link_details(): raise AttributeError("tag 'note_acl_team_link_details' not set") @@ -15068,7 +15892,7 @@ def get_note_shared_details(self): """ Only call this if :meth:`is_note_shared_details` is true. - :rtype: team_log.NoteSharedDetails + :rtype: NoteSharedDetails """ if not self.is_note_shared_details(): raise AttributeError("tag 'note_shared_details' not set") @@ -15078,7 +15902,7 @@ def get_note_share_receive_details(self): """ Only call this if :meth:`is_note_share_receive_details` is true. - :rtype: team_log.NoteShareReceiveDetails + :rtype: NoteShareReceiveDetails """ if not self.is_note_share_receive_details(): raise AttributeError("tag 'note_share_receive_details' not set") @@ -15088,7 +15912,7 @@ def get_open_note_shared_details(self): """ Only call this if :meth:`is_open_note_shared_details` is true. - :rtype: team_log.OpenNoteSharedDetails + :rtype: OpenNoteSharedDetails """ if not self.is_open_note_shared_details(): raise AttributeError("tag 'open_note_shared_details' not set") @@ -15098,7 +15922,7 @@ def get_sf_add_group_details(self): """ Only call this if :meth:`is_sf_add_group_details` is true. - :rtype: team_log.SfAddGroupDetails + :rtype: SfAddGroupDetails """ if not self.is_sf_add_group_details(): raise AttributeError("tag 'sf_add_group_details' not set") @@ -15108,7 +15932,7 @@ def get_sf_allow_non_members_to_view_shared_links_details(self): """ Only call this if :meth:`is_sf_allow_non_members_to_view_shared_links_details` is true. - :rtype: team_log.SfAllowNonMembersToViewSharedLinksDetails + :rtype: SfAllowNonMembersToViewSharedLinksDetails """ if not self.is_sf_allow_non_members_to_view_shared_links_details(): raise AttributeError("tag 'sf_allow_non_members_to_view_shared_links_details' not set") @@ -15118,7 +15942,7 @@ def get_sf_external_invite_warn_details(self): """ Only call this if :meth:`is_sf_external_invite_warn_details` is true. - :rtype: team_log.SfExternalInviteWarnDetails + :rtype: SfExternalInviteWarnDetails """ if not self.is_sf_external_invite_warn_details(): raise AttributeError("tag 'sf_external_invite_warn_details' not set") @@ -15128,7 +15952,7 @@ def get_sf_fb_invite_details(self): """ Only call this if :meth:`is_sf_fb_invite_details` is true. - :rtype: team_log.SfFbInviteDetails + :rtype: SfFbInviteDetails """ if not self.is_sf_fb_invite_details(): raise AttributeError("tag 'sf_fb_invite_details' not set") @@ -15138,7 +15962,7 @@ def get_sf_fb_invite_change_role_details(self): """ Only call this if :meth:`is_sf_fb_invite_change_role_details` is true. - :rtype: team_log.SfFbInviteChangeRoleDetails + :rtype: SfFbInviteChangeRoleDetails """ if not self.is_sf_fb_invite_change_role_details(): raise AttributeError("tag 'sf_fb_invite_change_role_details' not set") @@ -15148,7 +15972,7 @@ def get_sf_fb_uninvite_details(self): """ Only call this if :meth:`is_sf_fb_uninvite_details` is true. - :rtype: team_log.SfFbUninviteDetails + :rtype: SfFbUninviteDetails """ if not self.is_sf_fb_uninvite_details(): raise AttributeError("tag 'sf_fb_uninvite_details' not set") @@ -15158,7 +15982,7 @@ def get_sf_invite_group_details(self): """ Only call this if :meth:`is_sf_invite_group_details` is true. - :rtype: team_log.SfInviteGroupDetails + :rtype: SfInviteGroupDetails """ if not self.is_sf_invite_group_details(): raise AttributeError("tag 'sf_invite_group_details' not set") @@ -15168,7 +15992,7 @@ def get_sf_team_grant_access_details(self): """ Only call this if :meth:`is_sf_team_grant_access_details` is true. - :rtype: team_log.SfTeamGrantAccessDetails + :rtype: SfTeamGrantAccessDetails """ if not self.is_sf_team_grant_access_details(): raise AttributeError("tag 'sf_team_grant_access_details' not set") @@ -15178,7 +16002,7 @@ def get_sf_team_invite_details(self): """ Only call this if :meth:`is_sf_team_invite_details` is true. - :rtype: team_log.SfTeamInviteDetails + :rtype: SfTeamInviteDetails """ if not self.is_sf_team_invite_details(): raise AttributeError("tag 'sf_team_invite_details' not set") @@ -15188,7 +16012,7 @@ def get_sf_team_invite_change_role_details(self): """ Only call this if :meth:`is_sf_team_invite_change_role_details` is true. - :rtype: team_log.SfTeamInviteChangeRoleDetails + :rtype: SfTeamInviteChangeRoleDetails """ if not self.is_sf_team_invite_change_role_details(): raise AttributeError("tag 'sf_team_invite_change_role_details' not set") @@ -15198,7 +16022,7 @@ def get_sf_team_join_details(self): """ Only call this if :meth:`is_sf_team_join_details` is true. - :rtype: team_log.SfTeamJoinDetails + :rtype: SfTeamJoinDetails """ if not self.is_sf_team_join_details(): raise AttributeError("tag 'sf_team_join_details' not set") @@ -15208,7 +16032,7 @@ def get_sf_team_join_from_oob_link_details(self): """ Only call this if :meth:`is_sf_team_join_from_oob_link_details` is true. - :rtype: team_log.SfTeamJoinFromOobLinkDetails + :rtype: SfTeamJoinFromOobLinkDetails """ if not self.is_sf_team_join_from_oob_link_details(): raise AttributeError("tag 'sf_team_join_from_oob_link_details' not set") @@ -15218,7 +16042,7 @@ def get_sf_team_uninvite_details(self): """ Only call this if :meth:`is_sf_team_uninvite_details` is true. - :rtype: team_log.SfTeamUninviteDetails + :rtype: SfTeamUninviteDetails """ if not self.is_sf_team_uninvite_details(): raise AttributeError("tag 'sf_team_uninvite_details' not set") @@ -15228,7 +16052,7 @@ def get_shared_content_add_invitees_details(self): """ Only call this if :meth:`is_shared_content_add_invitees_details` is true. - :rtype: team_log.SharedContentAddInviteesDetails + :rtype: SharedContentAddInviteesDetails """ if not self.is_shared_content_add_invitees_details(): raise AttributeError("tag 'shared_content_add_invitees_details' not set") @@ -15238,7 +16062,7 @@ def get_shared_content_add_link_expiry_details(self): """ Only call this if :meth:`is_shared_content_add_link_expiry_details` is true. - :rtype: team_log.SharedContentAddLinkExpiryDetails + :rtype: SharedContentAddLinkExpiryDetails """ if not self.is_shared_content_add_link_expiry_details(): raise AttributeError("tag 'shared_content_add_link_expiry_details' not set") @@ -15248,7 +16072,7 @@ def get_shared_content_add_link_password_details(self): """ Only call this if :meth:`is_shared_content_add_link_password_details` is true. - :rtype: team_log.SharedContentAddLinkPasswordDetails + :rtype: SharedContentAddLinkPasswordDetails """ if not self.is_shared_content_add_link_password_details(): raise AttributeError("tag 'shared_content_add_link_password_details' not set") @@ -15258,7 +16082,7 @@ def get_shared_content_add_member_details(self): """ Only call this if :meth:`is_shared_content_add_member_details` is true. - :rtype: team_log.SharedContentAddMemberDetails + :rtype: SharedContentAddMemberDetails """ if not self.is_shared_content_add_member_details(): raise AttributeError("tag 'shared_content_add_member_details' not set") @@ -15268,7 +16092,7 @@ def get_shared_content_change_downloads_policy_details(self): """ Only call this if :meth:`is_shared_content_change_downloads_policy_details` is true. - :rtype: team_log.SharedContentChangeDownloadsPolicyDetails + :rtype: SharedContentChangeDownloadsPolicyDetails """ if not self.is_shared_content_change_downloads_policy_details(): raise AttributeError("tag 'shared_content_change_downloads_policy_details' not set") @@ -15278,7 +16102,7 @@ def get_shared_content_change_invitee_role_details(self): """ Only call this if :meth:`is_shared_content_change_invitee_role_details` is true. - :rtype: team_log.SharedContentChangeInviteeRoleDetails + :rtype: SharedContentChangeInviteeRoleDetails """ if not self.is_shared_content_change_invitee_role_details(): raise AttributeError("tag 'shared_content_change_invitee_role_details' not set") @@ -15288,7 +16112,7 @@ def get_shared_content_change_link_audience_details(self): """ Only call this if :meth:`is_shared_content_change_link_audience_details` is true. - :rtype: team_log.SharedContentChangeLinkAudienceDetails + :rtype: SharedContentChangeLinkAudienceDetails """ if not self.is_shared_content_change_link_audience_details(): raise AttributeError("tag 'shared_content_change_link_audience_details' not set") @@ -15298,7 +16122,7 @@ def get_shared_content_change_link_expiry_details(self): """ Only call this if :meth:`is_shared_content_change_link_expiry_details` is true. - :rtype: team_log.SharedContentChangeLinkExpiryDetails + :rtype: SharedContentChangeLinkExpiryDetails """ if not self.is_shared_content_change_link_expiry_details(): raise AttributeError("tag 'shared_content_change_link_expiry_details' not set") @@ -15308,7 +16132,7 @@ def get_shared_content_change_link_password_details(self): """ Only call this if :meth:`is_shared_content_change_link_password_details` is true. - :rtype: team_log.SharedContentChangeLinkPasswordDetails + :rtype: SharedContentChangeLinkPasswordDetails """ if not self.is_shared_content_change_link_password_details(): raise AttributeError("tag 'shared_content_change_link_password_details' not set") @@ -15318,7 +16142,7 @@ def get_shared_content_change_member_role_details(self): """ Only call this if :meth:`is_shared_content_change_member_role_details` is true. - :rtype: team_log.SharedContentChangeMemberRoleDetails + :rtype: SharedContentChangeMemberRoleDetails """ if not self.is_shared_content_change_member_role_details(): raise AttributeError("tag 'shared_content_change_member_role_details' not set") @@ -15328,7 +16152,7 @@ def get_shared_content_change_viewer_info_policy_details(self): """ Only call this if :meth:`is_shared_content_change_viewer_info_policy_details` is true. - :rtype: team_log.SharedContentChangeViewerInfoPolicyDetails + :rtype: SharedContentChangeViewerInfoPolicyDetails """ if not self.is_shared_content_change_viewer_info_policy_details(): raise AttributeError("tag 'shared_content_change_viewer_info_policy_details' not set") @@ -15338,7 +16162,7 @@ def get_shared_content_claim_invitation_details(self): """ Only call this if :meth:`is_shared_content_claim_invitation_details` is true. - :rtype: team_log.SharedContentClaimInvitationDetails + :rtype: SharedContentClaimInvitationDetails """ if not self.is_shared_content_claim_invitation_details(): raise AttributeError("tag 'shared_content_claim_invitation_details' not set") @@ -15348,7 +16172,7 @@ def get_shared_content_copy_details(self): """ Only call this if :meth:`is_shared_content_copy_details` is true. - :rtype: team_log.SharedContentCopyDetails + :rtype: SharedContentCopyDetails """ if not self.is_shared_content_copy_details(): raise AttributeError("tag 'shared_content_copy_details' not set") @@ -15358,7 +16182,7 @@ def get_shared_content_download_details(self): """ Only call this if :meth:`is_shared_content_download_details` is true. - :rtype: team_log.SharedContentDownloadDetails + :rtype: SharedContentDownloadDetails """ if not self.is_shared_content_download_details(): raise AttributeError("tag 'shared_content_download_details' not set") @@ -15368,7 +16192,7 @@ def get_shared_content_relinquish_membership_details(self): """ Only call this if :meth:`is_shared_content_relinquish_membership_details` is true. - :rtype: team_log.SharedContentRelinquishMembershipDetails + :rtype: SharedContentRelinquishMembershipDetails """ if not self.is_shared_content_relinquish_membership_details(): raise AttributeError("tag 'shared_content_relinquish_membership_details' not set") @@ -15378,7 +16202,7 @@ def get_shared_content_remove_invitees_details(self): """ Only call this if :meth:`is_shared_content_remove_invitees_details` is true. - :rtype: team_log.SharedContentRemoveInviteesDetails + :rtype: SharedContentRemoveInviteesDetails """ if not self.is_shared_content_remove_invitees_details(): raise AttributeError("tag 'shared_content_remove_invitees_details' not set") @@ -15388,7 +16212,7 @@ def get_shared_content_remove_link_expiry_details(self): """ Only call this if :meth:`is_shared_content_remove_link_expiry_details` is true. - :rtype: team_log.SharedContentRemoveLinkExpiryDetails + :rtype: SharedContentRemoveLinkExpiryDetails """ if not self.is_shared_content_remove_link_expiry_details(): raise AttributeError("tag 'shared_content_remove_link_expiry_details' not set") @@ -15398,7 +16222,7 @@ def get_shared_content_remove_link_password_details(self): """ Only call this if :meth:`is_shared_content_remove_link_password_details` is true. - :rtype: team_log.SharedContentRemoveLinkPasswordDetails + :rtype: SharedContentRemoveLinkPasswordDetails """ if not self.is_shared_content_remove_link_password_details(): raise AttributeError("tag 'shared_content_remove_link_password_details' not set") @@ -15408,7 +16232,7 @@ def get_shared_content_remove_member_details(self): """ Only call this if :meth:`is_shared_content_remove_member_details` is true. - :rtype: team_log.SharedContentRemoveMemberDetails + :rtype: SharedContentRemoveMemberDetails """ if not self.is_shared_content_remove_member_details(): raise AttributeError("tag 'shared_content_remove_member_details' not set") @@ -15418,7 +16242,7 @@ def get_shared_content_request_access_details(self): """ Only call this if :meth:`is_shared_content_request_access_details` is true. - :rtype: team_log.SharedContentRequestAccessDetails + :rtype: SharedContentRequestAccessDetails """ if not self.is_shared_content_request_access_details(): raise AttributeError("tag 'shared_content_request_access_details' not set") @@ -15428,7 +16252,7 @@ def get_shared_content_unshare_details(self): """ Only call this if :meth:`is_shared_content_unshare_details` is true. - :rtype: team_log.SharedContentUnshareDetails + :rtype: SharedContentUnshareDetails """ if not self.is_shared_content_unshare_details(): raise AttributeError("tag 'shared_content_unshare_details' not set") @@ -15438,7 +16262,7 @@ def get_shared_content_view_details(self): """ Only call this if :meth:`is_shared_content_view_details` is true. - :rtype: team_log.SharedContentViewDetails + :rtype: SharedContentViewDetails """ if not self.is_shared_content_view_details(): raise AttributeError("tag 'shared_content_view_details' not set") @@ -15448,7 +16272,7 @@ def get_shared_folder_change_link_policy_details(self): """ Only call this if :meth:`is_shared_folder_change_link_policy_details` is true. - :rtype: team_log.SharedFolderChangeLinkPolicyDetails + :rtype: SharedFolderChangeLinkPolicyDetails """ if not self.is_shared_folder_change_link_policy_details(): raise AttributeError("tag 'shared_folder_change_link_policy_details' not set") @@ -15458,7 +16282,7 @@ def get_shared_folder_change_members_inheritance_policy_details(self): """ Only call this if :meth:`is_shared_folder_change_members_inheritance_policy_details` is true. - :rtype: team_log.SharedFolderChangeMembersInheritancePolicyDetails + :rtype: SharedFolderChangeMembersInheritancePolicyDetails """ if not self.is_shared_folder_change_members_inheritance_policy_details(): raise AttributeError("tag 'shared_folder_change_members_inheritance_policy_details' not set") @@ -15468,7 +16292,7 @@ def get_shared_folder_change_members_management_policy_details(self): """ Only call this if :meth:`is_shared_folder_change_members_management_policy_details` is true. - :rtype: team_log.SharedFolderChangeMembersManagementPolicyDetails + :rtype: SharedFolderChangeMembersManagementPolicyDetails """ if not self.is_shared_folder_change_members_management_policy_details(): raise AttributeError("tag 'shared_folder_change_members_management_policy_details' not set") @@ -15478,7 +16302,7 @@ def get_shared_folder_change_members_policy_details(self): """ Only call this if :meth:`is_shared_folder_change_members_policy_details` is true. - :rtype: team_log.SharedFolderChangeMembersPolicyDetails + :rtype: SharedFolderChangeMembersPolicyDetails """ if not self.is_shared_folder_change_members_policy_details(): raise AttributeError("tag 'shared_folder_change_members_policy_details' not set") @@ -15488,7 +16312,7 @@ def get_shared_folder_create_details(self): """ Only call this if :meth:`is_shared_folder_create_details` is true. - :rtype: team_log.SharedFolderCreateDetails + :rtype: SharedFolderCreateDetails """ if not self.is_shared_folder_create_details(): raise AttributeError("tag 'shared_folder_create_details' not set") @@ -15498,7 +16322,7 @@ def get_shared_folder_decline_invitation_details(self): """ Only call this if :meth:`is_shared_folder_decline_invitation_details` is true. - :rtype: team_log.SharedFolderDeclineInvitationDetails + :rtype: SharedFolderDeclineInvitationDetails """ if not self.is_shared_folder_decline_invitation_details(): raise AttributeError("tag 'shared_folder_decline_invitation_details' not set") @@ -15508,7 +16332,7 @@ def get_shared_folder_mount_details(self): """ Only call this if :meth:`is_shared_folder_mount_details` is true. - :rtype: team_log.SharedFolderMountDetails + :rtype: SharedFolderMountDetails """ if not self.is_shared_folder_mount_details(): raise AttributeError("tag 'shared_folder_mount_details' not set") @@ -15518,7 +16342,7 @@ def get_shared_folder_nest_details(self): """ Only call this if :meth:`is_shared_folder_nest_details` is true. - :rtype: team_log.SharedFolderNestDetails + :rtype: SharedFolderNestDetails """ if not self.is_shared_folder_nest_details(): raise AttributeError("tag 'shared_folder_nest_details' not set") @@ -15528,7 +16352,7 @@ def get_shared_folder_transfer_ownership_details(self): """ Only call this if :meth:`is_shared_folder_transfer_ownership_details` is true. - :rtype: team_log.SharedFolderTransferOwnershipDetails + :rtype: SharedFolderTransferOwnershipDetails """ if not self.is_shared_folder_transfer_ownership_details(): raise AttributeError("tag 'shared_folder_transfer_ownership_details' not set") @@ -15538,7 +16362,7 @@ def get_shared_folder_unmount_details(self): """ Only call this if :meth:`is_shared_folder_unmount_details` is true. - :rtype: team_log.SharedFolderUnmountDetails + :rtype: SharedFolderUnmountDetails """ if not self.is_shared_folder_unmount_details(): raise AttributeError("tag 'shared_folder_unmount_details' not set") @@ -15548,7 +16372,7 @@ def get_shared_link_add_expiry_details(self): """ Only call this if :meth:`is_shared_link_add_expiry_details` is true. - :rtype: team_log.SharedLinkAddExpiryDetails + :rtype: SharedLinkAddExpiryDetails """ if not self.is_shared_link_add_expiry_details(): raise AttributeError("tag 'shared_link_add_expiry_details' not set") @@ -15558,7 +16382,7 @@ def get_shared_link_change_expiry_details(self): """ Only call this if :meth:`is_shared_link_change_expiry_details` is true. - :rtype: team_log.SharedLinkChangeExpiryDetails + :rtype: SharedLinkChangeExpiryDetails """ if not self.is_shared_link_change_expiry_details(): raise AttributeError("tag 'shared_link_change_expiry_details' not set") @@ -15568,7 +16392,7 @@ def get_shared_link_change_visibility_details(self): """ Only call this if :meth:`is_shared_link_change_visibility_details` is true. - :rtype: team_log.SharedLinkChangeVisibilityDetails + :rtype: SharedLinkChangeVisibilityDetails """ if not self.is_shared_link_change_visibility_details(): raise AttributeError("tag 'shared_link_change_visibility_details' not set") @@ -15578,7 +16402,7 @@ def get_shared_link_copy_details(self): """ Only call this if :meth:`is_shared_link_copy_details` is true. - :rtype: team_log.SharedLinkCopyDetails + :rtype: SharedLinkCopyDetails """ if not self.is_shared_link_copy_details(): raise AttributeError("tag 'shared_link_copy_details' not set") @@ -15588,7 +16412,7 @@ def get_shared_link_create_details(self): """ Only call this if :meth:`is_shared_link_create_details` is true. - :rtype: team_log.SharedLinkCreateDetails + :rtype: SharedLinkCreateDetails """ if not self.is_shared_link_create_details(): raise AttributeError("tag 'shared_link_create_details' not set") @@ -15598,7 +16422,7 @@ def get_shared_link_disable_details(self): """ Only call this if :meth:`is_shared_link_disable_details` is true. - :rtype: team_log.SharedLinkDisableDetails + :rtype: SharedLinkDisableDetails """ if not self.is_shared_link_disable_details(): raise AttributeError("tag 'shared_link_disable_details' not set") @@ -15608,7 +16432,7 @@ def get_shared_link_download_details(self): """ Only call this if :meth:`is_shared_link_download_details` is true. - :rtype: team_log.SharedLinkDownloadDetails + :rtype: SharedLinkDownloadDetails """ if not self.is_shared_link_download_details(): raise AttributeError("tag 'shared_link_download_details' not set") @@ -15618,7 +16442,7 @@ def get_shared_link_remove_expiry_details(self): """ Only call this if :meth:`is_shared_link_remove_expiry_details` is true. - :rtype: team_log.SharedLinkRemoveExpiryDetails + :rtype: SharedLinkRemoveExpiryDetails """ if not self.is_shared_link_remove_expiry_details(): raise AttributeError("tag 'shared_link_remove_expiry_details' not set") @@ -15628,7 +16452,7 @@ def get_shared_link_share_details(self): """ Only call this if :meth:`is_shared_link_share_details` is true. - :rtype: team_log.SharedLinkShareDetails + :rtype: SharedLinkShareDetails """ if not self.is_shared_link_share_details(): raise AttributeError("tag 'shared_link_share_details' not set") @@ -15638,7 +16462,7 @@ def get_shared_link_view_details(self): """ Only call this if :meth:`is_shared_link_view_details` is true. - :rtype: team_log.SharedLinkViewDetails + :rtype: SharedLinkViewDetails """ if not self.is_shared_link_view_details(): raise AttributeError("tag 'shared_link_view_details' not set") @@ -15648,7 +16472,7 @@ def get_shared_note_opened_details(self): """ Only call this if :meth:`is_shared_note_opened_details` is true. - :rtype: team_log.SharedNoteOpenedDetails + :rtype: SharedNoteOpenedDetails """ if not self.is_shared_note_opened_details(): raise AttributeError("tag 'shared_note_opened_details' not set") @@ -15658,7 +16482,7 @@ def get_shmodel_group_share_details(self): """ Only call this if :meth:`is_shmodel_group_share_details` is true. - :rtype: team_log.ShmodelGroupShareDetails + :rtype: ShmodelGroupShareDetails """ if not self.is_shmodel_group_share_details(): raise AttributeError("tag 'shmodel_group_share_details' not set") @@ -15668,7 +16492,7 @@ def get_showcase_access_granted_details(self): """ Only call this if :meth:`is_showcase_access_granted_details` is true. - :rtype: team_log.ShowcaseAccessGrantedDetails + :rtype: ShowcaseAccessGrantedDetails """ if not self.is_showcase_access_granted_details(): raise AttributeError("tag 'showcase_access_granted_details' not set") @@ -15678,7 +16502,7 @@ def get_showcase_add_member_details(self): """ Only call this if :meth:`is_showcase_add_member_details` is true. - :rtype: team_log.ShowcaseAddMemberDetails + :rtype: ShowcaseAddMemberDetails """ if not self.is_showcase_add_member_details(): raise AttributeError("tag 'showcase_add_member_details' not set") @@ -15688,7 +16512,7 @@ def get_showcase_archived_details(self): """ Only call this if :meth:`is_showcase_archived_details` is true. - :rtype: team_log.ShowcaseArchivedDetails + :rtype: ShowcaseArchivedDetails """ if not self.is_showcase_archived_details(): raise AttributeError("tag 'showcase_archived_details' not set") @@ -15698,7 +16522,7 @@ def get_showcase_created_details(self): """ Only call this if :meth:`is_showcase_created_details` is true. - :rtype: team_log.ShowcaseCreatedDetails + :rtype: ShowcaseCreatedDetails """ if not self.is_showcase_created_details(): raise AttributeError("tag 'showcase_created_details' not set") @@ -15708,7 +16532,7 @@ def get_showcase_delete_comment_details(self): """ Only call this if :meth:`is_showcase_delete_comment_details` is true. - :rtype: team_log.ShowcaseDeleteCommentDetails + :rtype: ShowcaseDeleteCommentDetails """ if not self.is_showcase_delete_comment_details(): raise AttributeError("tag 'showcase_delete_comment_details' not set") @@ -15718,7 +16542,7 @@ def get_showcase_edited_details(self): """ Only call this if :meth:`is_showcase_edited_details` is true. - :rtype: team_log.ShowcaseEditedDetails + :rtype: ShowcaseEditedDetails """ if not self.is_showcase_edited_details(): raise AttributeError("tag 'showcase_edited_details' not set") @@ -15728,7 +16552,7 @@ def get_showcase_edit_comment_details(self): """ Only call this if :meth:`is_showcase_edit_comment_details` is true. - :rtype: team_log.ShowcaseEditCommentDetails + :rtype: ShowcaseEditCommentDetails """ if not self.is_showcase_edit_comment_details(): raise AttributeError("tag 'showcase_edit_comment_details' not set") @@ -15738,7 +16562,7 @@ def get_showcase_file_added_details(self): """ Only call this if :meth:`is_showcase_file_added_details` is true. - :rtype: team_log.ShowcaseFileAddedDetails + :rtype: ShowcaseFileAddedDetails """ if not self.is_showcase_file_added_details(): raise AttributeError("tag 'showcase_file_added_details' not set") @@ -15748,7 +16572,7 @@ def get_showcase_file_download_details(self): """ Only call this if :meth:`is_showcase_file_download_details` is true. - :rtype: team_log.ShowcaseFileDownloadDetails + :rtype: ShowcaseFileDownloadDetails """ if not self.is_showcase_file_download_details(): raise AttributeError("tag 'showcase_file_download_details' not set") @@ -15758,7 +16582,7 @@ def get_showcase_file_removed_details(self): """ Only call this if :meth:`is_showcase_file_removed_details` is true. - :rtype: team_log.ShowcaseFileRemovedDetails + :rtype: ShowcaseFileRemovedDetails """ if not self.is_showcase_file_removed_details(): raise AttributeError("tag 'showcase_file_removed_details' not set") @@ -15768,7 +16592,7 @@ def get_showcase_file_view_details(self): """ Only call this if :meth:`is_showcase_file_view_details` is true. - :rtype: team_log.ShowcaseFileViewDetails + :rtype: ShowcaseFileViewDetails """ if not self.is_showcase_file_view_details(): raise AttributeError("tag 'showcase_file_view_details' not set") @@ -15778,7 +16602,7 @@ def get_showcase_permanently_deleted_details(self): """ Only call this if :meth:`is_showcase_permanently_deleted_details` is true. - :rtype: team_log.ShowcasePermanentlyDeletedDetails + :rtype: ShowcasePermanentlyDeletedDetails """ if not self.is_showcase_permanently_deleted_details(): raise AttributeError("tag 'showcase_permanently_deleted_details' not set") @@ -15788,7 +16612,7 @@ def get_showcase_post_comment_details(self): """ Only call this if :meth:`is_showcase_post_comment_details` is true. - :rtype: team_log.ShowcasePostCommentDetails + :rtype: ShowcasePostCommentDetails """ if not self.is_showcase_post_comment_details(): raise AttributeError("tag 'showcase_post_comment_details' not set") @@ -15798,7 +16622,7 @@ def get_showcase_remove_member_details(self): """ Only call this if :meth:`is_showcase_remove_member_details` is true. - :rtype: team_log.ShowcaseRemoveMemberDetails + :rtype: ShowcaseRemoveMemberDetails """ if not self.is_showcase_remove_member_details(): raise AttributeError("tag 'showcase_remove_member_details' not set") @@ -15808,7 +16632,7 @@ def get_showcase_renamed_details(self): """ Only call this if :meth:`is_showcase_renamed_details` is true. - :rtype: team_log.ShowcaseRenamedDetails + :rtype: ShowcaseRenamedDetails """ if not self.is_showcase_renamed_details(): raise AttributeError("tag 'showcase_renamed_details' not set") @@ -15818,7 +16642,7 @@ def get_showcase_request_access_details(self): """ Only call this if :meth:`is_showcase_request_access_details` is true. - :rtype: team_log.ShowcaseRequestAccessDetails + :rtype: ShowcaseRequestAccessDetails """ if not self.is_showcase_request_access_details(): raise AttributeError("tag 'showcase_request_access_details' not set") @@ -15828,7 +16652,7 @@ def get_showcase_resolve_comment_details(self): """ Only call this if :meth:`is_showcase_resolve_comment_details` is true. - :rtype: team_log.ShowcaseResolveCommentDetails + :rtype: ShowcaseResolveCommentDetails """ if not self.is_showcase_resolve_comment_details(): raise AttributeError("tag 'showcase_resolve_comment_details' not set") @@ -15838,7 +16662,7 @@ def get_showcase_restored_details(self): """ Only call this if :meth:`is_showcase_restored_details` is true. - :rtype: team_log.ShowcaseRestoredDetails + :rtype: ShowcaseRestoredDetails """ if not self.is_showcase_restored_details(): raise AttributeError("tag 'showcase_restored_details' not set") @@ -15848,7 +16672,7 @@ def get_showcase_trashed_details(self): """ Only call this if :meth:`is_showcase_trashed_details` is true. - :rtype: team_log.ShowcaseTrashedDetails + :rtype: ShowcaseTrashedDetails """ if not self.is_showcase_trashed_details(): raise AttributeError("tag 'showcase_trashed_details' not set") @@ -15858,7 +16682,7 @@ def get_showcase_trashed_deprecated_details(self): """ Only call this if :meth:`is_showcase_trashed_deprecated_details` is true. - :rtype: team_log.ShowcaseTrashedDeprecatedDetails + :rtype: ShowcaseTrashedDeprecatedDetails """ if not self.is_showcase_trashed_deprecated_details(): raise AttributeError("tag 'showcase_trashed_deprecated_details' not set") @@ -15868,7 +16692,7 @@ def get_showcase_unresolve_comment_details(self): """ Only call this if :meth:`is_showcase_unresolve_comment_details` is true. - :rtype: team_log.ShowcaseUnresolveCommentDetails + :rtype: ShowcaseUnresolveCommentDetails """ if not self.is_showcase_unresolve_comment_details(): raise AttributeError("tag 'showcase_unresolve_comment_details' not set") @@ -15878,7 +16702,7 @@ def get_showcase_untrashed_details(self): """ Only call this if :meth:`is_showcase_untrashed_details` is true. - :rtype: team_log.ShowcaseUntrashedDetails + :rtype: ShowcaseUntrashedDetails """ if not self.is_showcase_untrashed_details(): raise AttributeError("tag 'showcase_untrashed_details' not set") @@ -15888,7 +16712,7 @@ def get_showcase_untrashed_deprecated_details(self): """ Only call this if :meth:`is_showcase_untrashed_deprecated_details` is true. - :rtype: team_log.ShowcaseUntrashedDeprecatedDetails + :rtype: ShowcaseUntrashedDeprecatedDetails """ if not self.is_showcase_untrashed_deprecated_details(): raise AttributeError("tag 'showcase_untrashed_deprecated_details' not set") @@ -15898,7 +16722,7 @@ def get_showcase_view_details(self): """ Only call this if :meth:`is_showcase_view_details` is true. - :rtype: team_log.ShowcaseViewDetails + :rtype: ShowcaseViewDetails """ if not self.is_showcase_view_details(): raise AttributeError("tag 'showcase_view_details' not set") @@ -15908,7 +16732,7 @@ def get_sso_add_cert_details(self): """ Only call this if :meth:`is_sso_add_cert_details` is true. - :rtype: team_log.SsoAddCertDetails + :rtype: SsoAddCertDetails """ if not self.is_sso_add_cert_details(): raise AttributeError("tag 'sso_add_cert_details' not set") @@ -15918,7 +16742,7 @@ def get_sso_add_login_url_details(self): """ Only call this if :meth:`is_sso_add_login_url_details` is true. - :rtype: team_log.SsoAddLoginUrlDetails + :rtype: SsoAddLoginUrlDetails """ if not self.is_sso_add_login_url_details(): raise AttributeError("tag 'sso_add_login_url_details' not set") @@ -15928,7 +16752,7 @@ def get_sso_add_logout_url_details(self): """ Only call this if :meth:`is_sso_add_logout_url_details` is true. - :rtype: team_log.SsoAddLogoutUrlDetails + :rtype: SsoAddLogoutUrlDetails """ if not self.is_sso_add_logout_url_details(): raise AttributeError("tag 'sso_add_logout_url_details' not set") @@ -15938,7 +16762,7 @@ def get_sso_change_cert_details(self): """ Only call this if :meth:`is_sso_change_cert_details` is true. - :rtype: team_log.SsoChangeCertDetails + :rtype: SsoChangeCertDetails """ if not self.is_sso_change_cert_details(): raise AttributeError("tag 'sso_change_cert_details' not set") @@ -15948,7 +16772,7 @@ def get_sso_change_login_url_details(self): """ Only call this if :meth:`is_sso_change_login_url_details` is true. - :rtype: team_log.SsoChangeLoginUrlDetails + :rtype: SsoChangeLoginUrlDetails """ if not self.is_sso_change_login_url_details(): raise AttributeError("tag 'sso_change_login_url_details' not set") @@ -15958,7 +16782,7 @@ def get_sso_change_logout_url_details(self): """ Only call this if :meth:`is_sso_change_logout_url_details` is true. - :rtype: team_log.SsoChangeLogoutUrlDetails + :rtype: SsoChangeLogoutUrlDetails """ if not self.is_sso_change_logout_url_details(): raise AttributeError("tag 'sso_change_logout_url_details' not set") @@ -15968,7 +16792,7 @@ def get_sso_change_saml_identity_mode_details(self): """ Only call this if :meth:`is_sso_change_saml_identity_mode_details` is true. - :rtype: team_log.SsoChangeSamlIdentityModeDetails + :rtype: SsoChangeSamlIdentityModeDetails """ if not self.is_sso_change_saml_identity_mode_details(): raise AttributeError("tag 'sso_change_saml_identity_mode_details' not set") @@ -15978,7 +16802,7 @@ def get_sso_remove_cert_details(self): """ Only call this if :meth:`is_sso_remove_cert_details` is true. - :rtype: team_log.SsoRemoveCertDetails + :rtype: SsoRemoveCertDetails """ if not self.is_sso_remove_cert_details(): raise AttributeError("tag 'sso_remove_cert_details' not set") @@ -15988,7 +16812,7 @@ def get_sso_remove_login_url_details(self): """ Only call this if :meth:`is_sso_remove_login_url_details` is true. - :rtype: team_log.SsoRemoveLoginUrlDetails + :rtype: SsoRemoveLoginUrlDetails """ if not self.is_sso_remove_login_url_details(): raise AttributeError("tag 'sso_remove_login_url_details' not set") @@ -15998,7 +16822,7 @@ def get_sso_remove_logout_url_details(self): """ Only call this if :meth:`is_sso_remove_logout_url_details` is true. - :rtype: team_log.SsoRemoveLogoutUrlDetails + :rtype: SsoRemoveLogoutUrlDetails """ if not self.is_sso_remove_logout_url_details(): raise AttributeError("tag 'sso_remove_logout_url_details' not set") @@ -16008,7 +16832,7 @@ def get_team_folder_change_status_details(self): """ Only call this if :meth:`is_team_folder_change_status_details` is true. - :rtype: team_log.TeamFolderChangeStatusDetails + :rtype: TeamFolderChangeStatusDetails """ if not self.is_team_folder_change_status_details(): raise AttributeError("tag 'team_folder_change_status_details' not set") @@ -16018,7 +16842,7 @@ def get_team_folder_create_details(self): """ Only call this if :meth:`is_team_folder_create_details` is true. - :rtype: team_log.TeamFolderCreateDetails + :rtype: TeamFolderCreateDetails """ if not self.is_team_folder_create_details(): raise AttributeError("tag 'team_folder_create_details' not set") @@ -16028,7 +16852,7 @@ def get_team_folder_downgrade_details(self): """ Only call this if :meth:`is_team_folder_downgrade_details` is true. - :rtype: team_log.TeamFolderDowngradeDetails + :rtype: TeamFolderDowngradeDetails """ if not self.is_team_folder_downgrade_details(): raise AttributeError("tag 'team_folder_downgrade_details' not set") @@ -16038,7 +16862,7 @@ def get_team_folder_permanently_delete_details(self): """ Only call this if :meth:`is_team_folder_permanently_delete_details` is true. - :rtype: team_log.TeamFolderPermanentlyDeleteDetails + :rtype: TeamFolderPermanentlyDeleteDetails """ if not self.is_team_folder_permanently_delete_details(): raise AttributeError("tag 'team_folder_permanently_delete_details' not set") @@ -16048,7 +16872,7 @@ def get_team_folder_rename_details(self): """ Only call this if :meth:`is_team_folder_rename_details` is true. - :rtype: team_log.TeamFolderRenameDetails + :rtype: TeamFolderRenameDetails """ if not self.is_team_folder_rename_details(): raise AttributeError("tag 'team_folder_rename_details' not set") @@ -16058,7 +16882,7 @@ def get_team_selective_sync_settings_changed_details(self): """ Only call this if :meth:`is_team_selective_sync_settings_changed_details` is true. - :rtype: team_log.TeamSelectiveSyncSettingsChangedDetails + :rtype: TeamSelectiveSyncSettingsChangedDetails """ if not self.is_team_selective_sync_settings_changed_details(): raise AttributeError("tag 'team_selective_sync_settings_changed_details' not set") @@ -16068,7 +16892,7 @@ def get_account_capture_change_policy_details(self): """ Only call this if :meth:`is_account_capture_change_policy_details` is true. - :rtype: team_log.AccountCaptureChangePolicyDetails + :rtype: AccountCaptureChangePolicyDetails """ if not self.is_account_capture_change_policy_details(): raise AttributeError("tag 'account_capture_change_policy_details' not set") @@ -16078,7 +16902,7 @@ def get_allow_download_disabled_details(self): """ Only call this if :meth:`is_allow_download_disabled_details` is true. - :rtype: team_log.AllowDownloadDisabledDetails + :rtype: AllowDownloadDisabledDetails """ if not self.is_allow_download_disabled_details(): raise AttributeError("tag 'allow_download_disabled_details' not set") @@ -16088,7 +16912,7 @@ def get_allow_download_enabled_details(self): """ Only call this if :meth:`is_allow_download_enabled_details` is true. - :rtype: team_log.AllowDownloadEnabledDetails + :rtype: AllowDownloadEnabledDetails """ if not self.is_allow_download_enabled_details(): raise AttributeError("tag 'allow_download_enabled_details' not set") @@ -16098,7 +16922,7 @@ def get_camera_uploads_policy_changed_details(self): """ Only call this if :meth:`is_camera_uploads_policy_changed_details` is true. - :rtype: team_log.CameraUploadsPolicyChangedDetails + :rtype: CameraUploadsPolicyChangedDetails """ if not self.is_camera_uploads_policy_changed_details(): raise AttributeError("tag 'camera_uploads_policy_changed_details' not set") @@ -16108,7 +16932,7 @@ def get_data_placement_restriction_change_policy_details(self): """ Only call this if :meth:`is_data_placement_restriction_change_policy_details` is true. - :rtype: team_log.DataPlacementRestrictionChangePolicyDetails + :rtype: DataPlacementRestrictionChangePolicyDetails """ if not self.is_data_placement_restriction_change_policy_details(): raise AttributeError("tag 'data_placement_restriction_change_policy_details' not set") @@ -16118,7 +16942,7 @@ def get_data_placement_restriction_satisfy_policy_details(self): """ Only call this if :meth:`is_data_placement_restriction_satisfy_policy_details` is true. - :rtype: team_log.DataPlacementRestrictionSatisfyPolicyDetails + :rtype: DataPlacementRestrictionSatisfyPolicyDetails """ if not self.is_data_placement_restriction_satisfy_policy_details(): raise AttributeError("tag 'data_placement_restriction_satisfy_policy_details' not set") @@ -16128,7 +16952,7 @@ def get_device_approvals_change_desktop_policy_details(self): """ Only call this if :meth:`is_device_approvals_change_desktop_policy_details` is true. - :rtype: team_log.DeviceApprovalsChangeDesktopPolicyDetails + :rtype: DeviceApprovalsChangeDesktopPolicyDetails """ if not self.is_device_approvals_change_desktop_policy_details(): raise AttributeError("tag 'device_approvals_change_desktop_policy_details' not set") @@ -16138,7 +16962,7 @@ def get_device_approvals_change_mobile_policy_details(self): """ Only call this if :meth:`is_device_approvals_change_mobile_policy_details` is true. - :rtype: team_log.DeviceApprovalsChangeMobilePolicyDetails + :rtype: DeviceApprovalsChangeMobilePolicyDetails """ if not self.is_device_approvals_change_mobile_policy_details(): raise AttributeError("tag 'device_approvals_change_mobile_policy_details' not set") @@ -16148,7 +16972,7 @@ def get_device_approvals_change_overage_action_details(self): """ Only call this if :meth:`is_device_approvals_change_overage_action_details` is true. - :rtype: team_log.DeviceApprovalsChangeOverageActionDetails + :rtype: DeviceApprovalsChangeOverageActionDetails """ if not self.is_device_approvals_change_overage_action_details(): raise AttributeError("tag 'device_approvals_change_overage_action_details' not set") @@ -16158,7 +16982,7 @@ def get_device_approvals_change_unlink_action_details(self): """ Only call this if :meth:`is_device_approvals_change_unlink_action_details` is true. - :rtype: team_log.DeviceApprovalsChangeUnlinkActionDetails + :rtype: DeviceApprovalsChangeUnlinkActionDetails """ if not self.is_device_approvals_change_unlink_action_details(): raise AttributeError("tag 'device_approvals_change_unlink_action_details' not set") @@ -16168,7 +16992,7 @@ def get_directory_restrictions_add_members_details(self): """ Only call this if :meth:`is_directory_restrictions_add_members_details` is true. - :rtype: team_log.DirectoryRestrictionsAddMembersDetails + :rtype: DirectoryRestrictionsAddMembersDetails """ if not self.is_directory_restrictions_add_members_details(): raise AttributeError("tag 'directory_restrictions_add_members_details' not set") @@ -16178,7 +17002,7 @@ def get_directory_restrictions_remove_members_details(self): """ Only call this if :meth:`is_directory_restrictions_remove_members_details` is true. - :rtype: team_log.DirectoryRestrictionsRemoveMembersDetails + :rtype: DirectoryRestrictionsRemoveMembersDetails """ if not self.is_directory_restrictions_remove_members_details(): raise AttributeError("tag 'directory_restrictions_remove_members_details' not set") @@ -16188,7 +17012,7 @@ def get_emm_add_exception_details(self): """ Only call this if :meth:`is_emm_add_exception_details` is true. - :rtype: team_log.EmmAddExceptionDetails + :rtype: EmmAddExceptionDetails """ if not self.is_emm_add_exception_details(): raise AttributeError("tag 'emm_add_exception_details' not set") @@ -16198,7 +17022,7 @@ def get_emm_change_policy_details(self): """ Only call this if :meth:`is_emm_change_policy_details` is true. - :rtype: team_log.EmmChangePolicyDetails + :rtype: EmmChangePolicyDetails """ if not self.is_emm_change_policy_details(): raise AttributeError("tag 'emm_change_policy_details' not set") @@ -16208,7 +17032,7 @@ def get_emm_remove_exception_details(self): """ Only call this if :meth:`is_emm_remove_exception_details` is true. - :rtype: team_log.EmmRemoveExceptionDetails + :rtype: EmmRemoveExceptionDetails """ if not self.is_emm_remove_exception_details(): raise AttributeError("tag 'emm_remove_exception_details' not set") @@ -16218,7 +17042,7 @@ def get_extended_version_history_change_policy_details(self): """ Only call this if :meth:`is_extended_version_history_change_policy_details` is true. - :rtype: team_log.ExtendedVersionHistoryChangePolicyDetails + :rtype: ExtendedVersionHistoryChangePolicyDetails """ if not self.is_extended_version_history_change_policy_details(): raise AttributeError("tag 'extended_version_history_change_policy_details' not set") @@ -16228,7 +17052,7 @@ def get_file_comments_change_policy_details(self): """ Only call this if :meth:`is_file_comments_change_policy_details` is true. - :rtype: team_log.FileCommentsChangePolicyDetails + :rtype: FileCommentsChangePolicyDetails """ if not self.is_file_comments_change_policy_details(): raise AttributeError("tag 'file_comments_change_policy_details' not set") @@ -16238,7 +17062,7 @@ def get_file_requests_change_policy_details(self): """ Only call this if :meth:`is_file_requests_change_policy_details` is true. - :rtype: team_log.FileRequestsChangePolicyDetails + :rtype: FileRequestsChangePolicyDetails """ if not self.is_file_requests_change_policy_details(): raise AttributeError("tag 'file_requests_change_policy_details' not set") @@ -16248,7 +17072,7 @@ def get_file_requests_emails_enabled_details(self): """ Only call this if :meth:`is_file_requests_emails_enabled_details` is true. - :rtype: team_log.FileRequestsEmailsEnabledDetails + :rtype: FileRequestsEmailsEnabledDetails """ if not self.is_file_requests_emails_enabled_details(): raise AttributeError("tag 'file_requests_emails_enabled_details' not set") @@ -16258,7 +17082,7 @@ def get_file_requests_emails_restricted_to_team_only_details(self): """ Only call this if :meth:`is_file_requests_emails_restricted_to_team_only_details` is true. - :rtype: team_log.FileRequestsEmailsRestrictedToTeamOnlyDetails + :rtype: FileRequestsEmailsRestrictedToTeamOnlyDetails """ if not self.is_file_requests_emails_restricted_to_team_only_details(): raise AttributeError("tag 'file_requests_emails_restricted_to_team_only_details' not set") @@ -16268,7 +17092,7 @@ def get_google_sso_change_policy_details(self): """ Only call this if :meth:`is_google_sso_change_policy_details` is true. - :rtype: team_log.GoogleSsoChangePolicyDetails + :rtype: GoogleSsoChangePolicyDetails """ if not self.is_google_sso_change_policy_details(): raise AttributeError("tag 'google_sso_change_policy_details' not set") @@ -16278,17 +17102,27 @@ def get_group_user_management_change_policy_details(self): """ Only call this if :meth:`is_group_user_management_change_policy_details` is true. - :rtype: team_log.GroupUserManagementChangePolicyDetails + :rtype: GroupUserManagementChangePolicyDetails """ if not self.is_group_user_management_change_policy_details(): raise AttributeError("tag 'group_user_management_change_policy_details' not set") return self._value + def get_integration_policy_changed_details(self): + """ + Only call this if :meth:`is_integration_policy_changed_details` is true. + + :rtype: IntegrationPolicyChangedDetails + """ + if not self.is_integration_policy_changed_details(): + raise AttributeError("tag 'integration_policy_changed_details' not set") + return self._value + def get_member_requests_change_policy_details(self): """ Only call this if :meth:`is_member_requests_change_policy_details` is true. - :rtype: team_log.MemberRequestsChangePolicyDetails + :rtype: MemberRequestsChangePolicyDetails """ if not self.is_member_requests_change_policy_details(): raise AttributeError("tag 'member_requests_change_policy_details' not set") @@ -16298,7 +17132,7 @@ def get_member_space_limits_add_exception_details(self): """ Only call this if :meth:`is_member_space_limits_add_exception_details` is true. - :rtype: team_log.MemberSpaceLimitsAddExceptionDetails + :rtype: MemberSpaceLimitsAddExceptionDetails """ if not self.is_member_space_limits_add_exception_details(): raise AttributeError("tag 'member_space_limits_add_exception_details' not set") @@ -16308,7 +17142,7 @@ def get_member_space_limits_change_caps_type_policy_details(self): """ Only call this if :meth:`is_member_space_limits_change_caps_type_policy_details` is true. - :rtype: team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails + :rtype: MemberSpaceLimitsChangeCapsTypePolicyDetails """ if not self.is_member_space_limits_change_caps_type_policy_details(): raise AttributeError("tag 'member_space_limits_change_caps_type_policy_details' not set") @@ -16318,7 +17152,7 @@ def get_member_space_limits_change_policy_details(self): """ Only call this if :meth:`is_member_space_limits_change_policy_details` is true. - :rtype: team_log.MemberSpaceLimitsChangePolicyDetails + :rtype: MemberSpaceLimitsChangePolicyDetails """ if not self.is_member_space_limits_change_policy_details(): raise AttributeError("tag 'member_space_limits_change_policy_details' not set") @@ -16328,7 +17162,7 @@ def get_member_space_limits_remove_exception_details(self): """ Only call this if :meth:`is_member_space_limits_remove_exception_details` is true. - :rtype: team_log.MemberSpaceLimitsRemoveExceptionDetails + :rtype: MemberSpaceLimitsRemoveExceptionDetails """ if not self.is_member_space_limits_remove_exception_details(): raise AttributeError("tag 'member_space_limits_remove_exception_details' not set") @@ -16338,7 +17172,7 @@ def get_member_suggestions_change_policy_details(self): """ Only call this if :meth:`is_member_suggestions_change_policy_details` is true. - :rtype: team_log.MemberSuggestionsChangePolicyDetails + :rtype: MemberSuggestionsChangePolicyDetails """ if not self.is_member_suggestions_change_policy_details(): raise AttributeError("tag 'member_suggestions_change_policy_details' not set") @@ -16348,7 +17182,7 @@ def get_microsoft_office_addin_change_policy_details(self): """ Only call this if :meth:`is_microsoft_office_addin_change_policy_details` is true. - :rtype: team_log.MicrosoftOfficeAddinChangePolicyDetails + :rtype: MicrosoftOfficeAddinChangePolicyDetails """ if not self.is_microsoft_office_addin_change_policy_details(): raise AttributeError("tag 'microsoft_office_addin_change_policy_details' not set") @@ -16358,7 +17192,7 @@ def get_network_control_change_policy_details(self): """ Only call this if :meth:`is_network_control_change_policy_details` is true. - :rtype: team_log.NetworkControlChangePolicyDetails + :rtype: NetworkControlChangePolicyDetails """ if not self.is_network_control_change_policy_details(): raise AttributeError("tag 'network_control_change_policy_details' not set") @@ -16368,7 +17202,7 @@ def get_paper_change_deployment_policy_details(self): """ Only call this if :meth:`is_paper_change_deployment_policy_details` is true. - :rtype: team_log.PaperChangeDeploymentPolicyDetails + :rtype: PaperChangeDeploymentPolicyDetails """ if not self.is_paper_change_deployment_policy_details(): raise AttributeError("tag 'paper_change_deployment_policy_details' not set") @@ -16378,7 +17212,7 @@ def get_paper_change_member_link_policy_details(self): """ Only call this if :meth:`is_paper_change_member_link_policy_details` is true. - :rtype: team_log.PaperChangeMemberLinkPolicyDetails + :rtype: PaperChangeMemberLinkPolicyDetails """ if not self.is_paper_change_member_link_policy_details(): raise AttributeError("tag 'paper_change_member_link_policy_details' not set") @@ -16388,7 +17222,7 @@ def get_paper_change_member_policy_details(self): """ Only call this if :meth:`is_paper_change_member_policy_details` is true. - :rtype: team_log.PaperChangeMemberPolicyDetails + :rtype: PaperChangeMemberPolicyDetails """ if not self.is_paper_change_member_policy_details(): raise AttributeError("tag 'paper_change_member_policy_details' not set") @@ -16398,17 +17232,37 @@ def get_paper_change_policy_details(self): """ Only call this if :meth:`is_paper_change_policy_details` is true. - :rtype: team_log.PaperChangePolicyDetails + :rtype: PaperChangePolicyDetails """ if not self.is_paper_change_policy_details(): raise AttributeError("tag 'paper_change_policy_details' not set") return self._value + def get_paper_default_folder_policy_changed_details(self): + """ + Only call this if :meth:`is_paper_default_folder_policy_changed_details` is true. + + :rtype: PaperDefaultFolderPolicyChangedDetails + """ + if not self.is_paper_default_folder_policy_changed_details(): + raise AttributeError("tag 'paper_default_folder_policy_changed_details' not set") + return self._value + + def get_paper_desktop_policy_changed_details(self): + """ + Only call this if :meth:`is_paper_desktop_policy_changed_details` is true. + + :rtype: PaperDesktopPolicyChangedDetails + """ + if not self.is_paper_desktop_policy_changed_details(): + raise AttributeError("tag 'paper_desktop_policy_changed_details' not set") + return self._value + def get_paper_enabled_users_group_addition_details(self): """ Only call this if :meth:`is_paper_enabled_users_group_addition_details` is true. - :rtype: team_log.PaperEnabledUsersGroupAdditionDetails + :rtype: PaperEnabledUsersGroupAdditionDetails """ if not self.is_paper_enabled_users_group_addition_details(): raise AttributeError("tag 'paper_enabled_users_group_addition_details' not set") @@ -16418,7 +17272,7 @@ def get_paper_enabled_users_group_removal_details(self): """ Only call this if :meth:`is_paper_enabled_users_group_removal_details` is true. - :rtype: team_log.PaperEnabledUsersGroupRemovalDetails + :rtype: PaperEnabledUsersGroupRemovalDetails """ if not self.is_paper_enabled_users_group_removal_details(): raise AttributeError("tag 'paper_enabled_users_group_removal_details' not set") @@ -16428,17 +17282,27 @@ def get_permanent_delete_change_policy_details(self): """ Only call this if :meth:`is_permanent_delete_change_policy_details` is true. - :rtype: team_log.PermanentDeleteChangePolicyDetails + :rtype: PermanentDeleteChangePolicyDetails """ if not self.is_permanent_delete_change_policy_details(): raise AttributeError("tag 'permanent_delete_change_policy_details' not set") return self._value + def get_reseller_support_change_policy_details(self): + """ + Only call this if :meth:`is_reseller_support_change_policy_details` is true. + + :rtype: ResellerSupportChangePolicyDetails + """ + if not self.is_reseller_support_change_policy_details(): + raise AttributeError("tag 'reseller_support_change_policy_details' not set") + return self._value + def get_sharing_change_folder_join_policy_details(self): """ Only call this if :meth:`is_sharing_change_folder_join_policy_details` is true. - :rtype: team_log.SharingChangeFolderJoinPolicyDetails + :rtype: SharingChangeFolderJoinPolicyDetails """ if not self.is_sharing_change_folder_join_policy_details(): raise AttributeError("tag 'sharing_change_folder_join_policy_details' not set") @@ -16448,7 +17312,7 @@ def get_sharing_change_link_policy_details(self): """ Only call this if :meth:`is_sharing_change_link_policy_details` is true. - :rtype: team_log.SharingChangeLinkPolicyDetails + :rtype: SharingChangeLinkPolicyDetails """ if not self.is_sharing_change_link_policy_details(): raise AttributeError("tag 'sharing_change_link_policy_details' not set") @@ -16458,7 +17322,7 @@ def get_sharing_change_member_policy_details(self): """ Only call this if :meth:`is_sharing_change_member_policy_details` is true. - :rtype: team_log.SharingChangeMemberPolicyDetails + :rtype: SharingChangeMemberPolicyDetails """ if not self.is_sharing_change_member_policy_details(): raise AttributeError("tag 'sharing_change_member_policy_details' not set") @@ -16468,7 +17332,7 @@ def get_showcase_change_download_policy_details(self): """ Only call this if :meth:`is_showcase_change_download_policy_details` is true. - :rtype: team_log.ShowcaseChangeDownloadPolicyDetails + :rtype: ShowcaseChangeDownloadPolicyDetails """ if not self.is_showcase_change_download_policy_details(): raise AttributeError("tag 'showcase_change_download_policy_details' not set") @@ -16478,7 +17342,7 @@ def get_showcase_change_enabled_policy_details(self): """ Only call this if :meth:`is_showcase_change_enabled_policy_details` is true. - :rtype: team_log.ShowcaseChangeEnabledPolicyDetails + :rtype: ShowcaseChangeEnabledPolicyDetails """ if not self.is_showcase_change_enabled_policy_details(): raise AttributeError("tag 'showcase_change_enabled_policy_details' not set") @@ -16488,7 +17352,7 @@ def get_showcase_change_external_sharing_policy_details(self): """ Only call this if :meth:`is_showcase_change_external_sharing_policy_details` is true. - :rtype: team_log.ShowcaseChangeExternalSharingPolicyDetails + :rtype: ShowcaseChangeExternalSharingPolicyDetails """ if not self.is_showcase_change_external_sharing_policy_details(): raise AttributeError("tag 'showcase_change_external_sharing_policy_details' not set") @@ -16498,7 +17362,7 @@ def get_smart_sync_change_policy_details(self): """ Only call this if :meth:`is_smart_sync_change_policy_details` is true. - :rtype: team_log.SmartSyncChangePolicyDetails + :rtype: SmartSyncChangePolicyDetails """ if not self.is_smart_sync_change_policy_details(): raise AttributeError("tag 'smart_sync_change_policy_details' not set") @@ -16508,7 +17372,7 @@ def get_smart_sync_not_opt_out_details(self): """ Only call this if :meth:`is_smart_sync_not_opt_out_details` is true. - :rtype: team_log.SmartSyncNotOptOutDetails + :rtype: SmartSyncNotOptOutDetails """ if not self.is_smart_sync_not_opt_out_details(): raise AttributeError("tag 'smart_sync_not_opt_out_details' not set") @@ -16518,7 +17382,7 @@ def get_smart_sync_opt_out_details(self): """ Only call this if :meth:`is_smart_sync_opt_out_details` is true. - :rtype: team_log.SmartSyncOptOutDetails + :rtype: SmartSyncOptOutDetails """ if not self.is_smart_sync_opt_out_details(): raise AttributeError("tag 'smart_sync_opt_out_details' not set") @@ -16528,17 +17392,27 @@ def get_sso_change_policy_details(self): """ Only call this if :meth:`is_sso_change_policy_details` is true. - :rtype: team_log.SsoChangePolicyDetails + :rtype: SsoChangePolicyDetails """ if not self.is_sso_change_policy_details(): raise AttributeError("tag 'sso_change_policy_details' not set") return self._value + def get_team_extensions_policy_changed_details(self): + """ + Only call this if :meth:`is_team_extensions_policy_changed_details` is true. + + :rtype: TeamExtensionsPolicyChangedDetails + """ + if not self.is_team_extensions_policy_changed_details(): + raise AttributeError("tag 'team_extensions_policy_changed_details' not set") + return self._value + def get_team_selective_sync_policy_changed_details(self): """ Only call this if :meth:`is_team_selective_sync_policy_changed_details` is true. - :rtype: team_log.TeamSelectiveSyncPolicyChangedDetails + :rtype: TeamSelectiveSyncPolicyChangedDetails """ if not self.is_team_selective_sync_policy_changed_details(): raise AttributeError("tag 'team_selective_sync_policy_changed_details' not set") @@ -16548,7 +17422,7 @@ def get_tfa_change_policy_details(self): """ Only call this if :meth:`is_tfa_change_policy_details` is true. - :rtype: team_log.TfaChangePolicyDetails + :rtype: TfaChangePolicyDetails """ if not self.is_tfa_change_policy_details(): raise AttributeError("tag 'tfa_change_policy_details' not set") @@ -16558,7 +17432,7 @@ def get_two_account_change_policy_details(self): """ Only call this if :meth:`is_two_account_change_policy_details` is true. - :rtype: team_log.TwoAccountChangePolicyDetails + :rtype: TwoAccountChangePolicyDetails """ if not self.is_two_account_change_policy_details(): raise AttributeError("tag 'two_account_change_policy_details' not set") @@ -16568,7 +17442,7 @@ def get_viewer_info_policy_changed_details(self): """ Only call this if :meth:`is_viewer_info_policy_changed_details` is true. - :rtype: team_log.ViewerInfoPolicyChangedDetails + :rtype: ViewerInfoPolicyChangedDetails """ if not self.is_viewer_info_policy_changed_details(): raise AttributeError("tag 'viewer_info_policy_changed_details' not set") @@ -16578,7 +17452,7 @@ def get_web_sessions_change_fixed_length_policy_details(self): """ Only call this if :meth:`is_web_sessions_change_fixed_length_policy_details` is true. - :rtype: team_log.WebSessionsChangeFixedLengthPolicyDetails + :rtype: WebSessionsChangeFixedLengthPolicyDetails """ if not self.is_web_sessions_change_fixed_length_policy_details(): raise AttributeError("tag 'web_sessions_change_fixed_length_policy_details' not set") @@ -16588,7 +17462,7 @@ def get_web_sessions_change_idle_length_policy_details(self): """ Only call this if :meth:`is_web_sessions_change_idle_length_policy_details` is true. - :rtype: team_log.WebSessionsChangeIdleLengthPolicyDetails + :rtype: WebSessionsChangeIdleLengthPolicyDetails """ if not self.is_web_sessions_change_idle_length_policy_details(): raise AttributeError("tag 'web_sessions_change_idle_length_policy_details' not set") @@ -16598,7 +17472,7 @@ def get_team_merge_from_details(self): """ Only call this if :meth:`is_team_merge_from_details` is true. - :rtype: team_log.TeamMergeFromDetails + :rtype: TeamMergeFromDetails """ if not self.is_team_merge_from_details(): raise AttributeError("tag 'team_merge_from_details' not set") @@ -16608,7 +17482,7 @@ def get_team_merge_to_details(self): """ Only call this if :meth:`is_team_merge_to_details` is true. - :rtype: team_log.TeamMergeToDetails + :rtype: TeamMergeToDetails """ if not self.is_team_merge_to_details(): raise AttributeError("tag 'team_merge_to_details' not set") @@ -16618,7 +17492,7 @@ def get_team_profile_add_logo_details(self): """ Only call this if :meth:`is_team_profile_add_logo_details` is true. - :rtype: team_log.TeamProfileAddLogoDetails + :rtype: TeamProfileAddLogoDetails """ if not self.is_team_profile_add_logo_details(): raise AttributeError("tag 'team_profile_add_logo_details' not set") @@ -16628,7 +17502,7 @@ def get_team_profile_change_default_language_details(self): """ Only call this if :meth:`is_team_profile_change_default_language_details` is true. - :rtype: team_log.TeamProfileChangeDefaultLanguageDetails + :rtype: TeamProfileChangeDefaultLanguageDetails """ if not self.is_team_profile_change_default_language_details(): raise AttributeError("tag 'team_profile_change_default_language_details' not set") @@ -16638,7 +17512,7 @@ def get_team_profile_change_logo_details(self): """ Only call this if :meth:`is_team_profile_change_logo_details` is true. - :rtype: team_log.TeamProfileChangeLogoDetails + :rtype: TeamProfileChangeLogoDetails """ if not self.is_team_profile_change_logo_details(): raise AttributeError("tag 'team_profile_change_logo_details' not set") @@ -16648,7 +17522,7 @@ def get_team_profile_change_name_details(self): """ Only call this if :meth:`is_team_profile_change_name_details` is true. - :rtype: team_log.TeamProfileChangeNameDetails + :rtype: TeamProfileChangeNameDetails """ if not self.is_team_profile_change_name_details(): raise AttributeError("tag 'team_profile_change_name_details' not set") @@ -16658,7 +17532,7 @@ def get_team_profile_remove_logo_details(self): """ Only call this if :meth:`is_team_profile_remove_logo_details` is true. - :rtype: team_log.TeamProfileRemoveLogoDetails + :rtype: TeamProfileRemoveLogoDetails """ if not self.is_team_profile_remove_logo_details(): raise AttributeError("tag 'team_profile_remove_logo_details' not set") @@ -16668,7 +17542,7 @@ def get_tfa_add_backup_phone_details(self): """ Only call this if :meth:`is_tfa_add_backup_phone_details` is true. - :rtype: team_log.TfaAddBackupPhoneDetails + :rtype: TfaAddBackupPhoneDetails """ if not self.is_tfa_add_backup_phone_details(): raise AttributeError("tag 'tfa_add_backup_phone_details' not set") @@ -16678,7 +17552,7 @@ def get_tfa_add_security_key_details(self): """ Only call this if :meth:`is_tfa_add_security_key_details` is true. - :rtype: team_log.TfaAddSecurityKeyDetails + :rtype: TfaAddSecurityKeyDetails """ if not self.is_tfa_add_security_key_details(): raise AttributeError("tag 'tfa_add_security_key_details' not set") @@ -16688,7 +17562,7 @@ def get_tfa_change_backup_phone_details(self): """ Only call this if :meth:`is_tfa_change_backup_phone_details` is true. - :rtype: team_log.TfaChangeBackupPhoneDetails + :rtype: TfaChangeBackupPhoneDetails """ if not self.is_tfa_change_backup_phone_details(): raise AttributeError("tag 'tfa_change_backup_phone_details' not set") @@ -16698,7 +17572,7 @@ def get_tfa_change_status_details(self): """ Only call this if :meth:`is_tfa_change_status_details` is true. - :rtype: team_log.TfaChangeStatusDetails + :rtype: TfaChangeStatusDetails """ if not self.is_tfa_change_status_details(): raise AttributeError("tag 'tfa_change_status_details' not set") @@ -16708,7 +17582,7 @@ def get_tfa_remove_backup_phone_details(self): """ Only call this if :meth:`is_tfa_remove_backup_phone_details` is true. - :rtype: team_log.TfaRemoveBackupPhoneDetails + :rtype: TfaRemoveBackupPhoneDetails """ if not self.is_tfa_remove_backup_phone_details(): raise AttributeError("tag 'tfa_remove_backup_phone_details' not set") @@ -16718,7 +17592,7 @@ def get_tfa_remove_security_key_details(self): """ Only call this if :meth:`is_tfa_remove_security_key_details` is true. - :rtype: team_log.TfaRemoveSecurityKeyDetails + :rtype: TfaRemoveSecurityKeyDetails """ if not self.is_tfa_remove_security_key_details(): raise AttributeError("tag 'tfa_remove_security_key_details' not set") @@ -16728,12 +17602,202 @@ def get_tfa_reset_details(self): """ Only call this if :meth:`is_tfa_reset_details` is true. - :rtype: team_log.TfaResetDetails + :rtype: TfaResetDetails """ if not self.is_tfa_reset_details(): raise AttributeError("tag 'tfa_reset_details' not set") return self._value + def get_guest_admin_change_status_details(self): + """ + Only call this if :meth:`is_guest_admin_change_status_details` is true. + + :rtype: GuestAdminChangeStatusDetails + """ + if not self.is_guest_admin_change_status_details(): + raise AttributeError("tag 'guest_admin_change_status_details' not set") + return self._value + + def get_team_merge_request_accepted_details(self): + """ + Only call this if :meth:`is_team_merge_request_accepted_details` is true. + + :rtype: TeamMergeRequestAcceptedDetails + """ + if not self.is_team_merge_request_accepted_details(): + raise AttributeError("tag 'team_merge_request_accepted_details' not set") + return self._value + + def get_team_merge_request_accepted_shown_to_primary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_accepted_shown_to_primary_team_details` is true. + + :rtype: TeamMergeRequestAcceptedShownToPrimaryTeamDetails + """ + if not self.is_team_merge_request_accepted_shown_to_primary_team_details(): + raise AttributeError("tag 'team_merge_request_accepted_shown_to_primary_team_details' not set") + return self._value + + def get_team_merge_request_accepted_shown_to_secondary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_accepted_shown_to_secondary_team_details` is true. + + :rtype: TeamMergeRequestAcceptedShownToSecondaryTeamDetails + """ + if not self.is_team_merge_request_accepted_shown_to_secondary_team_details(): + raise AttributeError("tag 'team_merge_request_accepted_shown_to_secondary_team_details' not set") + return self._value + + def get_team_merge_request_auto_canceled_details(self): + """ + Only call this if :meth:`is_team_merge_request_auto_canceled_details` is true. + + :rtype: TeamMergeRequestAutoCanceledDetails + """ + if not self.is_team_merge_request_auto_canceled_details(): + raise AttributeError("tag 'team_merge_request_auto_canceled_details' not set") + return self._value + + def get_team_merge_request_canceled_details(self): + """ + Only call this if :meth:`is_team_merge_request_canceled_details` is true. + + :rtype: TeamMergeRequestCanceledDetails + """ + if not self.is_team_merge_request_canceled_details(): + raise AttributeError("tag 'team_merge_request_canceled_details' not set") + return self._value + + def get_team_merge_request_canceled_shown_to_primary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_canceled_shown_to_primary_team_details` is true. + + :rtype: TeamMergeRequestCanceledShownToPrimaryTeamDetails + """ + if not self.is_team_merge_request_canceled_shown_to_primary_team_details(): + raise AttributeError("tag 'team_merge_request_canceled_shown_to_primary_team_details' not set") + return self._value + + def get_team_merge_request_canceled_shown_to_secondary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_canceled_shown_to_secondary_team_details` is true. + + :rtype: TeamMergeRequestCanceledShownToSecondaryTeamDetails + """ + if not self.is_team_merge_request_canceled_shown_to_secondary_team_details(): + raise AttributeError("tag 'team_merge_request_canceled_shown_to_secondary_team_details' not set") + return self._value + + def get_team_merge_request_expired_details(self): + """ + Only call this if :meth:`is_team_merge_request_expired_details` is true. + + :rtype: TeamMergeRequestExpiredDetails + """ + if not self.is_team_merge_request_expired_details(): + raise AttributeError("tag 'team_merge_request_expired_details' not set") + return self._value + + def get_team_merge_request_expired_shown_to_primary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_expired_shown_to_primary_team_details` is true. + + :rtype: TeamMergeRequestExpiredShownToPrimaryTeamDetails + """ + if not self.is_team_merge_request_expired_shown_to_primary_team_details(): + raise AttributeError("tag 'team_merge_request_expired_shown_to_primary_team_details' not set") + return self._value + + def get_team_merge_request_expired_shown_to_secondary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_expired_shown_to_secondary_team_details` is true. + + :rtype: TeamMergeRequestExpiredShownToSecondaryTeamDetails + """ + if not self.is_team_merge_request_expired_shown_to_secondary_team_details(): + raise AttributeError("tag 'team_merge_request_expired_shown_to_secondary_team_details' not set") + return self._value + + def get_team_merge_request_rejected_shown_to_primary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_rejected_shown_to_primary_team_details` is true. + + :rtype: TeamMergeRequestRejectedShownToPrimaryTeamDetails + """ + if not self.is_team_merge_request_rejected_shown_to_primary_team_details(): + raise AttributeError("tag 'team_merge_request_rejected_shown_to_primary_team_details' not set") + return self._value + + def get_team_merge_request_rejected_shown_to_secondary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_rejected_shown_to_secondary_team_details` is true. + + :rtype: TeamMergeRequestRejectedShownToSecondaryTeamDetails + """ + if not self.is_team_merge_request_rejected_shown_to_secondary_team_details(): + raise AttributeError("tag 'team_merge_request_rejected_shown_to_secondary_team_details' not set") + return self._value + + def get_team_merge_request_reminder_details(self): + """ + Only call this if :meth:`is_team_merge_request_reminder_details` is true. + + :rtype: TeamMergeRequestReminderDetails + """ + if not self.is_team_merge_request_reminder_details(): + raise AttributeError("tag 'team_merge_request_reminder_details' not set") + return self._value + + def get_team_merge_request_reminder_shown_to_primary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_reminder_shown_to_primary_team_details` is true. + + :rtype: TeamMergeRequestReminderShownToPrimaryTeamDetails + """ + if not self.is_team_merge_request_reminder_shown_to_primary_team_details(): + raise AttributeError("tag 'team_merge_request_reminder_shown_to_primary_team_details' not set") + return self._value + + def get_team_merge_request_reminder_shown_to_secondary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_reminder_shown_to_secondary_team_details` is true. + + :rtype: TeamMergeRequestReminderShownToSecondaryTeamDetails + """ + if not self.is_team_merge_request_reminder_shown_to_secondary_team_details(): + raise AttributeError("tag 'team_merge_request_reminder_shown_to_secondary_team_details' not set") + return self._value + + def get_team_merge_request_revoked_details(self): + """ + Only call this if :meth:`is_team_merge_request_revoked_details` is true. + + :rtype: TeamMergeRequestRevokedDetails + """ + if not self.is_team_merge_request_revoked_details(): + raise AttributeError("tag 'team_merge_request_revoked_details' not set") + return self._value + + def get_team_merge_request_sent_shown_to_primary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_sent_shown_to_primary_team_details` is true. + + :rtype: TeamMergeRequestSentShownToPrimaryTeamDetails + """ + if not self.is_team_merge_request_sent_shown_to_primary_team_details(): + raise AttributeError("tag 'team_merge_request_sent_shown_to_primary_team_details' not set") + return self._value + + def get_team_merge_request_sent_shown_to_secondary_team_details(self): + """ + Only call this if :meth:`is_team_merge_request_sent_shown_to_secondary_team_details` is true. + + :rtype: TeamMergeRequestSentShownToSecondaryTeamDetails + """ + if not self.is_team_merge_request_sent_shown_to_secondary_team_details(): + raise AttributeError("tag 'team_merge_request_sent_shown_to_secondary_team_details' not set") + return self._value + def get_missing_details(self): """ Hints that this event was returned with missing details due to an @@ -16741,14 +17805,14 @@ def get_missing_details(self): Only call this if :meth:`is_missing_details` is true. - :rtype: team_log.MissingDetails + :rtype: MissingDetails """ if not self.is_missing_details(): raise AttributeError("tag 'missing_details' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(EventDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EventDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EventDetails(%r, %r)' % (self._tag, self._value) @@ -16763,791 +17827,829 @@ class EventType(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar AppLinkTeamType team_log.EventType.app_link_team: (apps) Linked app - for team - :ivar AppLinkUserType team_log.EventType.app_link_user: (apps) Linked app - for member - :ivar AppUnlinkTeamType team_log.EventType.app_unlink_team: (apps) Unlinked - app for team - :ivar AppUnlinkUserType team_log.EventType.app_unlink_user: (apps) Unlinked - app for member - :ivar FileAddCommentType team_log.EventType.file_add_comment: (comments) - Added file comment + :ivar AppLinkTeamType EventType.app_link_team: (apps) Linked app for team + :ivar AppLinkUserType EventType.app_link_user: (apps) Linked app for member + :ivar AppUnlinkTeamType EventType.app_unlink_team: (apps) Unlinked app for + team + :ivar AppUnlinkUserType EventType.app_unlink_user: (apps) Unlinked app for + member + :ivar IntegrationConnectedType EventType.integration_connected: (apps) + Connected integration for member + :ivar IntegrationDisconnectedType EventType.integration_disconnected: (apps) + Disconnected integration for member + :ivar FileAddCommentType EventType.file_add_comment: (comments) Added file + comment :ivar FileChangeCommentSubscriptionType - team_log.EventType.file_change_comment_subscription: (comments) - Subscribed to or unsubscribed from comment notifications for file - :ivar FileDeleteCommentType team_log.EventType.file_delete_comment: - (comments) Deleted file comment - :ivar FileEditCommentType team_log.EventType.file_edit_comment: (comments) - Edited file comment - :ivar FileLikeCommentType team_log.EventType.file_like_comment: (comments) - Liked file comment (deprecated, no longer logged) - :ivar FileResolveCommentType team_log.EventType.file_resolve_comment: - (comments) Resolved file comment - :ivar FileUnlikeCommentType team_log.EventType.file_unlike_comment: - (comments) Unliked file comment (deprecated, no longer logged) - :ivar FileUnresolveCommentType team_log.EventType.file_unresolve_comment: - (comments) Unresolved file comment - :ivar DeviceChangeIpDesktopType team_log.EventType.device_change_ip_desktop: + EventType.file_change_comment_subscription: (comments) Subscribed to or + unsubscribed from comment notifications for file + :ivar FileDeleteCommentType EventType.file_delete_comment: (comments) + Deleted file comment + :ivar FileEditCommentType EventType.file_edit_comment: (comments) Edited + file comment + :ivar FileLikeCommentType EventType.file_like_comment: (comments) Liked file + comment (deprecated, no longer logged) + :ivar FileResolveCommentType EventType.file_resolve_comment: (comments) + Resolved file comment + :ivar FileUnlikeCommentType EventType.file_unlike_comment: (comments) + Unliked file comment (deprecated, no longer logged) + :ivar FileUnresolveCommentType EventType.file_unresolve_comment: (comments) + Unresolved file comment + :ivar DeviceChangeIpDesktopType EventType.device_change_ip_desktop: (devices) Changed IP address associated with active desktop session - :ivar DeviceChangeIpMobileType team_log.EventType.device_change_ip_mobile: - (devices) Changed IP address associated with active mobile session - :ivar DeviceChangeIpWebType team_log.EventType.device_change_ip_web: - (devices) Changed IP address associated with active web session - :ivar DeviceDeleteOnUnlinkFailType - team_log.EventType.device_delete_on_unlink_fail: (devices) Failed to - delete all files from unlinked device + :ivar DeviceChangeIpMobileType EventType.device_change_ip_mobile: (devices) + Changed IP address associated with active mobile session + :ivar DeviceChangeIpWebType EventType.device_change_ip_web: (devices) + Changed IP address associated with active web session + :ivar DeviceDeleteOnUnlinkFailType EventType.device_delete_on_unlink_fail: + (devices) Failed to delete all files from unlinked device :ivar DeviceDeleteOnUnlinkSuccessType - team_log.EventType.device_delete_on_unlink_success: (devices) Deleted - all files from unlinked device - :ivar DeviceLinkFailType team_log.EventType.device_link_fail: (devices) - Failed to link device - :ivar DeviceLinkSuccessType team_log.EventType.device_link_success: - (devices) Linked device - :ivar DeviceManagementDisabledType - team_log.EventType.device_management_disabled: (devices) Disabled device - management (deprecated, no longer logged) - :ivar DeviceManagementEnabledType - team_log.EventType.device_management_enabled: (devices) Enabled device - management (deprecated, no longer logged) - :ivar DeviceUnlinkType team_log.EventType.device_unlink: (devices) - Disconnected device - :ivar EmmRefreshAuthTokenType team_log.EventType.emm_refresh_auth_token: - (devices) Refreshed auth token used for setting up enterprise mobility - management + EventType.device_delete_on_unlink_success: (devices) Deleted all files + from unlinked device + :ivar DeviceLinkFailType EventType.device_link_fail: (devices) Failed to + link device + :ivar DeviceLinkSuccessType EventType.device_link_success: (devices) Linked + device + :ivar DeviceManagementDisabledType EventType.device_management_disabled: + (devices) Disabled device management (deprecated, no longer logged) + :ivar DeviceManagementEnabledType EventType.device_management_enabled: + (devices) Enabled device management (deprecated, no longer logged) + :ivar DeviceUnlinkType EventType.device_unlink: (devices) Disconnected + device + :ivar EmmRefreshAuthTokenType EventType.emm_refresh_auth_token: (devices) + Refreshed auth token used for setting up EMM :ivar AccountCaptureChangeAvailabilityType - team_log.EventType.account_capture_change_availability: (domains) - Granted/revoked option to enable account capture on team domains + EventType.account_capture_change_availability: (domains) Granted/revoked + option to enable account capture on team domains :ivar AccountCaptureMigrateAccountType - team_log.EventType.account_capture_migrate_account: (domains) - Account-captured user migrated account to team + EventType.account_capture_migrate_account: (domains) Account-captured + user migrated account to team :ivar AccountCaptureNotificationEmailsSentType - team_log.EventType.account_capture_notification_emails_sent: (domains) - Sent proactive account capture email to all unmanaged members + EventType.account_capture_notification_emails_sent: (domains) Sent + proactive account capture email to all unmanaged members :ivar AccountCaptureRelinquishAccountType - team_log.EventType.account_capture_relinquish_account: (domains) - Account-captured user changed account email to personal email - :ivar DisabledDomainInvitesType team_log.EventType.disabled_domain_invites: - (domains) Disabled domain invites (deprecated, no longer logged) + EventType.account_capture_relinquish_account: (domains) Account-captured + user changed account email to personal email + :ivar DisabledDomainInvitesType EventType.disabled_domain_invites: (domains) + Disabled domain invites (deprecated, no longer logged) :ivar DomainInvitesApproveRequestToJoinTeamType - team_log.EventType.domain_invites_approve_request_to_join_team: - (domains) Approved user's request to join team + EventType.domain_invites_approve_request_to_join_team: (domains) + Approved user's request to join team :ivar DomainInvitesDeclineRequestToJoinTeamType - team_log.EventType.domain_invites_decline_request_to_join_team: - (domains) Declined user's request to join team + EventType.domain_invites_decline_request_to_join_team: (domains) + Declined user's request to join team :ivar DomainInvitesEmailExistingUsersType - team_log.EventType.domain_invites_email_existing_users: (domains) Sent - domain invites to existing domain accounts (deprecated, no longer - logged) + EventType.domain_invites_email_existing_users: (domains) Sent domain + invites to existing domain accounts (deprecated, no longer logged) :ivar DomainInvitesRequestToJoinTeamType - team_log.EventType.domain_invites_request_to_join_team: (domains) - Requested to join team + EventType.domain_invites_request_to_join_team: (domains) Requested to + join team :ivar DomainInvitesSetInviteNewUserPrefToNoType - team_log.EventType.domain_invites_set_invite_new_user_pref_to_no: - (domains) Disabled "Automatically invite new users" (deprecated, no - longer logged) + EventType.domain_invites_set_invite_new_user_pref_to_no: (domains) + Disabled "Automatically invite new users" (deprecated, no longer logged) :ivar DomainInvitesSetInviteNewUserPrefToYesType - team_log.EventType.domain_invites_set_invite_new_user_pref_to_yes: - (domains) Enabled "Automatically invite new users" (deprecated, no - longer logged) + EventType.domain_invites_set_invite_new_user_pref_to_yes: (domains) + Enabled "Automatically invite new users" (deprecated, no longer logged) :ivar DomainVerificationAddDomainFailType - team_log.EventType.domain_verification_add_domain_fail: (domains) Failed - to verify team domain + EventType.domain_verification_add_domain_fail: (domains) Failed to + verify team domain :ivar DomainVerificationAddDomainSuccessType - team_log.EventType.domain_verification_add_domain_success: (domains) - Verified team domain + EventType.domain_verification_add_domain_success: (domains) Verified + team domain :ivar DomainVerificationRemoveDomainType - team_log.EventType.domain_verification_remove_domain: (domains) Removed - domain from list of verified team domains - :ivar EnabledDomainInvitesType team_log.EventType.enabled_domain_invites: - (domains) Enabled domain invites (deprecated, no longer logged) - :ivar CreateFolderType team_log.EventType.create_folder: (file_operations) - Created folders (deprecated, no longer logged) - :ivar FileAddType team_log.EventType.file_add: (file_operations) Added files + EventType.domain_verification_remove_domain: (domains) Removed domain + from list of verified team domains + :ivar EnabledDomainInvitesType EventType.enabled_domain_invites: (domains) + Enabled domain invites (deprecated, no longer logged) + :ivar CreateFolderType EventType.create_folder: (file_operations) Created + folders (deprecated, no longer logged) + :ivar FileAddType EventType.file_add: (file_operations) Added files and/or + folders + :ivar FileCopyType EventType.file_copy: (file_operations) Copied files + and/or folders + :ivar FileDeleteType EventType.file_delete: (file_operations) Deleted files and/or folders - :ivar FileCopyType team_log.EventType.file_copy: (file_operations) Copied + :ivar FileDownloadType EventType.file_download: (file_operations) Downloaded files and/or folders - :ivar FileDeleteType team_log.EventType.file_delete: (file_operations) - Deleted files and/or folders - :ivar FileDownloadType team_log.EventType.file_download: (file_operations) - Downloaded files and/or folders - :ivar FileEditType team_log.EventType.file_edit: (file_operations) Edited - files - :ivar FileGetCopyReferenceType team_log.EventType.file_get_copy_reference: + :ivar FileEditType EventType.file_edit: (file_operations) Edited files + :ivar FileGetCopyReferenceType EventType.file_get_copy_reference: (file_operations) Created copy reference to file/folder - :ivar FileMoveType team_log.EventType.file_move: (file_operations) Moved - files and/or folders - :ivar FilePermanentlyDeleteType team_log.EventType.file_permanently_delete: + :ivar FileMoveType EventType.file_move: (file_operations) Moved files and/or + folders + :ivar FilePermanentlyDeleteType EventType.file_permanently_delete: (file_operations) Permanently deleted files and/or folders - :ivar FilePreviewType team_log.EventType.file_preview: (file_operations) - Previewed files and/or folders - :ivar FileRenameType team_log.EventType.file_rename: (file_operations) - Renamed files and/or folders - :ivar FileRestoreType team_log.EventType.file_restore: (file_operations) - Restored deleted files and/or folders - :ivar FileRevertType team_log.EventType.file_revert: (file_operations) - Reverted files to previous version - :ivar FileRollbackChangesType team_log.EventType.file_rollback_changes: + :ivar FilePreviewType EventType.file_preview: (file_operations) Previewed + files and/or folders + :ivar FileRenameType EventType.file_rename: (file_operations) Renamed files + and/or folders + :ivar FileRestoreType EventType.file_restore: (file_operations) Restored + deleted files and/or folders + :ivar FileRevertType EventType.file_revert: (file_operations) Reverted files + to previous version + :ivar FileRollbackChangesType EventType.file_rollback_changes: (file_operations) Rolled back file actions - :ivar FileSaveCopyReferenceType team_log.EventType.file_save_copy_reference: + :ivar FileSaveCopyReferenceType EventType.file_save_copy_reference: (file_operations) Saved file/folder using copy reference - :ivar FileRequestChangeType team_log.EventType.file_request_change: - (file_requests) Changed file request - :ivar FileRequestCloseType team_log.EventType.file_request_close: - (file_requests) Closed file request - :ivar FileRequestCreateType team_log.EventType.file_request_create: - (file_requests) Created file request - :ivar FileRequestReceiveFileType - team_log.EventType.file_request_receive_file: (file_requests) Received - files for file request - :ivar GroupAddExternalIdType team_log.EventType.group_add_external_id: - (groups) Added external ID for group - :ivar GroupAddMemberType team_log.EventType.group_add_member: (groups) Added - team members to group - :ivar GroupChangeExternalIdType team_log.EventType.group_change_external_id: - (groups) Changed external ID for group - :ivar GroupChangeManagementTypeType - team_log.EventType.group_change_management_type: (groups) Changed group - management type - :ivar GroupChangeMemberRoleType team_log.EventType.group_change_member_role: - (groups) Changed manager permissions of group member - :ivar GroupCreateType team_log.EventType.group_create: (groups) Created - group - :ivar GroupDeleteType team_log.EventType.group_delete: (groups) Deleted - group - :ivar GroupDescriptionUpdatedType - team_log.EventType.group_description_updated: (groups) Updated group - (deprecated, no longer logged) - :ivar GroupJoinPolicyUpdatedType - team_log.EventType.group_join_policy_updated: (groups) Updated group - join policy (deprecated, no longer logged) - :ivar GroupMovedType team_log.EventType.group_moved: (groups) Moved group + :ivar FileRequestChangeType EventType.file_request_change: (file_requests) + Changed file request + :ivar FileRequestCloseType EventType.file_request_close: (file_requests) + Closed file request + :ivar FileRequestCreateType EventType.file_request_create: (file_requests) + Created file request + :ivar FileRequestDeleteType EventType.file_request_delete: (file_requests) + Delete file request + :ivar FileRequestReceiveFileType EventType.file_request_receive_file: + (file_requests) Received files for file request + :ivar GroupAddExternalIdType EventType.group_add_external_id: (groups) Added + external ID for group + :ivar GroupAddMemberType EventType.group_add_member: (groups) Added team + members to group + :ivar GroupChangeExternalIdType EventType.group_change_external_id: (groups) + Changed external ID for group + :ivar GroupChangeManagementTypeType EventType.group_change_management_type: + (groups) Changed group management type + :ivar GroupChangeMemberRoleType EventType.group_change_member_role: (groups) + Changed manager permissions of group member + :ivar GroupCreateType EventType.group_create: (groups) Created group + :ivar GroupDeleteType EventType.group_delete: (groups) Deleted group + :ivar GroupDescriptionUpdatedType EventType.group_description_updated: + (groups) Updated group (deprecated, no longer logged) + :ivar GroupJoinPolicyUpdatedType EventType.group_join_policy_updated: + (groups) Updated group join policy (deprecated, no longer logged) + :ivar GroupMovedType EventType.group_moved: (groups) Moved group (deprecated, no longer logged) - :ivar GroupRemoveExternalIdType team_log.EventType.group_remove_external_id: - (groups) Removed external ID for group - :ivar GroupRemoveMemberType team_log.EventType.group_remove_member: (groups) - Removed team members from group - :ivar GroupRenameType team_log.EventType.group_rename: (groups) Renamed - group - :ivar EmmErrorType team_log.EventType.emm_error: (logins) Failed to sign in - via EMM (deprecated, replaced by 'Failed to sign in') - :ivar LoginFailType team_log.EventType.login_fail: (logins) Failed to sign - in - :ivar LoginSuccessType team_log.EventType.login_success: (logins) Signed in - :ivar LogoutType team_log.EventType.logout: (logins) Signed out - :ivar ResellerSupportSessionEndType - team_log.EventType.reseller_support_session_end: (logins) Ended reseller - support session + :ivar GroupRemoveExternalIdType EventType.group_remove_external_id: (groups) + Removed external ID for group + :ivar GroupRemoveMemberType EventType.group_remove_member: (groups) Removed + team members from group + :ivar GroupRenameType EventType.group_rename: (groups) Renamed group + :ivar EmmErrorType EventType.emm_error: (logins) Failed to sign in via EMM + (deprecated, replaced by 'Failed to sign in') + :ivar GuestAdminSignedInViaTrustedTeamsType + EventType.guest_admin_signed_in_via_trusted_teams: (logins) Started + trusted team admin session + :ivar GuestAdminSignedOutViaTrustedTeamsType + EventType.guest_admin_signed_out_via_trusted_teams: (logins) Ended + trusted team admin session + :ivar LoginFailType EventType.login_fail: (logins) Failed to sign in + :ivar LoginSuccessType EventType.login_success: (logins) Signed in + :ivar LogoutType EventType.logout: (logins) Signed out + :ivar ResellerSupportSessionEndType EventType.reseller_support_session_end: + (logins) Ended reseller support session :ivar ResellerSupportSessionStartType - team_log.EventType.reseller_support_session_start: (logins) Started - reseller support session - :ivar SignInAsSessionEndType team_log.EventType.sign_in_as_session_end: - (logins) Ended admin sign-in-as session - :ivar SignInAsSessionStartType team_log.EventType.sign_in_as_session_start: - (logins) Started admin sign-in-as session - :ivar SsoErrorType team_log.EventType.sso_error: (logins) Failed to sign in - via SSO (deprecated, replaced by 'Failed to sign in') - :ivar MemberAddNameType team_log.EventType.member_add_name: (members) Added - team member name - :ivar MemberChangeAdminRoleType team_log.EventType.member_change_admin_role: + EventType.reseller_support_session_start: (logins) Started reseller + support session + :ivar SignInAsSessionEndType EventType.sign_in_as_session_end: (logins) + Ended admin sign-in-as session + :ivar SignInAsSessionStartType EventType.sign_in_as_session_start: (logins) + Started admin sign-in-as session + :ivar SsoErrorType EventType.sso_error: (logins) Failed to sign in via SSO + (deprecated, replaced by 'Failed to sign in') + :ivar MemberAddExternalIdType EventType.member_add_external_id: (members) + Added an external ID for team member + :ivar MemberAddNameType EventType.member_add_name: (members) Added team + member name + :ivar MemberChangeAdminRoleType EventType.member_change_admin_role: (members) Changed team member admin role - :ivar MemberChangeEmailType team_log.EventType.member_change_email: - (members) Changed team member email + :ivar MemberChangeEmailType EventType.member_change_email: (members) Changed + team member email + :ivar MemberChangeExternalIdType EventType.member_change_external_id: + (members) Changed the external ID for team member :ivar MemberChangeMembershipTypeType - team_log.EventType.member_change_membership_type: (members) Changed - membership type (limited/full) of member (deprecated, no longer logged) - :ivar MemberChangeNameType team_log.EventType.member_change_name: (members) - Changed team member name - :ivar MemberChangeStatusType team_log.EventType.member_change_status: - (members) Changed member status (invited, joined, suspended, etc.) + EventType.member_change_membership_type: (members) Changed membership + type (limited/full) of member (deprecated, no longer logged) + :ivar MemberChangeNameType EventType.member_change_name: (members) Changed + team member name + :ivar MemberChangeStatusType EventType.member_change_status: (members) + Changed member status (invited, joined, suspended, etc.) :ivar MemberDeleteManualContactsType - team_log.EventType.member_delete_manual_contacts: (members) Cleared - manually added contacts + EventType.member_delete_manual_contacts: (members) Cleared manually + added contacts :ivar MemberPermanentlyDeleteAccountContentsType - team_log.EventType.member_permanently_delete_account_contents: (members) + EventType.member_permanently_delete_account_contents: (members) Permanently deleted contents of deleted team member account + :ivar MemberRemoveExternalIdType EventType.member_remove_external_id: + (members) Removed the external ID for team member :ivar MemberSpaceLimitsAddCustomQuotaType - team_log.EventType.member_space_limits_add_custom_quota: (members) Set - custom member space limit + EventType.member_space_limits_add_custom_quota: (members) Set custom + member space limit :ivar MemberSpaceLimitsChangeCustomQuotaType - team_log.EventType.member_space_limits_change_custom_quota: (members) - Changed custom member space limit + EventType.member_space_limits_change_custom_quota: (members) Changed + custom member space limit :ivar MemberSpaceLimitsChangeStatusType - team_log.EventType.member_space_limits_change_status: (members) Changed - space limit status + EventType.member_space_limits_change_status: (members) Changed space + limit status :ivar MemberSpaceLimitsRemoveCustomQuotaType - team_log.EventType.member_space_limits_remove_custom_quota: (members) - Removed custom member space limit - :ivar MemberSuggestType team_log.EventType.member_suggest: (members) - Suggested person to add to team + EventType.member_space_limits_remove_custom_quota: (members) Removed + custom member space limit + :ivar MemberSuggestType EventType.member_suggest: (members) Suggested person + to add to team :ivar MemberTransferAccountContentsType - team_log.EventType.member_transfer_account_contents: (members) - Transferred contents of deleted member account to another member + EventType.member_transfer_account_contents: (members) Transferred + contents of deleted member account to another member :ivar SecondaryMailsPolicyChangedType - team_log.EventType.secondary_mails_policy_changed: (members) Secondary - mails policy changed - :ivar PaperContentAddMemberType team_log.EventType.paper_content_add_member: - (paper) Added team member to Paper doc/folder - :ivar PaperContentAddToFolderType - team_log.EventType.paper_content_add_to_folder: (paper) Added Paper - doc/folder to folder - :ivar PaperContentArchiveType team_log.EventType.paper_content_archive: - (paper) Archived Paper doc/folder - :ivar PaperContentCreateType team_log.EventType.paper_content_create: - (paper) Created Paper doc/folder + EventType.secondary_mails_policy_changed: (members) Secondary mails + policy changed + :ivar PaperContentAddMemberType EventType.paper_content_add_member: (paper) + Added team member to Paper doc/folder + :ivar PaperContentAddToFolderType EventType.paper_content_add_to_folder: + (paper) Added Paper doc/folder to folder + :ivar PaperContentArchiveType EventType.paper_content_archive: (paper) + Archived Paper doc/folder + :ivar PaperContentCreateType EventType.paper_content_create: (paper) Created + Paper doc/folder :ivar PaperContentPermanentlyDeleteType - team_log.EventType.paper_content_permanently_delete: (paper) Permanently - deleted Paper doc/folder + EventType.paper_content_permanently_delete: (paper) Permanently deleted + Paper doc/folder :ivar PaperContentRemoveFromFolderType - team_log.EventType.paper_content_remove_from_folder: (paper) Removed - Paper doc/folder from folder - :ivar PaperContentRemoveMemberType - team_log.EventType.paper_content_remove_member: (paper) Removed team - member from Paper doc/folder - :ivar PaperContentRenameType team_log.EventType.paper_content_rename: - (paper) Renamed Paper doc/folder - :ivar PaperContentRestoreType team_log.EventType.paper_content_restore: - (paper) Restored archived Paper doc/folder - :ivar PaperDocAddCommentType team_log.EventType.paper_doc_add_comment: - (paper) Added Paper doc comment - :ivar PaperDocChangeMemberRoleType - team_log.EventType.paper_doc_change_member_role: (paper) Changed team - member permissions for Paper doc + EventType.paper_content_remove_from_folder: (paper) Removed Paper + doc/folder from folder + :ivar PaperContentRemoveMemberType EventType.paper_content_remove_member: + (paper) Removed team member from Paper doc/folder + :ivar PaperContentRenameType EventType.paper_content_rename: (paper) Renamed + Paper doc/folder + :ivar PaperContentRestoreType EventType.paper_content_restore: (paper) + Restored archived Paper doc/folder + :ivar PaperDocAddCommentType EventType.paper_doc_add_comment: (paper) Added + Paper doc comment + :ivar PaperDocChangeMemberRoleType EventType.paper_doc_change_member_role: + (paper) Changed team member permissions for Paper doc :ivar PaperDocChangeSharingPolicyType - team_log.EventType.paper_doc_change_sharing_policy: (paper) Changed - sharing setting for Paper doc + EventType.paper_doc_change_sharing_policy: (paper) Changed sharing + setting for Paper doc :ivar PaperDocChangeSubscriptionType - team_log.EventType.paper_doc_change_subscription: (paper) - Followed/unfollowed Paper doc - :ivar PaperDocDeletedType team_log.EventType.paper_doc_deleted: (paper) - Archived Paper doc (deprecated, no longer logged) - :ivar PaperDocDeleteCommentType team_log.EventType.paper_doc_delete_comment: - (paper) Deleted Paper doc comment - :ivar PaperDocDownloadType team_log.EventType.paper_doc_download: (paper) - Downloaded Paper doc in specific format - :ivar PaperDocEditType team_log.EventType.paper_doc_edit: (paper) Edited + EventType.paper_doc_change_subscription: (paper) Followed/unfollowed Paper doc - :ivar PaperDocEditCommentType team_log.EventType.paper_doc_edit_comment: - (paper) Edited Paper doc comment - :ivar PaperDocFollowedType team_log.EventType.paper_doc_followed: (paper) - Followed Paper doc (deprecated, replaced by 'Followed/unfollowed Paper - doc') - :ivar PaperDocMentionType team_log.EventType.paper_doc_mention: (paper) - Mentioned team member in Paper doc - :ivar PaperDocOwnershipChangedType - team_log.EventType.paper_doc_ownership_changed: (paper) Transferred - ownership of Paper doc - :ivar PaperDocRequestAccessType team_log.EventType.paper_doc_request_access: - (paper) Requested access to Paper doc - :ivar PaperDocResolveCommentType - team_log.EventType.paper_doc_resolve_comment: (paper) Resolved Paper doc - comment - :ivar PaperDocRevertType team_log.EventType.paper_doc_revert: (paper) - Restored Paper doc to previous version - :ivar PaperDocSlackShareType team_log.EventType.paper_doc_slack_share: - (paper) Shared Paper doc via Slack - :ivar PaperDocTeamInviteType team_log.EventType.paper_doc_team_invite: - (paper) Shared Paper doc with team member (deprecated, no longer logged) - :ivar PaperDocTrashedType team_log.EventType.paper_doc_trashed: (paper) - Deleted Paper doc - :ivar PaperDocUnresolveCommentType - team_log.EventType.paper_doc_unresolve_comment: (paper) Unresolved Paper - doc comment - :ivar PaperDocUntrashedType team_log.EventType.paper_doc_untrashed: (paper) - Restored Paper doc - :ivar PaperDocViewType team_log.EventType.paper_doc_view: (paper) Viewed + :ivar PaperDocDeletedType EventType.paper_doc_deleted: (paper) Archived + Paper doc (deprecated, no longer logged) + :ivar PaperDocDeleteCommentType EventType.paper_doc_delete_comment: (paper) + Deleted Paper doc comment + :ivar PaperDocDownloadType EventType.paper_doc_download: (paper) Downloaded + Paper doc in specific format + :ivar PaperDocEditType EventType.paper_doc_edit: (paper) Edited Paper doc + :ivar PaperDocEditCommentType EventType.paper_doc_edit_comment: (paper) + Edited Paper doc comment + :ivar PaperDocFollowedType EventType.paper_doc_followed: (paper) Followed + Paper doc (deprecated, replaced by 'Followed/unfollowed Paper doc') + :ivar PaperDocMentionType EventType.paper_doc_mention: (paper) Mentioned + team member in Paper doc + :ivar PaperDocOwnershipChangedType EventType.paper_doc_ownership_changed: + (paper) Transferred ownership of Paper doc + :ivar PaperDocRequestAccessType EventType.paper_doc_request_access: (paper) + Requested access to Paper doc + :ivar PaperDocResolveCommentType EventType.paper_doc_resolve_comment: + (paper) Resolved Paper doc comment + :ivar PaperDocRevertType EventType.paper_doc_revert: (paper) Restored Paper + doc to previous version + :ivar PaperDocSlackShareType EventType.paper_doc_slack_share: (paper) Shared + Paper doc via Slack + :ivar PaperDocTeamInviteType EventType.paper_doc_team_invite: (paper) Shared + Paper doc with team member (deprecated, no longer logged) + :ivar PaperDocTrashedType EventType.paper_doc_trashed: (paper) Deleted Paper + doc + :ivar PaperDocUnresolveCommentType EventType.paper_doc_unresolve_comment: + (paper) Unresolved Paper doc comment + :ivar PaperDocUntrashedType EventType.paper_doc_untrashed: (paper) Restored Paper doc - :ivar PaperExternalViewAllowType - team_log.EventType.paper_external_view_allow: (paper) Changed Paper - external sharing setting to anyone (deprecated, no longer logged) + :ivar PaperDocViewType EventType.paper_doc_view: (paper) Viewed Paper doc + :ivar PaperExternalViewAllowType EventType.paper_external_view_allow: + (paper) Changed Paper external sharing setting to anyone (deprecated, no + longer logged) :ivar PaperExternalViewDefaultTeamType - team_log.EventType.paper_external_view_default_team: (paper) Changed - Paper external sharing setting to default team (deprecated, no longer - logged) - :ivar PaperExternalViewForbidType - team_log.EventType.paper_external_view_forbid: (paper) Changed Paper - external sharing setting to team-only (deprecated, no longer logged) + EventType.paper_external_view_default_team: (paper) Changed Paper + external sharing setting to default team (deprecated, no longer logged) + :ivar PaperExternalViewForbidType EventType.paper_external_view_forbid: + (paper) Changed Paper external sharing setting to team-only (deprecated, + no longer logged) :ivar PaperFolderChangeSubscriptionType - team_log.EventType.paper_folder_change_subscription: (paper) - Followed/unfollowed Paper folder - :ivar PaperFolderDeletedType team_log.EventType.paper_folder_deleted: - (paper) Archived Paper folder (deprecated, no longer logged) - :ivar PaperFolderFollowedType team_log.EventType.paper_folder_followed: - (paper) Followed Paper folder (deprecated, replaced by - 'Followed/unfollowed Paper folder') - :ivar PaperFolderTeamInviteType team_log.EventType.paper_folder_team_invite: - (paper) Shared Paper folder with member (deprecated, no longer logged) - :ivar PasswordChangeType team_log.EventType.password_change: (passwords) - Changed password - :ivar PasswordResetType team_log.EventType.password_reset: (passwords) Reset + EventType.paper_folder_change_subscription: (paper) Followed/unfollowed + Paper folder + :ivar PaperFolderDeletedType EventType.paper_folder_deleted: (paper) + Archived Paper folder (deprecated, no longer logged) + :ivar PaperFolderFollowedType EventType.paper_folder_followed: (paper) + Followed Paper folder (deprecated, replaced by 'Followed/unfollowed + Paper folder') + :ivar PaperFolderTeamInviteType EventType.paper_folder_team_invite: (paper) + Shared Paper folder with member (deprecated, no longer logged) + :ivar PaperPublishedLinkCreateType EventType.paper_published_link_create: + (paper) Published doc + :ivar PaperPublishedLinkDisabledType + EventType.paper_published_link_disabled: (paper) Unpublished doc + :ivar PaperPublishedLinkViewType EventType.paper_published_link_view: + (paper) Viewed published doc + :ivar PasswordChangeType EventType.password_change: (passwords) Changed password - :ivar PasswordResetAllType team_log.EventType.password_reset_all: - (passwords) Reset all team member passwords - :ivar EmmCreateExceptionsReportType - team_log.EventType.emm_create_exceptions_report: (reports) Created - EMM-excluded users report - :ivar EmmCreateUsageReportType team_log.EventType.emm_create_usage_report: - (reports) Created EMM mobile app usage report - :ivar ExportMembersReportType team_log.EventType.export_members_report: - (reports) Created member data report - :ivar PaperAdminExportStartType team_log.EventType.paper_admin_export_start: + :ivar PasswordResetType EventType.password_reset: (passwords) Reset password + :ivar PasswordResetAllType EventType.password_reset_all: (passwords) Reset + all team member passwords + :ivar EmmCreateExceptionsReportType EventType.emm_create_exceptions_report: + (reports) Created EMM-excluded users report + :ivar EmmCreateUsageReportType EventType.emm_create_usage_report: (reports) + Created EMM mobile app usage report + :ivar ExportMembersReportType EventType.export_members_report: (reports) + Created member data report + :ivar PaperAdminExportStartType EventType.paper_admin_export_start: (reports) Exported all team Paper docs :ivar SmartSyncCreateAdminPrivilegeReportType - team_log.EventType.smart_sync_create_admin_privilege_report: (reports) - Created Smart Sync non-admin devices report - :ivar TeamActivityCreateReportType - team_log.EventType.team_activity_create_report: (reports) Created team - activity report - :ivar CollectionShareType team_log.EventType.collection_share: (sharing) - Shared album - :ivar NoteAclInviteOnlyType team_log.EventType.note_acl_invite_only: - (sharing) Changed Paper doc to invite-only (deprecated, no longer - logged) - :ivar NoteAclLinkType team_log.EventType.note_acl_link: (sharing) Changed - Paper doc to link-accessible (deprecated, no longer logged) - :ivar NoteAclTeamLinkType team_log.EventType.note_acl_team_link: (sharing) - Changed Paper doc to link-accessible for team (deprecated, no longer - logged) - :ivar NoteSharedType team_log.EventType.note_shared: (sharing) Shared Paper - doc (deprecated, no longer logged) - :ivar NoteShareReceiveType team_log.EventType.note_share_receive: (sharing) - Shared received Paper doc (deprecated, no longer logged) - :ivar OpenNoteSharedType team_log.EventType.open_note_shared: (sharing) - Opened shared Paper doc (deprecated, no longer logged) - :ivar SfAddGroupType team_log.EventType.sf_add_group: (sharing) Added team - to shared folder (deprecated, no longer logged) + EventType.smart_sync_create_admin_privilege_report: (reports) Created + Smart Sync non-admin devices report + :ivar TeamActivityCreateReportType EventType.team_activity_create_report: + (reports) Created team activity report + :ivar TeamActivityCreateReportFailType + EventType.team_activity_create_report_fail: (reports) Couldn't generate + team activity report + :ivar CollectionShareType EventType.collection_share: (sharing) Shared album + :ivar NoteAclInviteOnlyType EventType.note_acl_invite_only: (sharing) + Changed Paper doc to invite-only (deprecated, no longer logged) + :ivar NoteAclLinkType EventType.note_acl_link: (sharing) Changed Paper doc + to link-accessible (deprecated, no longer logged) + :ivar NoteAclTeamLinkType EventType.note_acl_team_link: (sharing) Changed + Paper doc to link-accessible for team (deprecated, no longer logged) + :ivar NoteSharedType EventType.note_shared: (sharing) Shared Paper doc + (deprecated, no longer logged) + :ivar NoteShareReceiveType EventType.note_share_receive: (sharing) Shared + received Paper doc (deprecated, no longer logged) + :ivar OpenNoteSharedType EventType.open_note_shared: (sharing) Opened shared + Paper doc (deprecated, no longer logged) + :ivar SfAddGroupType EventType.sf_add_group: (sharing) Added team to shared + folder (deprecated, no longer logged) :ivar SfAllowNonMembersToViewSharedLinksType - team_log.EventType.sf_allow_non_members_to_view_shared_links: (sharing) - Allowed non-collaborators to view links to files in shared folder + EventType.sf_allow_non_members_to_view_shared_links: (sharing) Allowed + non-collaborators to view links to files in shared folder (deprecated, + no longer logged) + :ivar SfExternalInviteWarnType EventType.sf_external_invite_warn: (sharing) + Set team members to see warning before sharing folders outside team (deprecated, no longer logged) - :ivar SfExternalInviteWarnType team_log.EventType.sf_external_invite_warn: - (sharing) Set team members to see warning before sharing folders outside - team (deprecated, no longer logged) - :ivar SfFbInviteType team_log.EventType.sf_fb_invite: (sharing) Invited - Facebook users to shared folder (deprecated, no longer logged) - :ivar SfFbInviteChangeRoleType team_log.EventType.sf_fb_invite_change_role: - (sharing) Changed Facebook user's role in shared folder (deprecated, no - longer logged) - :ivar SfFbUninviteType team_log.EventType.sf_fb_uninvite: (sharing) - Uninvited Facebook user from shared folder (deprecated, no longer + :ivar SfFbInviteType EventType.sf_fb_invite: (sharing) Invited Facebook + users to shared folder (deprecated, no longer logged) + :ivar SfFbInviteChangeRoleType EventType.sf_fb_invite_change_role: (sharing) + Changed Facebook user's role in shared folder (deprecated, no longer logged) - :ivar SfInviteGroupType team_log.EventType.sf_invite_group: (sharing) - Invited group to shared folder (deprecated, no longer logged) - :ivar SfTeamGrantAccessType team_log.EventType.sf_team_grant_access: - (sharing) Granted access to shared folder (deprecated, no longer logged) - :ivar SfTeamInviteType team_log.EventType.sf_team_invite: (sharing) Invited - team members to shared folder (deprecated, replaced by 'Invited user to + :ivar SfFbUninviteType EventType.sf_fb_uninvite: (sharing) Uninvited + Facebook user from shared folder (deprecated, no longer logged) + :ivar SfInviteGroupType EventType.sf_invite_group: (sharing) Invited group + to shared folder (deprecated, no longer logged) + :ivar SfTeamGrantAccessType EventType.sf_team_grant_access: (sharing) + Granted access to shared folder (deprecated, no longer logged) + :ivar SfTeamInviteType EventType.sf_team_invite: (sharing) Invited team + members to shared folder (deprecated, replaced by 'Invited user to Dropbox and added them to shared file/folder') - :ivar SfTeamInviteChangeRoleType - team_log.EventType.sf_team_invite_change_role: (sharing) Changed team - member's role in shared folder (deprecated, no longer logged) - :ivar SfTeamJoinType team_log.EventType.sf_team_join: (sharing) Joined team - member's shared folder (deprecated, no longer logged) - :ivar SfTeamJoinFromOobLinkType - team_log.EventType.sf_team_join_from_oob_link: (sharing) Joined team - member's shared folder from link (deprecated, no longer logged) - :ivar SfTeamUninviteType team_log.EventType.sf_team_uninvite: (sharing) - Unshared folder with team member (deprecated, replaced by 'Removed - invitee from shared file/folder before invite was accepted') - :ivar SharedContentAddInviteesType - team_log.EventType.shared_content_add_invitees: (sharing) Invited user - to Dropbox and added them to shared file/folder + :ivar SfTeamInviteChangeRoleType EventType.sf_team_invite_change_role: + (sharing) Changed team member's role in shared folder (deprecated, no + longer logged) + :ivar SfTeamJoinType EventType.sf_team_join: (sharing) Joined team member's + shared folder (deprecated, no longer logged) + :ivar SfTeamJoinFromOobLinkType EventType.sf_team_join_from_oob_link: + (sharing) Joined team member's shared folder from link (deprecated, no + longer logged) + :ivar SfTeamUninviteType EventType.sf_team_uninvite: (sharing) Unshared + folder with team member (deprecated, replaced by 'Removed invitee from + shared file/folder before invite was accepted') + :ivar SharedContentAddInviteesType EventType.shared_content_add_invitees: + (sharing) Invited user to Dropbox and added them to shared file/folder :ivar SharedContentAddLinkExpiryType - team_log.EventType.shared_content_add_link_expiry: (sharing) Added - expiration date to link for shared file/folder + EventType.shared_content_add_link_expiry: (sharing) Added expiration + date to link for shared file/folder :ivar SharedContentAddLinkPasswordType - team_log.EventType.shared_content_add_link_password: (sharing) Added - password to link for shared file/folder - :ivar SharedContentAddMemberType - team_log.EventType.shared_content_add_member: (sharing) Added users - and/or groups to shared file/folder + EventType.shared_content_add_link_password: (sharing) Added password to + link for shared file/folder + :ivar SharedContentAddMemberType EventType.shared_content_add_member: + (sharing) Added users and/or groups to shared file/folder :ivar SharedContentChangeDownloadsPolicyType - team_log.EventType.shared_content_change_downloads_policy: (sharing) - Changed whether members can download shared file/folder + EventType.shared_content_change_downloads_policy: (sharing) Changed + whether members can download shared file/folder :ivar SharedContentChangeInviteeRoleType - team_log.EventType.shared_content_change_invitee_role: (sharing) Changed - access type of invitee to shared file/folder before invite was accepted + EventType.shared_content_change_invitee_role: (sharing) Changed access + type of invitee to shared file/folder before invite was accepted :ivar SharedContentChangeLinkAudienceType - team_log.EventType.shared_content_change_link_audience: (sharing) - Changed link audience of shared file/folder + EventType.shared_content_change_link_audience: (sharing) Changed link + audience of shared file/folder :ivar SharedContentChangeLinkExpiryType - team_log.EventType.shared_content_change_link_expiry: (sharing) Changed - link expiration of shared file/folder + EventType.shared_content_change_link_expiry: (sharing) Changed link + expiration of shared file/folder :ivar SharedContentChangeLinkPasswordType - team_log.EventType.shared_content_change_link_password: (sharing) - Changed link password of shared file/folder + EventType.shared_content_change_link_password: (sharing) Changed link + password of shared file/folder :ivar SharedContentChangeMemberRoleType - team_log.EventType.shared_content_change_member_role: (sharing) Changed - access type of shared file/folder member + EventType.shared_content_change_member_role: (sharing) Changed access + type of shared file/folder member :ivar SharedContentChangeViewerInfoPolicyType - team_log.EventType.shared_content_change_viewer_info_policy: (sharing) - Changed whether members can see who viewed shared file/folder + EventType.shared_content_change_viewer_info_policy: (sharing) Changed + whether members can see who viewed shared file/folder :ivar SharedContentClaimInvitationType - team_log.EventType.shared_content_claim_invitation: (sharing) Acquired - membership of shared file/folder by accepting invite - :ivar SharedContentCopyType team_log.EventType.shared_content_copy: - (sharing) Copied shared file/folder to own Dropbox - :ivar SharedContentDownloadType team_log.EventType.shared_content_download: - (sharing) Downloaded shared file/folder + EventType.shared_content_claim_invitation: (sharing) Acquired membership + of shared file/folder by accepting invite + :ivar SharedContentCopyType EventType.shared_content_copy: (sharing) Copied + shared file/folder to own Dropbox + :ivar SharedContentDownloadType EventType.shared_content_download: (sharing) + Downloaded shared file/folder :ivar SharedContentRelinquishMembershipType - team_log.EventType.shared_content_relinquish_membership: (sharing) Left - shared file/folder + EventType.shared_content_relinquish_membership: (sharing) Left shared + file/folder :ivar SharedContentRemoveInviteesType - team_log.EventType.shared_content_remove_invitees: (sharing) Removed - invitee from shared file/folder before invite was accepted + EventType.shared_content_remove_invitees: (sharing) Removed invitee from + shared file/folder before invite was accepted :ivar SharedContentRemoveLinkExpiryType - team_log.EventType.shared_content_remove_link_expiry: (sharing) Removed - link expiration date of shared file/folder + EventType.shared_content_remove_link_expiry: (sharing) Removed link + expiration date of shared file/folder :ivar SharedContentRemoveLinkPasswordType - team_log.EventType.shared_content_remove_link_password: (sharing) - Removed link password of shared file/folder - :ivar SharedContentRemoveMemberType - team_log.EventType.shared_content_remove_member: (sharing) Removed - user/group from shared file/folder + EventType.shared_content_remove_link_password: (sharing) Removed link + password of shared file/folder + :ivar SharedContentRemoveMemberType EventType.shared_content_remove_member: + (sharing) Removed user/group from shared file/folder :ivar SharedContentRequestAccessType - team_log.EventType.shared_content_request_access: (sharing) Requested - access to shared file/folder - :ivar SharedContentUnshareType team_log.EventType.shared_content_unshare: - (sharing) Unshared file/folder by clearing membership and turning off - link - :ivar SharedContentViewType team_log.EventType.shared_content_view: - (sharing) Previewed shared file/folder + EventType.shared_content_request_access: (sharing) Requested access to + shared file/folder + :ivar SharedContentUnshareType EventType.shared_content_unshare: (sharing) + Unshared file/folder by clearing membership and turning off link + :ivar SharedContentViewType EventType.shared_content_view: (sharing) + Previewed shared file/folder :ivar SharedFolderChangeLinkPolicyType - team_log.EventType.shared_folder_change_link_policy: (sharing) Changed - who can access shared folder via link + EventType.shared_folder_change_link_policy: (sharing) Changed who can + access shared folder via link :ivar SharedFolderChangeMembersInheritancePolicyType - team_log.EventType.shared_folder_change_members_inheritance_policy: - (sharing) Changed whether shared folder inherits members from parent - folder + EventType.shared_folder_change_members_inheritance_policy: (sharing) + Changed whether shared folder inherits members from parent folder :ivar SharedFolderChangeMembersManagementPolicyType - team_log.EventType.shared_folder_change_members_management_policy: - (sharing) Changed who can add/remove members of shared folder + EventType.shared_folder_change_members_management_policy: (sharing) + Changed who can add/remove members of shared folder :ivar SharedFolderChangeMembersPolicyType - team_log.EventType.shared_folder_change_members_policy: (sharing) - Changed who can become member of shared folder - :ivar SharedFolderCreateType team_log.EventType.shared_folder_create: - (sharing) Created shared folder + EventType.shared_folder_change_members_policy: (sharing) Changed who can + become member of shared folder + :ivar SharedFolderCreateType EventType.shared_folder_create: (sharing) + Created shared folder :ivar SharedFolderDeclineInvitationType - team_log.EventType.shared_folder_decline_invitation: (sharing) Declined - team member's invite to shared folder - :ivar SharedFolderMountType team_log.EventType.shared_folder_mount: - (sharing) Added shared folder to own Dropbox - :ivar SharedFolderNestType team_log.EventType.shared_folder_nest: (sharing) - Changed parent of shared folder + EventType.shared_folder_decline_invitation: (sharing) Declined team + member's invite to shared folder + :ivar SharedFolderMountType EventType.shared_folder_mount: (sharing) Added + shared folder to own Dropbox + :ivar SharedFolderNestType EventType.shared_folder_nest: (sharing) Changed + parent of shared folder :ivar SharedFolderTransferOwnershipType - team_log.EventType.shared_folder_transfer_ownership: (sharing) - Transferred ownership of shared folder to another member - :ivar SharedFolderUnmountType team_log.EventType.shared_folder_unmount: - (sharing) Deleted shared folder from Dropbox - :ivar SharedLinkAddExpiryType team_log.EventType.shared_link_add_expiry: - (sharing) Added shared link expiration date - :ivar SharedLinkChangeExpiryType - team_log.EventType.shared_link_change_expiry: (sharing) Changed shared - link expiration date + EventType.shared_folder_transfer_ownership: (sharing) Transferred + ownership of shared folder to another member + :ivar SharedFolderUnmountType EventType.shared_folder_unmount: (sharing) + Deleted shared folder from Dropbox + :ivar SharedLinkAddExpiryType EventType.shared_link_add_expiry: (sharing) + Added shared link expiration date + :ivar SharedLinkChangeExpiryType EventType.shared_link_change_expiry: + (sharing) Changed shared link expiration date :ivar SharedLinkChangeVisibilityType - team_log.EventType.shared_link_change_visibility: (sharing) Changed - visibility of shared link - :ivar SharedLinkCopyType team_log.EventType.shared_link_copy: (sharing) - Added file/folder to Dropbox from shared link - :ivar SharedLinkCreateType team_log.EventType.shared_link_create: (sharing) - Created shared link - :ivar SharedLinkDisableType team_log.EventType.shared_link_disable: - (sharing) Removed shared link - :ivar SharedLinkDownloadType team_log.EventType.shared_link_download: - (sharing) Downloaded file/folder from shared link - :ivar SharedLinkRemoveExpiryType - team_log.EventType.shared_link_remove_expiry: (sharing) Removed shared - link expiration date - :ivar SharedLinkShareType team_log.EventType.shared_link_share: (sharing) - Added members as audience of shared link - :ivar SharedLinkViewType team_log.EventType.shared_link_view: (sharing) - Opened shared link - :ivar SharedNoteOpenedType team_log.EventType.shared_note_opened: (sharing) - Opened shared Paper doc (deprecated, no longer logged) - :ivar ShmodelGroupShareType team_log.EventType.shmodel_group_share: - (sharing) Shared link with group (deprecated, no longer logged) - :ivar ShowcaseAccessGrantedType team_log.EventType.showcase_access_granted: + EventType.shared_link_change_visibility: (sharing) Changed visibility of + shared link + :ivar SharedLinkCopyType EventType.shared_link_copy: (sharing) Added + file/folder to Dropbox from shared link + :ivar SharedLinkCreateType EventType.shared_link_create: (sharing) Created + shared link + :ivar SharedLinkDisableType EventType.shared_link_disable: (sharing) Removed + shared link + :ivar SharedLinkDownloadType EventType.shared_link_download: (sharing) + Downloaded file/folder from shared link + :ivar SharedLinkRemoveExpiryType EventType.shared_link_remove_expiry: + (sharing) Removed shared link expiration date + :ivar SharedLinkShareType EventType.shared_link_share: (sharing) Added + members as audience of shared link + :ivar SharedLinkViewType EventType.shared_link_view: (sharing) Opened shared + link + :ivar SharedNoteOpenedType EventType.shared_note_opened: (sharing) Opened + shared Paper doc (deprecated, no longer logged) + :ivar ShmodelGroupShareType EventType.shmodel_group_share: (sharing) Shared + link with group (deprecated, no longer logged) + :ivar ShowcaseAccessGrantedType EventType.showcase_access_granted: (showcase) Granted access to showcase - :ivar ShowcaseAddMemberType team_log.EventType.showcase_add_member: - (showcase) Added member to showcase - :ivar ShowcaseArchivedType team_log.EventType.showcase_archived: (showcase) - Archived showcase - :ivar ShowcaseCreatedType team_log.EventType.showcase_created: (showcase) - Created showcase - :ivar ShowcaseDeleteCommentType team_log.EventType.showcase_delete_comment: + :ivar ShowcaseAddMemberType EventType.showcase_add_member: (showcase) Added + member to showcase + :ivar ShowcaseArchivedType EventType.showcase_archived: (showcase) Archived + showcase + :ivar ShowcaseCreatedType EventType.showcase_created: (showcase) Created + showcase + :ivar ShowcaseDeleteCommentType EventType.showcase_delete_comment: (showcase) Deleted showcase comment - :ivar ShowcaseEditedType team_log.EventType.showcase_edited: (showcase) - Edited showcase - :ivar ShowcaseEditCommentType team_log.EventType.showcase_edit_comment: - (showcase) Edited showcase comment - :ivar ShowcaseFileAddedType team_log.EventType.showcase_file_added: - (showcase) Added file to showcase - :ivar ShowcaseFileDownloadType team_log.EventType.showcase_file_download: - (showcase) Downloaded file from showcase - :ivar ShowcaseFileRemovedType team_log.EventType.showcase_file_removed: - (showcase) Removed file from showcase - :ivar ShowcaseFileViewType team_log.EventType.showcase_file_view: (showcase) - Viewed file in showcase - :ivar ShowcasePermanentlyDeletedType - team_log.EventType.showcase_permanently_deleted: (showcase) Permanently - deleted showcase - :ivar ShowcasePostCommentType team_log.EventType.showcase_post_comment: - (showcase) Added showcase comment - :ivar ShowcaseRemoveMemberType team_log.EventType.showcase_remove_member: - (showcase) Removed member from showcase - :ivar ShowcaseRenamedType team_log.EventType.showcase_renamed: (showcase) - Renamed showcase - :ivar ShowcaseRequestAccessType team_log.EventType.showcase_request_access: + :ivar ShowcaseEditedType EventType.showcase_edited: (showcase) Edited + showcase + :ivar ShowcaseEditCommentType EventType.showcase_edit_comment: (showcase) + Edited showcase comment + :ivar ShowcaseFileAddedType EventType.showcase_file_added: (showcase) Added + file to showcase + :ivar ShowcaseFileDownloadType EventType.showcase_file_download: (showcase) + Downloaded file from showcase + :ivar ShowcaseFileRemovedType EventType.showcase_file_removed: (showcase) + Removed file from showcase + :ivar ShowcaseFileViewType EventType.showcase_file_view: (showcase) Viewed + file in showcase + :ivar ShowcasePermanentlyDeletedType EventType.showcase_permanently_deleted: + (showcase) Permanently deleted showcase + :ivar ShowcasePostCommentType EventType.showcase_post_comment: (showcase) + Added showcase comment + :ivar ShowcaseRemoveMemberType EventType.showcase_remove_member: (showcase) + Removed member from showcase + :ivar ShowcaseRenamedType EventType.showcase_renamed: (showcase) Renamed + showcase + :ivar ShowcaseRequestAccessType EventType.showcase_request_access: (showcase) Requested access to showcase - :ivar ShowcaseResolveCommentType - team_log.EventType.showcase_resolve_comment: (showcase) Resolved - showcase comment - :ivar ShowcaseRestoredType team_log.EventType.showcase_restored: (showcase) + :ivar ShowcaseResolveCommentType EventType.showcase_resolve_comment: + (showcase) Resolved showcase comment + :ivar ShowcaseRestoredType EventType.showcase_restored: (showcase) Unarchived showcase - :ivar ShowcaseTrashedType team_log.EventType.showcase_trashed: (showcase) - Deleted showcase - :ivar ShowcaseTrashedDeprecatedType - team_log.EventType.showcase_trashed_deprecated: (showcase) Deleted - showcase (old version) (deprecated, replaced by 'Deleted showcase') - :ivar ShowcaseUnresolveCommentType - team_log.EventType.showcase_unresolve_comment: (showcase) Unresolved - showcase comment - :ivar ShowcaseUntrashedType team_log.EventType.showcase_untrashed: - (showcase) Restored showcase - :ivar ShowcaseUntrashedDeprecatedType - team_log.EventType.showcase_untrashed_deprecated: (showcase) Restored - showcase (old version) (deprecated, replaced by 'Restored showcase') - :ivar ShowcaseViewType team_log.EventType.showcase_view: (showcase) Viewed + :ivar ShowcaseTrashedType EventType.showcase_trashed: (showcase) Deleted showcase - :ivar SsoAddCertType team_log.EventType.sso_add_cert: (sso) Added X.509 + :ivar ShowcaseTrashedDeprecatedType EventType.showcase_trashed_deprecated: + (showcase) Deleted showcase (old version) (deprecated, replaced by + 'Deleted showcase') + :ivar ShowcaseUnresolveCommentType EventType.showcase_unresolve_comment: + (showcase) Unresolved showcase comment + :ivar ShowcaseUntrashedType EventType.showcase_untrashed: (showcase) + Restored showcase + :ivar ShowcaseUntrashedDeprecatedType + EventType.showcase_untrashed_deprecated: (showcase) Restored showcase + (old version) (deprecated, replaced by 'Restored showcase') + :ivar ShowcaseViewType EventType.showcase_view: (showcase) Viewed showcase + :ivar SsoAddCertType EventType.sso_add_cert: (sso) Added X.509 certificate + for SSO + :ivar SsoAddLoginUrlType EventType.sso_add_login_url: (sso) Added sign-in + URL for SSO + :ivar SsoAddLogoutUrlType EventType.sso_add_logout_url: (sso) Added sign-out + URL for SSO + :ivar SsoChangeCertType EventType.sso_change_cert: (sso) Changed X.509 certificate for SSO - :ivar SsoAddLoginUrlType team_log.EventType.sso_add_login_url: (sso) Added + :ivar SsoChangeLoginUrlType EventType.sso_change_login_url: (sso) Changed sign-in URL for SSO - :ivar SsoAddLogoutUrlType team_log.EventType.sso_add_logout_url: (sso) Added + :ivar SsoChangeLogoutUrlType EventType.sso_change_logout_url: (sso) Changed sign-out URL for SSO - :ivar SsoChangeCertType team_log.EventType.sso_change_cert: (sso) Changed - X.509 certificate for SSO - :ivar SsoChangeLoginUrlType team_log.EventType.sso_change_login_url: (sso) - Changed sign-in URL for SSO - :ivar SsoChangeLogoutUrlType team_log.EventType.sso_change_logout_url: (sso) - Changed sign-out URL for SSO - :ivar SsoChangeSamlIdentityModeType - team_log.EventType.sso_change_saml_identity_mode: (sso) Changed SAML - identity mode for SSO - :ivar SsoRemoveCertType team_log.EventType.sso_remove_cert: (sso) Removed - X.509 certificate for SSO - :ivar SsoRemoveLoginUrlType team_log.EventType.sso_remove_login_url: (sso) - Removed sign-in URL for SSO - :ivar SsoRemoveLogoutUrlType team_log.EventType.sso_remove_logout_url: (sso) - Removed sign-out URL for SSO - :ivar TeamFolderChangeStatusType - team_log.EventType.team_folder_change_status: (team_folders) Changed - archival status of team folder - :ivar TeamFolderCreateType team_log.EventType.team_folder_create: - (team_folders) Created team folder in active status - :ivar TeamFolderDowngradeType team_log.EventType.team_folder_downgrade: + :ivar SsoChangeSamlIdentityModeType EventType.sso_change_saml_identity_mode: + (sso) Changed SAML identity mode for SSO + :ivar SsoRemoveCertType EventType.sso_remove_cert: (sso) Removed X.509 + certificate for SSO + :ivar SsoRemoveLoginUrlType EventType.sso_remove_login_url: (sso) Removed + sign-in URL for SSO + :ivar SsoRemoveLogoutUrlType EventType.sso_remove_logout_url: (sso) Removed + sign-out URL for SSO + :ivar TeamFolderChangeStatusType EventType.team_folder_change_status: + (team_folders) Changed archival status of team folder + :ivar TeamFolderCreateType EventType.team_folder_create: (team_folders) + Created team folder in active status + :ivar TeamFolderDowngradeType EventType.team_folder_downgrade: (team_folders) Downgraded team folder to regular shared folder :ivar TeamFolderPermanentlyDeleteType - team_log.EventType.team_folder_permanently_delete: (team_folders) - Permanently deleted archived team folder - :ivar TeamFolderRenameType team_log.EventType.team_folder_rename: - (team_folders) Renamed active/archived team folder + EventType.team_folder_permanently_delete: (team_folders) Permanently + deleted archived team folder + :ivar TeamFolderRenameType EventType.team_folder_rename: (team_folders) + Renamed active/archived team folder :ivar TeamSelectiveSyncSettingsChangedType - team_log.EventType.team_selective_sync_settings_changed: (team_folders) - Changed sync default + EventType.team_selective_sync_settings_changed: (team_folders) Changed + sync default :ivar AccountCaptureChangePolicyType - team_log.EventType.account_capture_change_policy: (team_policies) - Changed account capture setting on team domain - :ivar AllowDownloadDisabledType team_log.EventType.allow_download_disabled: + EventType.account_capture_change_policy: (team_policies) Changed account + capture setting on team domain + :ivar AllowDownloadDisabledType EventType.allow_download_disabled: (team_policies) Disabled downloads (deprecated, no longer logged) - :ivar AllowDownloadEnabledType team_log.EventType.allow_download_enabled: + :ivar AllowDownloadEnabledType EventType.allow_download_enabled: (team_policies) Enabled downloads (deprecated, no longer logged) :ivar CameraUploadsPolicyChangedType - team_log.EventType.camera_uploads_policy_changed: (team_policies) - Changed camera uploads setting for team + EventType.camera_uploads_policy_changed: (team_policies) Changed camera + uploads setting for team :ivar DataPlacementRestrictionChangePolicyType - team_log.EventType.data_placement_restriction_change_policy: - (team_policies) Set restrictions on data center locations where team - data resides + EventType.data_placement_restriction_change_policy: (team_policies) Set + restrictions on data center locations where team data resides :ivar DataPlacementRestrictionSatisfyPolicyType - team_log.EventType.data_placement_restriction_satisfy_policy: - (team_policies) Completed restrictions on data center locations where - team data resides + EventType.data_placement_restriction_satisfy_policy: (team_policies) + Completed restrictions on data center locations where team data resides :ivar DeviceApprovalsChangeDesktopPolicyType - team_log.EventType.device_approvals_change_desktop_policy: - (team_policies) Set/removed limit on number of computers member can link - to team Dropbox account + EventType.device_approvals_change_desktop_policy: (team_policies) + Set/removed limit on number of computers member can link to team Dropbox + account :ivar DeviceApprovalsChangeMobilePolicyType - team_log.EventType.device_approvals_change_mobile_policy: - (team_policies) Set/removed limit on number of mobile devices member can - link to team Dropbox account + EventType.device_approvals_change_mobile_policy: (team_policies) + Set/removed limit on number of mobile devices member can link to team + Dropbox account :ivar DeviceApprovalsChangeOverageActionType - team_log.EventType.device_approvals_change_overage_action: - (team_policies) Changed device approvals setting when member is over - limit + EventType.device_approvals_change_overage_action: (team_policies) + Changed device approvals setting when member is over limit :ivar DeviceApprovalsChangeUnlinkActionType - team_log.EventType.device_approvals_change_unlink_action: - (team_policies) Changed device approvals setting when member unlinks - approved device + EventType.device_approvals_change_unlink_action: (team_policies) Changed + device approvals setting when member unlinks approved device :ivar DirectoryRestrictionsAddMembersType - team_log.EventType.directory_restrictions_add_members: (team_policies) - Added members to directory restrictions list + EventType.directory_restrictions_add_members: (team_policies) Added + members to directory restrictions list :ivar DirectoryRestrictionsRemoveMembersType - team_log.EventType.directory_restrictions_remove_members: - (team_policies) Removed members from directory restrictions list - :ivar EmmAddExceptionType team_log.EventType.emm_add_exception: - (team_policies) Added members to EMM exception list - :ivar EmmChangePolicyType team_log.EventType.emm_change_policy: - (team_policies) Enabled/disabled enterprise mobility management for - members - :ivar EmmRemoveExceptionType team_log.EventType.emm_remove_exception: - (team_policies) Removed members from EMM exception list + EventType.directory_restrictions_remove_members: (team_policies) Removed + members from directory restrictions list + :ivar EmmAddExceptionType EventType.emm_add_exception: (team_policies) Added + members to EMM exception list + :ivar EmmChangePolicyType EventType.emm_change_policy: (team_policies) + Enabled/disabled enterprise mobility management for members + :ivar EmmRemoveExceptionType EventType.emm_remove_exception: (team_policies) + Removed members from EMM exception list :ivar ExtendedVersionHistoryChangePolicyType - team_log.EventType.extended_version_history_change_policy: - (team_policies) Accepted/opted out of extended version history - :ivar FileCommentsChangePolicyType - team_log.EventType.file_comments_change_policy: (team_policies) - Enabled/disabled commenting on team files - :ivar FileRequestsChangePolicyType - team_log.EventType.file_requests_change_policy: (team_policies) - Enabled/disabled file requests - :ivar FileRequestsEmailsEnabledType - team_log.EventType.file_requests_emails_enabled: (team_policies) Enabled - file request emails for everyone (deprecated, no longer logged) - :ivar FileRequestsEmailsRestrictedToTeamOnlyType - team_log.EventType.file_requests_emails_restricted_to_team_only: - (team_policies) Enabled file request emails for team (deprecated, no + EventType.extended_version_history_change_policy: (team_policies) + Accepted/opted out of extended version history + :ivar FileCommentsChangePolicyType EventType.file_comments_change_policy: + (team_policies) Enabled/disabled commenting on team files + :ivar FileRequestsChangePolicyType EventType.file_requests_change_policy: + (team_policies) Enabled/disabled file requests + :ivar FileRequestsEmailsEnabledType EventType.file_requests_emails_enabled: + (team_policies) Enabled file request emails for everyone (deprecated, no longer logged) - :ivar GoogleSsoChangePolicyType team_log.EventType.google_sso_change_policy: + :ivar FileRequestsEmailsRestrictedToTeamOnlyType + EventType.file_requests_emails_restricted_to_team_only: (team_policies) + Enabled file request emails for team (deprecated, no longer logged) + :ivar GoogleSsoChangePolicyType EventType.google_sso_change_policy: (team_policies) Enabled/disabled Google single sign-on for team :ivar GroupUserManagementChangePolicyType - team_log.EventType.group_user_management_change_policy: (team_policies) - Changed who can create groups + EventType.group_user_management_change_policy: (team_policies) Changed + who can create groups + :ivar IntegrationPolicyChangedType EventType.integration_policy_changed: + (team_policies) Changed integration policy for team :ivar MemberRequestsChangePolicyType - team_log.EventType.member_requests_change_policy: (team_policies) - Changed whether users can find team when not invited + EventType.member_requests_change_policy: (team_policies) Changed whether + users can find team when not invited :ivar MemberSpaceLimitsAddExceptionType - team_log.EventType.member_space_limits_add_exception: (team_policies) - Added members to member space limit exception list + EventType.member_space_limits_add_exception: (team_policies) Added + members to member space limit exception list :ivar MemberSpaceLimitsChangeCapsTypePolicyType - team_log.EventType.member_space_limits_change_caps_type_policy: - (team_policies) Changed member space limit type for team + EventType.member_space_limits_change_caps_type_policy: (team_policies) + Changed member space limit type for team :ivar MemberSpaceLimitsChangePolicyType - team_log.EventType.member_space_limits_change_policy: (team_policies) - Changed team default member space limit + EventType.member_space_limits_change_policy: (team_policies) Changed + team default member space limit :ivar MemberSpaceLimitsRemoveExceptionType - team_log.EventType.member_space_limits_remove_exception: (team_policies) - Removed members from member space limit exception list + EventType.member_space_limits_remove_exception: (team_policies) Removed + members from member space limit exception list :ivar MemberSuggestionsChangePolicyType - team_log.EventType.member_suggestions_change_policy: (team_policies) + EventType.member_suggestions_change_policy: (team_policies) Enabled/disabled option for team members to suggest people to add to team :ivar MicrosoftOfficeAddinChangePolicyType - team_log.EventType.microsoft_office_addin_change_policy: (team_policies) + EventType.microsoft_office_addin_change_policy: (team_policies) Enabled/disabled Microsoft Office add-in :ivar NetworkControlChangePolicyType - team_log.EventType.network_control_change_policy: (team_policies) + EventType.network_control_change_policy: (team_policies) Enabled/disabled network control :ivar PaperChangeDeploymentPolicyType - team_log.EventType.paper_change_deployment_policy: (team_policies) - Changed whether Dropbox Paper, when enabled, is deployed to all members - or to specific members + EventType.paper_change_deployment_policy: (team_policies) Changed + whether Dropbox Paper, when enabled, is deployed to all members or to + specific members :ivar PaperChangeMemberLinkPolicyType - team_log.EventType.paper_change_member_link_policy: (team_policies) - Changed whether non-members can view Paper docs with link (deprecated, - no longer logged) - :ivar PaperChangeMemberPolicyType - team_log.EventType.paper_change_member_policy: (team_policies) Changed - whether members can share Paper docs outside team, and if docs are - accessible only by team members or anyone by default - :ivar PaperChangePolicyType team_log.EventType.paper_change_policy: - (team_policies) Enabled/disabled Dropbox Paper for team + EventType.paper_change_member_link_policy: (team_policies) Changed + whether non-members can view Paper docs with link (deprecated, no longer + logged) + :ivar PaperChangeMemberPolicyType EventType.paper_change_member_policy: + (team_policies) Changed whether members can share Paper docs outside + team, and if docs are accessible only by team members or anyone by + default + :ivar PaperChangePolicyType EventType.paper_change_policy: (team_policies) + Enabled/disabled Dropbox Paper for team + :ivar PaperDefaultFolderPolicyChangedType + EventType.paper_default_folder_policy_changed: (team_policies) Changed + Paper Default Folder Policy setting for team + :ivar PaperDesktopPolicyChangedType EventType.paper_desktop_policy_changed: + (team_policies) Enabled/disabled Paper Desktop for team :ivar PaperEnabledUsersGroupAdditionType - team_log.EventType.paper_enabled_users_group_addition: (team_policies) - Added users to Paper-enabled users list + EventType.paper_enabled_users_group_addition: (team_policies) Added + users to Paper-enabled users list :ivar PaperEnabledUsersGroupRemovalType - team_log.EventType.paper_enabled_users_group_removal: (team_policies) - Removed users from Paper-enabled users list + EventType.paper_enabled_users_group_removal: (team_policies) Removed + users from Paper-enabled users list :ivar PermanentDeleteChangePolicyType - team_log.EventType.permanent_delete_change_policy: (team_policies) + EventType.permanent_delete_change_policy: (team_policies) Enabled/disabled ability of team members to permanently delete content + :ivar ResellerSupportChangePolicyType + EventType.reseller_support_change_policy: (team_policies) + Enabled/disabled reseller support :ivar SharingChangeFolderJoinPolicyType - team_log.EventType.sharing_change_folder_join_policy: (team_policies) - Changed whether team members can join shared folders owned outside team - :ivar SharingChangeLinkPolicyType - team_log.EventType.sharing_change_link_policy: (team_policies) Changed - whether members can share links outside team, and if links are - accessible only by team members or anyone by default - :ivar SharingChangeMemberPolicyType - team_log.EventType.sharing_change_member_policy: (team_policies) Changed - whether members can share files/folders outside team + EventType.sharing_change_folder_join_policy: (team_policies) Changed + whether team members can join shared folders owned outside team + :ivar SharingChangeLinkPolicyType EventType.sharing_change_link_policy: + (team_policies) Changed whether members can share links outside team, + and if links are accessible only by team members or anyone by default + :ivar SharingChangeMemberPolicyType EventType.sharing_change_member_policy: + (team_policies) Changed whether members can share files/folders outside + team :ivar ShowcaseChangeDownloadPolicyType - team_log.EventType.showcase_change_download_policy: (team_policies) + EventType.showcase_change_download_policy: (team_policies) Enabled/disabled downloading files from Dropbox Showcase for team :ivar ShowcaseChangeEnabledPolicyType - team_log.EventType.showcase_change_enabled_policy: (team_policies) + EventType.showcase_change_enabled_policy: (team_policies) Enabled/disabled Dropbox Showcase for team :ivar ShowcaseChangeExternalSharingPolicyType - team_log.EventType.showcase_change_external_sharing_policy: - (team_policies) Enabled/disabled sharing Dropbox Showcase externally for - team - :ivar SmartSyncChangePolicyType team_log.EventType.smart_sync_change_policy: + EventType.showcase_change_external_sharing_policy: (team_policies) + Enabled/disabled sharing Dropbox Showcase externally for team + :ivar SmartSyncChangePolicyType EventType.smart_sync_change_policy: (team_policies) Changed default Smart Sync setting for team members - :ivar SmartSyncNotOptOutType team_log.EventType.smart_sync_not_opt_out: + :ivar SmartSyncNotOptOutType EventType.smart_sync_not_opt_out: (team_policies) Opted team into Smart Sync - :ivar SmartSyncOptOutType team_log.EventType.smart_sync_opt_out: - (team_policies) Opted team out of Smart Sync - :ivar SsoChangePolicyType team_log.EventType.sso_change_policy: - (team_policies) Changed single sign-on setting for team + :ivar SmartSyncOptOutType EventType.smart_sync_opt_out: (team_policies) + Opted team out of Smart Sync + :ivar SsoChangePolicyType EventType.sso_change_policy: (team_policies) + Changed single sign-on setting for team + :ivar TeamExtensionsPolicyChangedType + EventType.team_extensions_policy_changed: (team_policies) Changed App + Integrations setting for team :ivar TeamSelectiveSyncPolicyChangedType - team_log.EventType.team_selective_sync_policy_changed: (team_policies) + EventType.team_selective_sync_policy_changed: (team_policies) Enabled/disabled Team Selective Sync for team - :ivar TfaChangePolicyType team_log.EventType.tfa_change_policy: - (team_policies) Changed two-step verification setting for team - :ivar TwoAccountChangePolicyType - team_log.EventType.two_account_change_policy: (team_policies) - Enabled/disabled option for members to link personal Dropbox account and - team account to same computer - :ivar ViewerInfoPolicyChangedType - team_log.EventType.viewer_info_policy_changed: (team_policies) Changed - team policy for viewer info + :ivar TfaChangePolicyType EventType.tfa_change_policy: (team_policies) + Changed two-step verification setting for team + :ivar TwoAccountChangePolicyType EventType.two_account_change_policy: + (team_policies) Enabled/disabled option for members to link personal + Dropbox account and team account to same computer + :ivar ViewerInfoPolicyChangedType EventType.viewer_info_policy_changed: + (team_policies) Changed team policy for viewer info :ivar WebSessionsChangeFixedLengthPolicyType - team_log.EventType.web_sessions_change_fixed_length_policy: - (team_policies) Changed how long members can stay signed in to - Dropbox.com + EventType.web_sessions_change_fixed_length_policy: (team_policies) + Changed how long members can stay signed in to Dropbox.com :ivar WebSessionsChangeIdleLengthPolicyType - team_log.EventType.web_sessions_change_idle_length_policy: - (team_policies) Changed how long team members can be idle while signed - in to Dropbox.com - :ivar TeamMergeFromType team_log.EventType.team_merge_from: (team_profile) - Merged another team into this team - :ivar TeamMergeToType team_log.EventType.team_merge_to: (team_profile) - Merged this team into another team - :ivar TeamProfileAddLogoType team_log.EventType.team_profile_add_logo: - (team_profile) Added team logo to display on shared link headers + EventType.web_sessions_change_idle_length_policy: (team_policies) + Changed how long team members can be idle while signed in to Dropbox.com + :ivar TeamMergeFromType EventType.team_merge_from: (team_profile) Merged + another team into this team + :ivar TeamMergeToType EventType.team_merge_to: (team_profile) Merged this + team into another team + :ivar TeamProfileAddLogoType EventType.team_profile_add_logo: (team_profile) + Added team logo to display on shared link headers :ivar TeamProfileChangeDefaultLanguageType - team_log.EventType.team_profile_change_default_language: (team_profile) - Changed default language for team - :ivar TeamProfileChangeLogoType team_log.EventType.team_profile_change_logo: + EventType.team_profile_change_default_language: (team_profile) Changed + default language for team + :ivar TeamProfileChangeLogoType EventType.team_profile_change_logo: (team_profile) Changed team logo displayed on shared link headers - :ivar TeamProfileChangeNameType team_log.EventType.team_profile_change_name: + :ivar TeamProfileChangeNameType EventType.team_profile_change_name: (team_profile) Changed team name - :ivar TeamProfileRemoveLogoType team_log.EventType.team_profile_remove_logo: + :ivar TeamProfileRemoveLogoType EventType.team_profile_remove_logo: (team_profile) Removed team logo displayed on shared link headers - :ivar TfaAddBackupPhoneType team_log.EventType.tfa_add_backup_phone: (tfa) - Added backup phone for two-step verification - :ivar TfaAddSecurityKeyType team_log.EventType.tfa_add_security_key: (tfa) - Added security key for two-step verification - :ivar TfaChangeBackupPhoneType team_log.EventType.tfa_change_backup_phone: - (tfa) Changed backup phone for two-step verification - :ivar TfaChangeStatusType team_log.EventType.tfa_change_status: (tfa) + :ivar TfaAddBackupPhoneType EventType.tfa_add_backup_phone: (tfa) Added + backup phone for two-step verification + :ivar TfaAddSecurityKeyType EventType.tfa_add_security_key: (tfa) Added + security key for two-step verification + :ivar TfaChangeBackupPhoneType EventType.tfa_change_backup_phone: (tfa) + Changed backup phone for two-step verification + :ivar TfaChangeStatusType EventType.tfa_change_status: (tfa) Enabled/disabled/changed two-step verification setting - :ivar TfaRemoveBackupPhoneType team_log.EventType.tfa_remove_backup_phone: - (tfa) Removed backup phone for two-step verification - :ivar TfaRemoveSecurityKeyType team_log.EventType.tfa_remove_security_key: - (tfa) Removed security key for two-step verification - :ivar TfaResetType team_log.EventType.tfa_reset: (tfa) Reset two-step - verification for team member + :ivar TfaRemoveBackupPhoneType EventType.tfa_remove_backup_phone: (tfa) + Removed backup phone for two-step verification + :ivar TfaRemoveSecurityKeyType EventType.tfa_remove_security_key: (tfa) + Removed security key for two-step verification + :ivar TfaResetType EventType.tfa_reset: (tfa) Reset two-step verification + for team member + :ivar GuestAdminChangeStatusType EventType.guest_admin_change_status: + (trusted_teams) Changed guest team admin status + :ivar TeamMergeRequestAcceptedType EventType.team_merge_request_accepted: + (trusted_teams) Accepted a team merge request + :ivar TeamMergeRequestAcceptedShownToPrimaryTeamType + EventType.team_merge_request_accepted_shown_to_primary_team: + (trusted_teams) Accepted a team merge request (deprecated, replaced by + 'Accepted a team merge request') + :ivar TeamMergeRequestAcceptedShownToSecondaryTeamType + EventType.team_merge_request_accepted_shown_to_secondary_team: + (trusted_teams) Accepted a team merge request (deprecated, replaced by + 'Accepted a team merge request') + :ivar TeamMergeRequestAutoCanceledType + EventType.team_merge_request_auto_canceled: (trusted_teams) + Automatically canceled team merge request + :ivar TeamMergeRequestCanceledType EventType.team_merge_request_canceled: + (trusted_teams) Canceled a team merge request + :ivar TeamMergeRequestCanceledShownToPrimaryTeamType + EventType.team_merge_request_canceled_shown_to_primary_team: + (trusted_teams) Canceled a team merge request (deprecated, replaced by + 'Canceled a team merge request') + :ivar TeamMergeRequestCanceledShownToSecondaryTeamType + EventType.team_merge_request_canceled_shown_to_secondary_team: + (trusted_teams) Canceled a team merge request (deprecated, replaced by + 'Canceled a team merge request') + :ivar TeamMergeRequestExpiredType EventType.team_merge_request_expired: + (trusted_teams) Team merge request expired + :ivar TeamMergeRequestExpiredShownToPrimaryTeamType + EventType.team_merge_request_expired_shown_to_primary_team: + (trusted_teams) Team merge request expired (deprecated, replaced by + 'Team merge request expired') + :ivar TeamMergeRequestExpiredShownToSecondaryTeamType + EventType.team_merge_request_expired_shown_to_secondary_team: + (trusted_teams) Team merge request expired (deprecated, replaced by + 'Team merge request expired') + :ivar TeamMergeRequestRejectedShownToPrimaryTeamType + EventType.team_merge_request_rejected_shown_to_primary_team: + (trusted_teams) Rejected a team merge request (deprecated, no longer + logged) + :ivar TeamMergeRequestRejectedShownToSecondaryTeamType + EventType.team_merge_request_rejected_shown_to_secondary_team: + (trusted_teams) Rejected a team merge request (deprecated, no longer + logged) + :ivar TeamMergeRequestReminderType EventType.team_merge_request_reminder: + (trusted_teams) Sent a team merge request reminder + :ivar TeamMergeRequestReminderShownToPrimaryTeamType + EventType.team_merge_request_reminder_shown_to_primary_team: + (trusted_teams) Sent a team merge request reminder (deprecated, replaced + by 'Sent a team merge request reminder') + :ivar TeamMergeRequestReminderShownToSecondaryTeamType + EventType.team_merge_request_reminder_shown_to_secondary_team: + (trusted_teams) Sent a team merge request reminder (deprecated, replaced + by 'Sent a team merge request reminder') + :ivar TeamMergeRequestRevokedType EventType.team_merge_request_revoked: + (trusted_teams) Canceled the team merge + :ivar TeamMergeRequestSentShownToPrimaryTeamType + EventType.team_merge_request_sent_shown_to_primary_team: (trusted_teams) + Requested to merge their Dropbox team into yours + :ivar TeamMergeRequestSentShownToSecondaryTeamType + EventType.team_merge_request_sent_shown_to_secondary_team: + (trusted_teams) Requested to merge your team into another Dropbox team """ _catch_all = 'other' @@ -17560,8 +18662,8 @@ def app_link_team(cls, val): Create an instance of this class set to the ``app_link_team`` tag with value ``val``. - :param team_log.AppLinkTeamType val: - :rtype: team_log.EventType + :param AppLinkTeamType val: + :rtype: EventType """ return cls('app_link_team', val) @@ -17571,8 +18673,8 @@ def app_link_user(cls, val): Create an instance of this class set to the ``app_link_user`` tag with value ``val``. - :param team_log.AppLinkUserType val: - :rtype: team_log.EventType + :param AppLinkUserType val: + :rtype: EventType """ return cls('app_link_user', val) @@ -17582,8 +18684,8 @@ def app_unlink_team(cls, val): Create an instance of this class set to the ``app_unlink_team`` tag with value ``val``. - :param team_log.AppUnlinkTeamType val: - :rtype: team_log.EventType + :param AppUnlinkTeamType val: + :rtype: EventType """ return cls('app_unlink_team', val) @@ -17593,19 +18695,41 @@ def app_unlink_user(cls, val): Create an instance of this class set to the ``app_unlink_user`` tag with value ``val``. - :param team_log.AppUnlinkUserType val: - :rtype: team_log.EventType + :param AppUnlinkUserType val: + :rtype: EventType """ return cls('app_unlink_user', val) + @classmethod + def integration_connected(cls, val): + """ + Create an instance of this class set to the ``integration_connected`` + tag with value ``val``. + + :param IntegrationConnectedType val: + :rtype: EventType + """ + return cls('integration_connected', val) + + @classmethod + def integration_disconnected(cls, val): + """ + Create an instance of this class set to the ``integration_disconnected`` + tag with value ``val``. + + :param IntegrationDisconnectedType val: + :rtype: EventType + """ + return cls('integration_disconnected', val) + @classmethod def file_add_comment(cls, val): """ Create an instance of this class set to the ``file_add_comment`` tag with value ``val``. - :param team_log.FileAddCommentType val: - :rtype: team_log.EventType + :param FileAddCommentType val: + :rtype: EventType """ return cls('file_add_comment', val) @@ -17615,8 +18739,8 @@ def file_change_comment_subscription(cls, val): Create an instance of this class set to the ``file_change_comment_subscription`` tag with value ``val``. - :param team_log.FileChangeCommentSubscriptionType val: - :rtype: team_log.EventType + :param FileChangeCommentSubscriptionType val: + :rtype: EventType """ return cls('file_change_comment_subscription', val) @@ -17626,8 +18750,8 @@ def file_delete_comment(cls, val): Create an instance of this class set to the ``file_delete_comment`` tag with value ``val``. - :param team_log.FileDeleteCommentType val: - :rtype: team_log.EventType + :param FileDeleteCommentType val: + :rtype: EventType """ return cls('file_delete_comment', val) @@ -17637,8 +18761,8 @@ def file_edit_comment(cls, val): Create an instance of this class set to the ``file_edit_comment`` tag with value ``val``. - :param team_log.FileEditCommentType val: - :rtype: team_log.EventType + :param FileEditCommentType val: + :rtype: EventType """ return cls('file_edit_comment', val) @@ -17648,8 +18772,8 @@ def file_like_comment(cls, val): Create an instance of this class set to the ``file_like_comment`` tag with value ``val``. - :param team_log.FileLikeCommentType val: - :rtype: team_log.EventType + :param FileLikeCommentType val: + :rtype: EventType """ return cls('file_like_comment', val) @@ -17659,8 +18783,8 @@ def file_resolve_comment(cls, val): Create an instance of this class set to the ``file_resolve_comment`` tag with value ``val``. - :param team_log.FileResolveCommentType val: - :rtype: team_log.EventType + :param FileResolveCommentType val: + :rtype: EventType """ return cls('file_resolve_comment', val) @@ -17670,8 +18794,8 @@ def file_unlike_comment(cls, val): Create an instance of this class set to the ``file_unlike_comment`` tag with value ``val``. - :param team_log.FileUnlikeCommentType val: - :rtype: team_log.EventType + :param FileUnlikeCommentType val: + :rtype: EventType """ return cls('file_unlike_comment', val) @@ -17681,8 +18805,8 @@ def file_unresolve_comment(cls, val): Create an instance of this class set to the ``file_unresolve_comment`` tag with value ``val``. - :param team_log.FileUnresolveCommentType val: - :rtype: team_log.EventType + :param FileUnresolveCommentType val: + :rtype: EventType """ return cls('file_unresolve_comment', val) @@ -17692,8 +18816,8 @@ def device_change_ip_desktop(cls, val): Create an instance of this class set to the ``device_change_ip_desktop`` tag with value ``val``. - :param team_log.DeviceChangeIpDesktopType val: - :rtype: team_log.EventType + :param DeviceChangeIpDesktopType val: + :rtype: EventType """ return cls('device_change_ip_desktop', val) @@ -17703,8 +18827,8 @@ def device_change_ip_mobile(cls, val): Create an instance of this class set to the ``device_change_ip_mobile`` tag with value ``val``. - :param team_log.DeviceChangeIpMobileType val: - :rtype: team_log.EventType + :param DeviceChangeIpMobileType val: + :rtype: EventType """ return cls('device_change_ip_mobile', val) @@ -17714,8 +18838,8 @@ def device_change_ip_web(cls, val): Create an instance of this class set to the ``device_change_ip_web`` tag with value ``val``. - :param team_log.DeviceChangeIpWebType val: - :rtype: team_log.EventType + :param DeviceChangeIpWebType val: + :rtype: EventType """ return cls('device_change_ip_web', val) @@ -17725,8 +18849,8 @@ def device_delete_on_unlink_fail(cls, val): Create an instance of this class set to the ``device_delete_on_unlink_fail`` tag with value ``val``. - :param team_log.DeviceDeleteOnUnlinkFailType val: - :rtype: team_log.EventType + :param DeviceDeleteOnUnlinkFailType val: + :rtype: EventType """ return cls('device_delete_on_unlink_fail', val) @@ -17736,8 +18860,8 @@ def device_delete_on_unlink_success(cls, val): Create an instance of this class set to the ``device_delete_on_unlink_success`` tag with value ``val``. - :param team_log.DeviceDeleteOnUnlinkSuccessType val: - :rtype: team_log.EventType + :param DeviceDeleteOnUnlinkSuccessType val: + :rtype: EventType """ return cls('device_delete_on_unlink_success', val) @@ -17747,8 +18871,8 @@ def device_link_fail(cls, val): Create an instance of this class set to the ``device_link_fail`` tag with value ``val``. - :param team_log.DeviceLinkFailType val: - :rtype: team_log.EventType + :param DeviceLinkFailType val: + :rtype: EventType """ return cls('device_link_fail', val) @@ -17758,8 +18882,8 @@ def device_link_success(cls, val): Create an instance of this class set to the ``device_link_success`` tag with value ``val``. - :param team_log.DeviceLinkSuccessType val: - :rtype: team_log.EventType + :param DeviceLinkSuccessType val: + :rtype: EventType """ return cls('device_link_success', val) @@ -17769,8 +18893,8 @@ def device_management_disabled(cls, val): Create an instance of this class set to the ``device_management_disabled`` tag with value ``val``. - :param team_log.DeviceManagementDisabledType val: - :rtype: team_log.EventType + :param DeviceManagementDisabledType val: + :rtype: EventType """ return cls('device_management_disabled', val) @@ -17780,8 +18904,8 @@ def device_management_enabled(cls, val): Create an instance of this class set to the ``device_management_enabled`` tag with value ``val``. - :param team_log.DeviceManagementEnabledType val: - :rtype: team_log.EventType + :param DeviceManagementEnabledType val: + :rtype: EventType """ return cls('device_management_enabled', val) @@ -17791,8 +18915,8 @@ def device_unlink(cls, val): Create an instance of this class set to the ``device_unlink`` tag with value ``val``. - :param team_log.DeviceUnlinkType val: - :rtype: team_log.EventType + :param DeviceUnlinkType val: + :rtype: EventType """ return cls('device_unlink', val) @@ -17802,8 +18926,8 @@ def emm_refresh_auth_token(cls, val): Create an instance of this class set to the ``emm_refresh_auth_token`` tag with value ``val``. - :param team_log.EmmRefreshAuthTokenType val: - :rtype: team_log.EventType + :param EmmRefreshAuthTokenType val: + :rtype: EventType """ return cls('emm_refresh_auth_token', val) @@ -17813,8 +18937,8 @@ def account_capture_change_availability(cls, val): Create an instance of this class set to the ``account_capture_change_availability`` tag with value ``val``. - :param team_log.AccountCaptureChangeAvailabilityType val: - :rtype: team_log.EventType + :param AccountCaptureChangeAvailabilityType val: + :rtype: EventType """ return cls('account_capture_change_availability', val) @@ -17824,8 +18948,8 @@ def account_capture_migrate_account(cls, val): Create an instance of this class set to the ``account_capture_migrate_account`` tag with value ``val``. - :param team_log.AccountCaptureMigrateAccountType val: - :rtype: team_log.EventType + :param AccountCaptureMigrateAccountType val: + :rtype: EventType """ return cls('account_capture_migrate_account', val) @@ -17835,8 +18959,8 @@ def account_capture_notification_emails_sent(cls, val): Create an instance of this class set to the ``account_capture_notification_emails_sent`` tag with value ``val``. - :param team_log.AccountCaptureNotificationEmailsSentType val: - :rtype: team_log.EventType + :param AccountCaptureNotificationEmailsSentType val: + :rtype: EventType """ return cls('account_capture_notification_emails_sent', val) @@ -17846,8 +18970,8 @@ def account_capture_relinquish_account(cls, val): Create an instance of this class set to the ``account_capture_relinquish_account`` tag with value ``val``. - :param team_log.AccountCaptureRelinquishAccountType val: - :rtype: team_log.EventType + :param AccountCaptureRelinquishAccountType val: + :rtype: EventType """ return cls('account_capture_relinquish_account', val) @@ -17857,8 +18981,8 @@ def disabled_domain_invites(cls, val): Create an instance of this class set to the ``disabled_domain_invites`` tag with value ``val``. - :param team_log.DisabledDomainInvitesType val: - :rtype: team_log.EventType + :param DisabledDomainInvitesType val: + :rtype: EventType """ return cls('disabled_domain_invites', val) @@ -17868,8 +18992,8 @@ def domain_invites_approve_request_to_join_team(cls, val): Create an instance of this class set to the ``domain_invites_approve_request_to_join_team`` tag with value ``val``. - :param team_log.DomainInvitesApproveRequestToJoinTeamType val: - :rtype: team_log.EventType + :param DomainInvitesApproveRequestToJoinTeamType val: + :rtype: EventType """ return cls('domain_invites_approve_request_to_join_team', val) @@ -17879,8 +19003,8 @@ def domain_invites_decline_request_to_join_team(cls, val): Create an instance of this class set to the ``domain_invites_decline_request_to_join_team`` tag with value ``val``. - :param team_log.DomainInvitesDeclineRequestToJoinTeamType val: - :rtype: team_log.EventType + :param DomainInvitesDeclineRequestToJoinTeamType val: + :rtype: EventType """ return cls('domain_invites_decline_request_to_join_team', val) @@ -17890,8 +19014,8 @@ def domain_invites_email_existing_users(cls, val): Create an instance of this class set to the ``domain_invites_email_existing_users`` tag with value ``val``. - :param team_log.DomainInvitesEmailExistingUsersType val: - :rtype: team_log.EventType + :param DomainInvitesEmailExistingUsersType val: + :rtype: EventType """ return cls('domain_invites_email_existing_users', val) @@ -17901,8 +19025,8 @@ def domain_invites_request_to_join_team(cls, val): Create an instance of this class set to the ``domain_invites_request_to_join_team`` tag with value ``val``. - :param team_log.DomainInvitesRequestToJoinTeamType val: - :rtype: team_log.EventType + :param DomainInvitesRequestToJoinTeamType val: + :rtype: EventType """ return cls('domain_invites_request_to_join_team', val) @@ -17913,8 +19037,8 @@ def domain_invites_set_invite_new_user_pref_to_no(cls, val): ``domain_invites_set_invite_new_user_pref_to_no`` tag with value ``val``. - :param team_log.DomainInvitesSetInviteNewUserPrefToNoType val: - :rtype: team_log.EventType + :param DomainInvitesSetInviteNewUserPrefToNoType val: + :rtype: EventType """ return cls('domain_invites_set_invite_new_user_pref_to_no', val) @@ -17925,8 +19049,8 @@ def domain_invites_set_invite_new_user_pref_to_yes(cls, val): ``domain_invites_set_invite_new_user_pref_to_yes`` tag with value ``val``. - :param team_log.DomainInvitesSetInviteNewUserPrefToYesType val: - :rtype: team_log.EventType + :param DomainInvitesSetInviteNewUserPrefToYesType val: + :rtype: EventType """ return cls('domain_invites_set_invite_new_user_pref_to_yes', val) @@ -17936,8 +19060,8 @@ def domain_verification_add_domain_fail(cls, val): Create an instance of this class set to the ``domain_verification_add_domain_fail`` tag with value ``val``. - :param team_log.DomainVerificationAddDomainFailType val: - :rtype: team_log.EventType + :param DomainVerificationAddDomainFailType val: + :rtype: EventType """ return cls('domain_verification_add_domain_fail', val) @@ -17947,8 +19071,8 @@ def domain_verification_add_domain_success(cls, val): Create an instance of this class set to the ``domain_verification_add_domain_success`` tag with value ``val``. - :param team_log.DomainVerificationAddDomainSuccessType val: - :rtype: team_log.EventType + :param DomainVerificationAddDomainSuccessType val: + :rtype: EventType """ return cls('domain_verification_add_domain_success', val) @@ -17958,8 +19082,8 @@ def domain_verification_remove_domain(cls, val): Create an instance of this class set to the ``domain_verification_remove_domain`` tag with value ``val``. - :param team_log.DomainVerificationRemoveDomainType val: - :rtype: team_log.EventType + :param DomainVerificationRemoveDomainType val: + :rtype: EventType """ return cls('domain_verification_remove_domain', val) @@ -17969,8 +19093,8 @@ def enabled_domain_invites(cls, val): Create an instance of this class set to the ``enabled_domain_invites`` tag with value ``val``. - :param team_log.EnabledDomainInvitesType val: - :rtype: team_log.EventType + :param EnabledDomainInvitesType val: + :rtype: EventType """ return cls('enabled_domain_invites', val) @@ -17980,8 +19104,8 @@ def create_folder(cls, val): Create an instance of this class set to the ``create_folder`` tag with value ``val``. - :param team_log.CreateFolderType val: - :rtype: team_log.EventType + :param CreateFolderType val: + :rtype: EventType """ return cls('create_folder', val) @@ -17991,8 +19115,8 @@ def file_add(cls, val): Create an instance of this class set to the ``file_add`` tag with value ``val``. - :param team_log.FileAddType val: - :rtype: team_log.EventType + :param FileAddType val: + :rtype: EventType """ return cls('file_add', val) @@ -18002,8 +19126,8 @@ def file_copy(cls, val): Create an instance of this class set to the ``file_copy`` tag with value ``val``. - :param team_log.FileCopyType val: - :rtype: team_log.EventType + :param FileCopyType val: + :rtype: EventType """ return cls('file_copy', val) @@ -18013,8 +19137,8 @@ def file_delete(cls, val): Create an instance of this class set to the ``file_delete`` tag with value ``val``. - :param team_log.FileDeleteType val: - :rtype: team_log.EventType + :param FileDeleteType val: + :rtype: EventType """ return cls('file_delete', val) @@ -18024,8 +19148,8 @@ def file_download(cls, val): Create an instance of this class set to the ``file_download`` tag with value ``val``. - :param team_log.FileDownloadType val: - :rtype: team_log.EventType + :param FileDownloadType val: + :rtype: EventType """ return cls('file_download', val) @@ -18035,8 +19159,8 @@ def file_edit(cls, val): Create an instance of this class set to the ``file_edit`` tag with value ``val``. - :param team_log.FileEditType val: - :rtype: team_log.EventType + :param FileEditType val: + :rtype: EventType """ return cls('file_edit', val) @@ -18046,8 +19170,8 @@ def file_get_copy_reference(cls, val): Create an instance of this class set to the ``file_get_copy_reference`` tag with value ``val``. - :param team_log.FileGetCopyReferenceType val: - :rtype: team_log.EventType + :param FileGetCopyReferenceType val: + :rtype: EventType """ return cls('file_get_copy_reference', val) @@ -18057,8 +19181,8 @@ def file_move(cls, val): Create an instance of this class set to the ``file_move`` tag with value ``val``. - :param team_log.FileMoveType val: - :rtype: team_log.EventType + :param FileMoveType val: + :rtype: EventType """ return cls('file_move', val) @@ -18068,8 +19192,8 @@ def file_permanently_delete(cls, val): Create an instance of this class set to the ``file_permanently_delete`` tag with value ``val``. - :param team_log.FilePermanentlyDeleteType val: - :rtype: team_log.EventType + :param FilePermanentlyDeleteType val: + :rtype: EventType """ return cls('file_permanently_delete', val) @@ -18079,8 +19203,8 @@ def file_preview(cls, val): Create an instance of this class set to the ``file_preview`` tag with value ``val``. - :param team_log.FilePreviewType val: - :rtype: team_log.EventType + :param FilePreviewType val: + :rtype: EventType """ return cls('file_preview', val) @@ -18090,8 +19214,8 @@ def file_rename(cls, val): Create an instance of this class set to the ``file_rename`` tag with value ``val``. - :param team_log.FileRenameType val: - :rtype: team_log.EventType + :param FileRenameType val: + :rtype: EventType """ return cls('file_rename', val) @@ -18101,8 +19225,8 @@ def file_restore(cls, val): Create an instance of this class set to the ``file_restore`` tag with value ``val``. - :param team_log.FileRestoreType val: - :rtype: team_log.EventType + :param FileRestoreType val: + :rtype: EventType """ return cls('file_restore', val) @@ -18112,8 +19236,8 @@ def file_revert(cls, val): Create an instance of this class set to the ``file_revert`` tag with value ``val``. - :param team_log.FileRevertType val: - :rtype: team_log.EventType + :param FileRevertType val: + :rtype: EventType """ return cls('file_revert', val) @@ -18123,8 +19247,8 @@ def file_rollback_changes(cls, val): Create an instance of this class set to the ``file_rollback_changes`` tag with value ``val``. - :param team_log.FileRollbackChangesType val: - :rtype: team_log.EventType + :param FileRollbackChangesType val: + :rtype: EventType """ return cls('file_rollback_changes', val) @@ -18134,8 +19258,8 @@ def file_save_copy_reference(cls, val): Create an instance of this class set to the ``file_save_copy_reference`` tag with value ``val``. - :param team_log.FileSaveCopyReferenceType val: - :rtype: team_log.EventType + :param FileSaveCopyReferenceType val: + :rtype: EventType """ return cls('file_save_copy_reference', val) @@ -18145,8 +19269,8 @@ def file_request_change(cls, val): Create an instance of this class set to the ``file_request_change`` tag with value ``val``. - :param team_log.FileRequestChangeType val: - :rtype: team_log.EventType + :param FileRequestChangeType val: + :rtype: EventType """ return cls('file_request_change', val) @@ -18156,8 +19280,8 @@ def file_request_close(cls, val): Create an instance of this class set to the ``file_request_close`` tag with value ``val``. - :param team_log.FileRequestCloseType val: - :rtype: team_log.EventType + :param FileRequestCloseType val: + :rtype: EventType """ return cls('file_request_close', val) @@ -18167,19 +19291,30 @@ def file_request_create(cls, val): Create an instance of this class set to the ``file_request_create`` tag with value ``val``. - :param team_log.FileRequestCreateType val: - :rtype: team_log.EventType + :param FileRequestCreateType val: + :rtype: EventType """ return cls('file_request_create', val) + @classmethod + def file_request_delete(cls, val): + """ + Create an instance of this class set to the ``file_request_delete`` tag + with value ``val``. + + :param FileRequestDeleteType val: + :rtype: EventType + """ + return cls('file_request_delete', val) + @classmethod def file_request_receive_file(cls, val): """ Create an instance of this class set to the ``file_request_receive_file`` tag with value ``val``. - :param team_log.FileRequestReceiveFileType val: - :rtype: team_log.EventType + :param FileRequestReceiveFileType val: + :rtype: EventType """ return cls('file_request_receive_file', val) @@ -18189,8 +19324,8 @@ def group_add_external_id(cls, val): Create an instance of this class set to the ``group_add_external_id`` tag with value ``val``. - :param team_log.GroupAddExternalIdType val: - :rtype: team_log.EventType + :param GroupAddExternalIdType val: + :rtype: EventType """ return cls('group_add_external_id', val) @@ -18200,8 +19335,8 @@ def group_add_member(cls, val): Create an instance of this class set to the ``group_add_member`` tag with value ``val``. - :param team_log.GroupAddMemberType val: - :rtype: team_log.EventType + :param GroupAddMemberType val: + :rtype: EventType """ return cls('group_add_member', val) @@ -18211,8 +19346,8 @@ def group_change_external_id(cls, val): Create an instance of this class set to the ``group_change_external_id`` tag with value ``val``. - :param team_log.GroupChangeExternalIdType val: - :rtype: team_log.EventType + :param GroupChangeExternalIdType val: + :rtype: EventType """ return cls('group_change_external_id', val) @@ -18222,8 +19357,8 @@ def group_change_management_type(cls, val): Create an instance of this class set to the ``group_change_management_type`` tag with value ``val``. - :param team_log.GroupChangeManagementTypeType val: - :rtype: team_log.EventType + :param GroupChangeManagementTypeType val: + :rtype: EventType """ return cls('group_change_management_type', val) @@ -18233,8 +19368,8 @@ def group_change_member_role(cls, val): Create an instance of this class set to the ``group_change_member_role`` tag with value ``val``. - :param team_log.GroupChangeMemberRoleType val: - :rtype: team_log.EventType + :param GroupChangeMemberRoleType val: + :rtype: EventType """ return cls('group_change_member_role', val) @@ -18244,8 +19379,8 @@ def group_create(cls, val): Create an instance of this class set to the ``group_create`` tag with value ``val``. - :param team_log.GroupCreateType val: - :rtype: team_log.EventType + :param GroupCreateType val: + :rtype: EventType """ return cls('group_create', val) @@ -18255,8 +19390,8 @@ def group_delete(cls, val): Create an instance of this class set to the ``group_delete`` tag with value ``val``. - :param team_log.GroupDeleteType val: - :rtype: team_log.EventType + :param GroupDeleteType val: + :rtype: EventType """ return cls('group_delete', val) @@ -18266,8 +19401,8 @@ def group_description_updated(cls, val): Create an instance of this class set to the ``group_description_updated`` tag with value ``val``. - :param team_log.GroupDescriptionUpdatedType val: - :rtype: team_log.EventType + :param GroupDescriptionUpdatedType val: + :rtype: EventType """ return cls('group_description_updated', val) @@ -18277,8 +19412,8 @@ def group_join_policy_updated(cls, val): Create an instance of this class set to the ``group_join_policy_updated`` tag with value ``val``. - :param team_log.GroupJoinPolicyUpdatedType val: - :rtype: team_log.EventType + :param GroupJoinPolicyUpdatedType val: + :rtype: EventType """ return cls('group_join_policy_updated', val) @@ -18288,8 +19423,8 @@ def group_moved(cls, val): Create an instance of this class set to the ``group_moved`` tag with value ``val``. - :param team_log.GroupMovedType val: - :rtype: team_log.EventType + :param GroupMovedType val: + :rtype: EventType """ return cls('group_moved', val) @@ -18299,8 +19434,8 @@ def group_remove_external_id(cls, val): Create an instance of this class set to the ``group_remove_external_id`` tag with value ``val``. - :param team_log.GroupRemoveExternalIdType val: - :rtype: team_log.EventType + :param GroupRemoveExternalIdType val: + :rtype: EventType """ return cls('group_remove_external_id', val) @@ -18310,8 +19445,8 @@ def group_remove_member(cls, val): Create an instance of this class set to the ``group_remove_member`` tag with value ``val``. - :param team_log.GroupRemoveMemberType val: - :rtype: team_log.EventType + :param GroupRemoveMemberType val: + :rtype: EventType """ return cls('group_remove_member', val) @@ -18321,8 +19456,8 @@ def group_rename(cls, val): Create an instance of this class set to the ``group_rename`` tag with value ``val``. - :param team_log.GroupRenameType val: - :rtype: team_log.EventType + :param GroupRenameType val: + :rtype: EventType """ return cls('group_rename', val) @@ -18332,19 +19467,41 @@ def emm_error(cls, val): Create an instance of this class set to the ``emm_error`` tag with value ``val``. - :param team_log.EmmErrorType val: - :rtype: team_log.EventType + :param EmmErrorType val: + :rtype: EventType """ return cls('emm_error', val) + @classmethod + def guest_admin_signed_in_via_trusted_teams(cls, val): + """ + Create an instance of this class set to the + ``guest_admin_signed_in_via_trusted_teams`` tag with value ``val``. + + :param GuestAdminSignedInViaTrustedTeamsType val: + :rtype: EventType + """ + return cls('guest_admin_signed_in_via_trusted_teams', val) + + @classmethod + def guest_admin_signed_out_via_trusted_teams(cls, val): + """ + Create an instance of this class set to the + ``guest_admin_signed_out_via_trusted_teams`` tag with value ``val``. + + :param GuestAdminSignedOutViaTrustedTeamsType val: + :rtype: EventType + """ + return cls('guest_admin_signed_out_via_trusted_teams', val) + @classmethod def login_fail(cls, val): """ Create an instance of this class set to the ``login_fail`` tag with value ``val``. - :param team_log.LoginFailType val: - :rtype: team_log.EventType + :param LoginFailType val: + :rtype: EventType """ return cls('login_fail', val) @@ -18354,8 +19511,8 @@ def login_success(cls, val): Create an instance of this class set to the ``login_success`` tag with value ``val``. - :param team_log.LoginSuccessType val: - :rtype: team_log.EventType + :param LoginSuccessType val: + :rtype: EventType """ return cls('login_success', val) @@ -18365,8 +19522,8 @@ def logout(cls, val): Create an instance of this class set to the ``logout`` tag with value ``val``. - :param team_log.LogoutType val: - :rtype: team_log.EventType + :param LogoutType val: + :rtype: EventType """ return cls('logout', val) @@ -18376,8 +19533,8 @@ def reseller_support_session_end(cls, val): Create an instance of this class set to the ``reseller_support_session_end`` tag with value ``val``. - :param team_log.ResellerSupportSessionEndType val: - :rtype: team_log.EventType + :param ResellerSupportSessionEndType val: + :rtype: EventType """ return cls('reseller_support_session_end', val) @@ -18387,8 +19544,8 @@ def reseller_support_session_start(cls, val): Create an instance of this class set to the ``reseller_support_session_start`` tag with value ``val``. - :param team_log.ResellerSupportSessionStartType val: - :rtype: team_log.EventType + :param ResellerSupportSessionStartType val: + :rtype: EventType """ return cls('reseller_support_session_start', val) @@ -18398,8 +19555,8 @@ def sign_in_as_session_end(cls, val): Create an instance of this class set to the ``sign_in_as_session_end`` tag with value ``val``. - :param team_log.SignInAsSessionEndType val: - :rtype: team_log.EventType + :param SignInAsSessionEndType val: + :rtype: EventType """ return cls('sign_in_as_session_end', val) @@ -18409,8 +19566,8 @@ def sign_in_as_session_start(cls, val): Create an instance of this class set to the ``sign_in_as_session_start`` tag with value ``val``. - :param team_log.SignInAsSessionStartType val: - :rtype: team_log.EventType + :param SignInAsSessionStartType val: + :rtype: EventType """ return cls('sign_in_as_session_start', val) @@ -18420,19 +19577,30 @@ def sso_error(cls, val): Create an instance of this class set to the ``sso_error`` tag with value ``val``. - :param team_log.SsoErrorType val: - :rtype: team_log.EventType + :param SsoErrorType val: + :rtype: EventType """ return cls('sso_error', val) + @classmethod + def member_add_external_id(cls, val): + """ + Create an instance of this class set to the ``member_add_external_id`` + tag with value ``val``. + + :param MemberAddExternalIdType val: + :rtype: EventType + """ + return cls('member_add_external_id', val) + @classmethod def member_add_name(cls, val): """ Create an instance of this class set to the ``member_add_name`` tag with value ``val``. - :param team_log.MemberAddNameType val: - :rtype: team_log.EventType + :param MemberAddNameType val: + :rtype: EventType """ return cls('member_add_name', val) @@ -18442,8 +19610,8 @@ def member_change_admin_role(cls, val): Create an instance of this class set to the ``member_change_admin_role`` tag with value ``val``. - :param team_log.MemberChangeAdminRoleType val: - :rtype: team_log.EventType + :param MemberChangeAdminRoleType val: + :rtype: EventType """ return cls('member_change_admin_role', val) @@ -18453,19 +19621,30 @@ def member_change_email(cls, val): Create an instance of this class set to the ``member_change_email`` tag with value ``val``. - :param team_log.MemberChangeEmailType val: - :rtype: team_log.EventType + :param MemberChangeEmailType val: + :rtype: EventType """ return cls('member_change_email', val) + @classmethod + def member_change_external_id(cls, val): + """ + Create an instance of this class set to the + ``member_change_external_id`` tag with value ``val``. + + :param MemberChangeExternalIdType val: + :rtype: EventType + """ + return cls('member_change_external_id', val) + @classmethod def member_change_membership_type(cls, val): """ Create an instance of this class set to the ``member_change_membership_type`` tag with value ``val``. - :param team_log.MemberChangeMembershipTypeType val: - :rtype: team_log.EventType + :param MemberChangeMembershipTypeType val: + :rtype: EventType """ return cls('member_change_membership_type', val) @@ -18475,8 +19654,8 @@ def member_change_name(cls, val): Create an instance of this class set to the ``member_change_name`` tag with value ``val``. - :param team_log.MemberChangeNameType val: - :rtype: team_log.EventType + :param MemberChangeNameType val: + :rtype: EventType """ return cls('member_change_name', val) @@ -18486,8 +19665,8 @@ def member_change_status(cls, val): Create an instance of this class set to the ``member_change_status`` tag with value ``val``. - :param team_log.MemberChangeStatusType val: - :rtype: team_log.EventType + :param MemberChangeStatusType val: + :rtype: EventType """ return cls('member_change_status', val) @@ -18497,8 +19676,8 @@ def member_delete_manual_contacts(cls, val): Create an instance of this class set to the ``member_delete_manual_contacts`` tag with value ``val``. - :param team_log.MemberDeleteManualContactsType val: - :rtype: team_log.EventType + :param MemberDeleteManualContactsType val: + :rtype: EventType """ return cls('member_delete_manual_contacts', val) @@ -18508,19 +19687,30 @@ def member_permanently_delete_account_contents(cls, val): Create an instance of this class set to the ``member_permanently_delete_account_contents`` tag with value ``val``. - :param team_log.MemberPermanentlyDeleteAccountContentsType val: - :rtype: team_log.EventType + :param MemberPermanentlyDeleteAccountContentsType val: + :rtype: EventType """ return cls('member_permanently_delete_account_contents', val) + @classmethod + def member_remove_external_id(cls, val): + """ + Create an instance of this class set to the + ``member_remove_external_id`` tag with value ``val``. + + :param MemberRemoveExternalIdType val: + :rtype: EventType + """ + return cls('member_remove_external_id', val) + @classmethod def member_space_limits_add_custom_quota(cls, val): """ Create an instance of this class set to the ``member_space_limits_add_custom_quota`` tag with value ``val``. - :param team_log.MemberSpaceLimitsAddCustomQuotaType val: - :rtype: team_log.EventType + :param MemberSpaceLimitsAddCustomQuotaType val: + :rtype: EventType """ return cls('member_space_limits_add_custom_quota', val) @@ -18530,8 +19720,8 @@ def member_space_limits_change_custom_quota(cls, val): Create an instance of this class set to the ``member_space_limits_change_custom_quota`` tag with value ``val``. - :param team_log.MemberSpaceLimitsChangeCustomQuotaType val: - :rtype: team_log.EventType + :param MemberSpaceLimitsChangeCustomQuotaType val: + :rtype: EventType """ return cls('member_space_limits_change_custom_quota', val) @@ -18541,8 +19731,8 @@ def member_space_limits_change_status(cls, val): Create an instance of this class set to the ``member_space_limits_change_status`` tag with value ``val``. - :param team_log.MemberSpaceLimitsChangeStatusType val: - :rtype: team_log.EventType + :param MemberSpaceLimitsChangeStatusType val: + :rtype: EventType """ return cls('member_space_limits_change_status', val) @@ -18552,8 +19742,8 @@ def member_space_limits_remove_custom_quota(cls, val): Create an instance of this class set to the ``member_space_limits_remove_custom_quota`` tag with value ``val``. - :param team_log.MemberSpaceLimitsRemoveCustomQuotaType val: - :rtype: team_log.EventType + :param MemberSpaceLimitsRemoveCustomQuotaType val: + :rtype: EventType """ return cls('member_space_limits_remove_custom_quota', val) @@ -18563,8 +19753,8 @@ def member_suggest(cls, val): Create an instance of this class set to the ``member_suggest`` tag with value ``val``. - :param team_log.MemberSuggestType val: - :rtype: team_log.EventType + :param MemberSuggestType val: + :rtype: EventType """ return cls('member_suggest', val) @@ -18574,8 +19764,8 @@ def member_transfer_account_contents(cls, val): Create an instance of this class set to the ``member_transfer_account_contents`` tag with value ``val``. - :param team_log.MemberTransferAccountContentsType val: - :rtype: team_log.EventType + :param MemberTransferAccountContentsType val: + :rtype: EventType """ return cls('member_transfer_account_contents', val) @@ -18585,8 +19775,8 @@ def secondary_mails_policy_changed(cls, val): Create an instance of this class set to the ``secondary_mails_policy_changed`` tag with value ``val``. - :param team_log.SecondaryMailsPolicyChangedType val: - :rtype: team_log.EventType + :param SecondaryMailsPolicyChangedType val: + :rtype: EventType """ return cls('secondary_mails_policy_changed', val) @@ -18596,8 +19786,8 @@ def paper_content_add_member(cls, val): Create an instance of this class set to the ``paper_content_add_member`` tag with value ``val``. - :param team_log.PaperContentAddMemberType val: - :rtype: team_log.EventType + :param PaperContentAddMemberType val: + :rtype: EventType """ return cls('paper_content_add_member', val) @@ -18607,8 +19797,8 @@ def paper_content_add_to_folder(cls, val): Create an instance of this class set to the ``paper_content_add_to_folder`` tag with value ``val``. - :param team_log.PaperContentAddToFolderType val: - :rtype: team_log.EventType + :param PaperContentAddToFolderType val: + :rtype: EventType """ return cls('paper_content_add_to_folder', val) @@ -18618,8 +19808,8 @@ def paper_content_archive(cls, val): Create an instance of this class set to the ``paper_content_archive`` tag with value ``val``. - :param team_log.PaperContentArchiveType val: - :rtype: team_log.EventType + :param PaperContentArchiveType val: + :rtype: EventType """ return cls('paper_content_archive', val) @@ -18629,8 +19819,8 @@ def paper_content_create(cls, val): Create an instance of this class set to the ``paper_content_create`` tag with value ``val``. - :param team_log.PaperContentCreateType val: - :rtype: team_log.EventType + :param PaperContentCreateType val: + :rtype: EventType """ return cls('paper_content_create', val) @@ -18640,8 +19830,8 @@ def paper_content_permanently_delete(cls, val): Create an instance of this class set to the ``paper_content_permanently_delete`` tag with value ``val``. - :param team_log.PaperContentPermanentlyDeleteType val: - :rtype: team_log.EventType + :param PaperContentPermanentlyDeleteType val: + :rtype: EventType """ return cls('paper_content_permanently_delete', val) @@ -18651,8 +19841,8 @@ def paper_content_remove_from_folder(cls, val): Create an instance of this class set to the ``paper_content_remove_from_folder`` tag with value ``val``. - :param team_log.PaperContentRemoveFromFolderType val: - :rtype: team_log.EventType + :param PaperContentRemoveFromFolderType val: + :rtype: EventType """ return cls('paper_content_remove_from_folder', val) @@ -18662,8 +19852,8 @@ def paper_content_remove_member(cls, val): Create an instance of this class set to the ``paper_content_remove_member`` tag with value ``val``. - :param team_log.PaperContentRemoveMemberType val: - :rtype: team_log.EventType + :param PaperContentRemoveMemberType val: + :rtype: EventType """ return cls('paper_content_remove_member', val) @@ -18673,8 +19863,8 @@ def paper_content_rename(cls, val): Create an instance of this class set to the ``paper_content_rename`` tag with value ``val``. - :param team_log.PaperContentRenameType val: - :rtype: team_log.EventType + :param PaperContentRenameType val: + :rtype: EventType """ return cls('paper_content_rename', val) @@ -18684,8 +19874,8 @@ def paper_content_restore(cls, val): Create an instance of this class set to the ``paper_content_restore`` tag with value ``val``. - :param team_log.PaperContentRestoreType val: - :rtype: team_log.EventType + :param PaperContentRestoreType val: + :rtype: EventType """ return cls('paper_content_restore', val) @@ -18695,8 +19885,8 @@ def paper_doc_add_comment(cls, val): Create an instance of this class set to the ``paper_doc_add_comment`` tag with value ``val``. - :param team_log.PaperDocAddCommentType val: - :rtype: team_log.EventType + :param PaperDocAddCommentType val: + :rtype: EventType """ return cls('paper_doc_add_comment', val) @@ -18706,8 +19896,8 @@ def paper_doc_change_member_role(cls, val): Create an instance of this class set to the ``paper_doc_change_member_role`` tag with value ``val``. - :param team_log.PaperDocChangeMemberRoleType val: - :rtype: team_log.EventType + :param PaperDocChangeMemberRoleType val: + :rtype: EventType """ return cls('paper_doc_change_member_role', val) @@ -18717,8 +19907,8 @@ def paper_doc_change_sharing_policy(cls, val): Create an instance of this class set to the ``paper_doc_change_sharing_policy`` tag with value ``val``. - :param team_log.PaperDocChangeSharingPolicyType val: - :rtype: team_log.EventType + :param PaperDocChangeSharingPolicyType val: + :rtype: EventType """ return cls('paper_doc_change_sharing_policy', val) @@ -18728,8 +19918,8 @@ def paper_doc_change_subscription(cls, val): Create an instance of this class set to the ``paper_doc_change_subscription`` tag with value ``val``. - :param team_log.PaperDocChangeSubscriptionType val: - :rtype: team_log.EventType + :param PaperDocChangeSubscriptionType val: + :rtype: EventType """ return cls('paper_doc_change_subscription', val) @@ -18739,8 +19929,8 @@ def paper_doc_deleted(cls, val): Create an instance of this class set to the ``paper_doc_deleted`` tag with value ``val``. - :param team_log.PaperDocDeletedType val: - :rtype: team_log.EventType + :param PaperDocDeletedType val: + :rtype: EventType """ return cls('paper_doc_deleted', val) @@ -18750,8 +19940,8 @@ def paper_doc_delete_comment(cls, val): Create an instance of this class set to the ``paper_doc_delete_comment`` tag with value ``val``. - :param team_log.PaperDocDeleteCommentType val: - :rtype: team_log.EventType + :param PaperDocDeleteCommentType val: + :rtype: EventType """ return cls('paper_doc_delete_comment', val) @@ -18761,8 +19951,8 @@ def paper_doc_download(cls, val): Create an instance of this class set to the ``paper_doc_download`` tag with value ``val``. - :param team_log.PaperDocDownloadType val: - :rtype: team_log.EventType + :param PaperDocDownloadType val: + :rtype: EventType """ return cls('paper_doc_download', val) @@ -18772,8 +19962,8 @@ def paper_doc_edit(cls, val): Create an instance of this class set to the ``paper_doc_edit`` tag with value ``val``. - :param team_log.PaperDocEditType val: - :rtype: team_log.EventType + :param PaperDocEditType val: + :rtype: EventType """ return cls('paper_doc_edit', val) @@ -18783,8 +19973,8 @@ def paper_doc_edit_comment(cls, val): Create an instance of this class set to the ``paper_doc_edit_comment`` tag with value ``val``. - :param team_log.PaperDocEditCommentType val: - :rtype: team_log.EventType + :param PaperDocEditCommentType val: + :rtype: EventType """ return cls('paper_doc_edit_comment', val) @@ -18794,8 +19984,8 @@ def paper_doc_followed(cls, val): Create an instance of this class set to the ``paper_doc_followed`` tag with value ``val``. - :param team_log.PaperDocFollowedType val: - :rtype: team_log.EventType + :param PaperDocFollowedType val: + :rtype: EventType """ return cls('paper_doc_followed', val) @@ -18805,8 +19995,8 @@ def paper_doc_mention(cls, val): Create an instance of this class set to the ``paper_doc_mention`` tag with value ``val``. - :param team_log.PaperDocMentionType val: - :rtype: team_log.EventType + :param PaperDocMentionType val: + :rtype: EventType """ return cls('paper_doc_mention', val) @@ -18816,8 +20006,8 @@ def paper_doc_ownership_changed(cls, val): Create an instance of this class set to the ``paper_doc_ownership_changed`` tag with value ``val``. - :param team_log.PaperDocOwnershipChangedType val: - :rtype: team_log.EventType + :param PaperDocOwnershipChangedType val: + :rtype: EventType """ return cls('paper_doc_ownership_changed', val) @@ -18827,8 +20017,8 @@ def paper_doc_request_access(cls, val): Create an instance of this class set to the ``paper_doc_request_access`` tag with value ``val``. - :param team_log.PaperDocRequestAccessType val: - :rtype: team_log.EventType + :param PaperDocRequestAccessType val: + :rtype: EventType """ return cls('paper_doc_request_access', val) @@ -18838,8 +20028,8 @@ def paper_doc_resolve_comment(cls, val): Create an instance of this class set to the ``paper_doc_resolve_comment`` tag with value ``val``. - :param team_log.PaperDocResolveCommentType val: - :rtype: team_log.EventType + :param PaperDocResolveCommentType val: + :rtype: EventType """ return cls('paper_doc_resolve_comment', val) @@ -18849,8 +20039,8 @@ def paper_doc_revert(cls, val): Create an instance of this class set to the ``paper_doc_revert`` tag with value ``val``. - :param team_log.PaperDocRevertType val: - :rtype: team_log.EventType + :param PaperDocRevertType val: + :rtype: EventType """ return cls('paper_doc_revert', val) @@ -18860,8 +20050,8 @@ def paper_doc_slack_share(cls, val): Create an instance of this class set to the ``paper_doc_slack_share`` tag with value ``val``. - :param team_log.PaperDocSlackShareType val: - :rtype: team_log.EventType + :param PaperDocSlackShareType val: + :rtype: EventType """ return cls('paper_doc_slack_share', val) @@ -18871,8 +20061,8 @@ def paper_doc_team_invite(cls, val): Create an instance of this class set to the ``paper_doc_team_invite`` tag with value ``val``. - :param team_log.PaperDocTeamInviteType val: - :rtype: team_log.EventType + :param PaperDocTeamInviteType val: + :rtype: EventType """ return cls('paper_doc_team_invite', val) @@ -18882,8 +20072,8 @@ def paper_doc_trashed(cls, val): Create an instance of this class set to the ``paper_doc_trashed`` tag with value ``val``. - :param team_log.PaperDocTrashedType val: - :rtype: team_log.EventType + :param PaperDocTrashedType val: + :rtype: EventType """ return cls('paper_doc_trashed', val) @@ -18893,8 +20083,8 @@ def paper_doc_unresolve_comment(cls, val): Create an instance of this class set to the ``paper_doc_unresolve_comment`` tag with value ``val``. - :param team_log.PaperDocUnresolveCommentType val: - :rtype: team_log.EventType + :param PaperDocUnresolveCommentType val: + :rtype: EventType """ return cls('paper_doc_unresolve_comment', val) @@ -18904,8 +20094,8 @@ def paper_doc_untrashed(cls, val): Create an instance of this class set to the ``paper_doc_untrashed`` tag with value ``val``. - :param team_log.PaperDocUntrashedType val: - :rtype: team_log.EventType + :param PaperDocUntrashedType val: + :rtype: EventType """ return cls('paper_doc_untrashed', val) @@ -18915,8 +20105,8 @@ def paper_doc_view(cls, val): Create an instance of this class set to the ``paper_doc_view`` tag with value ``val``. - :param team_log.PaperDocViewType val: - :rtype: team_log.EventType + :param PaperDocViewType val: + :rtype: EventType """ return cls('paper_doc_view', val) @@ -18926,8 +20116,8 @@ def paper_external_view_allow(cls, val): Create an instance of this class set to the ``paper_external_view_allow`` tag with value ``val``. - :param team_log.PaperExternalViewAllowType val: - :rtype: team_log.EventType + :param PaperExternalViewAllowType val: + :rtype: EventType """ return cls('paper_external_view_allow', val) @@ -18937,8 +20127,8 @@ def paper_external_view_default_team(cls, val): Create an instance of this class set to the ``paper_external_view_default_team`` tag with value ``val``. - :param team_log.PaperExternalViewDefaultTeamType val: - :rtype: team_log.EventType + :param PaperExternalViewDefaultTeamType val: + :rtype: EventType """ return cls('paper_external_view_default_team', val) @@ -18948,8 +20138,8 @@ def paper_external_view_forbid(cls, val): Create an instance of this class set to the ``paper_external_view_forbid`` tag with value ``val``. - :param team_log.PaperExternalViewForbidType val: - :rtype: team_log.EventType + :param PaperExternalViewForbidType val: + :rtype: EventType """ return cls('paper_external_view_forbid', val) @@ -18959,8 +20149,8 @@ def paper_folder_change_subscription(cls, val): Create an instance of this class set to the ``paper_folder_change_subscription`` tag with value ``val``. - :param team_log.PaperFolderChangeSubscriptionType val: - :rtype: team_log.EventType + :param PaperFolderChangeSubscriptionType val: + :rtype: EventType """ return cls('paper_folder_change_subscription', val) @@ -18970,8 +20160,8 @@ def paper_folder_deleted(cls, val): Create an instance of this class set to the ``paper_folder_deleted`` tag with value ``val``. - :param team_log.PaperFolderDeletedType val: - :rtype: team_log.EventType + :param PaperFolderDeletedType val: + :rtype: EventType """ return cls('paper_folder_deleted', val) @@ -18981,8 +20171,8 @@ def paper_folder_followed(cls, val): Create an instance of this class set to the ``paper_folder_followed`` tag with value ``val``. - :param team_log.PaperFolderFollowedType val: - :rtype: team_log.EventType + :param PaperFolderFollowedType val: + :rtype: EventType """ return cls('paper_folder_followed', val) @@ -18992,19 +20182,52 @@ def paper_folder_team_invite(cls, val): Create an instance of this class set to the ``paper_folder_team_invite`` tag with value ``val``. - :param team_log.PaperFolderTeamInviteType val: - :rtype: team_log.EventType + :param PaperFolderTeamInviteType val: + :rtype: EventType """ return cls('paper_folder_team_invite', val) + @classmethod + def paper_published_link_create(cls, val): + """ + Create an instance of this class set to the + ``paper_published_link_create`` tag with value ``val``. + + :param PaperPublishedLinkCreateType val: + :rtype: EventType + """ + return cls('paper_published_link_create', val) + + @classmethod + def paper_published_link_disabled(cls, val): + """ + Create an instance of this class set to the + ``paper_published_link_disabled`` tag with value ``val``. + + :param PaperPublishedLinkDisabledType val: + :rtype: EventType + """ + return cls('paper_published_link_disabled', val) + + @classmethod + def paper_published_link_view(cls, val): + """ + Create an instance of this class set to the + ``paper_published_link_view`` tag with value ``val``. + + :param PaperPublishedLinkViewType val: + :rtype: EventType + """ + return cls('paper_published_link_view', val) + @classmethod def password_change(cls, val): """ Create an instance of this class set to the ``password_change`` tag with value ``val``. - :param team_log.PasswordChangeType val: - :rtype: team_log.EventType + :param PasswordChangeType val: + :rtype: EventType """ return cls('password_change', val) @@ -19014,8 +20237,8 @@ def password_reset(cls, val): Create an instance of this class set to the ``password_reset`` tag with value ``val``. - :param team_log.PasswordResetType val: - :rtype: team_log.EventType + :param PasswordResetType val: + :rtype: EventType """ return cls('password_reset', val) @@ -19025,8 +20248,8 @@ def password_reset_all(cls, val): Create an instance of this class set to the ``password_reset_all`` tag with value ``val``. - :param team_log.PasswordResetAllType val: - :rtype: team_log.EventType + :param PasswordResetAllType val: + :rtype: EventType """ return cls('password_reset_all', val) @@ -19036,8 +20259,8 @@ def emm_create_exceptions_report(cls, val): Create an instance of this class set to the ``emm_create_exceptions_report`` tag with value ``val``. - :param team_log.EmmCreateExceptionsReportType val: - :rtype: team_log.EventType + :param EmmCreateExceptionsReportType val: + :rtype: EventType """ return cls('emm_create_exceptions_report', val) @@ -19047,8 +20270,8 @@ def emm_create_usage_report(cls, val): Create an instance of this class set to the ``emm_create_usage_report`` tag with value ``val``. - :param team_log.EmmCreateUsageReportType val: - :rtype: team_log.EventType + :param EmmCreateUsageReportType val: + :rtype: EventType """ return cls('emm_create_usage_report', val) @@ -19058,8 +20281,8 @@ def export_members_report(cls, val): Create an instance of this class set to the ``export_members_report`` tag with value ``val``. - :param team_log.ExportMembersReportType val: - :rtype: team_log.EventType + :param ExportMembersReportType val: + :rtype: EventType """ return cls('export_members_report', val) @@ -19069,8 +20292,8 @@ def paper_admin_export_start(cls, val): Create an instance of this class set to the ``paper_admin_export_start`` tag with value ``val``. - :param team_log.PaperAdminExportStartType val: - :rtype: team_log.EventType + :param PaperAdminExportStartType val: + :rtype: EventType """ return cls('paper_admin_export_start', val) @@ -19080,8 +20303,8 @@ def smart_sync_create_admin_privilege_report(cls, val): Create an instance of this class set to the ``smart_sync_create_admin_privilege_report`` tag with value ``val``. - :param team_log.SmartSyncCreateAdminPrivilegeReportType val: - :rtype: team_log.EventType + :param SmartSyncCreateAdminPrivilegeReportType val: + :rtype: EventType """ return cls('smart_sync_create_admin_privilege_report', val) @@ -19091,19 +20314,30 @@ def team_activity_create_report(cls, val): Create an instance of this class set to the ``team_activity_create_report`` tag with value ``val``. - :param team_log.TeamActivityCreateReportType val: - :rtype: team_log.EventType + :param TeamActivityCreateReportType val: + :rtype: EventType """ return cls('team_activity_create_report', val) + @classmethod + def team_activity_create_report_fail(cls, val): + """ + Create an instance of this class set to the + ``team_activity_create_report_fail`` tag with value ``val``. + + :param TeamActivityCreateReportFailType val: + :rtype: EventType + """ + return cls('team_activity_create_report_fail', val) + @classmethod def collection_share(cls, val): """ Create an instance of this class set to the ``collection_share`` tag with value ``val``. - :param team_log.CollectionShareType val: - :rtype: team_log.EventType + :param CollectionShareType val: + :rtype: EventType """ return cls('collection_share', val) @@ -19113,8 +20347,8 @@ def note_acl_invite_only(cls, val): Create an instance of this class set to the ``note_acl_invite_only`` tag with value ``val``. - :param team_log.NoteAclInviteOnlyType val: - :rtype: team_log.EventType + :param NoteAclInviteOnlyType val: + :rtype: EventType """ return cls('note_acl_invite_only', val) @@ -19124,8 +20358,8 @@ def note_acl_link(cls, val): Create an instance of this class set to the ``note_acl_link`` tag with value ``val``. - :param team_log.NoteAclLinkType val: - :rtype: team_log.EventType + :param NoteAclLinkType val: + :rtype: EventType """ return cls('note_acl_link', val) @@ -19135,8 +20369,8 @@ def note_acl_team_link(cls, val): Create an instance of this class set to the ``note_acl_team_link`` tag with value ``val``. - :param team_log.NoteAclTeamLinkType val: - :rtype: team_log.EventType + :param NoteAclTeamLinkType val: + :rtype: EventType """ return cls('note_acl_team_link', val) @@ -19146,8 +20380,8 @@ def note_shared(cls, val): Create an instance of this class set to the ``note_shared`` tag with value ``val``. - :param team_log.NoteSharedType val: - :rtype: team_log.EventType + :param NoteSharedType val: + :rtype: EventType """ return cls('note_shared', val) @@ -19157,8 +20391,8 @@ def note_share_receive(cls, val): Create an instance of this class set to the ``note_share_receive`` tag with value ``val``. - :param team_log.NoteShareReceiveType val: - :rtype: team_log.EventType + :param NoteShareReceiveType val: + :rtype: EventType """ return cls('note_share_receive', val) @@ -19168,8 +20402,8 @@ def open_note_shared(cls, val): Create an instance of this class set to the ``open_note_shared`` tag with value ``val``. - :param team_log.OpenNoteSharedType val: - :rtype: team_log.EventType + :param OpenNoteSharedType val: + :rtype: EventType """ return cls('open_note_shared', val) @@ -19179,8 +20413,8 @@ def sf_add_group(cls, val): Create an instance of this class set to the ``sf_add_group`` tag with value ``val``. - :param team_log.SfAddGroupType val: - :rtype: team_log.EventType + :param SfAddGroupType val: + :rtype: EventType """ return cls('sf_add_group', val) @@ -19190,8 +20424,8 @@ def sf_allow_non_members_to_view_shared_links(cls, val): Create an instance of this class set to the ``sf_allow_non_members_to_view_shared_links`` tag with value ``val``. - :param team_log.SfAllowNonMembersToViewSharedLinksType val: - :rtype: team_log.EventType + :param SfAllowNonMembersToViewSharedLinksType val: + :rtype: EventType """ return cls('sf_allow_non_members_to_view_shared_links', val) @@ -19201,8 +20435,8 @@ def sf_external_invite_warn(cls, val): Create an instance of this class set to the ``sf_external_invite_warn`` tag with value ``val``. - :param team_log.SfExternalInviteWarnType val: - :rtype: team_log.EventType + :param SfExternalInviteWarnType val: + :rtype: EventType """ return cls('sf_external_invite_warn', val) @@ -19212,8 +20446,8 @@ def sf_fb_invite(cls, val): Create an instance of this class set to the ``sf_fb_invite`` tag with value ``val``. - :param team_log.SfFbInviteType val: - :rtype: team_log.EventType + :param SfFbInviteType val: + :rtype: EventType """ return cls('sf_fb_invite', val) @@ -19223,8 +20457,8 @@ def sf_fb_invite_change_role(cls, val): Create an instance of this class set to the ``sf_fb_invite_change_role`` tag with value ``val``. - :param team_log.SfFbInviteChangeRoleType val: - :rtype: team_log.EventType + :param SfFbInviteChangeRoleType val: + :rtype: EventType """ return cls('sf_fb_invite_change_role', val) @@ -19234,8 +20468,8 @@ def sf_fb_uninvite(cls, val): Create an instance of this class set to the ``sf_fb_uninvite`` tag with value ``val``. - :param team_log.SfFbUninviteType val: - :rtype: team_log.EventType + :param SfFbUninviteType val: + :rtype: EventType """ return cls('sf_fb_uninvite', val) @@ -19245,8 +20479,8 @@ def sf_invite_group(cls, val): Create an instance of this class set to the ``sf_invite_group`` tag with value ``val``. - :param team_log.SfInviteGroupType val: - :rtype: team_log.EventType + :param SfInviteGroupType val: + :rtype: EventType """ return cls('sf_invite_group', val) @@ -19256,8 +20490,8 @@ def sf_team_grant_access(cls, val): Create an instance of this class set to the ``sf_team_grant_access`` tag with value ``val``. - :param team_log.SfTeamGrantAccessType val: - :rtype: team_log.EventType + :param SfTeamGrantAccessType val: + :rtype: EventType """ return cls('sf_team_grant_access', val) @@ -19267,8 +20501,8 @@ def sf_team_invite(cls, val): Create an instance of this class set to the ``sf_team_invite`` tag with value ``val``. - :param team_log.SfTeamInviteType val: - :rtype: team_log.EventType + :param SfTeamInviteType val: + :rtype: EventType """ return cls('sf_team_invite', val) @@ -19278,8 +20512,8 @@ def sf_team_invite_change_role(cls, val): Create an instance of this class set to the ``sf_team_invite_change_role`` tag with value ``val``. - :param team_log.SfTeamInviteChangeRoleType val: - :rtype: team_log.EventType + :param SfTeamInviteChangeRoleType val: + :rtype: EventType """ return cls('sf_team_invite_change_role', val) @@ -19289,8 +20523,8 @@ def sf_team_join(cls, val): Create an instance of this class set to the ``sf_team_join`` tag with value ``val``. - :param team_log.SfTeamJoinType val: - :rtype: team_log.EventType + :param SfTeamJoinType val: + :rtype: EventType """ return cls('sf_team_join', val) @@ -19300,8 +20534,8 @@ def sf_team_join_from_oob_link(cls, val): Create an instance of this class set to the ``sf_team_join_from_oob_link`` tag with value ``val``. - :param team_log.SfTeamJoinFromOobLinkType val: - :rtype: team_log.EventType + :param SfTeamJoinFromOobLinkType val: + :rtype: EventType """ return cls('sf_team_join_from_oob_link', val) @@ -19311,8 +20545,8 @@ def sf_team_uninvite(cls, val): Create an instance of this class set to the ``sf_team_uninvite`` tag with value ``val``. - :param team_log.SfTeamUninviteType val: - :rtype: team_log.EventType + :param SfTeamUninviteType val: + :rtype: EventType """ return cls('sf_team_uninvite', val) @@ -19322,8 +20556,8 @@ def shared_content_add_invitees(cls, val): Create an instance of this class set to the ``shared_content_add_invitees`` tag with value ``val``. - :param team_log.SharedContentAddInviteesType val: - :rtype: team_log.EventType + :param SharedContentAddInviteesType val: + :rtype: EventType """ return cls('shared_content_add_invitees', val) @@ -19333,8 +20567,8 @@ def shared_content_add_link_expiry(cls, val): Create an instance of this class set to the ``shared_content_add_link_expiry`` tag with value ``val``. - :param team_log.SharedContentAddLinkExpiryType val: - :rtype: team_log.EventType + :param SharedContentAddLinkExpiryType val: + :rtype: EventType """ return cls('shared_content_add_link_expiry', val) @@ -19344,8 +20578,8 @@ def shared_content_add_link_password(cls, val): Create an instance of this class set to the ``shared_content_add_link_password`` tag with value ``val``. - :param team_log.SharedContentAddLinkPasswordType val: - :rtype: team_log.EventType + :param SharedContentAddLinkPasswordType val: + :rtype: EventType """ return cls('shared_content_add_link_password', val) @@ -19355,8 +20589,8 @@ def shared_content_add_member(cls, val): Create an instance of this class set to the ``shared_content_add_member`` tag with value ``val``. - :param team_log.SharedContentAddMemberType val: - :rtype: team_log.EventType + :param SharedContentAddMemberType val: + :rtype: EventType """ return cls('shared_content_add_member', val) @@ -19366,8 +20600,8 @@ def shared_content_change_downloads_policy(cls, val): Create an instance of this class set to the ``shared_content_change_downloads_policy`` tag with value ``val``. - :param team_log.SharedContentChangeDownloadsPolicyType val: - :rtype: team_log.EventType + :param SharedContentChangeDownloadsPolicyType val: + :rtype: EventType """ return cls('shared_content_change_downloads_policy', val) @@ -19377,8 +20611,8 @@ def shared_content_change_invitee_role(cls, val): Create an instance of this class set to the ``shared_content_change_invitee_role`` tag with value ``val``. - :param team_log.SharedContentChangeInviteeRoleType val: - :rtype: team_log.EventType + :param SharedContentChangeInviteeRoleType val: + :rtype: EventType """ return cls('shared_content_change_invitee_role', val) @@ -19388,8 +20622,8 @@ def shared_content_change_link_audience(cls, val): Create an instance of this class set to the ``shared_content_change_link_audience`` tag with value ``val``. - :param team_log.SharedContentChangeLinkAudienceType val: - :rtype: team_log.EventType + :param SharedContentChangeLinkAudienceType val: + :rtype: EventType """ return cls('shared_content_change_link_audience', val) @@ -19399,8 +20633,8 @@ def shared_content_change_link_expiry(cls, val): Create an instance of this class set to the ``shared_content_change_link_expiry`` tag with value ``val``. - :param team_log.SharedContentChangeLinkExpiryType val: - :rtype: team_log.EventType + :param SharedContentChangeLinkExpiryType val: + :rtype: EventType """ return cls('shared_content_change_link_expiry', val) @@ -19410,8 +20644,8 @@ def shared_content_change_link_password(cls, val): Create an instance of this class set to the ``shared_content_change_link_password`` tag with value ``val``. - :param team_log.SharedContentChangeLinkPasswordType val: - :rtype: team_log.EventType + :param SharedContentChangeLinkPasswordType val: + :rtype: EventType """ return cls('shared_content_change_link_password', val) @@ -19421,8 +20655,8 @@ def shared_content_change_member_role(cls, val): Create an instance of this class set to the ``shared_content_change_member_role`` tag with value ``val``. - :param team_log.SharedContentChangeMemberRoleType val: - :rtype: team_log.EventType + :param SharedContentChangeMemberRoleType val: + :rtype: EventType """ return cls('shared_content_change_member_role', val) @@ -19432,8 +20666,8 @@ def shared_content_change_viewer_info_policy(cls, val): Create an instance of this class set to the ``shared_content_change_viewer_info_policy`` tag with value ``val``. - :param team_log.SharedContentChangeViewerInfoPolicyType val: - :rtype: team_log.EventType + :param SharedContentChangeViewerInfoPolicyType val: + :rtype: EventType """ return cls('shared_content_change_viewer_info_policy', val) @@ -19443,8 +20677,8 @@ def shared_content_claim_invitation(cls, val): Create an instance of this class set to the ``shared_content_claim_invitation`` tag with value ``val``. - :param team_log.SharedContentClaimInvitationType val: - :rtype: team_log.EventType + :param SharedContentClaimInvitationType val: + :rtype: EventType """ return cls('shared_content_claim_invitation', val) @@ -19454,8 +20688,8 @@ def shared_content_copy(cls, val): Create an instance of this class set to the ``shared_content_copy`` tag with value ``val``. - :param team_log.SharedContentCopyType val: - :rtype: team_log.EventType + :param SharedContentCopyType val: + :rtype: EventType """ return cls('shared_content_copy', val) @@ -19465,8 +20699,8 @@ def shared_content_download(cls, val): Create an instance of this class set to the ``shared_content_download`` tag with value ``val``. - :param team_log.SharedContentDownloadType val: - :rtype: team_log.EventType + :param SharedContentDownloadType val: + :rtype: EventType """ return cls('shared_content_download', val) @@ -19476,8 +20710,8 @@ def shared_content_relinquish_membership(cls, val): Create an instance of this class set to the ``shared_content_relinquish_membership`` tag with value ``val``. - :param team_log.SharedContentRelinquishMembershipType val: - :rtype: team_log.EventType + :param SharedContentRelinquishMembershipType val: + :rtype: EventType """ return cls('shared_content_relinquish_membership', val) @@ -19487,8 +20721,8 @@ def shared_content_remove_invitees(cls, val): Create an instance of this class set to the ``shared_content_remove_invitees`` tag with value ``val``. - :param team_log.SharedContentRemoveInviteesType val: - :rtype: team_log.EventType + :param SharedContentRemoveInviteesType val: + :rtype: EventType """ return cls('shared_content_remove_invitees', val) @@ -19498,8 +20732,8 @@ def shared_content_remove_link_expiry(cls, val): Create an instance of this class set to the ``shared_content_remove_link_expiry`` tag with value ``val``. - :param team_log.SharedContentRemoveLinkExpiryType val: - :rtype: team_log.EventType + :param SharedContentRemoveLinkExpiryType val: + :rtype: EventType """ return cls('shared_content_remove_link_expiry', val) @@ -19509,8 +20743,8 @@ def shared_content_remove_link_password(cls, val): Create an instance of this class set to the ``shared_content_remove_link_password`` tag with value ``val``. - :param team_log.SharedContentRemoveLinkPasswordType val: - :rtype: team_log.EventType + :param SharedContentRemoveLinkPasswordType val: + :rtype: EventType """ return cls('shared_content_remove_link_password', val) @@ -19520,8 +20754,8 @@ def shared_content_remove_member(cls, val): Create an instance of this class set to the ``shared_content_remove_member`` tag with value ``val``. - :param team_log.SharedContentRemoveMemberType val: - :rtype: team_log.EventType + :param SharedContentRemoveMemberType val: + :rtype: EventType """ return cls('shared_content_remove_member', val) @@ -19531,8 +20765,8 @@ def shared_content_request_access(cls, val): Create an instance of this class set to the ``shared_content_request_access`` tag with value ``val``. - :param team_log.SharedContentRequestAccessType val: - :rtype: team_log.EventType + :param SharedContentRequestAccessType val: + :rtype: EventType """ return cls('shared_content_request_access', val) @@ -19542,8 +20776,8 @@ def shared_content_unshare(cls, val): Create an instance of this class set to the ``shared_content_unshare`` tag with value ``val``. - :param team_log.SharedContentUnshareType val: - :rtype: team_log.EventType + :param SharedContentUnshareType val: + :rtype: EventType """ return cls('shared_content_unshare', val) @@ -19553,8 +20787,8 @@ def shared_content_view(cls, val): Create an instance of this class set to the ``shared_content_view`` tag with value ``val``. - :param team_log.SharedContentViewType val: - :rtype: team_log.EventType + :param SharedContentViewType val: + :rtype: EventType """ return cls('shared_content_view', val) @@ -19564,8 +20798,8 @@ def shared_folder_change_link_policy(cls, val): Create an instance of this class set to the ``shared_folder_change_link_policy`` tag with value ``val``. - :param team_log.SharedFolderChangeLinkPolicyType val: - :rtype: team_log.EventType + :param SharedFolderChangeLinkPolicyType val: + :rtype: EventType """ return cls('shared_folder_change_link_policy', val) @@ -19576,8 +20810,8 @@ def shared_folder_change_members_inheritance_policy(cls, val): ``shared_folder_change_members_inheritance_policy`` tag with value ``val``. - :param team_log.SharedFolderChangeMembersInheritancePolicyType val: - :rtype: team_log.EventType + :param SharedFolderChangeMembersInheritancePolicyType val: + :rtype: EventType """ return cls('shared_folder_change_members_inheritance_policy', val) @@ -19588,8 +20822,8 @@ def shared_folder_change_members_management_policy(cls, val): ``shared_folder_change_members_management_policy`` tag with value ``val``. - :param team_log.SharedFolderChangeMembersManagementPolicyType val: - :rtype: team_log.EventType + :param SharedFolderChangeMembersManagementPolicyType val: + :rtype: EventType """ return cls('shared_folder_change_members_management_policy', val) @@ -19599,8 +20833,8 @@ def shared_folder_change_members_policy(cls, val): Create an instance of this class set to the ``shared_folder_change_members_policy`` tag with value ``val``. - :param team_log.SharedFolderChangeMembersPolicyType val: - :rtype: team_log.EventType + :param SharedFolderChangeMembersPolicyType val: + :rtype: EventType """ return cls('shared_folder_change_members_policy', val) @@ -19610,8 +20844,8 @@ def shared_folder_create(cls, val): Create an instance of this class set to the ``shared_folder_create`` tag with value ``val``. - :param team_log.SharedFolderCreateType val: - :rtype: team_log.EventType + :param SharedFolderCreateType val: + :rtype: EventType """ return cls('shared_folder_create', val) @@ -19621,8 +20855,8 @@ def shared_folder_decline_invitation(cls, val): Create an instance of this class set to the ``shared_folder_decline_invitation`` tag with value ``val``. - :param team_log.SharedFolderDeclineInvitationType val: - :rtype: team_log.EventType + :param SharedFolderDeclineInvitationType val: + :rtype: EventType """ return cls('shared_folder_decline_invitation', val) @@ -19632,8 +20866,8 @@ def shared_folder_mount(cls, val): Create an instance of this class set to the ``shared_folder_mount`` tag with value ``val``. - :param team_log.SharedFolderMountType val: - :rtype: team_log.EventType + :param SharedFolderMountType val: + :rtype: EventType """ return cls('shared_folder_mount', val) @@ -19643,8 +20877,8 @@ def shared_folder_nest(cls, val): Create an instance of this class set to the ``shared_folder_nest`` tag with value ``val``. - :param team_log.SharedFolderNestType val: - :rtype: team_log.EventType + :param SharedFolderNestType val: + :rtype: EventType """ return cls('shared_folder_nest', val) @@ -19654,8 +20888,8 @@ def shared_folder_transfer_ownership(cls, val): Create an instance of this class set to the ``shared_folder_transfer_ownership`` tag with value ``val``. - :param team_log.SharedFolderTransferOwnershipType val: - :rtype: team_log.EventType + :param SharedFolderTransferOwnershipType val: + :rtype: EventType """ return cls('shared_folder_transfer_ownership', val) @@ -19665,8 +20899,8 @@ def shared_folder_unmount(cls, val): Create an instance of this class set to the ``shared_folder_unmount`` tag with value ``val``. - :param team_log.SharedFolderUnmountType val: - :rtype: team_log.EventType + :param SharedFolderUnmountType val: + :rtype: EventType """ return cls('shared_folder_unmount', val) @@ -19676,8 +20910,8 @@ def shared_link_add_expiry(cls, val): Create an instance of this class set to the ``shared_link_add_expiry`` tag with value ``val``. - :param team_log.SharedLinkAddExpiryType val: - :rtype: team_log.EventType + :param SharedLinkAddExpiryType val: + :rtype: EventType """ return cls('shared_link_add_expiry', val) @@ -19687,8 +20921,8 @@ def shared_link_change_expiry(cls, val): Create an instance of this class set to the ``shared_link_change_expiry`` tag with value ``val``. - :param team_log.SharedLinkChangeExpiryType val: - :rtype: team_log.EventType + :param SharedLinkChangeExpiryType val: + :rtype: EventType """ return cls('shared_link_change_expiry', val) @@ -19698,8 +20932,8 @@ def shared_link_change_visibility(cls, val): Create an instance of this class set to the ``shared_link_change_visibility`` tag with value ``val``. - :param team_log.SharedLinkChangeVisibilityType val: - :rtype: team_log.EventType + :param SharedLinkChangeVisibilityType val: + :rtype: EventType """ return cls('shared_link_change_visibility', val) @@ -19709,8 +20943,8 @@ def shared_link_copy(cls, val): Create an instance of this class set to the ``shared_link_copy`` tag with value ``val``. - :param team_log.SharedLinkCopyType val: - :rtype: team_log.EventType + :param SharedLinkCopyType val: + :rtype: EventType """ return cls('shared_link_copy', val) @@ -19720,8 +20954,8 @@ def shared_link_create(cls, val): Create an instance of this class set to the ``shared_link_create`` tag with value ``val``. - :param team_log.SharedLinkCreateType val: - :rtype: team_log.EventType + :param SharedLinkCreateType val: + :rtype: EventType """ return cls('shared_link_create', val) @@ -19731,8 +20965,8 @@ def shared_link_disable(cls, val): Create an instance of this class set to the ``shared_link_disable`` tag with value ``val``. - :param team_log.SharedLinkDisableType val: - :rtype: team_log.EventType + :param SharedLinkDisableType val: + :rtype: EventType """ return cls('shared_link_disable', val) @@ -19742,8 +20976,8 @@ def shared_link_download(cls, val): Create an instance of this class set to the ``shared_link_download`` tag with value ``val``. - :param team_log.SharedLinkDownloadType val: - :rtype: team_log.EventType + :param SharedLinkDownloadType val: + :rtype: EventType """ return cls('shared_link_download', val) @@ -19753,8 +20987,8 @@ def shared_link_remove_expiry(cls, val): Create an instance of this class set to the ``shared_link_remove_expiry`` tag with value ``val``. - :param team_log.SharedLinkRemoveExpiryType val: - :rtype: team_log.EventType + :param SharedLinkRemoveExpiryType val: + :rtype: EventType """ return cls('shared_link_remove_expiry', val) @@ -19764,8 +20998,8 @@ def shared_link_share(cls, val): Create an instance of this class set to the ``shared_link_share`` tag with value ``val``. - :param team_log.SharedLinkShareType val: - :rtype: team_log.EventType + :param SharedLinkShareType val: + :rtype: EventType """ return cls('shared_link_share', val) @@ -19775,8 +21009,8 @@ def shared_link_view(cls, val): Create an instance of this class set to the ``shared_link_view`` tag with value ``val``. - :param team_log.SharedLinkViewType val: - :rtype: team_log.EventType + :param SharedLinkViewType val: + :rtype: EventType """ return cls('shared_link_view', val) @@ -19786,8 +21020,8 @@ def shared_note_opened(cls, val): Create an instance of this class set to the ``shared_note_opened`` tag with value ``val``. - :param team_log.SharedNoteOpenedType val: - :rtype: team_log.EventType + :param SharedNoteOpenedType val: + :rtype: EventType """ return cls('shared_note_opened', val) @@ -19797,8 +21031,8 @@ def shmodel_group_share(cls, val): Create an instance of this class set to the ``shmodel_group_share`` tag with value ``val``. - :param team_log.ShmodelGroupShareType val: - :rtype: team_log.EventType + :param ShmodelGroupShareType val: + :rtype: EventType """ return cls('shmodel_group_share', val) @@ -19808,8 +21042,8 @@ def showcase_access_granted(cls, val): Create an instance of this class set to the ``showcase_access_granted`` tag with value ``val``. - :param team_log.ShowcaseAccessGrantedType val: - :rtype: team_log.EventType + :param ShowcaseAccessGrantedType val: + :rtype: EventType """ return cls('showcase_access_granted', val) @@ -19819,8 +21053,8 @@ def showcase_add_member(cls, val): Create an instance of this class set to the ``showcase_add_member`` tag with value ``val``. - :param team_log.ShowcaseAddMemberType val: - :rtype: team_log.EventType + :param ShowcaseAddMemberType val: + :rtype: EventType """ return cls('showcase_add_member', val) @@ -19830,8 +21064,8 @@ def showcase_archived(cls, val): Create an instance of this class set to the ``showcase_archived`` tag with value ``val``. - :param team_log.ShowcaseArchivedType val: - :rtype: team_log.EventType + :param ShowcaseArchivedType val: + :rtype: EventType """ return cls('showcase_archived', val) @@ -19841,8 +21075,8 @@ def showcase_created(cls, val): Create an instance of this class set to the ``showcase_created`` tag with value ``val``. - :param team_log.ShowcaseCreatedType val: - :rtype: team_log.EventType + :param ShowcaseCreatedType val: + :rtype: EventType """ return cls('showcase_created', val) @@ -19852,8 +21086,8 @@ def showcase_delete_comment(cls, val): Create an instance of this class set to the ``showcase_delete_comment`` tag with value ``val``. - :param team_log.ShowcaseDeleteCommentType val: - :rtype: team_log.EventType + :param ShowcaseDeleteCommentType val: + :rtype: EventType """ return cls('showcase_delete_comment', val) @@ -19863,8 +21097,8 @@ def showcase_edited(cls, val): Create an instance of this class set to the ``showcase_edited`` tag with value ``val``. - :param team_log.ShowcaseEditedType val: - :rtype: team_log.EventType + :param ShowcaseEditedType val: + :rtype: EventType """ return cls('showcase_edited', val) @@ -19874,8 +21108,8 @@ def showcase_edit_comment(cls, val): Create an instance of this class set to the ``showcase_edit_comment`` tag with value ``val``. - :param team_log.ShowcaseEditCommentType val: - :rtype: team_log.EventType + :param ShowcaseEditCommentType val: + :rtype: EventType """ return cls('showcase_edit_comment', val) @@ -19885,8 +21119,8 @@ def showcase_file_added(cls, val): Create an instance of this class set to the ``showcase_file_added`` tag with value ``val``. - :param team_log.ShowcaseFileAddedType val: - :rtype: team_log.EventType + :param ShowcaseFileAddedType val: + :rtype: EventType """ return cls('showcase_file_added', val) @@ -19896,8 +21130,8 @@ def showcase_file_download(cls, val): Create an instance of this class set to the ``showcase_file_download`` tag with value ``val``. - :param team_log.ShowcaseFileDownloadType val: - :rtype: team_log.EventType + :param ShowcaseFileDownloadType val: + :rtype: EventType """ return cls('showcase_file_download', val) @@ -19907,8 +21141,8 @@ def showcase_file_removed(cls, val): Create an instance of this class set to the ``showcase_file_removed`` tag with value ``val``. - :param team_log.ShowcaseFileRemovedType val: - :rtype: team_log.EventType + :param ShowcaseFileRemovedType val: + :rtype: EventType """ return cls('showcase_file_removed', val) @@ -19918,8 +21152,8 @@ def showcase_file_view(cls, val): Create an instance of this class set to the ``showcase_file_view`` tag with value ``val``. - :param team_log.ShowcaseFileViewType val: - :rtype: team_log.EventType + :param ShowcaseFileViewType val: + :rtype: EventType """ return cls('showcase_file_view', val) @@ -19929,8 +21163,8 @@ def showcase_permanently_deleted(cls, val): Create an instance of this class set to the ``showcase_permanently_deleted`` tag with value ``val``. - :param team_log.ShowcasePermanentlyDeletedType val: - :rtype: team_log.EventType + :param ShowcasePermanentlyDeletedType val: + :rtype: EventType """ return cls('showcase_permanently_deleted', val) @@ -19940,8 +21174,8 @@ def showcase_post_comment(cls, val): Create an instance of this class set to the ``showcase_post_comment`` tag with value ``val``. - :param team_log.ShowcasePostCommentType val: - :rtype: team_log.EventType + :param ShowcasePostCommentType val: + :rtype: EventType """ return cls('showcase_post_comment', val) @@ -19951,8 +21185,8 @@ def showcase_remove_member(cls, val): Create an instance of this class set to the ``showcase_remove_member`` tag with value ``val``. - :param team_log.ShowcaseRemoveMemberType val: - :rtype: team_log.EventType + :param ShowcaseRemoveMemberType val: + :rtype: EventType """ return cls('showcase_remove_member', val) @@ -19962,8 +21196,8 @@ def showcase_renamed(cls, val): Create an instance of this class set to the ``showcase_renamed`` tag with value ``val``. - :param team_log.ShowcaseRenamedType val: - :rtype: team_log.EventType + :param ShowcaseRenamedType val: + :rtype: EventType """ return cls('showcase_renamed', val) @@ -19973,8 +21207,8 @@ def showcase_request_access(cls, val): Create an instance of this class set to the ``showcase_request_access`` tag with value ``val``. - :param team_log.ShowcaseRequestAccessType val: - :rtype: team_log.EventType + :param ShowcaseRequestAccessType val: + :rtype: EventType """ return cls('showcase_request_access', val) @@ -19984,8 +21218,8 @@ def showcase_resolve_comment(cls, val): Create an instance of this class set to the ``showcase_resolve_comment`` tag with value ``val``. - :param team_log.ShowcaseResolveCommentType val: - :rtype: team_log.EventType + :param ShowcaseResolveCommentType val: + :rtype: EventType """ return cls('showcase_resolve_comment', val) @@ -19995,8 +21229,8 @@ def showcase_restored(cls, val): Create an instance of this class set to the ``showcase_restored`` tag with value ``val``. - :param team_log.ShowcaseRestoredType val: - :rtype: team_log.EventType + :param ShowcaseRestoredType val: + :rtype: EventType """ return cls('showcase_restored', val) @@ -20006,8 +21240,8 @@ def showcase_trashed(cls, val): Create an instance of this class set to the ``showcase_trashed`` tag with value ``val``. - :param team_log.ShowcaseTrashedType val: - :rtype: team_log.EventType + :param ShowcaseTrashedType val: + :rtype: EventType """ return cls('showcase_trashed', val) @@ -20017,8 +21251,8 @@ def showcase_trashed_deprecated(cls, val): Create an instance of this class set to the ``showcase_trashed_deprecated`` tag with value ``val``. - :param team_log.ShowcaseTrashedDeprecatedType val: - :rtype: team_log.EventType + :param ShowcaseTrashedDeprecatedType val: + :rtype: EventType """ return cls('showcase_trashed_deprecated', val) @@ -20028,8 +21262,8 @@ def showcase_unresolve_comment(cls, val): Create an instance of this class set to the ``showcase_unresolve_comment`` tag with value ``val``. - :param team_log.ShowcaseUnresolveCommentType val: - :rtype: team_log.EventType + :param ShowcaseUnresolveCommentType val: + :rtype: EventType """ return cls('showcase_unresolve_comment', val) @@ -20039,8 +21273,8 @@ def showcase_untrashed(cls, val): Create an instance of this class set to the ``showcase_untrashed`` tag with value ``val``. - :param team_log.ShowcaseUntrashedType val: - :rtype: team_log.EventType + :param ShowcaseUntrashedType val: + :rtype: EventType """ return cls('showcase_untrashed', val) @@ -20050,8 +21284,8 @@ def showcase_untrashed_deprecated(cls, val): Create an instance of this class set to the ``showcase_untrashed_deprecated`` tag with value ``val``. - :param team_log.ShowcaseUntrashedDeprecatedType val: - :rtype: team_log.EventType + :param ShowcaseUntrashedDeprecatedType val: + :rtype: EventType """ return cls('showcase_untrashed_deprecated', val) @@ -20061,8 +21295,8 @@ def showcase_view(cls, val): Create an instance of this class set to the ``showcase_view`` tag with value ``val``. - :param team_log.ShowcaseViewType val: - :rtype: team_log.EventType + :param ShowcaseViewType val: + :rtype: EventType """ return cls('showcase_view', val) @@ -20072,8 +21306,8 @@ def sso_add_cert(cls, val): Create an instance of this class set to the ``sso_add_cert`` tag with value ``val``. - :param team_log.SsoAddCertType val: - :rtype: team_log.EventType + :param SsoAddCertType val: + :rtype: EventType """ return cls('sso_add_cert', val) @@ -20083,8 +21317,8 @@ def sso_add_login_url(cls, val): Create an instance of this class set to the ``sso_add_login_url`` tag with value ``val``. - :param team_log.SsoAddLoginUrlType val: - :rtype: team_log.EventType + :param SsoAddLoginUrlType val: + :rtype: EventType """ return cls('sso_add_login_url', val) @@ -20094,8 +21328,8 @@ def sso_add_logout_url(cls, val): Create an instance of this class set to the ``sso_add_logout_url`` tag with value ``val``. - :param team_log.SsoAddLogoutUrlType val: - :rtype: team_log.EventType + :param SsoAddLogoutUrlType val: + :rtype: EventType """ return cls('sso_add_logout_url', val) @@ -20105,8 +21339,8 @@ def sso_change_cert(cls, val): Create an instance of this class set to the ``sso_change_cert`` tag with value ``val``. - :param team_log.SsoChangeCertType val: - :rtype: team_log.EventType + :param SsoChangeCertType val: + :rtype: EventType """ return cls('sso_change_cert', val) @@ -20116,8 +21350,8 @@ def sso_change_login_url(cls, val): Create an instance of this class set to the ``sso_change_login_url`` tag with value ``val``. - :param team_log.SsoChangeLoginUrlType val: - :rtype: team_log.EventType + :param SsoChangeLoginUrlType val: + :rtype: EventType """ return cls('sso_change_login_url', val) @@ -20127,8 +21361,8 @@ def sso_change_logout_url(cls, val): Create an instance of this class set to the ``sso_change_logout_url`` tag with value ``val``. - :param team_log.SsoChangeLogoutUrlType val: - :rtype: team_log.EventType + :param SsoChangeLogoutUrlType val: + :rtype: EventType """ return cls('sso_change_logout_url', val) @@ -20138,8 +21372,8 @@ def sso_change_saml_identity_mode(cls, val): Create an instance of this class set to the ``sso_change_saml_identity_mode`` tag with value ``val``. - :param team_log.SsoChangeSamlIdentityModeType val: - :rtype: team_log.EventType + :param SsoChangeSamlIdentityModeType val: + :rtype: EventType """ return cls('sso_change_saml_identity_mode', val) @@ -20149,8 +21383,8 @@ def sso_remove_cert(cls, val): Create an instance of this class set to the ``sso_remove_cert`` tag with value ``val``. - :param team_log.SsoRemoveCertType val: - :rtype: team_log.EventType + :param SsoRemoveCertType val: + :rtype: EventType """ return cls('sso_remove_cert', val) @@ -20160,8 +21394,8 @@ def sso_remove_login_url(cls, val): Create an instance of this class set to the ``sso_remove_login_url`` tag with value ``val``. - :param team_log.SsoRemoveLoginUrlType val: - :rtype: team_log.EventType + :param SsoRemoveLoginUrlType val: + :rtype: EventType """ return cls('sso_remove_login_url', val) @@ -20171,8 +21405,8 @@ def sso_remove_logout_url(cls, val): Create an instance of this class set to the ``sso_remove_logout_url`` tag with value ``val``. - :param team_log.SsoRemoveLogoutUrlType val: - :rtype: team_log.EventType + :param SsoRemoveLogoutUrlType val: + :rtype: EventType """ return cls('sso_remove_logout_url', val) @@ -20182,8 +21416,8 @@ def team_folder_change_status(cls, val): Create an instance of this class set to the ``team_folder_change_status`` tag with value ``val``. - :param team_log.TeamFolderChangeStatusType val: - :rtype: team_log.EventType + :param TeamFolderChangeStatusType val: + :rtype: EventType """ return cls('team_folder_change_status', val) @@ -20193,8 +21427,8 @@ def team_folder_create(cls, val): Create an instance of this class set to the ``team_folder_create`` tag with value ``val``. - :param team_log.TeamFolderCreateType val: - :rtype: team_log.EventType + :param TeamFolderCreateType val: + :rtype: EventType """ return cls('team_folder_create', val) @@ -20204,8 +21438,8 @@ def team_folder_downgrade(cls, val): Create an instance of this class set to the ``team_folder_downgrade`` tag with value ``val``. - :param team_log.TeamFolderDowngradeType val: - :rtype: team_log.EventType + :param TeamFolderDowngradeType val: + :rtype: EventType """ return cls('team_folder_downgrade', val) @@ -20215,8 +21449,8 @@ def team_folder_permanently_delete(cls, val): Create an instance of this class set to the ``team_folder_permanently_delete`` tag with value ``val``. - :param team_log.TeamFolderPermanentlyDeleteType val: - :rtype: team_log.EventType + :param TeamFolderPermanentlyDeleteType val: + :rtype: EventType """ return cls('team_folder_permanently_delete', val) @@ -20226,8 +21460,8 @@ def team_folder_rename(cls, val): Create an instance of this class set to the ``team_folder_rename`` tag with value ``val``. - :param team_log.TeamFolderRenameType val: - :rtype: team_log.EventType + :param TeamFolderRenameType val: + :rtype: EventType """ return cls('team_folder_rename', val) @@ -20237,8 +21471,8 @@ def team_selective_sync_settings_changed(cls, val): Create an instance of this class set to the ``team_selective_sync_settings_changed`` tag with value ``val``. - :param team_log.TeamSelectiveSyncSettingsChangedType val: - :rtype: team_log.EventType + :param TeamSelectiveSyncSettingsChangedType val: + :rtype: EventType """ return cls('team_selective_sync_settings_changed', val) @@ -20248,8 +21482,8 @@ def account_capture_change_policy(cls, val): Create an instance of this class set to the ``account_capture_change_policy`` tag with value ``val``. - :param team_log.AccountCaptureChangePolicyType val: - :rtype: team_log.EventType + :param AccountCaptureChangePolicyType val: + :rtype: EventType """ return cls('account_capture_change_policy', val) @@ -20259,8 +21493,8 @@ def allow_download_disabled(cls, val): Create an instance of this class set to the ``allow_download_disabled`` tag with value ``val``. - :param team_log.AllowDownloadDisabledType val: - :rtype: team_log.EventType + :param AllowDownloadDisabledType val: + :rtype: EventType """ return cls('allow_download_disabled', val) @@ -20270,8 +21504,8 @@ def allow_download_enabled(cls, val): Create an instance of this class set to the ``allow_download_enabled`` tag with value ``val``. - :param team_log.AllowDownloadEnabledType val: - :rtype: team_log.EventType + :param AllowDownloadEnabledType val: + :rtype: EventType """ return cls('allow_download_enabled', val) @@ -20281,8 +21515,8 @@ def camera_uploads_policy_changed(cls, val): Create an instance of this class set to the ``camera_uploads_policy_changed`` tag with value ``val``. - :param team_log.CameraUploadsPolicyChangedType val: - :rtype: team_log.EventType + :param CameraUploadsPolicyChangedType val: + :rtype: EventType """ return cls('camera_uploads_policy_changed', val) @@ -20292,8 +21526,8 @@ def data_placement_restriction_change_policy(cls, val): Create an instance of this class set to the ``data_placement_restriction_change_policy`` tag with value ``val``. - :param team_log.DataPlacementRestrictionChangePolicyType val: - :rtype: team_log.EventType + :param DataPlacementRestrictionChangePolicyType val: + :rtype: EventType """ return cls('data_placement_restriction_change_policy', val) @@ -20303,8 +21537,8 @@ def data_placement_restriction_satisfy_policy(cls, val): Create an instance of this class set to the ``data_placement_restriction_satisfy_policy`` tag with value ``val``. - :param team_log.DataPlacementRestrictionSatisfyPolicyType val: - :rtype: team_log.EventType + :param DataPlacementRestrictionSatisfyPolicyType val: + :rtype: EventType """ return cls('data_placement_restriction_satisfy_policy', val) @@ -20314,8 +21548,8 @@ def device_approvals_change_desktop_policy(cls, val): Create an instance of this class set to the ``device_approvals_change_desktop_policy`` tag with value ``val``. - :param team_log.DeviceApprovalsChangeDesktopPolicyType val: - :rtype: team_log.EventType + :param DeviceApprovalsChangeDesktopPolicyType val: + :rtype: EventType """ return cls('device_approvals_change_desktop_policy', val) @@ -20325,8 +21559,8 @@ def device_approvals_change_mobile_policy(cls, val): Create an instance of this class set to the ``device_approvals_change_mobile_policy`` tag with value ``val``. - :param team_log.DeviceApprovalsChangeMobilePolicyType val: - :rtype: team_log.EventType + :param DeviceApprovalsChangeMobilePolicyType val: + :rtype: EventType """ return cls('device_approvals_change_mobile_policy', val) @@ -20336,8 +21570,8 @@ def device_approvals_change_overage_action(cls, val): Create an instance of this class set to the ``device_approvals_change_overage_action`` tag with value ``val``. - :param team_log.DeviceApprovalsChangeOverageActionType val: - :rtype: team_log.EventType + :param DeviceApprovalsChangeOverageActionType val: + :rtype: EventType """ return cls('device_approvals_change_overage_action', val) @@ -20347,8 +21581,8 @@ def device_approvals_change_unlink_action(cls, val): Create an instance of this class set to the ``device_approvals_change_unlink_action`` tag with value ``val``. - :param team_log.DeviceApprovalsChangeUnlinkActionType val: - :rtype: team_log.EventType + :param DeviceApprovalsChangeUnlinkActionType val: + :rtype: EventType """ return cls('device_approvals_change_unlink_action', val) @@ -20358,8 +21592,8 @@ def directory_restrictions_add_members(cls, val): Create an instance of this class set to the ``directory_restrictions_add_members`` tag with value ``val``. - :param team_log.DirectoryRestrictionsAddMembersType val: - :rtype: team_log.EventType + :param DirectoryRestrictionsAddMembersType val: + :rtype: EventType """ return cls('directory_restrictions_add_members', val) @@ -20369,8 +21603,8 @@ def directory_restrictions_remove_members(cls, val): Create an instance of this class set to the ``directory_restrictions_remove_members`` tag with value ``val``. - :param team_log.DirectoryRestrictionsRemoveMembersType val: - :rtype: team_log.EventType + :param DirectoryRestrictionsRemoveMembersType val: + :rtype: EventType """ return cls('directory_restrictions_remove_members', val) @@ -20380,8 +21614,8 @@ def emm_add_exception(cls, val): Create an instance of this class set to the ``emm_add_exception`` tag with value ``val``. - :param team_log.EmmAddExceptionType val: - :rtype: team_log.EventType + :param EmmAddExceptionType val: + :rtype: EventType """ return cls('emm_add_exception', val) @@ -20391,8 +21625,8 @@ def emm_change_policy(cls, val): Create an instance of this class set to the ``emm_change_policy`` tag with value ``val``. - :param team_log.EmmChangePolicyType val: - :rtype: team_log.EventType + :param EmmChangePolicyType val: + :rtype: EventType """ return cls('emm_change_policy', val) @@ -20402,8 +21636,8 @@ def emm_remove_exception(cls, val): Create an instance of this class set to the ``emm_remove_exception`` tag with value ``val``. - :param team_log.EmmRemoveExceptionType val: - :rtype: team_log.EventType + :param EmmRemoveExceptionType val: + :rtype: EventType """ return cls('emm_remove_exception', val) @@ -20413,8 +21647,8 @@ def extended_version_history_change_policy(cls, val): Create an instance of this class set to the ``extended_version_history_change_policy`` tag with value ``val``. - :param team_log.ExtendedVersionHistoryChangePolicyType val: - :rtype: team_log.EventType + :param ExtendedVersionHistoryChangePolicyType val: + :rtype: EventType """ return cls('extended_version_history_change_policy', val) @@ -20424,8 +21658,8 @@ def file_comments_change_policy(cls, val): Create an instance of this class set to the ``file_comments_change_policy`` tag with value ``val``. - :param team_log.FileCommentsChangePolicyType val: - :rtype: team_log.EventType + :param FileCommentsChangePolicyType val: + :rtype: EventType """ return cls('file_comments_change_policy', val) @@ -20435,8 +21669,8 @@ def file_requests_change_policy(cls, val): Create an instance of this class set to the ``file_requests_change_policy`` tag with value ``val``. - :param team_log.FileRequestsChangePolicyType val: - :rtype: team_log.EventType + :param FileRequestsChangePolicyType val: + :rtype: EventType """ return cls('file_requests_change_policy', val) @@ -20446,8 +21680,8 @@ def file_requests_emails_enabled(cls, val): Create an instance of this class set to the ``file_requests_emails_enabled`` tag with value ``val``. - :param team_log.FileRequestsEmailsEnabledType val: - :rtype: team_log.EventType + :param FileRequestsEmailsEnabledType val: + :rtype: EventType """ return cls('file_requests_emails_enabled', val) @@ -20457,8 +21691,8 @@ def file_requests_emails_restricted_to_team_only(cls, val): Create an instance of this class set to the ``file_requests_emails_restricted_to_team_only`` tag with value ``val``. - :param team_log.FileRequestsEmailsRestrictedToTeamOnlyType val: - :rtype: team_log.EventType + :param FileRequestsEmailsRestrictedToTeamOnlyType val: + :rtype: EventType """ return cls('file_requests_emails_restricted_to_team_only', val) @@ -20468,8 +21702,8 @@ def google_sso_change_policy(cls, val): Create an instance of this class set to the ``google_sso_change_policy`` tag with value ``val``. - :param team_log.GoogleSsoChangePolicyType val: - :rtype: team_log.EventType + :param GoogleSsoChangePolicyType val: + :rtype: EventType """ return cls('google_sso_change_policy', val) @@ -20479,19 +21713,30 @@ def group_user_management_change_policy(cls, val): Create an instance of this class set to the ``group_user_management_change_policy`` tag with value ``val``. - :param team_log.GroupUserManagementChangePolicyType val: - :rtype: team_log.EventType + :param GroupUserManagementChangePolicyType val: + :rtype: EventType """ return cls('group_user_management_change_policy', val) + @classmethod + def integration_policy_changed(cls, val): + """ + Create an instance of this class set to the + ``integration_policy_changed`` tag with value ``val``. + + :param IntegrationPolicyChangedType val: + :rtype: EventType + """ + return cls('integration_policy_changed', val) + @classmethod def member_requests_change_policy(cls, val): """ Create an instance of this class set to the ``member_requests_change_policy`` tag with value ``val``. - :param team_log.MemberRequestsChangePolicyType val: - :rtype: team_log.EventType + :param MemberRequestsChangePolicyType val: + :rtype: EventType """ return cls('member_requests_change_policy', val) @@ -20501,8 +21746,8 @@ def member_space_limits_add_exception(cls, val): Create an instance of this class set to the ``member_space_limits_add_exception`` tag with value ``val``. - :param team_log.MemberSpaceLimitsAddExceptionType val: - :rtype: team_log.EventType + :param MemberSpaceLimitsAddExceptionType val: + :rtype: EventType """ return cls('member_space_limits_add_exception', val) @@ -20512,8 +21757,8 @@ def member_space_limits_change_caps_type_policy(cls, val): Create an instance of this class set to the ``member_space_limits_change_caps_type_policy`` tag with value ``val``. - :param team_log.MemberSpaceLimitsChangeCapsTypePolicyType val: - :rtype: team_log.EventType + :param MemberSpaceLimitsChangeCapsTypePolicyType val: + :rtype: EventType """ return cls('member_space_limits_change_caps_type_policy', val) @@ -20523,8 +21768,8 @@ def member_space_limits_change_policy(cls, val): Create an instance of this class set to the ``member_space_limits_change_policy`` tag with value ``val``. - :param team_log.MemberSpaceLimitsChangePolicyType val: - :rtype: team_log.EventType + :param MemberSpaceLimitsChangePolicyType val: + :rtype: EventType """ return cls('member_space_limits_change_policy', val) @@ -20534,8 +21779,8 @@ def member_space_limits_remove_exception(cls, val): Create an instance of this class set to the ``member_space_limits_remove_exception`` tag with value ``val``. - :param team_log.MemberSpaceLimitsRemoveExceptionType val: - :rtype: team_log.EventType + :param MemberSpaceLimitsRemoveExceptionType val: + :rtype: EventType """ return cls('member_space_limits_remove_exception', val) @@ -20545,8 +21790,8 @@ def member_suggestions_change_policy(cls, val): Create an instance of this class set to the ``member_suggestions_change_policy`` tag with value ``val``. - :param team_log.MemberSuggestionsChangePolicyType val: - :rtype: team_log.EventType + :param MemberSuggestionsChangePolicyType val: + :rtype: EventType """ return cls('member_suggestions_change_policy', val) @@ -20556,8 +21801,8 @@ def microsoft_office_addin_change_policy(cls, val): Create an instance of this class set to the ``microsoft_office_addin_change_policy`` tag with value ``val``. - :param team_log.MicrosoftOfficeAddinChangePolicyType val: - :rtype: team_log.EventType + :param MicrosoftOfficeAddinChangePolicyType val: + :rtype: EventType """ return cls('microsoft_office_addin_change_policy', val) @@ -20567,8 +21812,8 @@ def network_control_change_policy(cls, val): Create an instance of this class set to the ``network_control_change_policy`` tag with value ``val``. - :param team_log.NetworkControlChangePolicyType val: - :rtype: team_log.EventType + :param NetworkControlChangePolicyType val: + :rtype: EventType """ return cls('network_control_change_policy', val) @@ -20578,8 +21823,8 @@ def paper_change_deployment_policy(cls, val): Create an instance of this class set to the ``paper_change_deployment_policy`` tag with value ``val``. - :param team_log.PaperChangeDeploymentPolicyType val: - :rtype: team_log.EventType + :param PaperChangeDeploymentPolicyType val: + :rtype: EventType """ return cls('paper_change_deployment_policy', val) @@ -20589,8 +21834,8 @@ def paper_change_member_link_policy(cls, val): Create an instance of this class set to the ``paper_change_member_link_policy`` tag with value ``val``. - :param team_log.PaperChangeMemberLinkPolicyType val: - :rtype: team_log.EventType + :param PaperChangeMemberLinkPolicyType val: + :rtype: EventType """ return cls('paper_change_member_link_policy', val) @@ -20600,8 +21845,8 @@ def paper_change_member_policy(cls, val): Create an instance of this class set to the ``paper_change_member_policy`` tag with value ``val``. - :param team_log.PaperChangeMemberPolicyType val: - :rtype: team_log.EventType + :param PaperChangeMemberPolicyType val: + :rtype: EventType """ return cls('paper_change_member_policy', val) @@ -20611,19 +21856,41 @@ def paper_change_policy(cls, val): Create an instance of this class set to the ``paper_change_policy`` tag with value ``val``. - :param team_log.PaperChangePolicyType val: - :rtype: team_log.EventType + :param PaperChangePolicyType val: + :rtype: EventType """ return cls('paper_change_policy', val) + @classmethod + def paper_default_folder_policy_changed(cls, val): + """ + Create an instance of this class set to the + ``paper_default_folder_policy_changed`` tag with value ``val``. + + :param PaperDefaultFolderPolicyChangedType val: + :rtype: EventType + """ + return cls('paper_default_folder_policy_changed', val) + + @classmethod + def paper_desktop_policy_changed(cls, val): + """ + Create an instance of this class set to the + ``paper_desktop_policy_changed`` tag with value ``val``. + + :param PaperDesktopPolicyChangedType val: + :rtype: EventType + """ + return cls('paper_desktop_policy_changed', val) + @classmethod def paper_enabled_users_group_addition(cls, val): """ Create an instance of this class set to the ``paper_enabled_users_group_addition`` tag with value ``val``. - :param team_log.PaperEnabledUsersGroupAdditionType val: - :rtype: team_log.EventType + :param PaperEnabledUsersGroupAdditionType val: + :rtype: EventType """ return cls('paper_enabled_users_group_addition', val) @@ -20633,8 +21900,8 @@ def paper_enabled_users_group_removal(cls, val): Create an instance of this class set to the ``paper_enabled_users_group_removal`` tag with value ``val``. - :param team_log.PaperEnabledUsersGroupRemovalType val: - :rtype: team_log.EventType + :param PaperEnabledUsersGroupRemovalType val: + :rtype: EventType """ return cls('paper_enabled_users_group_removal', val) @@ -20644,19 +21911,30 @@ def permanent_delete_change_policy(cls, val): Create an instance of this class set to the ``permanent_delete_change_policy`` tag with value ``val``. - :param team_log.PermanentDeleteChangePolicyType val: - :rtype: team_log.EventType + :param PermanentDeleteChangePolicyType val: + :rtype: EventType """ return cls('permanent_delete_change_policy', val) + @classmethod + def reseller_support_change_policy(cls, val): + """ + Create an instance of this class set to the + ``reseller_support_change_policy`` tag with value ``val``. + + :param ResellerSupportChangePolicyType val: + :rtype: EventType + """ + return cls('reseller_support_change_policy', val) + @classmethod def sharing_change_folder_join_policy(cls, val): """ Create an instance of this class set to the ``sharing_change_folder_join_policy`` tag with value ``val``. - :param team_log.SharingChangeFolderJoinPolicyType val: - :rtype: team_log.EventType + :param SharingChangeFolderJoinPolicyType val: + :rtype: EventType """ return cls('sharing_change_folder_join_policy', val) @@ -20666,8 +21944,8 @@ def sharing_change_link_policy(cls, val): Create an instance of this class set to the ``sharing_change_link_policy`` tag with value ``val``. - :param team_log.SharingChangeLinkPolicyType val: - :rtype: team_log.EventType + :param SharingChangeLinkPolicyType val: + :rtype: EventType """ return cls('sharing_change_link_policy', val) @@ -20677,8 +21955,8 @@ def sharing_change_member_policy(cls, val): Create an instance of this class set to the ``sharing_change_member_policy`` tag with value ``val``. - :param team_log.SharingChangeMemberPolicyType val: - :rtype: team_log.EventType + :param SharingChangeMemberPolicyType val: + :rtype: EventType """ return cls('sharing_change_member_policy', val) @@ -20688,8 +21966,8 @@ def showcase_change_download_policy(cls, val): Create an instance of this class set to the ``showcase_change_download_policy`` tag with value ``val``. - :param team_log.ShowcaseChangeDownloadPolicyType val: - :rtype: team_log.EventType + :param ShowcaseChangeDownloadPolicyType val: + :rtype: EventType """ return cls('showcase_change_download_policy', val) @@ -20699,8 +21977,8 @@ def showcase_change_enabled_policy(cls, val): Create an instance of this class set to the ``showcase_change_enabled_policy`` tag with value ``val``. - :param team_log.ShowcaseChangeEnabledPolicyType val: - :rtype: team_log.EventType + :param ShowcaseChangeEnabledPolicyType val: + :rtype: EventType """ return cls('showcase_change_enabled_policy', val) @@ -20710,8 +21988,8 @@ def showcase_change_external_sharing_policy(cls, val): Create an instance of this class set to the ``showcase_change_external_sharing_policy`` tag with value ``val``. - :param team_log.ShowcaseChangeExternalSharingPolicyType val: - :rtype: team_log.EventType + :param ShowcaseChangeExternalSharingPolicyType val: + :rtype: EventType """ return cls('showcase_change_external_sharing_policy', val) @@ -20721,8 +21999,8 @@ def smart_sync_change_policy(cls, val): Create an instance of this class set to the ``smart_sync_change_policy`` tag with value ``val``. - :param team_log.SmartSyncChangePolicyType val: - :rtype: team_log.EventType + :param SmartSyncChangePolicyType val: + :rtype: EventType """ return cls('smart_sync_change_policy', val) @@ -20732,8 +22010,8 @@ def smart_sync_not_opt_out(cls, val): Create an instance of this class set to the ``smart_sync_not_opt_out`` tag with value ``val``. - :param team_log.SmartSyncNotOptOutType val: - :rtype: team_log.EventType + :param SmartSyncNotOptOutType val: + :rtype: EventType """ return cls('smart_sync_not_opt_out', val) @@ -20743,8 +22021,8 @@ def smart_sync_opt_out(cls, val): Create an instance of this class set to the ``smart_sync_opt_out`` tag with value ``val``. - :param team_log.SmartSyncOptOutType val: - :rtype: team_log.EventType + :param SmartSyncOptOutType val: + :rtype: EventType """ return cls('smart_sync_opt_out', val) @@ -20754,19 +22032,30 @@ def sso_change_policy(cls, val): Create an instance of this class set to the ``sso_change_policy`` tag with value ``val``. - :param team_log.SsoChangePolicyType val: - :rtype: team_log.EventType + :param SsoChangePolicyType val: + :rtype: EventType """ return cls('sso_change_policy', val) + @classmethod + def team_extensions_policy_changed(cls, val): + """ + Create an instance of this class set to the + ``team_extensions_policy_changed`` tag with value ``val``. + + :param TeamExtensionsPolicyChangedType val: + :rtype: EventType + """ + return cls('team_extensions_policy_changed', val) + @classmethod def team_selective_sync_policy_changed(cls, val): """ Create an instance of this class set to the ``team_selective_sync_policy_changed`` tag with value ``val``. - :param team_log.TeamSelectiveSyncPolicyChangedType val: - :rtype: team_log.EventType + :param TeamSelectiveSyncPolicyChangedType val: + :rtype: EventType """ return cls('team_selective_sync_policy_changed', val) @@ -20776,8 +22065,8 @@ def tfa_change_policy(cls, val): Create an instance of this class set to the ``tfa_change_policy`` tag with value ``val``. - :param team_log.TfaChangePolicyType val: - :rtype: team_log.EventType + :param TfaChangePolicyType val: + :rtype: EventType """ return cls('tfa_change_policy', val) @@ -20787,8 +22076,8 @@ def two_account_change_policy(cls, val): Create an instance of this class set to the ``two_account_change_policy`` tag with value ``val``. - :param team_log.TwoAccountChangePolicyType val: - :rtype: team_log.EventType + :param TwoAccountChangePolicyType val: + :rtype: EventType """ return cls('two_account_change_policy', val) @@ -20798,8 +22087,8 @@ def viewer_info_policy_changed(cls, val): Create an instance of this class set to the ``viewer_info_policy_changed`` tag with value ``val``. - :param team_log.ViewerInfoPolicyChangedType val: - :rtype: team_log.EventType + :param ViewerInfoPolicyChangedType val: + :rtype: EventType """ return cls('viewer_info_policy_changed', val) @@ -20809,8 +22098,8 @@ def web_sessions_change_fixed_length_policy(cls, val): Create an instance of this class set to the ``web_sessions_change_fixed_length_policy`` tag with value ``val``. - :param team_log.WebSessionsChangeFixedLengthPolicyType val: - :rtype: team_log.EventType + :param WebSessionsChangeFixedLengthPolicyType val: + :rtype: EventType """ return cls('web_sessions_change_fixed_length_policy', val) @@ -20820,8 +22109,8 @@ def web_sessions_change_idle_length_policy(cls, val): Create an instance of this class set to the ``web_sessions_change_idle_length_policy`` tag with value ``val``. - :param team_log.WebSessionsChangeIdleLengthPolicyType val: - :rtype: team_log.EventType + :param WebSessionsChangeIdleLengthPolicyType val: + :rtype: EventType """ return cls('web_sessions_change_idle_length_policy', val) @@ -20831,8 +22120,8 @@ def team_merge_from(cls, val): Create an instance of this class set to the ``team_merge_from`` tag with value ``val``. - :param team_log.TeamMergeFromType val: - :rtype: team_log.EventType + :param TeamMergeFromType val: + :rtype: EventType """ return cls('team_merge_from', val) @@ -20842,8 +22131,8 @@ def team_merge_to(cls, val): Create an instance of this class set to the ``team_merge_to`` tag with value ``val``. - :param team_log.TeamMergeToType val: - :rtype: team_log.EventType + :param TeamMergeToType val: + :rtype: EventType """ return cls('team_merge_to', val) @@ -20853,8 +22142,8 @@ def team_profile_add_logo(cls, val): Create an instance of this class set to the ``team_profile_add_logo`` tag with value ``val``. - :param team_log.TeamProfileAddLogoType val: - :rtype: team_log.EventType + :param TeamProfileAddLogoType val: + :rtype: EventType """ return cls('team_profile_add_logo', val) @@ -20864,8 +22153,8 @@ def team_profile_change_default_language(cls, val): Create an instance of this class set to the ``team_profile_change_default_language`` tag with value ``val``. - :param team_log.TeamProfileChangeDefaultLanguageType val: - :rtype: team_log.EventType + :param TeamProfileChangeDefaultLanguageType val: + :rtype: EventType """ return cls('team_profile_change_default_language', val) @@ -20875,8 +22164,8 @@ def team_profile_change_logo(cls, val): Create an instance of this class set to the ``team_profile_change_logo`` tag with value ``val``. - :param team_log.TeamProfileChangeLogoType val: - :rtype: team_log.EventType + :param TeamProfileChangeLogoType val: + :rtype: EventType """ return cls('team_profile_change_logo', val) @@ -20886,8 +22175,8 @@ def team_profile_change_name(cls, val): Create an instance of this class set to the ``team_profile_change_name`` tag with value ``val``. - :param team_log.TeamProfileChangeNameType val: - :rtype: team_log.EventType + :param TeamProfileChangeNameType val: + :rtype: EventType """ return cls('team_profile_change_name', val) @@ -20897,8 +22186,8 @@ def team_profile_remove_logo(cls, val): Create an instance of this class set to the ``team_profile_remove_logo`` tag with value ``val``. - :param team_log.TeamProfileRemoveLogoType val: - :rtype: team_log.EventType + :param TeamProfileRemoveLogoType val: + :rtype: EventType """ return cls('team_profile_remove_logo', val) @@ -20908,8 +22197,8 @@ def tfa_add_backup_phone(cls, val): Create an instance of this class set to the ``tfa_add_backup_phone`` tag with value ``val``. - :param team_log.TfaAddBackupPhoneType val: - :rtype: team_log.EventType + :param TfaAddBackupPhoneType val: + :rtype: EventType """ return cls('tfa_add_backup_phone', val) @@ -20919,8 +22208,8 @@ def tfa_add_security_key(cls, val): Create an instance of this class set to the ``tfa_add_security_key`` tag with value ``val``. - :param team_log.TfaAddSecurityKeyType val: - :rtype: team_log.EventType + :param TfaAddSecurityKeyType val: + :rtype: EventType """ return cls('tfa_add_security_key', val) @@ -20930,8 +22219,8 @@ def tfa_change_backup_phone(cls, val): Create an instance of this class set to the ``tfa_change_backup_phone`` tag with value ``val``. - :param team_log.TfaChangeBackupPhoneType val: - :rtype: team_log.EventType + :param TfaChangeBackupPhoneType val: + :rtype: EventType """ return cls('tfa_change_backup_phone', val) @@ -20941,8 +22230,8 @@ def tfa_change_status(cls, val): Create an instance of this class set to the ``tfa_change_status`` tag with value ``val``. - :param team_log.TfaChangeStatusType val: - :rtype: team_log.EventType + :param TfaChangeStatusType val: + :rtype: EventType """ return cls('tfa_change_status', val) @@ -20952,8 +22241,8 @@ def tfa_remove_backup_phone(cls, val): Create an instance of this class set to the ``tfa_remove_backup_phone`` tag with value ``val``. - :param team_log.TfaRemoveBackupPhoneType val: - :rtype: team_log.EventType + :param TfaRemoveBackupPhoneType val: + :rtype: EventType """ return cls('tfa_remove_backup_phone', val) @@ -20963,8 +22252,8 @@ def tfa_remove_security_key(cls, val): Create an instance of this class set to the ``tfa_remove_security_key`` tag with value ``val``. - :param team_log.TfaRemoveSecurityKeyType val: - :rtype: team_log.EventType + :param TfaRemoveSecurityKeyType val: + :rtype: EventType """ return cls('tfa_remove_security_key', val) @@ -20974,11 +22263,232 @@ def tfa_reset(cls, val): Create an instance of this class set to the ``tfa_reset`` tag with value ``val``. - :param team_log.TfaResetType val: - :rtype: team_log.EventType + :param TfaResetType val: + :rtype: EventType """ return cls('tfa_reset', val) + @classmethod + def guest_admin_change_status(cls, val): + """ + Create an instance of this class set to the + ``guest_admin_change_status`` tag with value ``val``. + + :param GuestAdminChangeStatusType val: + :rtype: EventType + """ + return cls('guest_admin_change_status', val) + + @classmethod + def team_merge_request_accepted(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_accepted`` tag with value ``val``. + + :param TeamMergeRequestAcceptedType val: + :rtype: EventType + """ + return cls('team_merge_request_accepted', val) + + @classmethod + def team_merge_request_accepted_shown_to_primary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_accepted_shown_to_primary_team`` tag with value + ``val``. + + :param TeamMergeRequestAcceptedShownToPrimaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_accepted_shown_to_primary_team', val) + + @classmethod + def team_merge_request_accepted_shown_to_secondary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_accepted_shown_to_secondary_team`` tag with value + ``val``. + + :param TeamMergeRequestAcceptedShownToSecondaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_accepted_shown_to_secondary_team', val) + + @classmethod + def team_merge_request_auto_canceled(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_auto_canceled`` tag with value ``val``. + + :param TeamMergeRequestAutoCanceledType val: + :rtype: EventType + """ + return cls('team_merge_request_auto_canceled', val) + + @classmethod + def team_merge_request_canceled(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_canceled`` tag with value ``val``. + + :param TeamMergeRequestCanceledType val: + :rtype: EventType + """ + return cls('team_merge_request_canceled', val) + + @classmethod + def team_merge_request_canceled_shown_to_primary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_canceled_shown_to_primary_team`` tag with value + ``val``. + + :param TeamMergeRequestCanceledShownToPrimaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_canceled_shown_to_primary_team', val) + + @classmethod + def team_merge_request_canceled_shown_to_secondary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_canceled_shown_to_secondary_team`` tag with value + ``val``. + + :param TeamMergeRequestCanceledShownToSecondaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_canceled_shown_to_secondary_team', val) + + @classmethod + def team_merge_request_expired(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_expired`` tag with value ``val``. + + :param TeamMergeRequestExpiredType val: + :rtype: EventType + """ + return cls('team_merge_request_expired', val) + + @classmethod + def team_merge_request_expired_shown_to_primary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_expired_shown_to_primary_team`` tag with value + ``val``. + + :param TeamMergeRequestExpiredShownToPrimaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_expired_shown_to_primary_team', val) + + @classmethod + def team_merge_request_expired_shown_to_secondary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_expired_shown_to_secondary_team`` tag with value + ``val``. + + :param TeamMergeRequestExpiredShownToSecondaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_expired_shown_to_secondary_team', val) + + @classmethod + def team_merge_request_rejected_shown_to_primary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_rejected_shown_to_primary_team`` tag with value + ``val``. + + :param TeamMergeRequestRejectedShownToPrimaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_rejected_shown_to_primary_team', val) + + @classmethod + def team_merge_request_rejected_shown_to_secondary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_rejected_shown_to_secondary_team`` tag with value + ``val``. + + :param TeamMergeRequestRejectedShownToSecondaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_rejected_shown_to_secondary_team', val) + + @classmethod + def team_merge_request_reminder(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_reminder`` tag with value ``val``. + + :param TeamMergeRequestReminderType val: + :rtype: EventType + """ + return cls('team_merge_request_reminder', val) + + @classmethod + def team_merge_request_reminder_shown_to_primary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_reminder_shown_to_primary_team`` tag with value + ``val``. + + :param TeamMergeRequestReminderShownToPrimaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_reminder_shown_to_primary_team', val) + + @classmethod + def team_merge_request_reminder_shown_to_secondary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_reminder_shown_to_secondary_team`` tag with value + ``val``. + + :param TeamMergeRequestReminderShownToSecondaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_reminder_shown_to_secondary_team', val) + + @classmethod + def team_merge_request_revoked(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_revoked`` tag with value ``val``. + + :param TeamMergeRequestRevokedType val: + :rtype: EventType + """ + return cls('team_merge_request_revoked', val) + + @classmethod + def team_merge_request_sent_shown_to_primary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_sent_shown_to_primary_team`` tag with value + ``val``. + + :param TeamMergeRequestSentShownToPrimaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_sent_shown_to_primary_team', val) + + @classmethod + def team_merge_request_sent_shown_to_secondary_team(cls, val): + """ + Create an instance of this class set to the + ``team_merge_request_sent_shown_to_secondary_team`` tag with value + ``val``. + + :param TeamMergeRequestSentShownToSecondaryTeamType val: + :rtype: EventType + """ + return cls('team_merge_request_sent_shown_to_secondary_team', val) + def is_app_link_team(self): """ Check if the union tag is ``app_link_team``. @@ -21011,6 +22521,22 @@ def is_app_unlink_user(self): """ return self._tag == 'app_unlink_user' + def is_integration_connected(self): + """ + Check if the union tag is ``integration_connected``. + + :rtype: bool + """ + return self._tag == 'integration_connected' + + def is_integration_disconnected(self): + """ + Check if the union tag is ``integration_disconnected``. + + :rtype: bool + """ + return self._tag == 'integration_disconnected' + def is_file_add_comment(self): """ Check if the union tag is ``file_add_comment``. @@ -21427,6 +22953,14 @@ def is_file_request_create(self): """ return self._tag == 'file_request_create' + def is_file_request_delete(self): + """ + Check if the union tag is ``file_request_delete``. + + :rtype: bool + """ + return self._tag == 'file_request_delete' + def is_file_request_receive_file(self): """ Check if the union tag is ``file_request_receive_file``. @@ -21547,6 +23081,22 @@ def is_emm_error(self): """ return self._tag == 'emm_error' + def is_guest_admin_signed_in_via_trusted_teams(self): + """ + Check if the union tag is ``guest_admin_signed_in_via_trusted_teams``. + + :rtype: bool + """ + return self._tag == 'guest_admin_signed_in_via_trusted_teams' + + def is_guest_admin_signed_out_via_trusted_teams(self): + """ + Check if the union tag is ``guest_admin_signed_out_via_trusted_teams``. + + :rtype: bool + """ + return self._tag == 'guest_admin_signed_out_via_trusted_teams' + def is_login_fail(self): """ Check if the union tag is ``login_fail``. @@ -21611,6 +23161,14 @@ def is_sso_error(self): """ return self._tag == 'sso_error' + def is_member_add_external_id(self): + """ + Check if the union tag is ``member_add_external_id``. + + :rtype: bool + """ + return self._tag == 'member_add_external_id' + def is_member_add_name(self): """ Check if the union tag is ``member_add_name``. @@ -21635,6 +23193,14 @@ def is_member_change_email(self): """ return self._tag == 'member_change_email' + def is_member_change_external_id(self): + """ + Check if the union tag is ``member_change_external_id``. + + :rtype: bool + """ + return self._tag == 'member_change_external_id' + def is_member_change_membership_type(self): """ Check if the union tag is ``member_change_membership_type``. @@ -21675,6 +23241,14 @@ def is_member_permanently_delete_account_contents(self): """ return self._tag == 'member_permanently_delete_account_contents' + def is_member_remove_external_id(self): + """ + Check if the union tag is ``member_remove_external_id``. + + :rtype: bool + """ + return self._tag == 'member_remove_external_id' + def is_member_space_limits_add_custom_quota(self): """ Check if the union tag is ``member_space_limits_add_custom_quota``. @@ -22027,6 +23601,30 @@ def is_paper_folder_team_invite(self): """ return self._tag == 'paper_folder_team_invite' + def is_paper_published_link_create(self): + """ + Check if the union tag is ``paper_published_link_create``. + + :rtype: bool + """ + return self._tag == 'paper_published_link_create' + + def is_paper_published_link_disabled(self): + """ + Check if the union tag is ``paper_published_link_disabled``. + + :rtype: bool + """ + return self._tag == 'paper_published_link_disabled' + + def is_paper_published_link_view(self): + """ + Check if the union tag is ``paper_published_link_view``. + + :rtype: bool + """ + return self._tag == 'paper_published_link_view' + def is_password_change(self): """ Check if the union tag is ``password_change``. @@ -22099,6 +23697,14 @@ def is_team_activity_create_report(self): """ return self._tag == 'team_activity_create_report' + def is_team_activity_create_report_fail(self): + """ + Check if the union tag is ``team_activity_create_report_fail``. + + :rtype: bool + """ + return self._tag == 'team_activity_create_report_fail' + def is_collection_share(self): """ Check if the union tag is ``collection_share``. @@ -23107,6 +24713,14 @@ def is_group_user_management_change_policy(self): """ return self._tag == 'group_user_management_change_policy' + def is_integration_policy_changed(self): + """ + Check if the union tag is ``integration_policy_changed``. + + :rtype: bool + """ + return self._tag == 'integration_policy_changed' + def is_member_requests_change_policy(self): """ Check if the union tag is ``member_requests_change_policy``. @@ -23203,6 +24817,22 @@ def is_paper_change_policy(self): """ return self._tag == 'paper_change_policy' + def is_paper_default_folder_policy_changed(self): + """ + Check if the union tag is ``paper_default_folder_policy_changed``. + + :rtype: bool + """ + return self._tag == 'paper_default_folder_policy_changed' + + def is_paper_desktop_policy_changed(self): + """ + Check if the union tag is ``paper_desktop_policy_changed``. + + :rtype: bool + """ + return self._tag == 'paper_desktop_policy_changed' + def is_paper_enabled_users_group_addition(self): """ Check if the union tag is ``paper_enabled_users_group_addition``. @@ -23227,6 +24857,14 @@ def is_permanent_delete_change_policy(self): """ return self._tag == 'permanent_delete_change_policy' + def is_reseller_support_change_policy(self): + """ + Check if the union tag is ``reseller_support_change_policy``. + + :rtype: bool + """ + return self._tag == 'reseller_support_change_policy' + def is_sharing_change_folder_join_policy(self): """ Check if the union tag is ``sharing_change_folder_join_policy``. @@ -23307,6 +24945,14 @@ def is_sso_change_policy(self): """ return self._tag == 'sso_change_policy' + def is_team_extensions_policy_changed(self): + """ + Check if the union tag is ``team_extensions_policy_changed``. + + :rtype: bool + """ + return self._tag == 'team_extensions_policy_changed' + def is_team_selective_sync_policy_changed(self): """ Check if the union tag is ``team_selective_sync_policy_changed``. @@ -23467,6 +25113,158 @@ def is_tfa_reset(self): """ return self._tag == 'tfa_reset' + def is_guest_admin_change_status(self): + """ + Check if the union tag is ``guest_admin_change_status``. + + :rtype: bool + """ + return self._tag == 'guest_admin_change_status' + + def is_team_merge_request_accepted(self): + """ + Check if the union tag is ``team_merge_request_accepted``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_accepted' + + def is_team_merge_request_accepted_shown_to_primary_team(self): + """ + Check if the union tag is ``team_merge_request_accepted_shown_to_primary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_accepted_shown_to_primary_team' + + def is_team_merge_request_accepted_shown_to_secondary_team(self): + """ + Check if the union tag is ``team_merge_request_accepted_shown_to_secondary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_accepted_shown_to_secondary_team' + + def is_team_merge_request_auto_canceled(self): + """ + Check if the union tag is ``team_merge_request_auto_canceled``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_auto_canceled' + + def is_team_merge_request_canceled(self): + """ + Check if the union tag is ``team_merge_request_canceled``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_canceled' + + def is_team_merge_request_canceled_shown_to_primary_team(self): + """ + Check if the union tag is ``team_merge_request_canceled_shown_to_primary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_canceled_shown_to_primary_team' + + def is_team_merge_request_canceled_shown_to_secondary_team(self): + """ + Check if the union tag is ``team_merge_request_canceled_shown_to_secondary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_canceled_shown_to_secondary_team' + + def is_team_merge_request_expired(self): + """ + Check if the union tag is ``team_merge_request_expired``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_expired' + + def is_team_merge_request_expired_shown_to_primary_team(self): + """ + Check if the union tag is ``team_merge_request_expired_shown_to_primary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_expired_shown_to_primary_team' + + def is_team_merge_request_expired_shown_to_secondary_team(self): + """ + Check if the union tag is ``team_merge_request_expired_shown_to_secondary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_expired_shown_to_secondary_team' + + def is_team_merge_request_rejected_shown_to_primary_team(self): + """ + Check if the union tag is ``team_merge_request_rejected_shown_to_primary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_rejected_shown_to_primary_team' + + def is_team_merge_request_rejected_shown_to_secondary_team(self): + """ + Check if the union tag is ``team_merge_request_rejected_shown_to_secondary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_rejected_shown_to_secondary_team' + + def is_team_merge_request_reminder(self): + """ + Check if the union tag is ``team_merge_request_reminder``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_reminder' + + def is_team_merge_request_reminder_shown_to_primary_team(self): + """ + Check if the union tag is ``team_merge_request_reminder_shown_to_primary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_reminder_shown_to_primary_team' + + def is_team_merge_request_reminder_shown_to_secondary_team(self): + """ + Check if the union tag is ``team_merge_request_reminder_shown_to_secondary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_reminder_shown_to_secondary_team' + + def is_team_merge_request_revoked(self): + """ + Check if the union tag is ``team_merge_request_revoked``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_revoked' + + def is_team_merge_request_sent_shown_to_primary_team(self): + """ + Check if the union tag is ``team_merge_request_sent_shown_to_primary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_sent_shown_to_primary_team' + + def is_team_merge_request_sent_shown_to_secondary_team(self): + """ + Check if the union tag is ``team_merge_request_sent_shown_to_secondary_team``. + + :rtype: bool + """ + return self._tag == 'team_merge_request_sent_shown_to_secondary_team' + def is_other(self): """ Check if the union tag is ``other``. @@ -23481,7 +25279,7 @@ def get_app_link_team(self): Only call this if :meth:`is_app_link_team` is true. - :rtype: team_log.AppLinkTeamType + :rtype: AppLinkTeamType """ if not self.is_app_link_team(): raise AttributeError("tag 'app_link_team' not set") @@ -23493,7 +25291,7 @@ def get_app_link_user(self): Only call this if :meth:`is_app_link_user` is true. - :rtype: team_log.AppLinkUserType + :rtype: AppLinkUserType """ if not self.is_app_link_user(): raise AttributeError("tag 'app_link_user' not set") @@ -23505,7 +25303,7 @@ def get_app_unlink_team(self): Only call this if :meth:`is_app_unlink_team` is true. - :rtype: team_log.AppUnlinkTeamType + :rtype: AppUnlinkTeamType """ if not self.is_app_unlink_team(): raise AttributeError("tag 'app_unlink_team' not set") @@ -23517,19 +25315,43 @@ def get_app_unlink_user(self): Only call this if :meth:`is_app_unlink_user` is true. - :rtype: team_log.AppUnlinkUserType + :rtype: AppUnlinkUserType """ if not self.is_app_unlink_user(): raise AttributeError("tag 'app_unlink_user' not set") return self._value + def get_integration_connected(self): + """ + (apps) Connected integration for member + + Only call this if :meth:`is_integration_connected` is true. + + :rtype: IntegrationConnectedType + """ + if not self.is_integration_connected(): + raise AttributeError("tag 'integration_connected' not set") + return self._value + + def get_integration_disconnected(self): + """ + (apps) Disconnected integration for member + + Only call this if :meth:`is_integration_disconnected` is true. + + :rtype: IntegrationDisconnectedType + """ + if not self.is_integration_disconnected(): + raise AttributeError("tag 'integration_disconnected' not set") + return self._value + def get_file_add_comment(self): """ (comments) Added file comment Only call this if :meth:`is_file_add_comment` is true. - :rtype: team_log.FileAddCommentType + :rtype: FileAddCommentType """ if not self.is_file_add_comment(): raise AttributeError("tag 'file_add_comment' not set") @@ -23542,7 +25364,7 @@ def get_file_change_comment_subscription(self): Only call this if :meth:`is_file_change_comment_subscription` is true. - :rtype: team_log.FileChangeCommentSubscriptionType + :rtype: FileChangeCommentSubscriptionType """ if not self.is_file_change_comment_subscription(): raise AttributeError("tag 'file_change_comment_subscription' not set") @@ -23554,7 +25376,7 @@ def get_file_delete_comment(self): Only call this if :meth:`is_file_delete_comment` is true. - :rtype: team_log.FileDeleteCommentType + :rtype: FileDeleteCommentType """ if not self.is_file_delete_comment(): raise AttributeError("tag 'file_delete_comment' not set") @@ -23566,7 +25388,7 @@ def get_file_edit_comment(self): Only call this if :meth:`is_file_edit_comment` is true. - :rtype: team_log.FileEditCommentType + :rtype: FileEditCommentType """ if not self.is_file_edit_comment(): raise AttributeError("tag 'file_edit_comment' not set") @@ -23578,7 +25400,7 @@ def get_file_like_comment(self): Only call this if :meth:`is_file_like_comment` is true. - :rtype: team_log.FileLikeCommentType + :rtype: FileLikeCommentType """ if not self.is_file_like_comment(): raise AttributeError("tag 'file_like_comment' not set") @@ -23590,7 +25412,7 @@ def get_file_resolve_comment(self): Only call this if :meth:`is_file_resolve_comment` is true. - :rtype: team_log.FileResolveCommentType + :rtype: FileResolveCommentType """ if not self.is_file_resolve_comment(): raise AttributeError("tag 'file_resolve_comment' not set") @@ -23602,7 +25424,7 @@ def get_file_unlike_comment(self): Only call this if :meth:`is_file_unlike_comment` is true. - :rtype: team_log.FileUnlikeCommentType + :rtype: FileUnlikeCommentType """ if not self.is_file_unlike_comment(): raise AttributeError("tag 'file_unlike_comment' not set") @@ -23614,7 +25436,7 @@ def get_file_unresolve_comment(self): Only call this if :meth:`is_file_unresolve_comment` is true. - :rtype: team_log.FileUnresolveCommentType + :rtype: FileUnresolveCommentType """ if not self.is_file_unresolve_comment(): raise AttributeError("tag 'file_unresolve_comment' not set") @@ -23626,7 +25448,7 @@ def get_device_change_ip_desktop(self): Only call this if :meth:`is_device_change_ip_desktop` is true. - :rtype: team_log.DeviceChangeIpDesktopType + :rtype: DeviceChangeIpDesktopType """ if not self.is_device_change_ip_desktop(): raise AttributeError("tag 'device_change_ip_desktop' not set") @@ -23638,7 +25460,7 @@ def get_device_change_ip_mobile(self): Only call this if :meth:`is_device_change_ip_mobile` is true. - :rtype: team_log.DeviceChangeIpMobileType + :rtype: DeviceChangeIpMobileType """ if not self.is_device_change_ip_mobile(): raise AttributeError("tag 'device_change_ip_mobile' not set") @@ -23650,7 +25472,7 @@ def get_device_change_ip_web(self): Only call this if :meth:`is_device_change_ip_web` is true. - :rtype: team_log.DeviceChangeIpWebType + :rtype: DeviceChangeIpWebType """ if not self.is_device_change_ip_web(): raise AttributeError("tag 'device_change_ip_web' not set") @@ -23662,7 +25484,7 @@ def get_device_delete_on_unlink_fail(self): Only call this if :meth:`is_device_delete_on_unlink_fail` is true. - :rtype: team_log.DeviceDeleteOnUnlinkFailType + :rtype: DeviceDeleteOnUnlinkFailType """ if not self.is_device_delete_on_unlink_fail(): raise AttributeError("tag 'device_delete_on_unlink_fail' not set") @@ -23674,7 +25496,7 @@ def get_device_delete_on_unlink_success(self): Only call this if :meth:`is_device_delete_on_unlink_success` is true. - :rtype: team_log.DeviceDeleteOnUnlinkSuccessType + :rtype: DeviceDeleteOnUnlinkSuccessType """ if not self.is_device_delete_on_unlink_success(): raise AttributeError("tag 'device_delete_on_unlink_success' not set") @@ -23686,7 +25508,7 @@ def get_device_link_fail(self): Only call this if :meth:`is_device_link_fail` is true. - :rtype: team_log.DeviceLinkFailType + :rtype: DeviceLinkFailType """ if not self.is_device_link_fail(): raise AttributeError("tag 'device_link_fail' not set") @@ -23698,7 +25520,7 @@ def get_device_link_success(self): Only call this if :meth:`is_device_link_success` is true. - :rtype: team_log.DeviceLinkSuccessType + :rtype: DeviceLinkSuccessType """ if not self.is_device_link_success(): raise AttributeError("tag 'device_link_success' not set") @@ -23710,7 +25532,7 @@ def get_device_management_disabled(self): Only call this if :meth:`is_device_management_disabled` is true. - :rtype: team_log.DeviceManagementDisabledType + :rtype: DeviceManagementDisabledType """ if not self.is_device_management_disabled(): raise AttributeError("tag 'device_management_disabled' not set") @@ -23722,7 +25544,7 @@ def get_device_management_enabled(self): Only call this if :meth:`is_device_management_enabled` is true. - :rtype: team_log.DeviceManagementEnabledType + :rtype: DeviceManagementEnabledType """ if not self.is_device_management_enabled(): raise AttributeError("tag 'device_management_enabled' not set") @@ -23734,7 +25556,7 @@ def get_device_unlink(self): Only call this if :meth:`is_device_unlink` is true. - :rtype: team_log.DeviceUnlinkType + :rtype: DeviceUnlinkType """ if not self.is_device_unlink(): raise AttributeError("tag 'device_unlink' not set") @@ -23742,12 +25564,11 @@ def get_device_unlink(self): def get_emm_refresh_auth_token(self): """ - (devices) Refreshed auth token used for setting up enterprise mobility - management + (devices) Refreshed auth token used for setting up EMM Only call this if :meth:`is_emm_refresh_auth_token` is true. - :rtype: team_log.EmmRefreshAuthTokenType + :rtype: EmmRefreshAuthTokenType """ if not self.is_emm_refresh_auth_token(): raise AttributeError("tag 'emm_refresh_auth_token' not set") @@ -23760,7 +25581,7 @@ def get_account_capture_change_availability(self): Only call this if :meth:`is_account_capture_change_availability` is true. - :rtype: team_log.AccountCaptureChangeAvailabilityType + :rtype: AccountCaptureChangeAvailabilityType """ if not self.is_account_capture_change_availability(): raise AttributeError("tag 'account_capture_change_availability' not set") @@ -23772,7 +25593,7 @@ def get_account_capture_migrate_account(self): Only call this if :meth:`is_account_capture_migrate_account` is true. - :rtype: team_log.AccountCaptureMigrateAccountType + :rtype: AccountCaptureMigrateAccountType """ if not self.is_account_capture_migrate_account(): raise AttributeError("tag 'account_capture_migrate_account' not set") @@ -23784,7 +25605,7 @@ def get_account_capture_notification_emails_sent(self): Only call this if :meth:`is_account_capture_notification_emails_sent` is true. - :rtype: team_log.AccountCaptureNotificationEmailsSentType + :rtype: AccountCaptureNotificationEmailsSentType """ if not self.is_account_capture_notification_emails_sent(): raise AttributeError("tag 'account_capture_notification_emails_sent' not set") @@ -23796,7 +25617,7 @@ def get_account_capture_relinquish_account(self): Only call this if :meth:`is_account_capture_relinquish_account` is true. - :rtype: team_log.AccountCaptureRelinquishAccountType + :rtype: AccountCaptureRelinquishAccountType """ if not self.is_account_capture_relinquish_account(): raise AttributeError("tag 'account_capture_relinquish_account' not set") @@ -23808,7 +25629,7 @@ def get_disabled_domain_invites(self): Only call this if :meth:`is_disabled_domain_invites` is true. - :rtype: team_log.DisabledDomainInvitesType + :rtype: DisabledDomainInvitesType """ if not self.is_disabled_domain_invites(): raise AttributeError("tag 'disabled_domain_invites' not set") @@ -23820,7 +25641,7 @@ def get_domain_invites_approve_request_to_join_team(self): Only call this if :meth:`is_domain_invites_approve_request_to_join_team` is true. - :rtype: team_log.DomainInvitesApproveRequestToJoinTeamType + :rtype: DomainInvitesApproveRequestToJoinTeamType """ if not self.is_domain_invites_approve_request_to_join_team(): raise AttributeError("tag 'domain_invites_approve_request_to_join_team' not set") @@ -23832,7 +25653,7 @@ def get_domain_invites_decline_request_to_join_team(self): Only call this if :meth:`is_domain_invites_decline_request_to_join_team` is true. - :rtype: team_log.DomainInvitesDeclineRequestToJoinTeamType + :rtype: DomainInvitesDeclineRequestToJoinTeamType """ if not self.is_domain_invites_decline_request_to_join_team(): raise AttributeError("tag 'domain_invites_decline_request_to_join_team' not set") @@ -23845,7 +25666,7 @@ def get_domain_invites_email_existing_users(self): Only call this if :meth:`is_domain_invites_email_existing_users` is true. - :rtype: team_log.DomainInvitesEmailExistingUsersType + :rtype: DomainInvitesEmailExistingUsersType """ if not self.is_domain_invites_email_existing_users(): raise AttributeError("tag 'domain_invites_email_existing_users' not set") @@ -23857,7 +25678,7 @@ def get_domain_invites_request_to_join_team(self): Only call this if :meth:`is_domain_invites_request_to_join_team` is true. - :rtype: team_log.DomainInvitesRequestToJoinTeamType + :rtype: DomainInvitesRequestToJoinTeamType """ if not self.is_domain_invites_request_to_join_team(): raise AttributeError("tag 'domain_invites_request_to_join_team' not set") @@ -23870,7 +25691,7 @@ def get_domain_invites_set_invite_new_user_pref_to_no(self): Only call this if :meth:`is_domain_invites_set_invite_new_user_pref_to_no` is true. - :rtype: team_log.DomainInvitesSetInviteNewUserPrefToNoType + :rtype: DomainInvitesSetInviteNewUserPrefToNoType """ if not self.is_domain_invites_set_invite_new_user_pref_to_no(): raise AttributeError("tag 'domain_invites_set_invite_new_user_pref_to_no' not set") @@ -23883,7 +25704,7 @@ def get_domain_invites_set_invite_new_user_pref_to_yes(self): Only call this if :meth:`is_domain_invites_set_invite_new_user_pref_to_yes` is true. - :rtype: team_log.DomainInvitesSetInviteNewUserPrefToYesType + :rtype: DomainInvitesSetInviteNewUserPrefToYesType """ if not self.is_domain_invites_set_invite_new_user_pref_to_yes(): raise AttributeError("tag 'domain_invites_set_invite_new_user_pref_to_yes' not set") @@ -23895,7 +25716,7 @@ def get_domain_verification_add_domain_fail(self): Only call this if :meth:`is_domain_verification_add_domain_fail` is true. - :rtype: team_log.DomainVerificationAddDomainFailType + :rtype: DomainVerificationAddDomainFailType """ if not self.is_domain_verification_add_domain_fail(): raise AttributeError("tag 'domain_verification_add_domain_fail' not set") @@ -23907,7 +25728,7 @@ def get_domain_verification_add_domain_success(self): Only call this if :meth:`is_domain_verification_add_domain_success` is true. - :rtype: team_log.DomainVerificationAddDomainSuccessType + :rtype: DomainVerificationAddDomainSuccessType """ if not self.is_domain_verification_add_domain_success(): raise AttributeError("tag 'domain_verification_add_domain_success' not set") @@ -23919,7 +25740,7 @@ def get_domain_verification_remove_domain(self): Only call this if :meth:`is_domain_verification_remove_domain` is true. - :rtype: team_log.DomainVerificationRemoveDomainType + :rtype: DomainVerificationRemoveDomainType """ if not self.is_domain_verification_remove_domain(): raise AttributeError("tag 'domain_verification_remove_domain' not set") @@ -23931,7 +25752,7 @@ def get_enabled_domain_invites(self): Only call this if :meth:`is_enabled_domain_invites` is true. - :rtype: team_log.EnabledDomainInvitesType + :rtype: EnabledDomainInvitesType """ if not self.is_enabled_domain_invites(): raise AttributeError("tag 'enabled_domain_invites' not set") @@ -23943,7 +25764,7 @@ def get_create_folder(self): Only call this if :meth:`is_create_folder` is true. - :rtype: team_log.CreateFolderType + :rtype: CreateFolderType """ if not self.is_create_folder(): raise AttributeError("tag 'create_folder' not set") @@ -23955,7 +25776,7 @@ def get_file_add(self): Only call this if :meth:`is_file_add` is true. - :rtype: team_log.FileAddType + :rtype: FileAddType """ if not self.is_file_add(): raise AttributeError("tag 'file_add' not set") @@ -23967,7 +25788,7 @@ def get_file_copy(self): Only call this if :meth:`is_file_copy` is true. - :rtype: team_log.FileCopyType + :rtype: FileCopyType """ if not self.is_file_copy(): raise AttributeError("tag 'file_copy' not set") @@ -23979,7 +25800,7 @@ def get_file_delete(self): Only call this if :meth:`is_file_delete` is true. - :rtype: team_log.FileDeleteType + :rtype: FileDeleteType """ if not self.is_file_delete(): raise AttributeError("tag 'file_delete' not set") @@ -23991,7 +25812,7 @@ def get_file_download(self): Only call this if :meth:`is_file_download` is true. - :rtype: team_log.FileDownloadType + :rtype: FileDownloadType """ if not self.is_file_download(): raise AttributeError("tag 'file_download' not set") @@ -24003,7 +25824,7 @@ def get_file_edit(self): Only call this if :meth:`is_file_edit` is true. - :rtype: team_log.FileEditType + :rtype: FileEditType """ if not self.is_file_edit(): raise AttributeError("tag 'file_edit' not set") @@ -24015,7 +25836,7 @@ def get_file_get_copy_reference(self): Only call this if :meth:`is_file_get_copy_reference` is true. - :rtype: team_log.FileGetCopyReferenceType + :rtype: FileGetCopyReferenceType """ if not self.is_file_get_copy_reference(): raise AttributeError("tag 'file_get_copy_reference' not set") @@ -24027,7 +25848,7 @@ def get_file_move(self): Only call this if :meth:`is_file_move` is true. - :rtype: team_log.FileMoveType + :rtype: FileMoveType """ if not self.is_file_move(): raise AttributeError("tag 'file_move' not set") @@ -24039,7 +25860,7 @@ def get_file_permanently_delete(self): Only call this if :meth:`is_file_permanently_delete` is true. - :rtype: team_log.FilePermanentlyDeleteType + :rtype: FilePermanentlyDeleteType """ if not self.is_file_permanently_delete(): raise AttributeError("tag 'file_permanently_delete' not set") @@ -24051,7 +25872,7 @@ def get_file_preview(self): Only call this if :meth:`is_file_preview` is true. - :rtype: team_log.FilePreviewType + :rtype: FilePreviewType """ if not self.is_file_preview(): raise AttributeError("tag 'file_preview' not set") @@ -24063,7 +25884,7 @@ def get_file_rename(self): Only call this if :meth:`is_file_rename` is true. - :rtype: team_log.FileRenameType + :rtype: FileRenameType """ if not self.is_file_rename(): raise AttributeError("tag 'file_rename' not set") @@ -24075,7 +25896,7 @@ def get_file_restore(self): Only call this if :meth:`is_file_restore` is true. - :rtype: team_log.FileRestoreType + :rtype: FileRestoreType """ if not self.is_file_restore(): raise AttributeError("tag 'file_restore' not set") @@ -24087,7 +25908,7 @@ def get_file_revert(self): Only call this if :meth:`is_file_revert` is true. - :rtype: team_log.FileRevertType + :rtype: FileRevertType """ if not self.is_file_revert(): raise AttributeError("tag 'file_revert' not set") @@ -24099,7 +25920,7 @@ def get_file_rollback_changes(self): Only call this if :meth:`is_file_rollback_changes` is true. - :rtype: team_log.FileRollbackChangesType + :rtype: FileRollbackChangesType """ if not self.is_file_rollback_changes(): raise AttributeError("tag 'file_rollback_changes' not set") @@ -24111,7 +25932,7 @@ def get_file_save_copy_reference(self): Only call this if :meth:`is_file_save_copy_reference` is true. - :rtype: team_log.FileSaveCopyReferenceType + :rtype: FileSaveCopyReferenceType """ if not self.is_file_save_copy_reference(): raise AttributeError("tag 'file_save_copy_reference' not set") @@ -24123,7 +25944,7 @@ def get_file_request_change(self): Only call this if :meth:`is_file_request_change` is true. - :rtype: team_log.FileRequestChangeType + :rtype: FileRequestChangeType """ if not self.is_file_request_change(): raise AttributeError("tag 'file_request_change' not set") @@ -24135,7 +25956,7 @@ def get_file_request_close(self): Only call this if :meth:`is_file_request_close` is true. - :rtype: team_log.FileRequestCloseType + :rtype: FileRequestCloseType """ if not self.is_file_request_close(): raise AttributeError("tag 'file_request_close' not set") @@ -24147,19 +25968,31 @@ def get_file_request_create(self): Only call this if :meth:`is_file_request_create` is true. - :rtype: team_log.FileRequestCreateType + :rtype: FileRequestCreateType """ if not self.is_file_request_create(): raise AttributeError("tag 'file_request_create' not set") return self._value + def get_file_request_delete(self): + """ + (file_requests) Delete file request + + Only call this if :meth:`is_file_request_delete` is true. + + :rtype: FileRequestDeleteType + """ + if not self.is_file_request_delete(): + raise AttributeError("tag 'file_request_delete' not set") + return self._value + def get_file_request_receive_file(self): """ (file_requests) Received files for file request Only call this if :meth:`is_file_request_receive_file` is true. - :rtype: team_log.FileRequestReceiveFileType + :rtype: FileRequestReceiveFileType """ if not self.is_file_request_receive_file(): raise AttributeError("tag 'file_request_receive_file' not set") @@ -24171,7 +26004,7 @@ def get_group_add_external_id(self): Only call this if :meth:`is_group_add_external_id` is true. - :rtype: team_log.GroupAddExternalIdType + :rtype: GroupAddExternalIdType """ if not self.is_group_add_external_id(): raise AttributeError("tag 'group_add_external_id' not set") @@ -24183,7 +26016,7 @@ def get_group_add_member(self): Only call this if :meth:`is_group_add_member` is true. - :rtype: team_log.GroupAddMemberType + :rtype: GroupAddMemberType """ if not self.is_group_add_member(): raise AttributeError("tag 'group_add_member' not set") @@ -24195,7 +26028,7 @@ def get_group_change_external_id(self): Only call this if :meth:`is_group_change_external_id` is true. - :rtype: team_log.GroupChangeExternalIdType + :rtype: GroupChangeExternalIdType """ if not self.is_group_change_external_id(): raise AttributeError("tag 'group_change_external_id' not set") @@ -24207,7 +26040,7 @@ def get_group_change_management_type(self): Only call this if :meth:`is_group_change_management_type` is true. - :rtype: team_log.GroupChangeManagementTypeType + :rtype: GroupChangeManagementTypeType """ if not self.is_group_change_management_type(): raise AttributeError("tag 'group_change_management_type' not set") @@ -24219,7 +26052,7 @@ def get_group_change_member_role(self): Only call this if :meth:`is_group_change_member_role` is true. - :rtype: team_log.GroupChangeMemberRoleType + :rtype: GroupChangeMemberRoleType """ if not self.is_group_change_member_role(): raise AttributeError("tag 'group_change_member_role' not set") @@ -24231,7 +26064,7 @@ def get_group_create(self): Only call this if :meth:`is_group_create` is true. - :rtype: team_log.GroupCreateType + :rtype: GroupCreateType """ if not self.is_group_create(): raise AttributeError("tag 'group_create' not set") @@ -24243,7 +26076,7 @@ def get_group_delete(self): Only call this if :meth:`is_group_delete` is true. - :rtype: team_log.GroupDeleteType + :rtype: GroupDeleteType """ if not self.is_group_delete(): raise AttributeError("tag 'group_delete' not set") @@ -24255,7 +26088,7 @@ def get_group_description_updated(self): Only call this if :meth:`is_group_description_updated` is true. - :rtype: team_log.GroupDescriptionUpdatedType + :rtype: GroupDescriptionUpdatedType """ if not self.is_group_description_updated(): raise AttributeError("tag 'group_description_updated' not set") @@ -24267,7 +26100,7 @@ def get_group_join_policy_updated(self): Only call this if :meth:`is_group_join_policy_updated` is true. - :rtype: team_log.GroupJoinPolicyUpdatedType + :rtype: GroupJoinPolicyUpdatedType """ if not self.is_group_join_policy_updated(): raise AttributeError("tag 'group_join_policy_updated' not set") @@ -24279,7 +26112,7 @@ def get_group_moved(self): Only call this if :meth:`is_group_moved` is true. - :rtype: team_log.GroupMovedType + :rtype: GroupMovedType """ if not self.is_group_moved(): raise AttributeError("tag 'group_moved' not set") @@ -24291,7 +26124,7 @@ def get_group_remove_external_id(self): Only call this if :meth:`is_group_remove_external_id` is true. - :rtype: team_log.GroupRemoveExternalIdType + :rtype: GroupRemoveExternalIdType """ if not self.is_group_remove_external_id(): raise AttributeError("tag 'group_remove_external_id' not set") @@ -24303,7 +26136,7 @@ def get_group_remove_member(self): Only call this if :meth:`is_group_remove_member` is true. - :rtype: team_log.GroupRemoveMemberType + :rtype: GroupRemoveMemberType """ if not self.is_group_remove_member(): raise AttributeError("tag 'group_remove_member' not set") @@ -24315,7 +26148,7 @@ def get_group_rename(self): Only call this if :meth:`is_group_rename` is true. - :rtype: team_log.GroupRenameType + :rtype: GroupRenameType """ if not self.is_group_rename(): raise AttributeError("tag 'group_rename' not set") @@ -24328,19 +26161,43 @@ def get_emm_error(self): Only call this if :meth:`is_emm_error` is true. - :rtype: team_log.EmmErrorType + :rtype: EmmErrorType """ if not self.is_emm_error(): raise AttributeError("tag 'emm_error' not set") return self._value + def get_guest_admin_signed_in_via_trusted_teams(self): + """ + (logins) Started trusted team admin session + + Only call this if :meth:`is_guest_admin_signed_in_via_trusted_teams` is true. + + :rtype: GuestAdminSignedInViaTrustedTeamsType + """ + if not self.is_guest_admin_signed_in_via_trusted_teams(): + raise AttributeError("tag 'guest_admin_signed_in_via_trusted_teams' not set") + return self._value + + def get_guest_admin_signed_out_via_trusted_teams(self): + """ + (logins) Ended trusted team admin session + + Only call this if :meth:`is_guest_admin_signed_out_via_trusted_teams` is true. + + :rtype: GuestAdminSignedOutViaTrustedTeamsType + """ + if not self.is_guest_admin_signed_out_via_trusted_teams(): + raise AttributeError("tag 'guest_admin_signed_out_via_trusted_teams' not set") + return self._value + def get_login_fail(self): """ (logins) Failed to sign in Only call this if :meth:`is_login_fail` is true. - :rtype: team_log.LoginFailType + :rtype: LoginFailType """ if not self.is_login_fail(): raise AttributeError("tag 'login_fail' not set") @@ -24352,7 +26209,7 @@ def get_login_success(self): Only call this if :meth:`is_login_success` is true. - :rtype: team_log.LoginSuccessType + :rtype: LoginSuccessType """ if not self.is_login_success(): raise AttributeError("tag 'login_success' not set") @@ -24364,7 +26221,7 @@ def get_logout(self): Only call this if :meth:`is_logout` is true. - :rtype: team_log.LogoutType + :rtype: LogoutType """ if not self.is_logout(): raise AttributeError("tag 'logout' not set") @@ -24376,7 +26233,7 @@ def get_reseller_support_session_end(self): Only call this if :meth:`is_reseller_support_session_end` is true. - :rtype: team_log.ResellerSupportSessionEndType + :rtype: ResellerSupportSessionEndType """ if not self.is_reseller_support_session_end(): raise AttributeError("tag 'reseller_support_session_end' not set") @@ -24388,7 +26245,7 @@ def get_reseller_support_session_start(self): Only call this if :meth:`is_reseller_support_session_start` is true. - :rtype: team_log.ResellerSupportSessionStartType + :rtype: ResellerSupportSessionStartType """ if not self.is_reseller_support_session_start(): raise AttributeError("tag 'reseller_support_session_start' not set") @@ -24400,7 +26257,7 @@ def get_sign_in_as_session_end(self): Only call this if :meth:`is_sign_in_as_session_end` is true. - :rtype: team_log.SignInAsSessionEndType + :rtype: SignInAsSessionEndType """ if not self.is_sign_in_as_session_end(): raise AttributeError("tag 'sign_in_as_session_end' not set") @@ -24412,7 +26269,7 @@ def get_sign_in_as_session_start(self): Only call this if :meth:`is_sign_in_as_session_start` is true. - :rtype: team_log.SignInAsSessionStartType + :rtype: SignInAsSessionStartType """ if not self.is_sign_in_as_session_start(): raise AttributeError("tag 'sign_in_as_session_start' not set") @@ -24425,19 +26282,31 @@ def get_sso_error(self): Only call this if :meth:`is_sso_error` is true. - :rtype: team_log.SsoErrorType + :rtype: SsoErrorType """ if not self.is_sso_error(): raise AttributeError("tag 'sso_error' not set") return self._value + def get_member_add_external_id(self): + """ + (members) Added an external ID for team member + + Only call this if :meth:`is_member_add_external_id` is true. + + :rtype: MemberAddExternalIdType + """ + if not self.is_member_add_external_id(): + raise AttributeError("tag 'member_add_external_id' not set") + return self._value + def get_member_add_name(self): """ (members) Added team member name Only call this if :meth:`is_member_add_name` is true. - :rtype: team_log.MemberAddNameType + :rtype: MemberAddNameType """ if not self.is_member_add_name(): raise AttributeError("tag 'member_add_name' not set") @@ -24449,7 +26318,7 @@ def get_member_change_admin_role(self): Only call this if :meth:`is_member_change_admin_role` is true. - :rtype: team_log.MemberChangeAdminRoleType + :rtype: MemberChangeAdminRoleType """ if not self.is_member_change_admin_role(): raise AttributeError("tag 'member_change_admin_role' not set") @@ -24461,12 +26330,24 @@ def get_member_change_email(self): Only call this if :meth:`is_member_change_email` is true. - :rtype: team_log.MemberChangeEmailType + :rtype: MemberChangeEmailType """ if not self.is_member_change_email(): raise AttributeError("tag 'member_change_email' not set") return self._value + def get_member_change_external_id(self): + """ + (members) Changed the external ID for team member + + Only call this if :meth:`is_member_change_external_id` is true. + + :rtype: MemberChangeExternalIdType + """ + if not self.is_member_change_external_id(): + raise AttributeError("tag 'member_change_external_id' not set") + return self._value + def get_member_change_membership_type(self): """ (members) Changed membership type (limited/full) of member (deprecated, @@ -24474,7 +26355,7 @@ def get_member_change_membership_type(self): Only call this if :meth:`is_member_change_membership_type` is true. - :rtype: team_log.MemberChangeMembershipTypeType + :rtype: MemberChangeMembershipTypeType """ if not self.is_member_change_membership_type(): raise AttributeError("tag 'member_change_membership_type' not set") @@ -24486,7 +26367,7 @@ def get_member_change_name(self): Only call this if :meth:`is_member_change_name` is true. - :rtype: team_log.MemberChangeNameType + :rtype: MemberChangeNameType """ if not self.is_member_change_name(): raise AttributeError("tag 'member_change_name' not set") @@ -24498,7 +26379,7 @@ def get_member_change_status(self): Only call this if :meth:`is_member_change_status` is true. - :rtype: team_log.MemberChangeStatusType + :rtype: MemberChangeStatusType """ if not self.is_member_change_status(): raise AttributeError("tag 'member_change_status' not set") @@ -24510,7 +26391,7 @@ def get_member_delete_manual_contacts(self): Only call this if :meth:`is_member_delete_manual_contacts` is true. - :rtype: team_log.MemberDeleteManualContactsType + :rtype: MemberDeleteManualContactsType """ if not self.is_member_delete_manual_contacts(): raise AttributeError("tag 'member_delete_manual_contacts' not set") @@ -24522,19 +26403,31 @@ def get_member_permanently_delete_account_contents(self): Only call this if :meth:`is_member_permanently_delete_account_contents` is true. - :rtype: team_log.MemberPermanentlyDeleteAccountContentsType + :rtype: MemberPermanentlyDeleteAccountContentsType """ if not self.is_member_permanently_delete_account_contents(): raise AttributeError("tag 'member_permanently_delete_account_contents' not set") return self._value + def get_member_remove_external_id(self): + """ + (members) Removed the external ID for team member + + Only call this if :meth:`is_member_remove_external_id` is true. + + :rtype: MemberRemoveExternalIdType + """ + if not self.is_member_remove_external_id(): + raise AttributeError("tag 'member_remove_external_id' not set") + return self._value + def get_member_space_limits_add_custom_quota(self): """ (members) Set custom member space limit Only call this if :meth:`is_member_space_limits_add_custom_quota` is true. - :rtype: team_log.MemberSpaceLimitsAddCustomQuotaType + :rtype: MemberSpaceLimitsAddCustomQuotaType """ if not self.is_member_space_limits_add_custom_quota(): raise AttributeError("tag 'member_space_limits_add_custom_quota' not set") @@ -24546,7 +26439,7 @@ def get_member_space_limits_change_custom_quota(self): Only call this if :meth:`is_member_space_limits_change_custom_quota` is true. - :rtype: team_log.MemberSpaceLimitsChangeCustomQuotaType + :rtype: MemberSpaceLimitsChangeCustomQuotaType """ if not self.is_member_space_limits_change_custom_quota(): raise AttributeError("tag 'member_space_limits_change_custom_quota' not set") @@ -24558,7 +26451,7 @@ def get_member_space_limits_change_status(self): Only call this if :meth:`is_member_space_limits_change_status` is true. - :rtype: team_log.MemberSpaceLimitsChangeStatusType + :rtype: MemberSpaceLimitsChangeStatusType """ if not self.is_member_space_limits_change_status(): raise AttributeError("tag 'member_space_limits_change_status' not set") @@ -24570,7 +26463,7 @@ def get_member_space_limits_remove_custom_quota(self): Only call this if :meth:`is_member_space_limits_remove_custom_quota` is true. - :rtype: team_log.MemberSpaceLimitsRemoveCustomQuotaType + :rtype: MemberSpaceLimitsRemoveCustomQuotaType """ if not self.is_member_space_limits_remove_custom_quota(): raise AttributeError("tag 'member_space_limits_remove_custom_quota' not set") @@ -24582,7 +26475,7 @@ def get_member_suggest(self): Only call this if :meth:`is_member_suggest` is true. - :rtype: team_log.MemberSuggestType + :rtype: MemberSuggestType """ if not self.is_member_suggest(): raise AttributeError("tag 'member_suggest' not set") @@ -24595,7 +26488,7 @@ def get_member_transfer_account_contents(self): Only call this if :meth:`is_member_transfer_account_contents` is true. - :rtype: team_log.MemberTransferAccountContentsType + :rtype: MemberTransferAccountContentsType """ if not self.is_member_transfer_account_contents(): raise AttributeError("tag 'member_transfer_account_contents' not set") @@ -24607,7 +26500,7 @@ def get_secondary_mails_policy_changed(self): Only call this if :meth:`is_secondary_mails_policy_changed` is true. - :rtype: team_log.SecondaryMailsPolicyChangedType + :rtype: SecondaryMailsPolicyChangedType """ if not self.is_secondary_mails_policy_changed(): raise AttributeError("tag 'secondary_mails_policy_changed' not set") @@ -24619,7 +26512,7 @@ def get_paper_content_add_member(self): Only call this if :meth:`is_paper_content_add_member` is true. - :rtype: team_log.PaperContentAddMemberType + :rtype: PaperContentAddMemberType """ if not self.is_paper_content_add_member(): raise AttributeError("tag 'paper_content_add_member' not set") @@ -24631,7 +26524,7 @@ def get_paper_content_add_to_folder(self): Only call this if :meth:`is_paper_content_add_to_folder` is true. - :rtype: team_log.PaperContentAddToFolderType + :rtype: PaperContentAddToFolderType """ if not self.is_paper_content_add_to_folder(): raise AttributeError("tag 'paper_content_add_to_folder' not set") @@ -24643,7 +26536,7 @@ def get_paper_content_archive(self): Only call this if :meth:`is_paper_content_archive` is true. - :rtype: team_log.PaperContentArchiveType + :rtype: PaperContentArchiveType """ if not self.is_paper_content_archive(): raise AttributeError("tag 'paper_content_archive' not set") @@ -24655,7 +26548,7 @@ def get_paper_content_create(self): Only call this if :meth:`is_paper_content_create` is true. - :rtype: team_log.PaperContentCreateType + :rtype: PaperContentCreateType """ if not self.is_paper_content_create(): raise AttributeError("tag 'paper_content_create' not set") @@ -24667,7 +26560,7 @@ def get_paper_content_permanently_delete(self): Only call this if :meth:`is_paper_content_permanently_delete` is true. - :rtype: team_log.PaperContentPermanentlyDeleteType + :rtype: PaperContentPermanentlyDeleteType """ if not self.is_paper_content_permanently_delete(): raise AttributeError("tag 'paper_content_permanently_delete' not set") @@ -24679,7 +26572,7 @@ def get_paper_content_remove_from_folder(self): Only call this if :meth:`is_paper_content_remove_from_folder` is true. - :rtype: team_log.PaperContentRemoveFromFolderType + :rtype: PaperContentRemoveFromFolderType """ if not self.is_paper_content_remove_from_folder(): raise AttributeError("tag 'paper_content_remove_from_folder' not set") @@ -24691,7 +26584,7 @@ def get_paper_content_remove_member(self): Only call this if :meth:`is_paper_content_remove_member` is true. - :rtype: team_log.PaperContentRemoveMemberType + :rtype: PaperContentRemoveMemberType """ if not self.is_paper_content_remove_member(): raise AttributeError("tag 'paper_content_remove_member' not set") @@ -24703,7 +26596,7 @@ def get_paper_content_rename(self): Only call this if :meth:`is_paper_content_rename` is true. - :rtype: team_log.PaperContentRenameType + :rtype: PaperContentRenameType """ if not self.is_paper_content_rename(): raise AttributeError("tag 'paper_content_rename' not set") @@ -24715,7 +26608,7 @@ def get_paper_content_restore(self): Only call this if :meth:`is_paper_content_restore` is true. - :rtype: team_log.PaperContentRestoreType + :rtype: PaperContentRestoreType """ if not self.is_paper_content_restore(): raise AttributeError("tag 'paper_content_restore' not set") @@ -24727,7 +26620,7 @@ def get_paper_doc_add_comment(self): Only call this if :meth:`is_paper_doc_add_comment` is true. - :rtype: team_log.PaperDocAddCommentType + :rtype: PaperDocAddCommentType """ if not self.is_paper_doc_add_comment(): raise AttributeError("tag 'paper_doc_add_comment' not set") @@ -24739,7 +26632,7 @@ def get_paper_doc_change_member_role(self): Only call this if :meth:`is_paper_doc_change_member_role` is true. - :rtype: team_log.PaperDocChangeMemberRoleType + :rtype: PaperDocChangeMemberRoleType """ if not self.is_paper_doc_change_member_role(): raise AttributeError("tag 'paper_doc_change_member_role' not set") @@ -24751,7 +26644,7 @@ def get_paper_doc_change_sharing_policy(self): Only call this if :meth:`is_paper_doc_change_sharing_policy` is true. - :rtype: team_log.PaperDocChangeSharingPolicyType + :rtype: PaperDocChangeSharingPolicyType """ if not self.is_paper_doc_change_sharing_policy(): raise AttributeError("tag 'paper_doc_change_sharing_policy' not set") @@ -24763,7 +26656,7 @@ def get_paper_doc_change_subscription(self): Only call this if :meth:`is_paper_doc_change_subscription` is true. - :rtype: team_log.PaperDocChangeSubscriptionType + :rtype: PaperDocChangeSubscriptionType """ if not self.is_paper_doc_change_subscription(): raise AttributeError("tag 'paper_doc_change_subscription' not set") @@ -24775,7 +26668,7 @@ def get_paper_doc_deleted(self): Only call this if :meth:`is_paper_doc_deleted` is true. - :rtype: team_log.PaperDocDeletedType + :rtype: PaperDocDeletedType """ if not self.is_paper_doc_deleted(): raise AttributeError("tag 'paper_doc_deleted' not set") @@ -24787,7 +26680,7 @@ def get_paper_doc_delete_comment(self): Only call this if :meth:`is_paper_doc_delete_comment` is true. - :rtype: team_log.PaperDocDeleteCommentType + :rtype: PaperDocDeleteCommentType """ if not self.is_paper_doc_delete_comment(): raise AttributeError("tag 'paper_doc_delete_comment' not set") @@ -24799,7 +26692,7 @@ def get_paper_doc_download(self): Only call this if :meth:`is_paper_doc_download` is true. - :rtype: team_log.PaperDocDownloadType + :rtype: PaperDocDownloadType """ if not self.is_paper_doc_download(): raise AttributeError("tag 'paper_doc_download' not set") @@ -24811,7 +26704,7 @@ def get_paper_doc_edit(self): Only call this if :meth:`is_paper_doc_edit` is true. - :rtype: team_log.PaperDocEditType + :rtype: PaperDocEditType """ if not self.is_paper_doc_edit(): raise AttributeError("tag 'paper_doc_edit' not set") @@ -24823,7 +26716,7 @@ def get_paper_doc_edit_comment(self): Only call this if :meth:`is_paper_doc_edit_comment` is true. - :rtype: team_log.PaperDocEditCommentType + :rtype: PaperDocEditCommentType """ if not self.is_paper_doc_edit_comment(): raise AttributeError("tag 'paper_doc_edit_comment' not set") @@ -24836,7 +26729,7 @@ def get_paper_doc_followed(self): Only call this if :meth:`is_paper_doc_followed` is true. - :rtype: team_log.PaperDocFollowedType + :rtype: PaperDocFollowedType """ if not self.is_paper_doc_followed(): raise AttributeError("tag 'paper_doc_followed' not set") @@ -24848,7 +26741,7 @@ def get_paper_doc_mention(self): Only call this if :meth:`is_paper_doc_mention` is true. - :rtype: team_log.PaperDocMentionType + :rtype: PaperDocMentionType """ if not self.is_paper_doc_mention(): raise AttributeError("tag 'paper_doc_mention' not set") @@ -24860,7 +26753,7 @@ def get_paper_doc_ownership_changed(self): Only call this if :meth:`is_paper_doc_ownership_changed` is true. - :rtype: team_log.PaperDocOwnershipChangedType + :rtype: PaperDocOwnershipChangedType """ if not self.is_paper_doc_ownership_changed(): raise AttributeError("tag 'paper_doc_ownership_changed' not set") @@ -24872,7 +26765,7 @@ def get_paper_doc_request_access(self): Only call this if :meth:`is_paper_doc_request_access` is true. - :rtype: team_log.PaperDocRequestAccessType + :rtype: PaperDocRequestAccessType """ if not self.is_paper_doc_request_access(): raise AttributeError("tag 'paper_doc_request_access' not set") @@ -24884,7 +26777,7 @@ def get_paper_doc_resolve_comment(self): Only call this if :meth:`is_paper_doc_resolve_comment` is true. - :rtype: team_log.PaperDocResolveCommentType + :rtype: PaperDocResolveCommentType """ if not self.is_paper_doc_resolve_comment(): raise AttributeError("tag 'paper_doc_resolve_comment' not set") @@ -24896,7 +26789,7 @@ def get_paper_doc_revert(self): Only call this if :meth:`is_paper_doc_revert` is true. - :rtype: team_log.PaperDocRevertType + :rtype: PaperDocRevertType """ if not self.is_paper_doc_revert(): raise AttributeError("tag 'paper_doc_revert' not set") @@ -24908,7 +26801,7 @@ def get_paper_doc_slack_share(self): Only call this if :meth:`is_paper_doc_slack_share` is true. - :rtype: team_log.PaperDocSlackShareType + :rtype: PaperDocSlackShareType """ if not self.is_paper_doc_slack_share(): raise AttributeError("tag 'paper_doc_slack_share' not set") @@ -24920,7 +26813,7 @@ def get_paper_doc_team_invite(self): Only call this if :meth:`is_paper_doc_team_invite` is true. - :rtype: team_log.PaperDocTeamInviteType + :rtype: PaperDocTeamInviteType """ if not self.is_paper_doc_team_invite(): raise AttributeError("tag 'paper_doc_team_invite' not set") @@ -24932,7 +26825,7 @@ def get_paper_doc_trashed(self): Only call this if :meth:`is_paper_doc_trashed` is true. - :rtype: team_log.PaperDocTrashedType + :rtype: PaperDocTrashedType """ if not self.is_paper_doc_trashed(): raise AttributeError("tag 'paper_doc_trashed' not set") @@ -24944,7 +26837,7 @@ def get_paper_doc_unresolve_comment(self): Only call this if :meth:`is_paper_doc_unresolve_comment` is true. - :rtype: team_log.PaperDocUnresolveCommentType + :rtype: PaperDocUnresolveCommentType """ if not self.is_paper_doc_unresolve_comment(): raise AttributeError("tag 'paper_doc_unresolve_comment' not set") @@ -24956,7 +26849,7 @@ def get_paper_doc_untrashed(self): Only call this if :meth:`is_paper_doc_untrashed` is true. - :rtype: team_log.PaperDocUntrashedType + :rtype: PaperDocUntrashedType """ if not self.is_paper_doc_untrashed(): raise AttributeError("tag 'paper_doc_untrashed' not set") @@ -24968,7 +26861,7 @@ def get_paper_doc_view(self): Only call this if :meth:`is_paper_doc_view` is true. - :rtype: team_log.PaperDocViewType + :rtype: PaperDocViewType """ if not self.is_paper_doc_view(): raise AttributeError("tag 'paper_doc_view' not set") @@ -24981,7 +26874,7 @@ def get_paper_external_view_allow(self): Only call this if :meth:`is_paper_external_view_allow` is true. - :rtype: team_log.PaperExternalViewAllowType + :rtype: PaperExternalViewAllowType """ if not self.is_paper_external_view_allow(): raise AttributeError("tag 'paper_external_view_allow' not set") @@ -24994,7 +26887,7 @@ def get_paper_external_view_default_team(self): Only call this if :meth:`is_paper_external_view_default_team` is true. - :rtype: team_log.PaperExternalViewDefaultTeamType + :rtype: PaperExternalViewDefaultTeamType """ if not self.is_paper_external_view_default_team(): raise AttributeError("tag 'paper_external_view_default_team' not set") @@ -25007,7 +26900,7 @@ def get_paper_external_view_forbid(self): Only call this if :meth:`is_paper_external_view_forbid` is true. - :rtype: team_log.PaperExternalViewForbidType + :rtype: PaperExternalViewForbidType """ if not self.is_paper_external_view_forbid(): raise AttributeError("tag 'paper_external_view_forbid' not set") @@ -25019,7 +26912,7 @@ def get_paper_folder_change_subscription(self): Only call this if :meth:`is_paper_folder_change_subscription` is true. - :rtype: team_log.PaperFolderChangeSubscriptionType + :rtype: PaperFolderChangeSubscriptionType """ if not self.is_paper_folder_change_subscription(): raise AttributeError("tag 'paper_folder_change_subscription' not set") @@ -25031,7 +26924,7 @@ def get_paper_folder_deleted(self): Only call this if :meth:`is_paper_folder_deleted` is true. - :rtype: team_log.PaperFolderDeletedType + :rtype: PaperFolderDeletedType """ if not self.is_paper_folder_deleted(): raise AttributeError("tag 'paper_folder_deleted' not set") @@ -25044,7 +26937,7 @@ def get_paper_folder_followed(self): Only call this if :meth:`is_paper_folder_followed` is true. - :rtype: team_log.PaperFolderFollowedType + :rtype: PaperFolderFollowedType """ if not self.is_paper_folder_followed(): raise AttributeError("tag 'paper_folder_followed' not set") @@ -25056,19 +26949,55 @@ def get_paper_folder_team_invite(self): Only call this if :meth:`is_paper_folder_team_invite` is true. - :rtype: team_log.PaperFolderTeamInviteType + :rtype: PaperFolderTeamInviteType """ if not self.is_paper_folder_team_invite(): raise AttributeError("tag 'paper_folder_team_invite' not set") return self._value + def get_paper_published_link_create(self): + """ + (paper) Published doc + + Only call this if :meth:`is_paper_published_link_create` is true. + + :rtype: PaperPublishedLinkCreateType + """ + if not self.is_paper_published_link_create(): + raise AttributeError("tag 'paper_published_link_create' not set") + return self._value + + def get_paper_published_link_disabled(self): + """ + (paper) Unpublished doc + + Only call this if :meth:`is_paper_published_link_disabled` is true. + + :rtype: PaperPublishedLinkDisabledType + """ + if not self.is_paper_published_link_disabled(): + raise AttributeError("tag 'paper_published_link_disabled' not set") + return self._value + + def get_paper_published_link_view(self): + """ + (paper) Viewed published doc + + Only call this if :meth:`is_paper_published_link_view` is true. + + :rtype: PaperPublishedLinkViewType + """ + if not self.is_paper_published_link_view(): + raise AttributeError("tag 'paper_published_link_view' not set") + return self._value + def get_password_change(self): """ (passwords) Changed password Only call this if :meth:`is_password_change` is true. - :rtype: team_log.PasswordChangeType + :rtype: PasswordChangeType """ if not self.is_password_change(): raise AttributeError("tag 'password_change' not set") @@ -25080,7 +27009,7 @@ def get_password_reset(self): Only call this if :meth:`is_password_reset` is true. - :rtype: team_log.PasswordResetType + :rtype: PasswordResetType """ if not self.is_password_reset(): raise AttributeError("tag 'password_reset' not set") @@ -25092,7 +27021,7 @@ def get_password_reset_all(self): Only call this if :meth:`is_password_reset_all` is true. - :rtype: team_log.PasswordResetAllType + :rtype: PasswordResetAllType """ if not self.is_password_reset_all(): raise AttributeError("tag 'password_reset_all' not set") @@ -25104,7 +27033,7 @@ def get_emm_create_exceptions_report(self): Only call this if :meth:`is_emm_create_exceptions_report` is true. - :rtype: team_log.EmmCreateExceptionsReportType + :rtype: EmmCreateExceptionsReportType """ if not self.is_emm_create_exceptions_report(): raise AttributeError("tag 'emm_create_exceptions_report' not set") @@ -25116,7 +27045,7 @@ def get_emm_create_usage_report(self): Only call this if :meth:`is_emm_create_usage_report` is true. - :rtype: team_log.EmmCreateUsageReportType + :rtype: EmmCreateUsageReportType """ if not self.is_emm_create_usage_report(): raise AttributeError("tag 'emm_create_usage_report' not set") @@ -25128,7 +27057,7 @@ def get_export_members_report(self): Only call this if :meth:`is_export_members_report` is true. - :rtype: team_log.ExportMembersReportType + :rtype: ExportMembersReportType """ if not self.is_export_members_report(): raise AttributeError("tag 'export_members_report' not set") @@ -25140,7 +27069,7 @@ def get_paper_admin_export_start(self): Only call this if :meth:`is_paper_admin_export_start` is true. - :rtype: team_log.PaperAdminExportStartType + :rtype: PaperAdminExportStartType """ if not self.is_paper_admin_export_start(): raise AttributeError("tag 'paper_admin_export_start' not set") @@ -25152,7 +27081,7 @@ def get_smart_sync_create_admin_privilege_report(self): Only call this if :meth:`is_smart_sync_create_admin_privilege_report` is true. - :rtype: team_log.SmartSyncCreateAdminPrivilegeReportType + :rtype: SmartSyncCreateAdminPrivilegeReportType """ if not self.is_smart_sync_create_admin_privilege_report(): raise AttributeError("tag 'smart_sync_create_admin_privilege_report' not set") @@ -25164,19 +27093,31 @@ def get_team_activity_create_report(self): Only call this if :meth:`is_team_activity_create_report` is true. - :rtype: team_log.TeamActivityCreateReportType + :rtype: TeamActivityCreateReportType """ if not self.is_team_activity_create_report(): raise AttributeError("tag 'team_activity_create_report' not set") return self._value + def get_team_activity_create_report_fail(self): + """ + (reports) Couldn't generate team activity report + + Only call this if :meth:`is_team_activity_create_report_fail` is true. + + :rtype: TeamActivityCreateReportFailType + """ + if not self.is_team_activity_create_report_fail(): + raise AttributeError("tag 'team_activity_create_report_fail' not set") + return self._value + def get_collection_share(self): """ (sharing) Shared album Only call this if :meth:`is_collection_share` is true. - :rtype: team_log.CollectionShareType + :rtype: CollectionShareType """ if not self.is_collection_share(): raise AttributeError("tag 'collection_share' not set") @@ -25189,7 +27130,7 @@ def get_note_acl_invite_only(self): Only call this if :meth:`is_note_acl_invite_only` is true. - :rtype: team_log.NoteAclInviteOnlyType + :rtype: NoteAclInviteOnlyType """ if not self.is_note_acl_invite_only(): raise AttributeError("tag 'note_acl_invite_only' not set") @@ -25202,7 +27143,7 @@ def get_note_acl_link(self): Only call this if :meth:`is_note_acl_link` is true. - :rtype: team_log.NoteAclLinkType + :rtype: NoteAclLinkType """ if not self.is_note_acl_link(): raise AttributeError("tag 'note_acl_link' not set") @@ -25215,7 +27156,7 @@ def get_note_acl_team_link(self): Only call this if :meth:`is_note_acl_team_link` is true. - :rtype: team_log.NoteAclTeamLinkType + :rtype: NoteAclTeamLinkType """ if not self.is_note_acl_team_link(): raise AttributeError("tag 'note_acl_team_link' not set") @@ -25227,7 +27168,7 @@ def get_note_shared(self): Only call this if :meth:`is_note_shared` is true. - :rtype: team_log.NoteSharedType + :rtype: NoteSharedType """ if not self.is_note_shared(): raise AttributeError("tag 'note_shared' not set") @@ -25239,7 +27180,7 @@ def get_note_share_receive(self): Only call this if :meth:`is_note_share_receive` is true. - :rtype: team_log.NoteShareReceiveType + :rtype: NoteShareReceiveType """ if not self.is_note_share_receive(): raise AttributeError("tag 'note_share_receive' not set") @@ -25251,7 +27192,7 @@ def get_open_note_shared(self): Only call this if :meth:`is_open_note_shared` is true. - :rtype: team_log.OpenNoteSharedType + :rtype: OpenNoteSharedType """ if not self.is_open_note_shared(): raise AttributeError("tag 'open_note_shared' not set") @@ -25263,7 +27204,7 @@ def get_sf_add_group(self): Only call this if :meth:`is_sf_add_group` is true. - :rtype: team_log.SfAddGroupType + :rtype: SfAddGroupType """ if not self.is_sf_add_group(): raise AttributeError("tag 'sf_add_group' not set") @@ -25276,7 +27217,7 @@ def get_sf_allow_non_members_to_view_shared_links(self): Only call this if :meth:`is_sf_allow_non_members_to_view_shared_links` is true. - :rtype: team_log.SfAllowNonMembersToViewSharedLinksType + :rtype: SfAllowNonMembersToViewSharedLinksType """ if not self.is_sf_allow_non_members_to_view_shared_links(): raise AttributeError("tag 'sf_allow_non_members_to_view_shared_links' not set") @@ -25289,7 +27230,7 @@ def get_sf_external_invite_warn(self): Only call this if :meth:`is_sf_external_invite_warn` is true. - :rtype: team_log.SfExternalInviteWarnType + :rtype: SfExternalInviteWarnType """ if not self.is_sf_external_invite_warn(): raise AttributeError("tag 'sf_external_invite_warn' not set") @@ -25302,7 +27243,7 @@ def get_sf_fb_invite(self): Only call this if :meth:`is_sf_fb_invite` is true. - :rtype: team_log.SfFbInviteType + :rtype: SfFbInviteType """ if not self.is_sf_fb_invite(): raise AttributeError("tag 'sf_fb_invite' not set") @@ -25315,7 +27256,7 @@ def get_sf_fb_invite_change_role(self): Only call this if :meth:`is_sf_fb_invite_change_role` is true. - :rtype: team_log.SfFbInviteChangeRoleType + :rtype: SfFbInviteChangeRoleType """ if not self.is_sf_fb_invite_change_role(): raise AttributeError("tag 'sf_fb_invite_change_role' not set") @@ -25328,7 +27269,7 @@ def get_sf_fb_uninvite(self): Only call this if :meth:`is_sf_fb_uninvite` is true. - :rtype: team_log.SfFbUninviteType + :rtype: SfFbUninviteType """ if not self.is_sf_fb_uninvite(): raise AttributeError("tag 'sf_fb_uninvite' not set") @@ -25340,7 +27281,7 @@ def get_sf_invite_group(self): Only call this if :meth:`is_sf_invite_group` is true. - :rtype: team_log.SfInviteGroupType + :rtype: SfInviteGroupType """ if not self.is_sf_invite_group(): raise AttributeError("tag 'sf_invite_group' not set") @@ -25352,7 +27293,7 @@ def get_sf_team_grant_access(self): Only call this if :meth:`is_sf_team_grant_access` is true. - :rtype: team_log.SfTeamGrantAccessType + :rtype: SfTeamGrantAccessType """ if not self.is_sf_team_grant_access(): raise AttributeError("tag 'sf_team_grant_access' not set") @@ -25365,7 +27306,7 @@ def get_sf_team_invite(self): Only call this if :meth:`is_sf_team_invite` is true. - :rtype: team_log.SfTeamInviteType + :rtype: SfTeamInviteType """ if not self.is_sf_team_invite(): raise AttributeError("tag 'sf_team_invite' not set") @@ -25378,7 +27319,7 @@ def get_sf_team_invite_change_role(self): Only call this if :meth:`is_sf_team_invite_change_role` is true. - :rtype: team_log.SfTeamInviteChangeRoleType + :rtype: SfTeamInviteChangeRoleType """ if not self.is_sf_team_invite_change_role(): raise AttributeError("tag 'sf_team_invite_change_role' not set") @@ -25391,7 +27332,7 @@ def get_sf_team_join(self): Only call this if :meth:`is_sf_team_join` is true. - :rtype: team_log.SfTeamJoinType + :rtype: SfTeamJoinType """ if not self.is_sf_team_join(): raise AttributeError("tag 'sf_team_join' not set") @@ -25404,7 +27345,7 @@ def get_sf_team_join_from_oob_link(self): Only call this if :meth:`is_sf_team_join_from_oob_link` is true. - :rtype: team_log.SfTeamJoinFromOobLinkType + :rtype: SfTeamJoinFromOobLinkType """ if not self.is_sf_team_join_from_oob_link(): raise AttributeError("tag 'sf_team_join_from_oob_link' not set") @@ -25417,7 +27358,7 @@ def get_sf_team_uninvite(self): Only call this if :meth:`is_sf_team_uninvite` is true. - :rtype: team_log.SfTeamUninviteType + :rtype: SfTeamUninviteType """ if not self.is_sf_team_uninvite(): raise AttributeError("tag 'sf_team_uninvite' not set") @@ -25429,7 +27370,7 @@ def get_shared_content_add_invitees(self): Only call this if :meth:`is_shared_content_add_invitees` is true. - :rtype: team_log.SharedContentAddInviteesType + :rtype: SharedContentAddInviteesType """ if not self.is_shared_content_add_invitees(): raise AttributeError("tag 'shared_content_add_invitees' not set") @@ -25441,7 +27382,7 @@ def get_shared_content_add_link_expiry(self): Only call this if :meth:`is_shared_content_add_link_expiry` is true. - :rtype: team_log.SharedContentAddLinkExpiryType + :rtype: SharedContentAddLinkExpiryType """ if not self.is_shared_content_add_link_expiry(): raise AttributeError("tag 'shared_content_add_link_expiry' not set") @@ -25453,7 +27394,7 @@ def get_shared_content_add_link_password(self): Only call this if :meth:`is_shared_content_add_link_password` is true. - :rtype: team_log.SharedContentAddLinkPasswordType + :rtype: SharedContentAddLinkPasswordType """ if not self.is_shared_content_add_link_password(): raise AttributeError("tag 'shared_content_add_link_password' not set") @@ -25465,7 +27406,7 @@ def get_shared_content_add_member(self): Only call this if :meth:`is_shared_content_add_member` is true. - :rtype: team_log.SharedContentAddMemberType + :rtype: SharedContentAddMemberType """ if not self.is_shared_content_add_member(): raise AttributeError("tag 'shared_content_add_member' not set") @@ -25477,7 +27418,7 @@ def get_shared_content_change_downloads_policy(self): Only call this if :meth:`is_shared_content_change_downloads_policy` is true. - :rtype: team_log.SharedContentChangeDownloadsPolicyType + :rtype: SharedContentChangeDownloadsPolicyType """ if not self.is_shared_content_change_downloads_policy(): raise AttributeError("tag 'shared_content_change_downloads_policy' not set") @@ -25490,7 +27431,7 @@ def get_shared_content_change_invitee_role(self): Only call this if :meth:`is_shared_content_change_invitee_role` is true. - :rtype: team_log.SharedContentChangeInviteeRoleType + :rtype: SharedContentChangeInviteeRoleType """ if not self.is_shared_content_change_invitee_role(): raise AttributeError("tag 'shared_content_change_invitee_role' not set") @@ -25502,7 +27443,7 @@ def get_shared_content_change_link_audience(self): Only call this if :meth:`is_shared_content_change_link_audience` is true. - :rtype: team_log.SharedContentChangeLinkAudienceType + :rtype: SharedContentChangeLinkAudienceType """ if not self.is_shared_content_change_link_audience(): raise AttributeError("tag 'shared_content_change_link_audience' not set") @@ -25514,7 +27455,7 @@ def get_shared_content_change_link_expiry(self): Only call this if :meth:`is_shared_content_change_link_expiry` is true. - :rtype: team_log.SharedContentChangeLinkExpiryType + :rtype: SharedContentChangeLinkExpiryType """ if not self.is_shared_content_change_link_expiry(): raise AttributeError("tag 'shared_content_change_link_expiry' not set") @@ -25526,7 +27467,7 @@ def get_shared_content_change_link_password(self): Only call this if :meth:`is_shared_content_change_link_password` is true. - :rtype: team_log.SharedContentChangeLinkPasswordType + :rtype: SharedContentChangeLinkPasswordType """ if not self.is_shared_content_change_link_password(): raise AttributeError("tag 'shared_content_change_link_password' not set") @@ -25538,7 +27479,7 @@ def get_shared_content_change_member_role(self): Only call this if :meth:`is_shared_content_change_member_role` is true. - :rtype: team_log.SharedContentChangeMemberRoleType + :rtype: SharedContentChangeMemberRoleType """ if not self.is_shared_content_change_member_role(): raise AttributeError("tag 'shared_content_change_member_role' not set") @@ -25550,7 +27491,7 @@ def get_shared_content_change_viewer_info_policy(self): Only call this if :meth:`is_shared_content_change_viewer_info_policy` is true. - :rtype: team_log.SharedContentChangeViewerInfoPolicyType + :rtype: SharedContentChangeViewerInfoPolicyType """ if not self.is_shared_content_change_viewer_info_policy(): raise AttributeError("tag 'shared_content_change_viewer_info_policy' not set") @@ -25562,7 +27503,7 @@ def get_shared_content_claim_invitation(self): Only call this if :meth:`is_shared_content_claim_invitation` is true. - :rtype: team_log.SharedContentClaimInvitationType + :rtype: SharedContentClaimInvitationType """ if not self.is_shared_content_claim_invitation(): raise AttributeError("tag 'shared_content_claim_invitation' not set") @@ -25574,7 +27515,7 @@ def get_shared_content_copy(self): Only call this if :meth:`is_shared_content_copy` is true. - :rtype: team_log.SharedContentCopyType + :rtype: SharedContentCopyType """ if not self.is_shared_content_copy(): raise AttributeError("tag 'shared_content_copy' not set") @@ -25586,7 +27527,7 @@ def get_shared_content_download(self): Only call this if :meth:`is_shared_content_download` is true. - :rtype: team_log.SharedContentDownloadType + :rtype: SharedContentDownloadType """ if not self.is_shared_content_download(): raise AttributeError("tag 'shared_content_download' not set") @@ -25598,7 +27539,7 @@ def get_shared_content_relinquish_membership(self): Only call this if :meth:`is_shared_content_relinquish_membership` is true. - :rtype: team_log.SharedContentRelinquishMembershipType + :rtype: SharedContentRelinquishMembershipType """ if not self.is_shared_content_relinquish_membership(): raise AttributeError("tag 'shared_content_relinquish_membership' not set") @@ -25611,7 +27552,7 @@ def get_shared_content_remove_invitees(self): Only call this if :meth:`is_shared_content_remove_invitees` is true. - :rtype: team_log.SharedContentRemoveInviteesType + :rtype: SharedContentRemoveInviteesType """ if not self.is_shared_content_remove_invitees(): raise AttributeError("tag 'shared_content_remove_invitees' not set") @@ -25623,7 +27564,7 @@ def get_shared_content_remove_link_expiry(self): Only call this if :meth:`is_shared_content_remove_link_expiry` is true. - :rtype: team_log.SharedContentRemoveLinkExpiryType + :rtype: SharedContentRemoveLinkExpiryType """ if not self.is_shared_content_remove_link_expiry(): raise AttributeError("tag 'shared_content_remove_link_expiry' not set") @@ -25635,7 +27576,7 @@ def get_shared_content_remove_link_password(self): Only call this if :meth:`is_shared_content_remove_link_password` is true. - :rtype: team_log.SharedContentRemoveLinkPasswordType + :rtype: SharedContentRemoveLinkPasswordType """ if not self.is_shared_content_remove_link_password(): raise AttributeError("tag 'shared_content_remove_link_password' not set") @@ -25647,7 +27588,7 @@ def get_shared_content_remove_member(self): Only call this if :meth:`is_shared_content_remove_member` is true. - :rtype: team_log.SharedContentRemoveMemberType + :rtype: SharedContentRemoveMemberType """ if not self.is_shared_content_remove_member(): raise AttributeError("tag 'shared_content_remove_member' not set") @@ -25659,7 +27600,7 @@ def get_shared_content_request_access(self): Only call this if :meth:`is_shared_content_request_access` is true. - :rtype: team_log.SharedContentRequestAccessType + :rtype: SharedContentRequestAccessType """ if not self.is_shared_content_request_access(): raise AttributeError("tag 'shared_content_request_access' not set") @@ -25672,7 +27613,7 @@ def get_shared_content_unshare(self): Only call this if :meth:`is_shared_content_unshare` is true. - :rtype: team_log.SharedContentUnshareType + :rtype: SharedContentUnshareType """ if not self.is_shared_content_unshare(): raise AttributeError("tag 'shared_content_unshare' not set") @@ -25684,7 +27625,7 @@ def get_shared_content_view(self): Only call this if :meth:`is_shared_content_view` is true. - :rtype: team_log.SharedContentViewType + :rtype: SharedContentViewType """ if not self.is_shared_content_view(): raise AttributeError("tag 'shared_content_view' not set") @@ -25696,7 +27637,7 @@ def get_shared_folder_change_link_policy(self): Only call this if :meth:`is_shared_folder_change_link_policy` is true. - :rtype: team_log.SharedFolderChangeLinkPolicyType + :rtype: SharedFolderChangeLinkPolicyType """ if not self.is_shared_folder_change_link_policy(): raise AttributeError("tag 'shared_folder_change_link_policy' not set") @@ -25709,7 +27650,7 @@ def get_shared_folder_change_members_inheritance_policy(self): Only call this if :meth:`is_shared_folder_change_members_inheritance_policy` is true. - :rtype: team_log.SharedFolderChangeMembersInheritancePolicyType + :rtype: SharedFolderChangeMembersInheritancePolicyType """ if not self.is_shared_folder_change_members_inheritance_policy(): raise AttributeError("tag 'shared_folder_change_members_inheritance_policy' not set") @@ -25721,7 +27662,7 @@ def get_shared_folder_change_members_management_policy(self): Only call this if :meth:`is_shared_folder_change_members_management_policy` is true. - :rtype: team_log.SharedFolderChangeMembersManagementPolicyType + :rtype: SharedFolderChangeMembersManagementPolicyType """ if not self.is_shared_folder_change_members_management_policy(): raise AttributeError("tag 'shared_folder_change_members_management_policy' not set") @@ -25733,7 +27674,7 @@ def get_shared_folder_change_members_policy(self): Only call this if :meth:`is_shared_folder_change_members_policy` is true. - :rtype: team_log.SharedFolderChangeMembersPolicyType + :rtype: SharedFolderChangeMembersPolicyType """ if not self.is_shared_folder_change_members_policy(): raise AttributeError("tag 'shared_folder_change_members_policy' not set") @@ -25745,7 +27686,7 @@ def get_shared_folder_create(self): Only call this if :meth:`is_shared_folder_create` is true. - :rtype: team_log.SharedFolderCreateType + :rtype: SharedFolderCreateType """ if not self.is_shared_folder_create(): raise AttributeError("tag 'shared_folder_create' not set") @@ -25757,7 +27698,7 @@ def get_shared_folder_decline_invitation(self): Only call this if :meth:`is_shared_folder_decline_invitation` is true. - :rtype: team_log.SharedFolderDeclineInvitationType + :rtype: SharedFolderDeclineInvitationType """ if not self.is_shared_folder_decline_invitation(): raise AttributeError("tag 'shared_folder_decline_invitation' not set") @@ -25769,7 +27710,7 @@ def get_shared_folder_mount(self): Only call this if :meth:`is_shared_folder_mount` is true. - :rtype: team_log.SharedFolderMountType + :rtype: SharedFolderMountType """ if not self.is_shared_folder_mount(): raise AttributeError("tag 'shared_folder_mount' not set") @@ -25781,7 +27722,7 @@ def get_shared_folder_nest(self): Only call this if :meth:`is_shared_folder_nest` is true. - :rtype: team_log.SharedFolderNestType + :rtype: SharedFolderNestType """ if not self.is_shared_folder_nest(): raise AttributeError("tag 'shared_folder_nest' not set") @@ -25793,7 +27734,7 @@ def get_shared_folder_transfer_ownership(self): Only call this if :meth:`is_shared_folder_transfer_ownership` is true. - :rtype: team_log.SharedFolderTransferOwnershipType + :rtype: SharedFolderTransferOwnershipType """ if not self.is_shared_folder_transfer_ownership(): raise AttributeError("tag 'shared_folder_transfer_ownership' not set") @@ -25805,7 +27746,7 @@ def get_shared_folder_unmount(self): Only call this if :meth:`is_shared_folder_unmount` is true. - :rtype: team_log.SharedFolderUnmountType + :rtype: SharedFolderUnmountType """ if not self.is_shared_folder_unmount(): raise AttributeError("tag 'shared_folder_unmount' not set") @@ -25817,7 +27758,7 @@ def get_shared_link_add_expiry(self): Only call this if :meth:`is_shared_link_add_expiry` is true. - :rtype: team_log.SharedLinkAddExpiryType + :rtype: SharedLinkAddExpiryType """ if not self.is_shared_link_add_expiry(): raise AttributeError("tag 'shared_link_add_expiry' not set") @@ -25829,7 +27770,7 @@ def get_shared_link_change_expiry(self): Only call this if :meth:`is_shared_link_change_expiry` is true. - :rtype: team_log.SharedLinkChangeExpiryType + :rtype: SharedLinkChangeExpiryType """ if not self.is_shared_link_change_expiry(): raise AttributeError("tag 'shared_link_change_expiry' not set") @@ -25841,7 +27782,7 @@ def get_shared_link_change_visibility(self): Only call this if :meth:`is_shared_link_change_visibility` is true. - :rtype: team_log.SharedLinkChangeVisibilityType + :rtype: SharedLinkChangeVisibilityType """ if not self.is_shared_link_change_visibility(): raise AttributeError("tag 'shared_link_change_visibility' not set") @@ -25853,7 +27794,7 @@ def get_shared_link_copy(self): Only call this if :meth:`is_shared_link_copy` is true. - :rtype: team_log.SharedLinkCopyType + :rtype: SharedLinkCopyType """ if not self.is_shared_link_copy(): raise AttributeError("tag 'shared_link_copy' not set") @@ -25865,7 +27806,7 @@ def get_shared_link_create(self): Only call this if :meth:`is_shared_link_create` is true. - :rtype: team_log.SharedLinkCreateType + :rtype: SharedLinkCreateType """ if not self.is_shared_link_create(): raise AttributeError("tag 'shared_link_create' not set") @@ -25877,7 +27818,7 @@ def get_shared_link_disable(self): Only call this if :meth:`is_shared_link_disable` is true. - :rtype: team_log.SharedLinkDisableType + :rtype: SharedLinkDisableType """ if not self.is_shared_link_disable(): raise AttributeError("tag 'shared_link_disable' not set") @@ -25889,7 +27830,7 @@ def get_shared_link_download(self): Only call this if :meth:`is_shared_link_download` is true. - :rtype: team_log.SharedLinkDownloadType + :rtype: SharedLinkDownloadType """ if not self.is_shared_link_download(): raise AttributeError("tag 'shared_link_download' not set") @@ -25901,7 +27842,7 @@ def get_shared_link_remove_expiry(self): Only call this if :meth:`is_shared_link_remove_expiry` is true. - :rtype: team_log.SharedLinkRemoveExpiryType + :rtype: SharedLinkRemoveExpiryType """ if not self.is_shared_link_remove_expiry(): raise AttributeError("tag 'shared_link_remove_expiry' not set") @@ -25913,7 +27854,7 @@ def get_shared_link_share(self): Only call this if :meth:`is_shared_link_share` is true. - :rtype: team_log.SharedLinkShareType + :rtype: SharedLinkShareType """ if not self.is_shared_link_share(): raise AttributeError("tag 'shared_link_share' not set") @@ -25925,7 +27866,7 @@ def get_shared_link_view(self): Only call this if :meth:`is_shared_link_view` is true. - :rtype: team_log.SharedLinkViewType + :rtype: SharedLinkViewType """ if not self.is_shared_link_view(): raise AttributeError("tag 'shared_link_view' not set") @@ -25937,7 +27878,7 @@ def get_shared_note_opened(self): Only call this if :meth:`is_shared_note_opened` is true. - :rtype: team_log.SharedNoteOpenedType + :rtype: SharedNoteOpenedType """ if not self.is_shared_note_opened(): raise AttributeError("tag 'shared_note_opened' not set") @@ -25949,7 +27890,7 @@ def get_shmodel_group_share(self): Only call this if :meth:`is_shmodel_group_share` is true. - :rtype: team_log.ShmodelGroupShareType + :rtype: ShmodelGroupShareType """ if not self.is_shmodel_group_share(): raise AttributeError("tag 'shmodel_group_share' not set") @@ -25961,7 +27902,7 @@ def get_showcase_access_granted(self): Only call this if :meth:`is_showcase_access_granted` is true. - :rtype: team_log.ShowcaseAccessGrantedType + :rtype: ShowcaseAccessGrantedType """ if not self.is_showcase_access_granted(): raise AttributeError("tag 'showcase_access_granted' not set") @@ -25973,7 +27914,7 @@ def get_showcase_add_member(self): Only call this if :meth:`is_showcase_add_member` is true. - :rtype: team_log.ShowcaseAddMemberType + :rtype: ShowcaseAddMemberType """ if not self.is_showcase_add_member(): raise AttributeError("tag 'showcase_add_member' not set") @@ -25985,7 +27926,7 @@ def get_showcase_archived(self): Only call this if :meth:`is_showcase_archived` is true. - :rtype: team_log.ShowcaseArchivedType + :rtype: ShowcaseArchivedType """ if not self.is_showcase_archived(): raise AttributeError("tag 'showcase_archived' not set") @@ -25997,7 +27938,7 @@ def get_showcase_created(self): Only call this if :meth:`is_showcase_created` is true. - :rtype: team_log.ShowcaseCreatedType + :rtype: ShowcaseCreatedType """ if not self.is_showcase_created(): raise AttributeError("tag 'showcase_created' not set") @@ -26009,7 +27950,7 @@ def get_showcase_delete_comment(self): Only call this if :meth:`is_showcase_delete_comment` is true. - :rtype: team_log.ShowcaseDeleteCommentType + :rtype: ShowcaseDeleteCommentType """ if not self.is_showcase_delete_comment(): raise AttributeError("tag 'showcase_delete_comment' not set") @@ -26021,7 +27962,7 @@ def get_showcase_edited(self): Only call this if :meth:`is_showcase_edited` is true. - :rtype: team_log.ShowcaseEditedType + :rtype: ShowcaseEditedType """ if not self.is_showcase_edited(): raise AttributeError("tag 'showcase_edited' not set") @@ -26033,7 +27974,7 @@ def get_showcase_edit_comment(self): Only call this if :meth:`is_showcase_edit_comment` is true. - :rtype: team_log.ShowcaseEditCommentType + :rtype: ShowcaseEditCommentType """ if not self.is_showcase_edit_comment(): raise AttributeError("tag 'showcase_edit_comment' not set") @@ -26045,7 +27986,7 @@ def get_showcase_file_added(self): Only call this if :meth:`is_showcase_file_added` is true. - :rtype: team_log.ShowcaseFileAddedType + :rtype: ShowcaseFileAddedType """ if not self.is_showcase_file_added(): raise AttributeError("tag 'showcase_file_added' not set") @@ -26057,7 +27998,7 @@ def get_showcase_file_download(self): Only call this if :meth:`is_showcase_file_download` is true. - :rtype: team_log.ShowcaseFileDownloadType + :rtype: ShowcaseFileDownloadType """ if not self.is_showcase_file_download(): raise AttributeError("tag 'showcase_file_download' not set") @@ -26069,7 +28010,7 @@ def get_showcase_file_removed(self): Only call this if :meth:`is_showcase_file_removed` is true. - :rtype: team_log.ShowcaseFileRemovedType + :rtype: ShowcaseFileRemovedType """ if not self.is_showcase_file_removed(): raise AttributeError("tag 'showcase_file_removed' not set") @@ -26081,7 +28022,7 @@ def get_showcase_file_view(self): Only call this if :meth:`is_showcase_file_view` is true. - :rtype: team_log.ShowcaseFileViewType + :rtype: ShowcaseFileViewType """ if not self.is_showcase_file_view(): raise AttributeError("tag 'showcase_file_view' not set") @@ -26093,7 +28034,7 @@ def get_showcase_permanently_deleted(self): Only call this if :meth:`is_showcase_permanently_deleted` is true. - :rtype: team_log.ShowcasePermanentlyDeletedType + :rtype: ShowcasePermanentlyDeletedType """ if not self.is_showcase_permanently_deleted(): raise AttributeError("tag 'showcase_permanently_deleted' not set") @@ -26105,7 +28046,7 @@ def get_showcase_post_comment(self): Only call this if :meth:`is_showcase_post_comment` is true. - :rtype: team_log.ShowcasePostCommentType + :rtype: ShowcasePostCommentType """ if not self.is_showcase_post_comment(): raise AttributeError("tag 'showcase_post_comment' not set") @@ -26117,7 +28058,7 @@ def get_showcase_remove_member(self): Only call this if :meth:`is_showcase_remove_member` is true. - :rtype: team_log.ShowcaseRemoveMemberType + :rtype: ShowcaseRemoveMemberType """ if not self.is_showcase_remove_member(): raise AttributeError("tag 'showcase_remove_member' not set") @@ -26129,7 +28070,7 @@ def get_showcase_renamed(self): Only call this if :meth:`is_showcase_renamed` is true. - :rtype: team_log.ShowcaseRenamedType + :rtype: ShowcaseRenamedType """ if not self.is_showcase_renamed(): raise AttributeError("tag 'showcase_renamed' not set") @@ -26141,7 +28082,7 @@ def get_showcase_request_access(self): Only call this if :meth:`is_showcase_request_access` is true. - :rtype: team_log.ShowcaseRequestAccessType + :rtype: ShowcaseRequestAccessType """ if not self.is_showcase_request_access(): raise AttributeError("tag 'showcase_request_access' not set") @@ -26153,7 +28094,7 @@ def get_showcase_resolve_comment(self): Only call this if :meth:`is_showcase_resolve_comment` is true. - :rtype: team_log.ShowcaseResolveCommentType + :rtype: ShowcaseResolveCommentType """ if not self.is_showcase_resolve_comment(): raise AttributeError("tag 'showcase_resolve_comment' not set") @@ -26165,7 +28106,7 @@ def get_showcase_restored(self): Only call this if :meth:`is_showcase_restored` is true. - :rtype: team_log.ShowcaseRestoredType + :rtype: ShowcaseRestoredType """ if not self.is_showcase_restored(): raise AttributeError("tag 'showcase_restored' not set") @@ -26177,7 +28118,7 @@ def get_showcase_trashed(self): Only call this if :meth:`is_showcase_trashed` is true. - :rtype: team_log.ShowcaseTrashedType + :rtype: ShowcaseTrashedType """ if not self.is_showcase_trashed(): raise AttributeError("tag 'showcase_trashed' not set") @@ -26190,7 +28131,7 @@ def get_showcase_trashed_deprecated(self): Only call this if :meth:`is_showcase_trashed_deprecated` is true. - :rtype: team_log.ShowcaseTrashedDeprecatedType + :rtype: ShowcaseTrashedDeprecatedType """ if not self.is_showcase_trashed_deprecated(): raise AttributeError("tag 'showcase_trashed_deprecated' not set") @@ -26202,7 +28143,7 @@ def get_showcase_unresolve_comment(self): Only call this if :meth:`is_showcase_unresolve_comment` is true. - :rtype: team_log.ShowcaseUnresolveCommentType + :rtype: ShowcaseUnresolveCommentType """ if not self.is_showcase_unresolve_comment(): raise AttributeError("tag 'showcase_unresolve_comment' not set") @@ -26214,7 +28155,7 @@ def get_showcase_untrashed(self): Only call this if :meth:`is_showcase_untrashed` is true. - :rtype: team_log.ShowcaseUntrashedType + :rtype: ShowcaseUntrashedType """ if not self.is_showcase_untrashed(): raise AttributeError("tag 'showcase_untrashed' not set") @@ -26227,7 +28168,7 @@ def get_showcase_untrashed_deprecated(self): Only call this if :meth:`is_showcase_untrashed_deprecated` is true. - :rtype: team_log.ShowcaseUntrashedDeprecatedType + :rtype: ShowcaseUntrashedDeprecatedType """ if not self.is_showcase_untrashed_deprecated(): raise AttributeError("tag 'showcase_untrashed_deprecated' not set") @@ -26239,7 +28180,7 @@ def get_showcase_view(self): Only call this if :meth:`is_showcase_view` is true. - :rtype: team_log.ShowcaseViewType + :rtype: ShowcaseViewType """ if not self.is_showcase_view(): raise AttributeError("tag 'showcase_view' not set") @@ -26251,7 +28192,7 @@ def get_sso_add_cert(self): Only call this if :meth:`is_sso_add_cert` is true. - :rtype: team_log.SsoAddCertType + :rtype: SsoAddCertType """ if not self.is_sso_add_cert(): raise AttributeError("tag 'sso_add_cert' not set") @@ -26263,7 +28204,7 @@ def get_sso_add_login_url(self): Only call this if :meth:`is_sso_add_login_url` is true. - :rtype: team_log.SsoAddLoginUrlType + :rtype: SsoAddLoginUrlType """ if not self.is_sso_add_login_url(): raise AttributeError("tag 'sso_add_login_url' not set") @@ -26275,7 +28216,7 @@ def get_sso_add_logout_url(self): Only call this if :meth:`is_sso_add_logout_url` is true. - :rtype: team_log.SsoAddLogoutUrlType + :rtype: SsoAddLogoutUrlType """ if not self.is_sso_add_logout_url(): raise AttributeError("tag 'sso_add_logout_url' not set") @@ -26287,7 +28228,7 @@ def get_sso_change_cert(self): Only call this if :meth:`is_sso_change_cert` is true. - :rtype: team_log.SsoChangeCertType + :rtype: SsoChangeCertType """ if not self.is_sso_change_cert(): raise AttributeError("tag 'sso_change_cert' not set") @@ -26299,7 +28240,7 @@ def get_sso_change_login_url(self): Only call this if :meth:`is_sso_change_login_url` is true. - :rtype: team_log.SsoChangeLoginUrlType + :rtype: SsoChangeLoginUrlType """ if not self.is_sso_change_login_url(): raise AttributeError("tag 'sso_change_login_url' not set") @@ -26311,7 +28252,7 @@ def get_sso_change_logout_url(self): Only call this if :meth:`is_sso_change_logout_url` is true. - :rtype: team_log.SsoChangeLogoutUrlType + :rtype: SsoChangeLogoutUrlType """ if not self.is_sso_change_logout_url(): raise AttributeError("tag 'sso_change_logout_url' not set") @@ -26323,7 +28264,7 @@ def get_sso_change_saml_identity_mode(self): Only call this if :meth:`is_sso_change_saml_identity_mode` is true. - :rtype: team_log.SsoChangeSamlIdentityModeType + :rtype: SsoChangeSamlIdentityModeType """ if not self.is_sso_change_saml_identity_mode(): raise AttributeError("tag 'sso_change_saml_identity_mode' not set") @@ -26335,7 +28276,7 @@ def get_sso_remove_cert(self): Only call this if :meth:`is_sso_remove_cert` is true. - :rtype: team_log.SsoRemoveCertType + :rtype: SsoRemoveCertType """ if not self.is_sso_remove_cert(): raise AttributeError("tag 'sso_remove_cert' not set") @@ -26347,7 +28288,7 @@ def get_sso_remove_login_url(self): Only call this if :meth:`is_sso_remove_login_url` is true. - :rtype: team_log.SsoRemoveLoginUrlType + :rtype: SsoRemoveLoginUrlType """ if not self.is_sso_remove_login_url(): raise AttributeError("tag 'sso_remove_login_url' not set") @@ -26359,7 +28300,7 @@ def get_sso_remove_logout_url(self): Only call this if :meth:`is_sso_remove_logout_url` is true. - :rtype: team_log.SsoRemoveLogoutUrlType + :rtype: SsoRemoveLogoutUrlType """ if not self.is_sso_remove_logout_url(): raise AttributeError("tag 'sso_remove_logout_url' not set") @@ -26371,7 +28312,7 @@ def get_team_folder_change_status(self): Only call this if :meth:`is_team_folder_change_status` is true. - :rtype: team_log.TeamFolderChangeStatusType + :rtype: TeamFolderChangeStatusType """ if not self.is_team_folder_change_status(): raise AttributeError("tag 'team_folder_change_status' not set") @@ -26383,7 +28324,7 @@ def get_team_folder_create(self): Only call this if :meth:`is_team_folder_create` is true. - :rtype: team_log.TeamFolderCreateType + :rtype: TeamFolderCreateType """ if not self.is_team_folder_create(): raise AttributeError("tag 'team_folder_create' not set") @@ -26395,7 +28336,7 @@ def get_team_folder_downgrade(self): Only call this if :meth:`is_team_folder_downgrade` is true. - :rtype: team_log.TeamFolderDowngradeType + :rtype: TeamFolderDowngradeType """ if not self.is_team_folder_downgrade(): raise AttributeError("tag 'team_folder_downgrade' not set") @@ -26407,7 +28348,7 @@ def get_team_folder_permanently_delete(self): Only call this if :meth:`is_team_folder_permanently_delete` is true. - :rtype: team_log.TeamFolderPermanentlyDeleteType + :rtype: TeamFolderPermanentlyDeleteType """ if not self.is_team_folder_permanently_delete(): raise AttributeError("tag 'team_folder_permanently_delete' not set") @@ -26419,7 +28360,7 @@ def get_team_folder_rename(self): Only call this if :meth:`is_team_folder_rename` is true. - :rtype: team_log.TeamFolderRenameType + :rtype: TeamFolderRenameType """ if not self.is_team_folder_rename(): raise AttributeError("tag 'team_folder_rename' not set") @@ -26431,7 +28372,7 @@ def get_team_selective_sync_settings_changed(self): Only call this if :meth:`is_team_selective_sync_settings_changed` is true. - :rtype: team_log.TeamSelectiveSyncSettingsChangedType + :rtype: TeamSelectiveSyncSettingsChangedType """ if not self.is_team_selective_sync_settings_changed(): raise AttributeError("tag 'team_selective_sync_settings_changed' not set") @@ -26443,7 +28384,7 @@ def get_account_capture_change_policy(self): Only call this if :meth:`is_account_capture_change_policy` is true. - :rtype: team_log.AccountCaptureChangePolicyType + :rtype: AccountCaptureChangePolicyType """ if not self.is_account_capture_change_policy(): raise AttributeError("tag 'account_capture_change_policy' not set") @@ -26455,7 +28396,7 @@ def get_allow_download_disabled(self): Only call this if :meth:`is_allow_download_disabled` is true. - :rtype: team_log.AllowDownloadDisabledType + :rtype: AllowDownloadDisabledType """ if not self.is_allow_download_disabled(): raise AttributeError("tag 'allow_download_disabled' not set") @@ -26467,7 +28408,7 @@ def get_allow_download_enabled(self): Only call this if :meth:`is_allow_download_enabled` is true. - :rtype: team_log.AllowDownloadEnabledType + :rtype: AllowDownloadEnabledType """ if not self.is_allow_download_enabled(): raise AttributeError("tag 'allow_download_enabled' not set") @@ -26479,7 +28420,7 @@ def get_camera_uploads_policy_changed(self): Only call this if :meth:`is_camera_uploads_policy_changed` is true. - :rtype: team_log.CameraUploadsPolicyChangedType + :rtype: CameraUploadsPolicyChangedType """ if not self.is_camera_uploads_policy_changed(): raise AttributeError("tag 'camera_uploads_policy_changed' not set") @@ -26492,7 +28433,7 @@ def get_data_placement_restriction_change_policy(self): Only call this if :meth:`is_data_placement_restriction_change_policy` is true. - :rtype: team_log.DataPlacementRestrictionChangePolicyType + :rtype: DataPlacementRestrictionChangePolicyType """ if not self.is_data_placement_restriction_change_policy(): raise AttributeError("tag 'data_placement_restriction_change_policy' not set") @@ -26505,7 +28446,7 @@ def get_data_placement_restriction_satisfy_policy(self): Only call this if :meth:`is_data_placement_restriction_satisfy_policy` is true. - :rtype: team_log.DataPlacementRestrictionSatisfyPolicyType + :rtype: DataPlacementRestrictionSatisfyPolicyType """ if not self.is_data_placement_restriction_satisfy_policy(): raise AttributeError("tag 'data_placement_restriction_satisfy_policy' not set") @@ -26518,7 +28459,7 @@ def get_device_approvals_change_desktop_policy(self): Only call this if :meth:`is_device_approvals_change_desktop_policy` is true. - :rtype: team_log.DeviceApprovalsChangeDesktopPolicyType + :rtype: DeviceApprovalsChangeDesktopPolicyType """ if not self.is_device_approvals_change_desktop_policy(): raise AttributeError("tag 'device_approvals_change_desktop_policy' not set") @@ -26531,7 +28472,7 @@ def get_device_approvals_change_mobile_policy(self): Only call this if :meth:`is_device_approvals_change_mobile_policy` is true. - :rtype: team_log.DeviceApprovalsChangeMobilePolicyType + :rtype: DeviceApprovalsChangeMobilePolicyType """ if not self.is_device_approvals_change_mobile_policy(): raise AttributeError("tag 'device_approvals_change_mobile_policy' not set") @@ -26544,7 +28485,7 @@ def get_device_approvals_change_overage_action(self): Only call this if :meth:`is_device_approvals_change_overage_action` is true. - :rtype: team_log.DeviceApprovalsChangeOverageActionType + :rtype: DeviceApprovalsChangeOverageActionType """ if not self.is_device_approvals_change_overage_action(): raise AttributeError("tag 'device_approvals_change_overage_action' not set") @@ -26557,7 +28498,7 @@ def get_device_approvals_change_unlink_action(self): Only call this if :meth:`is_device_approvals_change_unlink_action` is true. - :rtype: team_log.DeviceApprovalsChangeUnlinkActionType + :rtype: DeviceApprovalsChangeUnlinkActionType """ if not self.is_device_approvals_change_unlink_action(): raise AttributeError("tag 'device_approvals_change_unlink_action' not set") @@ -26569,7 +28510,7 @@ def get_directory_restrictions_add_members(self): Only call this if :meth:`is_directory_restrictions_add_members` is true. - :rtype: team_log.DirectoryRestrictionsAddMembersType + :rtype: DirectoryRestrictionsAddMembersType """ if not self.is_directory_restrictions_add_members(): raise AttributeError("tag 'directory_restrictions_add_members' not set") @@ -26581,7 +28522,7 @@ def get_directory_restrictions_remove_members(self): Only call this if :meth:`is_directory_restrictions_remove_members` is true. - :rtype: team_log.DirectoryRestrictionsRemoveMembersType + :rtype: DirectoryRestrictionsRemoveMembersType """ if not self.is_directory_restrictions_remove_members(): raise AttributeError("tag 'directory_restrictions_remove_members' not set") @@ -26593,7 +28534,7 @@ def get_emm_add_exception(self): Only call this if :meth:`is_emm_add_exception` is true. - :rtype: team_log.EmmAddExceptionType + :rtype: EmmAddExceptionType """ if not self.is_emm_add_exception(): raise AttributeError("tag 'emm_add_exception' not set") @@ -26606,7 +28547,7 @@ def get_emm_change_policy(self): Only call this if :meth:`is_emm_change_policy` is true. - :rtype: team_log.EmmChangePolicyType + :rtype: EmmChangePolicyType """ if not self.is_emm_change_policy(): raise AttributeError("tag 'emm_change_policy' not set") @@ -26618,7 +28559,7 @@ def get_emm_remove_exception(self): Only call this if :meth:`is_emm_remove_exception` is true. - :rtype: team_log.EmmRemoveExceptionType + :rtype: EmmRemoveExceptionType """ if not self.is_emm_remove_exception(): raise AttributeError("tag 'emm_remove_exception' not set") @@ -26630,7 +28571,7 @@ def get_extended_version_history_change_policy(self): Only call this if :meth:`is_extended_version_history_change_policy` is true. - :rtype: team_log.ExtendedVersionHistoryChangePolicyType + :rtype: ExtendedVersionHistoryChangePolicyType """ if not self.is_extended_version_history_change_policy(): raise AttributeError("tag 'extended_version_history_change_policy' not set") @@ -26642,7 +28583,7 @@ def get_file_comments_change_policy(self): Only call this if :meth:`is_file_comments_change_policy` is true. - :rtype: team_log.FileCommentsChangePolicyType + :rtype: FileCommentsChangePolicyType """ if not self.is_file_comments_change_policy(): raise AttributeError("tag 'file_comments_change_policy' not set") @@ -26654,7 +28595,7 @@ def get_file_requests_change_policy(self): Only call this if :meth:`is_file_requests_change_policy` is true. - :rtype: team_log.FileRequestsChangePolicyType + :rtype: FileRequestsChangePolicyType """ if not self.is_file_requests_change_policy(): raise AttributeError("tag 'file_requests_change_policy' not set") @@ -26667,7 +28608,7 @@ def get_file_requests_emails_enabled(self): Only call this if :meth:`is_file_requests_emails_enabled` is true. - :rtype: team_log.FileRequestsEmailsEnabledType + :rtype: FileRequestsEmailsEnabledType """ if not self.is_file_requests_emails_enabled(): raise AttributeError("tag 'file_requests_emails_enabled' not set") @@ -26680,7 +28621,7 @@ def get_file_requests_emails_restricted_to_team_only(self): Only call this if :meth:`is_file_requests_emails_restricted_to_team_only` is true. - :rtype: team_log.FileRequestsEmailsRestrictedToTeamOnlyType + :rtype: FileRequestsEmailsRestrictedToTeamOnlyType """ if not self.is_file_requests_emails_restricted_to_team_only(): raise AttributeError("tag 'file_requests_emails_restricted_to_team_only' not set") @@ -26692,7 +28633,7 @@ def get_google_sso_change_policy(self): Only call this if :meth:`is_google_sso_change_policy` is true. - :rtype: team_log.GoogleSsoChangePolicyType + :rtype: GoogleSsoChangePolicyType """ if not self.is_google_sso_change_policy(): raise AttributeError("tag 'google_sso_change_policy' not set") @@ -26704,19 +28645,31 @@ def get_group_user_management_change_policy(self): Only call this if :meth:`is_group_user_management_change_policy` is true. - :rtype: team_log.GroupUserManagementChangePolicyType + :rtype: GroupUserManagementChangePolicyType """ if not self.is_group_user_management_change_policy(): raise AttributeError("tag 'group_user_management_change_policy' not set") return self._value + def get_integration_policy_changed(self): + """ + (team_policies) Changed integration policy for team + + Only call this if :meth:`is_integration_policy_changed` is true. + + :rtype: IntegrationPolicyChangedType + """ + if not self.is_integration_policy_changed(): + raise AttributeError("tag 'integration_policy_changed' not set") + return self._value + def get_member_requests_change_policy(self): """ (team_policies) Changed whether users can find team when not invited Only call this if :meth:`is_member_requests_change_policy` is true. - :rtype: team_log.MemberRequestsChangePolicyType + :rtype: MemberRequestsChangePolicyType """ if not self.is_member_requests_change_policy(): raise AttributeError("tag 'member_requests_change_policy' not set") @@ -26728,7 +28681,7 @@ def get_member_space_limits_add_exception(self): Only call this if :meth:`is_member_space_limits_add_exception` is true. - :rtype: team_log.MemberSpaceLimitsAddExceptionType + :rtype: MemberSpaceLimitsAddExceptionType """ if not self.is_member_space_limits_add_exception(): raise AttributeError("tag 'member_space_limits_add_exception' not set") @@ -26740,7 +28693,7 @@ def get_member_space_limits_change_caps_type_policy(self): Only call this if :meth:`is_member_space_limits_change_caps_type_policy` is true. - :rtype: team_log.MemberSpaceLimitsChangeCapsTypePolicyType + :rtype: MemberSpaceLimitsChangeCapsTypePolicyType """ if not self.is_member_space_limits_change_caps_type_policy(): raise AttributeError("tag 'member_space_limits_change_caps_type_policy' not set") @@ -26752,7 +28705,7 @@ def get_member_space_limits_change_policy(self): Only call this if :meth:`is_member_space_limits_change_policy` is true. - :rtype: team_log.MemberSpaceLimitsChangePolicyType + :rtype: MemberSpaceLimitsChangePolicyType """ if not self.is_member_space_limits_change_policy(): raise AttributeError("tag 'member_space_limits_change_policy' not set") @@ -26764,7 +28717,7 @@ def get_member_space_limits_remove_exception(self): Only call this if :meth:`is_member_space_limits_remove_exception` is true. - :rtype: team_log.MemberSpaceLimitsRemoveExceptionType + :rtype: MemberSpaceLimitsRemoveExceptionType """ if not self.is_member_space_limits_remove_exception(): raise AttributeError("tag 'member_space_limits_remove_exception' not set") @@ -26777,7 +28730,7 @@ def get_member_suggestions_change_policy(self): Only call this if :meth:`is_member_suggestions_change_policy` is true. - :rtype: team_log.MemberSuggestionsChangePolicyType + :rtype: MemberSuggestionsChangePolicyType """ if not self.is_member_suggestions_change_policy(): raise AttributeError("tag 'member_suggestions_change_policy' not set") @@ -26789,7 +28742,7 @@ def get_microsoft_office_addin_change_policy(self): Only call this if :meth:`is_microsoft_office_addin_change_policy` is true. - :rtype: team_log.MicrosoftOfficeAddinChangePolicyType + :rtype: MicrosoftOfficeAddinChangePolicyType """ if not self.is_microsoft_office_addin_change_policy(): raise AttributeError("tag 'microsoft_office_addin_change_policy' not set") @@ -26801,7 +28754,7 @@ def get_network_control_change_policy(self): Only call this if :meth:`is_network_control_change_policy` is true. - :rtype: team_log.NetworkControlChangePolicyType + :rtype: NetworkControlChangePolicyType """ if not self.is_network_control_change_policy(): raise AttributeError("tag 'network_control_change_policy' not set") @@ -26814,7 +28767,7 @@ def get_paper_change_deployment_policy(self): Only call this if :meth:`is_paper_change_deployment_policy` is true. - :rtype: team_log.PaperChangeDeploymentPolicyType + :rtype: PaperChangeDeploymentPolicyType """ if not self.is_paper_change_deployment_policy(): raise AttributeError("tag 'paper_change_deployment_policy' not set") @@ -26827,7 +28780,7 @@ def get_paper_change_member_link_policy(self): Only call this if :meth:`is_paper_change_member_link_policy` is true. - :rtype: team_log.PaperChangeMemberLinkPolicyType + :rtype: PaperChangeMemberLinkPolicyType """ if not self.is_paper_change_member_link_policy(): raise AttributeError("tag 'paper_change_member_link_policy' not set") @@ -26841,7 +28794,7 @@ def get_paper_change_member_policy(self): Only call this if :meth:`is_paper_change_member_policy` is true. - :rtype: team_log.PaperChangeMemberPolicyType + :rtype: PaperChangeMemberPolicyType """ if not self.is_paper_change_member_policy(): raise AttributeError("tag 'paper_change_member_policy' not set") @@ -26853,19 +28806,43 @@ def get_paper_change_policy(self): Only call this if :meth:`is_paper_change_policy` is true. - :rtype: team_log.PaperChangePolicyType + :rtype: PaperChangePolicyType """ if not self.is_paper_change_policy(): raise AttributeError("tag 'paper_change_policy' not set") return self._value + def get_paper_default_folder_policy_changed(self): + """ + (team_policies) Changed Paper Default Folder Policy setting for team + + Only call this if :meth:`is_paper_default_folder_policy_changed` is true. + + :rtype: PaperDefaultFolderPolicyChangedType + """ + if not self.is_paper_default_folder_policy_changed(): + raise AttributeError("tag 'paper_default_folder_policy_changed' not set") + return self._value + + def get_paper_desktop_policy_changed(self): + """ + (team_policies) Enabled/disabled Paper Desktop for team + + Only call this if :meth:`is_paper_desktop_policy_changed` is true. + + :rtype: PaperDesktopPolicyChangedType + """ + if not self.is_paper_desktop_policy_changed(): + raise AttributeError("tag 'paper_desktop_policy_changed' not set") + return self._value + def get_paper_enabled_users_group_addition(self): """ (team_policies) Added users to Paper-enabled users list Only call this if :meth:`is_paper_enabled_users_group_addition` is true. - :rtype: team_log.PaperEnabledUsersGroupAdditionType + :rtype: PaperEnabledUsersGroupAdditionType """ if not self.is_paper_enabled_users_group_addition(): raise AttributeError("tag 'paper_enabled_users_group_addition' not set") @@ -26877,7 +28854,7 @@ def get_paper_enabled_users_group_removal(self): Only call this if :meth:`is_paper_enabled_users_group_removal` is true. - :rtype: team_log.PaperEnabledUsersGroupRemovalType + :rtype: PaperEnabledUsersGroupRemovalType """ if not self.is_paper_enabled_users_group_removal(): raise AttributeError("tag 'paper_enabled_users_group_removal' not set") @@ -26890,12 +28867,24 @@ def get_permanent_delete_change_policy(self): Only call this if :meth:`is_permanent_delete_change_policy` is true. - :rtype: team_log.PermanentDeleteChangePolicyType + :rtype: PermanentDeleteChangePolicyType """ if not self.is_permanent_delete_change_policy(): raise AttributeError("tag 'permanent_delete_change_policy' not set") return self._value + def get_reseller_support_change_policy(self): + """ + (team_policies) Enabled/disabled reseller support + + Only call this if :meth:`is_reseller_support_change_policy` is true. + + :rtype: ResellerSupportChangePolicyType + """ + if not self.is_reseller_support_change_policy(): + raise AttributeError("tag 'reseller_support_change_policy' not set") + return self._value + def get_sharing_change_folder_join_policy(self): """ (team_policies) Changed whether team members can join shared folders @@ -26903,7 +28892,7 @@ def get_sharing_change_folder_join_policy(self): Only call this if :meth:`is_sharing_change_folder_join_policy` is true. - :rtype: team_log.SharingChangeFolderJoinPolicyType + :rtype: SharingChangeFolderJoinPolicyType """ if not self.is_sharing_change_folder_join_policy(): raise AttributeError("tag 'sharing_change_folder_join_policy' not set") @@ -26916,7 +28905,7 @@ def get_sharing_change_link_policy(self): Only call this if :meth:`is_sharing_change_link_policy` is true. - :rtype: team_log.SharingChangeLinkPolicyType + :rtype: SharingChangeLinkPolicyType """ if not self.is_sharing_change_link_policy(): raise AttributeError("tag 'sharing_change_link_policy' not set") @@ -26929,7 +28918,7 @@ def get_sharing_change_member_policy(self): Only call this if :meth:`is_sharing_change_member_policy` is true. - :rtype: team_log.SharingChangeMemberPolicyType + :rtype: SharingChangeMemberPolicyType """ if not self.is_sharing_change_member_policy(): raise AttributeError("tag 'sharing_change_member_policy' not set") @@ -26942,7 +28931,7 @@ def get_showcase_change_download_policy(self): Only call this if :meth:`is_showcase_change_download_policy` is true. - :rtype: team_log.ShowcaseChangeDownloadPolicyType + :rtype: ShowcaseChangeDownloadPolicyType """ if not self.is_showcase_change_download_policy(): raise AttributeError("tag 'showcase_change_download_policy' not set") @@ -26954,7 +28943,7 @@ def get_showcase_change_enabled_policy(self): Only call this if :meth:`is_showcase_change_enabled_policy` is true. - :rtype: team_log.ShowcaseChangeEnabledPolicyType + :rtype: ShowcaseChangeEnabledPolicyType """ if not self.is_showcase_change_enabled_policy(): raise AttributeError("tag 'showcase_change_enabled_policy' not set") @@ -26967,7 +28956,7 @@ def get_showcase_change_external_sharing_policy(self): Only call this if :meth:`is_showcase_change_external_sharing_policy` is true. - :rtype: team_log.ShowcaseChangeExternalSharingPolicyType + :rtype: ShowcaseChangeExternalSharingPolicyType """ if not self.is_showcase_change_external_sharing_policy(): raise AttributeError("tag 'showcase_change_external_sharing_policy' not set") @@ -26979,7 +28968,7 @@ def get_smart_sync_change_policy(self): Only call this if :meth:`is_smart_sync_change_policy` is true. - :rtype: team_log.SmartSyncChangePolicyType + :rtype: SmartSyncChangePolicyType """ if not self.is_smart_sync_change_policy(): raise AttributeError("tag 'smart_sync_change_policy' not set") @@ -26991,7 +28980,7 @@ def get_smart_sync_not_opt_out(self): Only call this if :meth:`is_smart_sync_not_opt_out` is true. - :rtype: team_log.SmartSyncNotOptOutType + :rtype: SmartSyncNotOptOutType """ if not self.is_smart_sync_not_opt_out(): raise AttributeError("tag 'smart_sync_not_opt_out' not set") @@ -27003,7 +28992,7 @@ def get_smart_sync_opt_out(self): Only call this if :meth:`is_smart_sync_opt_out` is true. - :rtype: team_log.SmartSyncOptOutType + :rtype: SmartSyncOptOutType """ if not self.is_smart_sync_opt_out(): raise AttributeError("tag 'smart_sync_opt_out' not set") @@ -27015,19 +29004,31 @@ def get_sso_change_policy(self): Only call this if :meth:`is_sso_change_policy` is true. - :rtype: team_log.SsoChangePolicyType + :rtype: SsoChangePolicyType """ if not self.is_sso_change_policy(): raise AttributeError("tag 'sso_change_policy' not set") return self._value + def get_team_extensions_policy_changed(self): + """ + (team_policies) Changed App Integrations setting for team + + Only call this if :meth:`is_team_extensions_policy_changed` is true. + + :rtype: TeamExtensionsPolicyChangedType + """ + if not self.is_team_extensions_policy_changed(): + raise AttributeError("tag 'team_extensions_policy_changed' not set") + return self._value + def get_team_selective_sync_policy_changed(self): """ (team_policies) Enabled/disabled Team Selective Sync for team Only call this if :meth:`is_team_selective_sync_policy_changed` is true. - :rtype: team_log.TeamSelectiveSyncPolicyChangedType + :rtype: TeamSelectiveSyncPolicyChangedType """ if not self.is_team_selective_sync_policy_changed(): raise AttributeError("tag 'team_selective_sync_policy_changed' not set") @@ -27039,7 +29040,7 @@ def get_tfa_change_policy(self): Only call this if :meth:`is_tfa_change_policy` is true. - :rtype: team_log.TfaChangePolicyType + :rtype: TfaChangePolicyType """ if not self.is_tfa_change_policy(): raise AttributeError("tag 'tfa_change_policy' not set") @@ -27052,7 +29053,7 @@ def get_two_account_change_policy(self): Only call this if :meth:`is_two_account_change_policy` is true. - :rtype: team_log.TwoAccountChangePolicyType + :rtype: TwoAccountChangePolicyType """ if not self.is_two_account_change_policy(): raise AttributeError("tag 'two_account_change_policy' not set") @@ -27064,7 +29065,7 @@ def get_viewer_info_policy_changed(self): Only call this if :meth:`is_viewer_info_policy_changed` is true. - :rtype: team_log.ViewerInfoPolicyChangedType + :rtype: ViewerInfoPolicyChangedType """ if not self.is_viewer_info_policy_changed(): raise AttributeError("tag 'viewer_info_policy_changed' not set") @@ -27077,7 +29078,7 @@ def get_web_sessions_change_fixed_length_policy(self): Only call this if :meth:`is_web_sessions_change_fixed_length_policy` is true. - :rtype: team_log.WebSessionsChangeFixedLengthPolicyType + :rtype: WebSessionsChangeFixedLengthPolicyType """ if not self.is_web_sessions_change_fixed_length_policy(): raise AttributeError("tag 'web_sessions_change_fixed_length_policy' not set") @@ -27090,7 +29091,7 @@ def get_web_sessions_change_idle_length_policy(self): Only call this if :meth:`is_web_sessions_change_idle_length_policy` is true. - :rtype: team_log.WebSessionsChangeIdleLengthPolicyType + :rtype: WebSessionsChangeIdleLengthPolicyType """ if not self.is_web_sessions_change_idle_length_policy(): raise AttributeError("tag 'web_sessions_change_idle_length_policy' not set") @@ -27102,7 +29103,7 @@ def get_team_merge_from(self): Only call this if :meth:`is_team_merge_from` is true. - :rtype: team_log.TeamMergeFromType + :rtype: TeamMergeFromType """ if not self.is_team_merge_from(): raise AttributeError("tag 'team_merge_from' not set") @@ -27114,7 +29115,7 @@ def get_team_merge_to(self): Only call this if :meth:`is_team_merge_to` is true. - :rtype: team_log.TeamMergeToType + :rtype: TeamMergeToType """ if not self.is_team_merge_to(): raise AttributeError("tag 'team_merge_to' not set") @@ -27126,7 +29127,7 @@ def get_team_profile_add_logo(self): Only call this if :meth:`is_team_profile_add_logo` is true. - :rtype: team_log.TeamProfileAddLogoType + :rtype: TeamProfileAddLogoType """ if not self.is_team_profile_add_logo(): raise AttributeError("tag 'team_profile_add_logo' not set") @@ -27138,7 +29139,7 @@ def get_team_profile_change_default_language(self): Only call this if :meth:`is_team_profile_change_default_language` is true. - :rtype: team_log.TeamProfileChangeDefaultLanguageType + :rtype: TeamProfileChangeDefaultLanguageType """ if not self.is_team_profile_change_default_language(): raise AttributeError("tag 'team_profile_change_default_language' not set") @@ -27150,7 +29151,7 @@ def get_team_profile_change_logo(self): Only call this if :meth:`is_team_profile_change_logo` is true. - :rtype: team_log.TeamProfileChangeLogoType + :rtype: TeamProfileChangeLogoType """ if not self.is_team_profile_change_logo(): raise AttributeError("tag 'team_profile_change_logo' not set") @@ -27162,7 +29163,7 @@ def get_team_profile_change_name(self): Only call this if :meth:`is_team_profile_change_name` is true. - :rtype: team_log.TeamProfileChangeNameType + :rtype: TeamProfileChangeNameType """ if not self.is_team_profile_change_name(): raise AttributeError("tag 'team_profile_change_name' not set") @@ -27174,7 +29175,7 @@ def get_team_profile_remove_logo(self): Only call this if :meth:`is_team_profile_remove_logo` is true. - :rtype: team_log.TeamProfileRemoveLogoType + :rtype: TeamProfileRemoveLogoType """ if not self.is_team_profile_remove_logo(): raise AttributeError("tag 'team_profile_remove_logo' not set") @@ -27186,7 +29187,7 @@ def get_tfa_add_backup_phone(self): Only call this if :meth:`is_tfa_add_backup_phone` is true. - :rtype: team_log.TfaAddBackupPhoneType + :rtype: TfaAddBackupPhoneType """ if not self.is_tfa_add_backup_phone(): raise AttributeError("tag 'tfa_add_backup_phone' not set") @@ -27198,7 +29199,7 @@ def get_tfa_add_security_key(self): Only call this if :meth:`is_tfa_add_security_key` is true. - :rtype: team_log.TfaAddSecurityKeyType + :rtype: TfaAddSecurityKeyType """ if not self.is_tfa_add_security_key(): raise AttributeError("tag 'tfa_add_security_key' not set") @@ -27210,7 +29211,7 @@ def get_tfa_change_backup_phone(self): Only call this if :meth:`is_tfa_change_backup_phone` is true. - :rtype: team_log.TfaChangeBackupPhoneType + :rtype: TfaChangeBackupPhoneType """ if not self.is_tfa_change_backup_phone(): raise AttributeError("tag 'tfa_change_backup_phone' not set") @@ -27222,7 +29223,7 @@ def get_tfa_change_status(self): Only call this if :meth:`is_tfa_change_status` is true. - :rtype: team_log.TfaChangeStatusType + :rtype: TfaChangeStatusType """ if not self.is_tfa_change_status(): raise AttributeError("tag 'tfa_change_status' not set") @@ -27234,7 +29235,7 @@ def get_tfa_remove_backup_phone(self): Only call this if :meth:`is_tfa_remove_backup_phone` is true. - :rtype: team_log.TfaRemoveBackupPhoneType + :rtype: TfaRemoveBackupPhoneType """ if not self.is_tfa_remove_backup_phone(): raise AttributeError("tag 'tfa_remove_backup_phone' not set") @@ -27246,7 +29247,7 @@ def get_tfa_remove_security_key(self): Only call this if :meth:`is_tfa_remove_security_key` is true. - :rtype: team_log.TfaRemoveSecurityKeyType + :rtype: TfaRemoveSecurityKeyType """ if not self.is_tfa_remove_security_key(): raise AttributeError("tag 'tfa_remove_security_key' not set") @@ -27258,182 +29259,280 @@ def get_tfa_reset(self): Only call this if :meth:`is_tfa_reset` is true. - :rtype: team_log.TfaResetType + :rtype: TfaResetType """ if not self.is_tfa_reset(): raise AttributeError("tag 'tfa_reset' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(EventType, self)._process_custom_annotations(annotation_type, processor) + def get_guest_admin_change_status(self): + """ + (trusted_teams) Changed guest team admin status - def __repr__(self): - return 'EventType(%r, %r)' % (self._tag, self._value) + Only call this if :meth:`is_guest_admin_change_status` is true. -EventType_validator = bv.Union(EventType) + :rtype: GuestAdminChangeStatusType + """ + if not self.is_guest_admin_change_status(): + raise AttributeError("tag 'guest_admin_change_status' not set") + return self._value -class ExportMembersReportDetails(bb.Struct): - """ - Created member data report. - """ + def get_team_merge_request_accepted(self): + """ + (trusted_teams) Accepted a team merge request - __slots__ = [ - ] + Only call this if :meth:`is_team_merge_request_accepted` is true. - _has_required_fields = False + :rtype: TeamMergeRequestAcceptedType + """ + if not self.is_team_merge_request_accepted(): + raise AttributeError("tag 'team_merge_request_accepted' not set") + return self._value - def __init__(self): - pass + def get_team_merge_request_accepted_shown_to_primary_team(self): + """ + (trusted_teams) Accepted a team merge request (deprecated, replaced by + 'Accepted a team merge request') - def _process_custom_annotations(self, annotation_type, processor): - super(ExportMembersReportDetails, self)._process_custom_annotations(annotation_type, processor) + Only call this if :meth:`is_team_merge_request_accepted_shown_to_primary_team` is true. - def __repr__(self): - return 'ExportMembersReportDetails()' + :rtype: TeamMergeRequestAcceptedShownToPrimaryTeamType + """ + if not self.is_team_merge_request_accepted_shown_to_primary_team(): + raise AttributeError("tag 'team_merge_request_accepted_shown_to_primary_team' not set") + return self._value -ExportMembersReportDetails_validator = bv.Struct(ExportMembersReportDetails) + def get_team_merge_request_accepted_shown_to_secondary_team(self): + """ + (trusted_teams) Accepted a team merge request (deprecated, replaced by + 'Accepted a team merge request') -class ExportMembersReportType(bb.Struct): + Only call this if :meth:`is_team_merge_request_accepted_shown_to_secondary_team` is true. - __slots__ = [ - '_description_value', - '_description_present', - ] + :rtype: TeamMergeRequestAcceptedShownToSecondaryTeamType + """ + if not self.is_team_merge_request_accepted_shown_to_secondary_team(): + raise AttributeError("tag 'team_merge_request_accepted_shown_to_secondary_team' not set") + return self._value - _has_required_fields = True + def get_team_merge_request_auto_canceled(self): + """ + (trusted_teams) Automatically canceled team merge request - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + Only call this if :meth:`is_team_merge_request_auto_canceled` is true. - @property - def description(self): + :rtype: TeamMergeRequestAutoCanceledType """ - :rtype: str + if not self.is_team_merge_request_auto_canceled(): + raise AttributeError("tag 'team_merge_request_auto_canceled' not set") + return self._value + + def get_team_merge_request_canceled(self): """ - if self._description_present: - return self._description_value - else: - raise AttributeError("missing required field 'description'") + (trusted_teams) Canceled a team merge request - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + Only call this if :meth:`is_team_merge_request_canceled` is true. - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + :rtype: TeamMergeRequestCanceledType + """ + if not self.is_team_merge_request_canceled(): + raise AttributeError("tag 'team_merge_request_canceled' not set") + return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(ExportMembersReportType, self)._process_custom_annotations(annotation_type, processor) + def get_team_merge_request_canceled_shown_to_primary_team(self): + """ + (trusted_teams) Canceled a team merge request (deprecated, replaced by + 'Canceled a team merge request') - def __repr__(self): - return 'ExportMembersReportType(description={!r})'.format( - self._description_value, - ) + Only call this if :meth:`is_team_merge_request_canceled_shown_to_primary_team` is true. -ExportMembersReportType_validator = bv.Struct(ExportMembersReportType) + :rtype: TeamMergeRequestCanceledShownToPrimaryTeamType + """ + if not self.is_team_merge_request_canceled_shown_to_primary_team(): + raise AttributeError("tag 'team_merge_request_canceled_shown_to_primary_team' not set") + return self._value -class ExtendedVersionHistoryChangePolicyDetails(bb.Struct): - """ - Accepted/opted out of extended version history. + def get_team_merge_request_canceled_shown_to_secondary_team(self): + """ + (trusted_teams) Canceled a team merge request (deprecated, replaced by + 'Canceled a team merge request') - :ivar team_log.ExtendedVersionHistoryChangePolicyDetails.new_value: New - extended version history policy. - :ivar team_log.ExtendedVersionHistoryChangePolicyDetails.previous_value: - Previous extended version history policy. Might be missing due to - historical data gap. - """ + Only call this if :meth:`is_team_merge_request_canceled_shown_to_secondary_team` is true. - __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', - ] + :rtype: TeamMergeRequestCanceledShownToSecondaryTeamType + """ + if not self.is_team_merge_request_canceled_shown_to_secondary_team(): + raise AttributeError("tag 'team_merge_request_canceled_shown_to_secondary_team' not set") + return self._value - _has_required_fields = True + def get_team_merge_request_expired(self): + """ + (trusted_teams) Team merge request expired - def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + Only call this if :meth:`is_team_merge_request_expired` is true. - @property - def new_value(self): + :rtype: TeamMergeRequestExpiredType """ - New extended version history policy. + if not self.is_team_merge_request_expired(): + raise AttributeError("tag 'team_merge_request_expired' not set") + return self._value - :rtype: team_log.ExtendedVersionHistoryPolicy + def get_team_merge_request_expired_shown_to_primary_team(self): """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") + (trusted_teams) Team merge request expired (deprecated, replaced by + 'Team merge request expired') - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + Only call this if :meth:`is_team_merge_request_expired_shown_to_primary_team` is true. - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + :rtype: TeamMergeRequestExpiredShownToPrimaryTeamType + """ + if not self.is_team_merge_request_expired_shown_to_primary_team(): + raise AttributeError("tag 'team_merge_request_expired_shown_to_primary_team' not set") + return self._value - @property - def previous_value(self): + def get_team_merge_request_expired_shown_to_secondary_team(self): """ - Previous extended version history policy. Might be missing due to - historical data gap. + (trusted_teams) Team merge request expired (deprecated, replaced by + 'Team merge request expired') - :rtype: team_log.ExtendedVersionHistoryPolicy + Only call this if :meth:`is_team_merge_request_expired_shown_to_secondary_team` is true. + + :rtype: TeamMergeRequestExpiredShownToSecondaryTeamType """ - if self._previous_value_present: - return self._previous_value_value - else: - return None + if not self.is_team_merge_request_expired_shown_to_secondary_team(): + raise AttributeError("tag 'team_merge_request_expired_shown_to_secondary_team' not set") + return self._value - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + def get_team_merge_request_rejected_shown_to_primary_team(self): + """ + (trusted_teams) Rejected a team merge request (deprecated, no longer + logged) - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + Only call this if :meth:`is_team_merge_request_rejected_shown_to_primary_team` is true. + + :rtype: TeamMergeRequestRejectedShownToPrimaryTeamType + """ + if not self.is_team_merge_request_rejected_shown_to_primary_team(): + raise AttributeError("tag 'team_merge_request_rejected_shown_to_primary_team' not set") + return self._value + + def get_team_merge_request_rejected_shown_to_secondary_team(self): + """ + (trusted_teams) Rejected a team merge request (deprecated, no longer + logged) + + Only call this if :meth:`is_team_merge_request_rejected_shown_to_secondary_team` is true. + + :rtype: TeamMergeRequestRejectedShownToSecondaryTeamType + """ + if not self.is_team_merge_request_rejected_shown_to_secondary_team(): + raise AttributeError("tag 'team_merge_request_rejected_shown_to_secondary_team' not set") + return self._value + + def get_team_merge_request_reminder(self): + """ + (trusted_teams) Sent a team merge request reminder + + Only call this if :meth:`is_team_merge_request_reminder` is true. + + :rtype: TeamMergeRequestReminderType + """ + if not self.is_team_merge_request_reminder(): + raise AttributeError("tag 'team_merge_request_reminder' not set") + return self._value + + def get_team_merge_request_reminder_shown_to_primary_team(self): + """ + (trusted_teams) Sent a team merge request reminder (deprecated, replaced + by 'Sent a team merge request reminder') + + Only call this if :meth:`is_team_merge_request_reminder_shown_to_primary_team` is true. + + :rtype: TeamMergeRequestReminderShownToPrimaryTeamType + """ + if not self.is_team_merge_request_reminder_shown_to_primary_team(): + raise AttributeError("tag 'team_merge_request_reminder_shown_to_primary_team' not set") + return self._value + + def get_team_merge_request_reminder_shown_to_secondary_team(self): + """ + (trusted_teams) Sent a team merge request reminder (deprecated, replaced + by 'Sent a team merge request reminder') + + Only call this if :meth:`is_team_merge_request_reminder_shown_to_secondary_team` is true. - def _process_custom_annotations(self, annotation_type, processor): - super(ExtendedVersionHistoryChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + :rtype: TeamMergeRequestReminderShownToSecondaryTeamType + """ + if not self.is_team_merge_request_reminder_shown_to_secondary_team(): + raise AttributeError("tag 'team_merge_request_reminder_shown_to_secondary_team' not set") + return self._value + + def get_team_merge_request_revoked(self): + """ + (trusted_teams) Canceled the team merge + + Only call this if :meth:`is_team_merge_request_revoked` is true. + + :rtype: TeamMergeRequestRevokedType + """ + if not self.is_team_merge_request_revoked(): + raise AttributeError("tag 'team_merge_request_revoked' not set") + return self._value + + def get_team_merge_request_sent_shown_to_primary_team(self): + """ + (trusted_teams) Requested to merge their Dropbox team into yours + + Only call this if :meth:`is_team_merge_request_sent_shown_to_primary_team` is true. + + :rtype: TeamMergeRequestSentShownToPrimaryTeamType + """ + if not self.is_team_merge_request_sent_shown_to_primary_team(): + raise AttributeError("tag 'team_merge_request_sent_shown_to_primary_team' not set") + return self._value + + def get_team_merge_request_sent_shown_to_secondary_team(self): + """ + (trusted_teams) Requested to merge your team into another Dropbox team + + Only call this if :meth:`is_team_merge_request_sent_shown_to_secondary_team` is true. + + :rtype: TeamMergeRequestSentShownToSecondaryTeamType + """ + if not self.is_team_merge_request_sent_shown_to_secondary_team(): + raise AttributeError("tag 'team_merge_request_sent_shown_to_secondary_team' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EventType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ExtendedVersionHistoryChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, - ) + return 'EventType(%r, %r)' % (self._tag, self._value) -ExtendedVersionHistoryChangePolicyDetails_validator = bv.Struct(ExtendedVersionHistoryChangePolicyDetails) +EventType_validator = bv.Union(EventType) -class ExtendedVersionHistoryChangePolicyType(bb.Struct): +class ExportMembersReportDetails(bb.Struct): + """ + Created member data report. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExportMembersReportDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ExportMembersReportDetails()' + +ExportMembersReportDetails_validator = bv.Struct(ExportMembersReportDetails) + +class ExportMembersReportType(bb.Struct): __slots__ = [ '_description_value', @@ -27470,8 +29569,148 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ExtendedVersionHistoryChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExportMembersReportType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ExportMembersReportType(description={!r})'.format( + self._description_value, + ) + +ExportMembersReportType_validator = bv.Struct(ExportMembersReportType) + +class ExtendedVersionHistoryChangePolicyDetails(bb.Struct): + """ + Accepted/opted out of extended version history. + + :ivar team_log.ExtendedVersionHistoryChangePolicyDetails.new_value: New + extended version history policy. + :ivar team_log.ExtendedVersionHistoryChangePolicyDetails.previous_value: + Previous extended version history policy. Might be missing due to + historical data gap. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + New extended version history policy. + + :rtype: ExtendedVersionHistoryPolicy + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous extended version history policy. Might be missing due to + historical data gap. + + :rtype: ExtendedVersionHistoryPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExtendedVersionHistoryChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ExtendedVersionHistoryChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) + +ExtendedVersionHistoryChangePolicyDetails_validator = bv.Struct(ExtendedVersionHistoryChangePolicyDetails) + +class ExtendedVersionHistoryChangePolicyType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExtendedVersionHistoryChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExtendedVersionHistoryChangePolicyType(description={!r})'.format( @@ -27539,8 +29778,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ExtendedVersionHistoryPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExtendedVersionHistoryPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExtendedVersionHistoryPolicy(%r, %r)' % (self._tag, self._value) @@ -27605,7 +29844,7 @@ def identifier_type(self): """ Identifier type. - :rtype: team_log.IdentifierType + :rtype: IdentifierType """ if self._identifier_type_present: return self._identifier_type_value @@ -27623,8 +29862,8 @@ def identifier_type(self): self._identifier_type_value = None self._identifier_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ExternalUserLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ExternalUserLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ExternalUserLogInfo(user_identifier={!r}, identifier_type={!r})'.format( @@ -27718,8 +29957,8 @@ def technical_error_message(self): self._technical_error_message_value = None self._technical_error_message_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FailureDetailsLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FailureDetailsLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FailureDetailsLogInfo(user_friendly_message={!r}, technical_error_message={!r})'.format( @@ -27777,8 +30016,8 @@ def comment_text(self): self._comment_text_value = None self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileAddCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileAddCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileAddCommentDetails(comment_text={!r})'.format( @@ -27824,8 +30063,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileAddCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileAddCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileAddCommentType(description={!r})'.format( @@ -27847,8 +30086,8 @@ class FileAddDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileAddDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileAddDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileAddDetails()' @@ -27892,8 +30131,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileAddType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileAddType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileAddType(description={!r})'.format( @@ -27938,7 +30177,7 @@ def new_value(self): """ New file comment subscription. - :rtype: team_log.FileCommentNotificationPolicy + :rtype: FileCommentNotificationPolicy """ if self._new_value_present: return self._new_value_value @@ -27962,7 +30201,7 @@ def previous_value(self): Previous file comment subscription. Might be missing due to historical data gap. - :rtype: team_log.FileCommentNotificationPolicy + :rtype: FileCommentNotificationPolicy """ if self._previous_value_present: return self._previous_value_value @@ -27983,8 +30222,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileChangeCommentSubscriptionDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileChangeCommentSubscriptionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileChangeCommentSubscriptionDetails(new_value={!r}, previous_value={!r})'.format( @@ -28031,8 +30270,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileChangeCommentSubscriptionType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileChangeCommentSubscriptionType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileChangeCommentSubscriptionType(description={!r})'.format( @@ -28082,8 +30321,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(FileCommentNotificationPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileCommentNotificationPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileCommentNotificationPolicy(%r, %r)' % (self._tag, self._value) @@ -28127,7 +30366,7 @@ def new_value(self): """ New commenting on team files policy. - :rtype: team_log.FileCommentsPolicy + :rtype: FileCommentsPolicy """ if self._new_value_present: return self._new_value_value @@ -28151,7 +30390,7 @@ def previous_value(self): Previous commenting on team files policy. Might be missing due to historical data gap. - :rtype: team_log.FileCommentsPolicy + :rtype: FileCommentsPolicy """ if self._previous_value_present: return self._previous_value_value @@ -28172,8 +30411,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileCommentsChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileCommentsChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileCommentsChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -28220,8 +30459,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileCommentsChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileCommentsChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileCommentsChangePolicyType(description={!r})'.format( @@ -28271,8 +30510,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(FileCommentsPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileCommentsPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileCommentsPolicy(%r, %r)' % (self._tag, self._value) @@ -28306,7 +30545,7 @@ def relocate_action_details(self): """ Relocate action details. - :rtype: list of [team_log.RelocateAssetReferencesLogInfo] + :rtype: list of [RelocateAssetReferencesLogInfo] """ if self._relocate_action_details_present: return self._relocate_action_details_value @@ -28324,8 +30563,8 @@ def relocate_action_details(self): self._relocate_action_details_value = None self._relocate_action_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileCopyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileCopyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileCopyDetails(relocate_action_details={!r})'.format( @@ -28371,8 +30610,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileCopyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileCopyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileCopyType(description={!r})'.format( @@ -28429,8 +30668,8 @@ def comment_text(self): self._comment_text_value = None self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileDeleteCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileDeleteCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileDeleteCommentDetails(comment_text={!r})'.format( @@ -28476,8 +30715,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileDeleteCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileDeleteCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileDeleteCommentType(description={!r})'.format( @@ -28499,8 +30738,8 @@ class FileDeleteDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileDeleteDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileDeleteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileDeleteDetails()' @@ -28544,8 +30783,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileDeleteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileDeleteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileDeleteType(description={!r})'.format( @@ -28567,8 +30806,8 @@ class FileDownloadDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileDownloadDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileDownloadDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileDownloadDetails()' @@ -28612,8 +30851,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileDownloadType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileDownloadType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileDownloadType(description={!r})'.format( @@ -28702,8 +30941,8 @@ def previous_comment_text(self): self._previous_comment_text_value = None self._previous_comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileEditCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileEditCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileEditCommentDetails(previous_comment_text={!r}, comment_text={!r})'.format( @@ -28750,8 +30989,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileEditCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileEditCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileEditCommentType(description={!r})'.format( @@ -28773,8 +31012,8 @@ class FileEditDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileEditDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileEditDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileEditDetails()' @@ -28818,8 +31057,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileEditType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileEditType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileEditType(description={!r})'.format( @@ -28841,8 +31080,8 @@ class FileGetCopyReferenceDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileGetCopyReferenceDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileGetCopyReferenceDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileGetCopyReferenceDetails()' @@ -28886,8 +31125,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileGetCopyReferenceType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileGetCopyReferenceType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileGetCopyReferenceType(description={!r})'.format( @@ -28944,8 +31183,8 @@ def comment_text(self): self._comment_text_value = None self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileLikeCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileLikeCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileLikeCommentDetails(comment_text={!r})'.format( @@ -28991,8 +31230,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileLikeCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileLikeCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileLikeCommentType(description={!r})'.format( @@ -29045,7 +31284,7 @@ def path(self): """ Path relative to event context. - :rtype: team_log.PathLogInfo + :rtype: PathLogInfo """ if self._path_present: return self._path_value @@ -29115,8 +31354,8 @@ def file_id(self): self._file_id_value = None self._file_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileOrFolderLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileOrFolderLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileOrFolderLogInfo(path={!r}, display_name={!r}, file_id={!r})'.format( @@ -29145,8 +31384,8 @@ def __init__(self, display_name, file_id) - def _process_custom_annotations(self, annotation_type, processor): - super(FileLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileLogInfo(path={!r}, display_name={!r}, file_id={!r})'.format( @@ -29184,7 +31423,7 @@ def relocate_action_details(self): """ Relocate action details. - :rtype: list of [team_log.RelocateAssetReferencesLogInfo] + :rtype: list of [RelocateAssetReferencesLogInfo] """ if self._relocate_action_details_present: return self._relocate_action_details_value @@ -29202,8 +31441,8 @@ def relocate_action_details(self): self._relocate_action_details_value = None self._relocate_action_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileMoveDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileMoveDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileMoveDetails(relocate_action_details={!r})'.format( @@ -29249,8 +31488,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileMoveType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileMoveType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileMoveType(description={!r})'.format( @@ -29272,8 +31511,8 @@ class FilePermanentlyDeleteDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FilePermanentlyDeleteDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FilePermanentlyDeleteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FilePermanentlyDeleteDetails()' @@ -29317,8 +31556,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FilePermanentlyDeleteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FilePermanentlyDeleteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FilePermanentlyDeleteType(description={!r})'.format( @@ -29340,8 +31579,8 @@ class FilePreviewDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FilePreviewDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FilePreviewDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FilePreviewDetails()' @@ -29385,8 +31624,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FilePreviewType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FilePreviewType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FilePreviewType(description={!r})'.format( @@ -29422,7 +31661,7 @@ def relocate_action_details(self): """ Relocate action details. - :rtype: list of [team_log.RelocateAssetReferencesLogInfo] + :rtype: list of [RelocateAssetReferencesLogInfo] """ if self._relocate_action_details_present: return self._relocate_action_details_value @@ -29440,8 +31679,8 @@ def relocate_action_details(self): self._relocate_action_details_value = None self._relocate_action_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRenameDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRenameDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRenameDetails(relocate_action_details={!r})'.format( @@ -29487,8 +31726,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRenameType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRenameType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRenameType(description={!r})'.format( @@ -29569,7 +31808,7 @@ def previous_details(self): Previous file request details. Might be missing due to historical data gap. - :rtype: team_log.FileRequestDetails + :rtype: FileRequestDetails """ if self._previous_details_present: return self._previous_details_value @@ -29595,7 +31834,7 @@ def new_details(self): """ New file request details. - :rtype: team_log.FileRequestDetails + :rtype: FileRequestDetails """ if self._new_details_present: return self._new_details_value @@ -29613,8 +31852,8 @@ def new_details(self): self._new_details_value = None self._new_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestChangeDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestChangeDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestChangeDetails(new_details={!r}, file_request_id={!r}, previous_details={!r})'.format( @@ -29662,8 +31901,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestChangeType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestChangeType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestChangeType(description={!r})'.format( @@ -29735,7 +31974,7 @@ def previous_details(self): Previous file request details. Might be missing due to historical data gap. - :rtype: team_log.FileRequestDetails + :rtype: FileRequestDetails """ if self._previous_details_present: return self._previous_details_value @@ -29756,8 +31995,8 @@ def previous_details(self): self._previous_details_value = None self._previous_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestCloseDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestCloseDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestCloseDetails(file_request_id={!r}, previous_details={!r})'.format( @@ -29804,8 +32043,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestCloseType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestCloseType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestCloseType(description={!r})'.format( @@ -29876,7 +32115,7 @@ def request_details(self): """ File request details. Might be missing due to historical data gap. - :rtype: team_log.FileRequestDetails + :rtype: FileRequestDetails """ if self._request_details_present: return self._request_details_value @@ -29897,8 +32136,8 @@ def request_details(self): self._request_details_value = None self._request_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestCreateDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestCreateDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestCreateDetails(file_request_id={!r}, request_details={!r})'.format( @@ -29945,8 +32184,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestCreateType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestCreateType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestCreateType(description={!r})'.format( @@ -30041,8 +32280,8 @@ def allow_late_uploads(self): self._allow_late_uploads_value = None self._allow_late_uploads_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestDeadline, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestDeadline, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestDeadline(deadline={!r}, allow_late_uploads={!r})'.format( @@ -30052,6 +32291,148 @@ def __repr__(self): FileRequestDeadline_validator = bv.Struct(FileRequestDeadline) +class FileRequestDeleteDetails(bb.Struct): + """ + Delete file request. + + :ivar team_log.FileRequestDeleteDetails.file_request_id: File request id. + Might be missing due to historical data gap. + :ivar team_log.FileRequestDeleteDetails.previous_details: Previous file + request details. Might be missing due to historical data gap. + """ + + __slots__ = [ + '_file_request_id_value', + '_file_request_id_present', + '_previous_details_value', + '_previous_details_present', + ] + + _has_required_fields = False + + def __init__(self, + file_request_id=None, + previous_details=None): + self._file_request_id_value = None + self._file_request_id_present = False + self._previous_details_value = None + self._previous_details_present = False + if file_request_id is not None: + self.file_request_id = file_request_id + if previous_details is not None: + self.previous_details = previous_details + + @property + def file_request_id(self): + """ + File request id. Might be missing due to historical data gap. + + :rtype: str + """ + if self._file_request_id_present: + return self._file_request_id_value + else: + return None + + @file_request_id.setter + def file_request_id(self, val): + if val is None: + del self.file_request_id + return + val = self._file_request_id_validator.validate(val) + self._file_request_id_value = val + self._file_request_id_present = True + + @file_request_id.deleter + def file_request_id(self): + self._file_request_id_value = None + self._file_request_id_present = False + + @property + def previous_details(self): + """ + Previous file request details. Might be missing due to historical data + gap. + + :rtype: FileRequestDetails + """ + if self._previous_details_present: + return self._previous_details_value + else: + return None + + @previous_details.setter + def previous_details(self, val): + if val is None: + del self.previous_details + return + self._previous_details_validator.validate_type_only(val) + self._previous_details_value = val + self._previous_details_present = True + + @previous_details.deleter + def previous_details(self): + self._previous_details_value = None + self._previous_details_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestDeleteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'FileRequestDeleteDetails(file_request_id={!r}, previous_details={!r})'.format( + self._file_request_id_value, + self._previous_details_value, + ) + +FileRequestDeleteDetails_validator = bv.Struct(FileRequestDeleteDetails) + +class FileRequestDeleteType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestDeleteType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'FileRequestDeleteType(description={!r})'.format( + self._description_value, + ) + +FileRequestDeleteType_validator = bv.Struct(FileRequestDeleteType) + class FileRequestDetails(bb.Struct): """ File request details @@ -30111,7 +32492,7 @@ def deadline(self): """ File request deadline. Might be missing due to historical data gap. - :rtype: team_log.FileRequestDeadline + :rtype: FileRequestDeadline """ if self._deadline_present: return self._deadline_value @@ -30132,8 +32513,8 @@ def deadline(self): self._deadline_value = None self._deadline_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestDetails(asset_index={!r}, deadline={!r})'.format( @@ -30232,7 +32613,7 @@ def file_request_details(self): """ File request details. Might be missing due to historical data gap. - :rtype: team_log.FileRequestDetails + :rtype: FileRequestDetails """ if self._file_request_details_present: return self._file_request_details_value @@ -30330,8 +32711,8 @@ def submitter_email(self): self._submitter_email_value = None self._submitter_email_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestReceiveFileDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestReceiveFileDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestReceiveFileDetails(submitted_file_names={!r}, file_request_id={!r}, file_request_details={!r}, submitter_name={!r}, submitter_email={!r})'.format( @@ -30381,8 +32762,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestReceiveFileType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestReceiveFileType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestReceiveFileType(description={!r})'.format( @@ -30427,7 +32808,7 @@ def new_value(self): """ New file requests policy. - :rtype: team_log.FileRequestsPolicy + :rtype: FileRequestsPolicy """ if self._new_value_present: return self._new_value_value @@ -30451,7 +32832,7 @@ def previous_value(self): Previous file requests policy. Might be missing due to historical data gap. - :rtype: team_log.FileRequestsPolicy + :rtype: FileRequestsPolicy """ if self._previous_value_present: return self._previous_value_value @@ -30472,8 +32853,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestsChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestsChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestsChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -30520,8 +32901,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestsChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestsChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestsChangePolicyType(description={!r})'.format( @@ -30543,8 +32924,8 @@ class FileRequestsEmailsEnabledDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestsEmailsEnabledDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestsEmailsEnabledDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestsEmailsEnabledDetails()' @@ -30588,8 +32969,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestsEmailsEnabledType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestsEmailsEnabledType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestsEmailsEnabledType(description={!r})'.format( @@ -30611,8 +32992,8 @@ class FileRequestsEmailsRestrictedToTeamOnlyDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestsEmailsRestrictedToTeamOnlyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestsEmailsRestrictedToTeamOnlyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestsEmailsRestrictedToTeamOnlyDetails()' @@ -30656,8 +33037,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestsEmailsRestrictedToTeamOnlyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestsEmailsRestrictedToTeamOnlyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestsEmailsRestrictedToTeamOnlyType(description={!r})'.format( @@ -30707,8 +33088,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(FileRequestsPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRequestsPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRequestsPolicy(%r, %r)' % (self._tag, self._value) @@ -30763,8 +33144,8 @@ def comment_text(self): self._comment_text_value = None self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileResolveCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileResolveCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileResolveCommentDetails(comment_text={!r})'.format( @@ -30810,8 +33191,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileResolveCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileResolveCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileResolveCommentType(description={!r})'.format( @@ -30833,8 +33214,8 @@ class FileRestoreDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileRestoreDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRestoreDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRestoreDetails()' @@ -30878,8 +33259,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRestoreType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRestoreType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRestoreType(description={!r})'.format( @@ -30901,8 +33282,8 @@ class FileRevertDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileRevertDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRevertDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRevertDetails()' @@ -30946,8 +33327,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRevertType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRevertType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRevertType(description={!r})'.format( @@ -30969,8 +33350,8 @@ class FileRollbackChangesDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(FileRollbackChangesDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRollbackChangesDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRollbackChangesDetails()' @@ -31014,8 +33395,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileRollbackChangesType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileRollbackChangesType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileRollbackChangesType(description={!r})'.format( @@ -31051,7 +33432,7 @@ def relocate_action_details(self): """ Relocate action details. - :rtype: list of [team_log.RelocateAssetReferencesLogInfo] + :rtype: list of [RelocateAssetReferencesLogInfo] """ if self._relocate_action_details_present: return self._relocate_action_details_value @@ -31069,8 +33450,8 @@ def relocate_action_details(self): self._relocate_action_details_value = None self._relocate_action_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileSaveCopyReferenceDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileSaveCopyReferenceDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileSaveCopyReferenceDetails(relocate_action_details={!r})'.format( @@ -31116,8 +33497,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileSaveCopyReferenceType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileSaveCopyReferenceType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileSaveCopyReferenceType(description={!r})'.format( @@ -31174,8 +33555,8 @@ def comment_text(self): self._comment_text_value = None self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileUnlikeCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileUnlikeCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileUnlikeCommentDetails(comment_text={!r})'.format( @@ -31221,8 +33602,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileUnlikeCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileUnlikeCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileUnlikeCommentType(description={!r})'.format( @@ -31279,8 +33660,8 @@ def comment_text(self): self._comment_text_value = None self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileUnresolveCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileUnresolveCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileUnresolveCommentDetails(comment_text={!r})'.format( @@ -31326,8 +33707,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FileUnresolveCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FileUnresolveCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FileUnresolveCommentType(description={!r})'.format( @@ -31354,8 +33735,8 @@ def __init__(self, display_name, file_id) - def _process_custom_annotations(self, annotation_type, processor): - super(FolderLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FolderLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FolderLogInfo(path={!r}, display_name={!r}, file_id={!r})'.format( @@ -31512,8 +33893,8 @@ def ip_address(self): self._ip_address_value = None self._ip_address_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GeoLocationLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GeoLocationLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GeoLocationLogInfo(ip_address={!r}, city={!r}, region={!r}, country={!r})'.format( @@ -31660,7 +34041,7 @@ def category(self): """ Filter the returned events to a single category. - :rtype: team_log.EventCategory + :rtype: EventCategory """ if self._category_present: return self._category_value @@ -31681,8 +34062,8 @@ def category(self): self._category_value = None self._category_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetTeamEventsArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTeamEventsArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTeamEventsArg(limit={!r}, account_id={!r}, time={!r}, category={!r})'.format( @@ -31737,8 +34118,8 @@ def cursor(self): self._cursor_value = None self._cursor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetTeamEventsContinueArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTeamEventsContinueArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTeamEventsContinueArg(cursor={!r})'.format( @@ -31780,7 +34161,7 @@ def reset(cls, val): ``val``. :param datetime.datetime val: - :rtype: team_log.GetTeamEventsContinueError + :rtype: GetTeamEventsContinueError """ return cls('reset', val) @@ -31827,8 +34208,8 @@ def get_reset(self): raise AttributeError("tag 'reset' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GetTeamEventsContinueError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTeamEventsContinueError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTeamEventsContinueError(%r, %r)' % (self._tag, self._value) @@ -31881,8 +34262,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GetTeamEventsError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTeamEventsError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTeamEventsError(%r, %r)' % (self._tag, self._value) @@ -31943,7 +34324,7 @@ def events(self): List of events. Note that events are not guaranteed to be sorted by their timestamp value. - :rtype: list of [team_log.TeamEvent] + :rtype: list of [TeamEvent] """ if self._events_present: return self._events_value @@ -32019,8 +34400,8 @@ def has_more(self): self._has_more_value = None self._has_more_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetTeamEventsResult, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetTeamEventsResult, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetTeamEventsResult(events={!r}, cursor={!r}, has_more={!r})'.format( @@ -32067,7 +34448,7 @@ def new_value(self): """ New Google single sign-on policy. - :rtype: team_log.GoogleSsoPolicy + :rtype: GoogleSsoPolicy """ if self._new_value_present: return self._new_value_value @@ -32091,7 +34472,7 @@ def previous_value(self): Previous Google single sign-on policy. Might be missing due to historical data gap. - :rtype: team_log.GoogleSsoPolicy + :rtype: GoogleSsoPolicy """ if self._previous_value_present: return self._previous_value_value @@ -32112,8 +34493,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GoogleSsoChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GoogleSsoChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GoogleSsoChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -32160,8 +34541,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GoogleSsoChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GoogleSsoChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GoogleSsoChangePolicyType(description={!r})'.format( @@ -32211,8 +34592,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GoogleSsoPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GoogleSsoPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GoogleSsoPolicy(%r, %r)' % (self._tag, self._value) @@ -32263,8 +34644,8 @@ def new_value(self): self._new_value_value = None self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupAddExternalIdDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupAddExternalIdDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupAddExternalIdDetails(new_value={!r})'.format( @@ -32310,8 +34691,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupAddExternalIdType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupAddExternalIdType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupAddExternalIdType(description={!r})'.format( @@ -32364,8 +34745,8 @@ def is_group_owner(self): self._is_group_owner_value = None self._is_group_owner_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupAddMemberDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupAddMemberDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupAddMemberDetails(is_group_owner={!r})'.format( @@ -32411,8 +34792,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupAddMemberType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupAddMemberType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupAddMemberType(description={!r})'.format( @@ -32496,8 +34877,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupChangeExternalIdDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupChangeExternalIdDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupChangeExternalIdDetails(new_value={!r}, previous_value={!r})'.format( @@ -32544,8 +34925,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupChangeExternalIdType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupChangeExternalIdType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupChangeExternalIdType(description={!r})'.format( @@ -32635,8 +35016,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupChangeManagementTypeDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupChangeManagementTypeDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupChangeManagementTypeDetails(new_value={!r}, previous_value={!r})'.format( @@ -32683,8 +35064,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupChangeManagementTypeType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupChangeManagementTypeType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupChangeManagementTypeType(description={!r})'.format( @@ -32737,8 +35118,8 @@ def is_group_owner(self): self._is_group_owner_value = None self._is_group_owner_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupChangeMemberRoleDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupChangeMemberRoleDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupChangeMemberRoleDetails(is_group_owner={!r})'.format( @@ -32784,8 +35165,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupChangeMemberRoleType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupChangeMemberRoleType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupChangeMemberRoleType(description={!r})'.format( @@ -32855,7 +35236,7 @@ def join_policy(self): """ Group join policy. - :rtype: team_log.GroupJoinPolicy + :rtype: GroupJoinPolicy """ if self._join_policy_present: return self._join_policy_value @@ -32876,8 +35257,8 @@ def join_policy(self): self._join_policy_value = None self._join_policy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupCreateDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupCreateDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupCreateDetails(is_company_managed={!r}, join_policy={!r})'.format( @@ -32924,8 +35305,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupCreateType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupCreateType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupCreateType(description={!r})'.format( @@ -32982,8 +35363,8 @@ def is_company_managed(self): self._is_company_managed_value = None self._is_company_managed_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupDeleteDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupDeleteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupDeleteDetails(is_company_managed={!r})'.format( @@ -33029,8 +35410,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupDeleteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupDeleteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupDeleteType(description={!r})'.format( @@ -33052,8 +35433,8 @@ class GroupDescriptionUpdatedDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(GroupDescriptionUpdatedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupDescriptionUpdatedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupDescriptionUpdatedDetails()' @@ -33097,8 +35478,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupDescriptionUpdatedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupDescriptionUpdatedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupDescriptionUpdatedType(description={!r})'.format( @@ -33146,8 +35527,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupJoinPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupJoinPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupJoinPolicy(%r, %r)' % (self._tag, self._value) @@ -33215,7 +35596,7 @@ def join_policy(self): """ Group join policy. - :rtype: team_log.GroupJoinPolicy + :rtype: GroupJoinPolicy """ if self._join_policy_present: return self._join_policy_value @@ -33236,8 +35617,8 @@ def join_policy(self): self._join_policy_value = None self._join_policy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupJoinPolicyUpdatedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupJoinPolicyUpdatedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupJoinPolicyUpdatedDetails(is_company_managed={!r}, join_policy={!r})'.format( @@ -33284,8 +35665,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupJoinPolicyUpdatedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupJoinPolicyUpdatedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupJoinPolicyUpdatedType(description={!r})'.format( @@ -33409,8 +35790,8 @@ def external_id(self): self._external_id_value = None self._external_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupLogInfo(display_name={!r}, group_id={!r}, external_id={!r})'.format( @@ -33434,8 +35815,8 @@ class GroupMovedDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMovedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMovedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMovedDetails()' @@ -33479,8 +35860,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupMovedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupMovedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupMovedType(description={!r})'.format( @@ -33533,8 +35914,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupRemoveExternalIdDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupRemoveExternalIdDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupRemoveExternalIdDetails(previous_value={!r})'.format( @@ -33580,8 +35961,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupRemoveExternalIdType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupRemoveExternalIdType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupRemoveExternalIdType(description={!r})'.format( @@ -33603,8 +35984,8 @@ class GroupRemoveMemberDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(GroupRemoveMemberDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupRemoveMemberDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupRemoveMemberDetails()' @@ -33648,8 +36029,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupRemoveMemberType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupRemoveMemberType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupRemoveMemberType(description={!r})'.format( @@ -33733,8 +36114,8 @@ def new_value(self): self._new_value_value = None self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupRenameDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupRenameDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupRenameDetails(previous_value={!r}, new_value={!r})'.format( @@ -33781,8 +36162,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupRenameType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupRenameType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupRenameType(description={!r})'.format( @@ -33873,8 +36254,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupUserManagementChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupUserManagementChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupUserManagementChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -33921,8 +36302,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GroupUserManagementChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupUserManagementChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupUserManagementChangePolicyType(description={!r})'.format( @@ -33931,633 +36312,589 @@ def __repr__(self): GroupUserManagementChangePolicyType_validator = bv.Struct(GroupUserManagementChangePolicyType) -class IdentifierType(bb.Union): +class GuestAdminChangeStatusDetails(bb.Struct): """ - 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. + Changed guest team admin status. + + :ivar team_log.GuestAdminChangeStatusDetails.is_guest: True for guest, false + for host. + :ivar team_log.GuestAdminChangeStatusDetails.guest_team_name: The name of + the guest team. + :ivar team_log.GuestAdminChangeStatusDetails.host_team_name: The name of the + host team. + :ivar team_log.GuestAdminChangeStatusDetails.previous_value: Previous + request state. + :ivar team_log.GuestAdminChangeStatusDetails.new_value: New request state. + :ivar team_log.GuestAdminChangeStatusDetails.action_details: Action details. """ - _catch_all = 'other' - # Attribute is overwritten below the class definition - email = None - # Attribute is overwritten below the class definition - facebook_profile_name = None - # Attribute is overwritten below the class definition - other = None + __slots__ = [ + '_is_guest_value', + '_is_guest_present', + '_guest_team_name_value', + '_guest_team_name_present', + '_host_team_name_value', + '_host_team_name_present', + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + '_action_details_value', + '_action_details_present', + ] - def is_email(self): - """ - Check if the union tag is ``email``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'email' + def __init__(self, + is_guest=None, + previous_value=None, + new_value=None, + action_details=None, + guest_team_name=None, + host_team_name=None): + self._is_guest_value = None + self._is_guest_present = False + self._guest_team_name_value = None + self._guest_team_name_present = False + self._host_team_name_value = None + self._host_team_name_present = False + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + self._action_details_value = None + self._action_details_present = False + if is_guest is not None: + self.is_guest = is_guest + if guest_team_name is not None: + self.guest_team_name = guest_team_name + if host_team_name is not None: + self.host_team_name = host_team_name + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value + if action_details is not None: + self.action_details = action_details - def is_facebook_profile_name(self): + @property + def is_guest(self): """ - Check if the union tag is ``facebook_profile_name``. + True for guest, false for host. :rtype: bool """ - return self._tag == 'facebook_profile_name' + if self._is_guest_present: + return self._is_guest_value + else: + raise AttributeError("missing required field 'is_guest'") - def is_other(self): + @is_guest.setter + def is_guest(self, val): + val = self._is_guest_validator.validate(val) + self._is_guest_value = val + self._is_guest_present = True + + @is_guest.deleter + def is_guest(self): + self._is_guest_value = None + self._is_guest_present = False + + @property + def guest_team_name(self): """ - Check if the union tag is ``other``. + The name of the guest team. - :rtype: bool + :rtype: str """ - return self._tag == 'other' + if self._guest_team_name_present: + return self._guest_team_name_value + else: + return None - def _process_custom_annotations(self, annotation_type, processor): - super(IdentifierType, self)._process_custom_annotations(annotation_type, processor) + @guest_team_name.setter + def guest_team_name(self, val): + if val is None: + del self.guest_team_name + return + val = self._guest_team_name_validator.validate(val) + self._guest_team_name_value = val + self._guest_team_name_present = True - def __repr__(self): - return 'IdentifierType(%r, %r)' % (self._tag, self._value) + @guest_team_name.deleter + def guest_team_name(self): + self._guest_team_name_value = None + self._guest_team_name_present = False -IdentifierType_validator = bv.Union(IdentifierType) + @property + def host_team_name(self): + """ + The name of the host team. -class JoinTeamDetails(bb.Struct): - """ - Additional information relevant when a new member joins the team. + :rtype: str + """ + if self._host_team_name_present: + return self._host_team_name_value + else: + return None - :ivar team_log.JoinTeamDetails.linked_apps: Linked applications. - :ivar team_log.JoinTeamDetails.linked_devices: Linked devices. - :ivar team_log.JoinTeamDetails.linked_shared_folders: Linked shared folders. - """ + @host_team_name.setter + def host_team_name(self, val): + if val is None: + del self.host_team_name + return + val = self._host_team_name_validator.validate(val) + self._host_team_name_value = val + self._host_team_name_present = True - __slots__ = [ - '_linked_apps_value', - '_linked_apps_present', - '_linked_devices_value', - '_linked_devices_present', - '_linked_shared_folders_value', - '_linked_shared_folders_present', - ] + @host_team_name.deleter + def host_team_name(self): + self._host_team_name_value = None + self._host_team_name_present = False - _has_required_fields = True + @property + def previous_value(self): + """ + Previous request state. - def __init__(self, - linked_apps=None, - linked_devices=None, - linked_shared_folders=None): - self._linked_apps_value = None - self._linked_apps_present = False - self._linked_devices_value = None - self._linked_devices_present = False - self._linked_shared_folders_value = None - self._linked_shared_folders_present = False - if linked_apps is not None: - self.linked_apps = linked_apps - if linked_devices is not None: - self.linked_devices = linked_devices - if linked_shared_folders is not None: - self.linked_shared_folders = linked_shared_folders + :rtype: TrustedTeamsRequestState + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") + + @previous_value.setter + def previous_value(self, val): + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False @property - def linked_apps(self): + def new_value(self): """ - Linked applications. + New request state. - :rtype: list of [team_log.UserLinkedAppLogInfo] + :rtype: TrustedTeamsRequestState """ - if self._linked_apps_present: - return self._linked_apps_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'linked_apps'") + raise AttributeError("missing required field 'new_value'") - @linked_apps.setter - def linked_apps(self, val): - val = self._linked_apps_validator.validate(val) - self._linked_apps_value = val - self._linked_apps_present = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - @linked_apps.deleter - def linked_apps(self): - self._linked_apps_value = None - self._linked_apps_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False @property - def linked_devices(self): + def action_details(self): """ - Linked devices. + Action details. - :rtype: list of [team_log.LinkedDeviceLogInfo] + :rtype: TrustedTeamsRequestAction """ - if self._linked_devices_present: - return self._linked_devices_value + if self._action_details_present: + return self._action_details_value else: - raise AttributeError("missing required field 'linked_devices'") + raise AttributeError("missing required field 'action_details'") - @linked_devices.setter - def linked_devices(self, val): - val = self._linked_devices_validator.validate(val) - self._linked_devices_value = val - self._linked_devices_present = True + @action_details.setter + def action_details(self, val): + self._action_details_validator.validate_type_only(val) + self._action_details_value = val + self._action_details_present = True - @linked_devices.deleter - def linked_devices(self): - self._linked_devices_value = None - self._linked_devices_present = False + @action_details.deleter + def action_details(self): + self._action_details_value = None + self._action_details_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GuestAdminChangeStatusDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GuestAdminChangeStatusDetails(is_guest={!r}, previous_value={!r}, new_value={!r}, action_details={!r}, guest_team_name={!r}, host_team_name={!r})'.format( + self._is_guest_value, + self._previous_value_value, + self._new_value_value, + self._action_details_value, + self._guest_team_name_value, + self._host_team_name_value, + ) + +GuestAdminChangeStatusDetails_validator = bv.Struct(GuestAdminChangeStatusDetails) + +class GuestAdminChangeStatusType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def linked_shared_folders(self): + def description(self): """ - Linked shared folders. - - :rtype: list of [team_log.FolderLogInfo] + :rtype: str """ - if self._linked_shared_folders_present: - return self._linked_shared_folders_value + if self._description_present: + return self._description_value else: - raise AttributeError("missing required field 'linked_shared_folders'") + raise AttributeError("missing required field 'description'") - @linked_shared_folders.setter - def linked_shared_folders(self, val): - val = self._linked_shared_folders_validator.validate(val) - self._linked_shared_folders_value = val - self._linked_shared_folders_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @linked_shared_folders.deleter - def linked_shared_folders(self): - self._linked_shared_folders_value = None - self._linked_shared_folders_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(JoinTeamDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GuestAdminChangeStatusType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'JoinTeamDetails(linked_apps={!r}, linked_devices={!r}, linked_shared_folders={!r})'.format( - self._linked_apps_value, - self._linked_devices_value, - self._linked_shared_folders_value, + return 'GuestAdminChangeStatusType(description={!r})'.format( + self._description_value, ) -JoinTeamDetails_validator = bv.Struct(JoinTeamDetails) +GuestAdminChangeStatusType_validator = bv.Struct(GuestAdminChangeStatusType) -class LegacyDeviceSessionLogInfo(DeviceSessionLogInfo): +class GuestAdminSignedInViaTrustedTeamsDetails(bb.Struct): """ - Information on sessions, in legacy format + Started trusted team admin session. - :ivar team_log.LegacyDeviceSessionLogInfo.session_info: Session unique id. - Might be missing due to historical data gap. - :ivar team_log.LegacyDeviceSessionLogInfo.display_name: The device name. - Might be missing due to historical data gap. - :ivar team_log.LegacyDeviceSessionLogInfo.is_emm_managed: Is device managed - by emm. Might be missing due to historical data gap. - :ivar team_log.LegacyDeviceSessionLogInfo.platform: Information on the - hosting platform. Might be missing due to historical data gap. - :ivar team_log.LegacyDeviceSessionLogInfo.mac_address: The mac address of - the last activity from this session. Might be missing due to historical - data gap. - :ivar team_log.LegacyDeviceSessionLogInfo.os_version: The hosting OS - version. Might be missing due to historical data gap. - :ivar team_log.LegacyDeviceSessionLogInfo.device_type: Information on the - hosting device type. Might be missing due to historical data gap. - :ivar team_log.LegacyDeviceSessionLogInfo.client_version: The Dropbox client - version. Might be missing due to historical data gap. - :ivar team_log.LegacyDeviceSessionLogInfo.legacy_uniq_id: Alternative unique - device session id, instead of session id field. Might be missing due to - historical data gap. + :ivar team_log.GuestAdminSignedInViaTrustedTeamsDetails.team_name: Host team + name. + :ivar team_log.GuestAdminSignedInViaTrustedTeamsDetails.trusted_team_name: + Trusted team name. """ __slots__ = [ - '_session_info_value', - '_session_info_present', - '_display_name_value', - '_display_name_present', - '_is_emm_managed_value', - '_is_emm_managed_present', - '_platform_value', - '_platform_present', - '_mac_address_value', - '_mac_address_present', - '_os_version_value', - '_os_version_present', - '_device_type_value', - '_device_type_present', - '_client_version_value', - '_client_version_present', - '_legacy_uniq_id_value', - '_legacy_uniq_id_present', + '_team_name_value', + '_team_name_present', + '_trusted_team_name_value', + '_trusted_team_name_present', ] _has_required_fields = False def __init__(self, - ip_address=None, - created=None, - updated=None, - session_info=None, - display_name=None, - is_emm_managed=None, - platform=None, - mac_address=None, - os_version=None, - device_type=None, - client_version=None, - legacy_uniq_id=None): - super(LegacyDeviceSessionLogInfo, self).__init__(ip_address, - created, - updated) - self._session_info_value = None - self._session_info_present = False - self._display_name_value = None - self._display_name_present = False - self._is_emm_managed_value = None - self._is_emm_managed_present = False - self._platform_value = None - self._platform_present = False - self._mac_address_value = None - self._mac_address_present = False - self._os_version_value = None - self._os_version_present = False - self._device_type_value = None - self._device_type_present = False - self._client_version_value = None - self._client_version_present = False - self._legacy_uniq_id_value = None - self._legacy_uniq_id_present = False - if session_info is not None: - self.session_info = session_info - if display_name is not None: - self.display_name = display_name - if is_emm_managed is not None: - self.is_emm_managed = is_emm_managed - if platform is not None: - self.platform = platform - if mac_address is not None: - self.mac_address = mac_address - if os_version is not None: - self.os_version = os_version - if device_type is not None: - self.device_type = device_type - if client_version is not None: - self.client_version = client_version - if legacy_uniq_id is not None: - self.legacy_uniq_id = legacy_uniq_id + team_name=None, + trusted_team_name=None): + self._team_name_value = None + self._team_name_present = False + self._trusted_team_name_value = None + self._trusted_team_name_present = False + if team_name is not None: + self.team_name = team_name + if trusted_team_name is not None: + self.trusted_team_name = trusted_team_name @property - def session_info(self): + def team_name(self): """ - Session unique id. Might be missing due to historical data gap. + Host team name. - :rtype: team_log.SessionLogInfo + :rtype: str """ - if self._session_info_present: - return self._session_info_value + if self._team_name_present: + return self._team_name_value else: return None - @session_info.setter - def session_info(self, val): + @team_name.setter + def team_name(self, val): if val is None: - del self.session_info + del self.team_name return - self._session_info_validator.validate_type_only(val) - self._session_info_value = val - self._session_info_present = True + val = self._team_name_validator.validate(val) + self._team_name_value = val + self._team_name_present = True - @session_info.deleter - def session_info(self): - self._session_info_value = None - self._session_info_present = False + @team_name.deleter + def team_name(self): + self._team_name_value = None + self._team_name_present = False @property - def display_name(self): + def trusted_team_name(self): """ - The device name. Might be missing due to historical data gap. + Trusted team name. :rtype: str """ - if self._display_name_present: - return self._display_name_value + if self._trusted_team_name_present: + return self._trusted_team_name_value else: return None - @display_name.setter - def display_name(self, val): + @trusted_team_name.setter + def trusted_team_name(self, val): if val is None: - del self.display_name + del self.trusted_team_name return - val = self._display_name_validator.validate(val) - self._display_name_value = val - self._display_name_present = True + val = self._trusted_team_name_validator.validate(val) + self._trusted_team_name_value = val + self._trusted_team_name_present = True - @display_name.deleter - def display_name(self): - self._display_name_value = None - self._display_name_present = False + @trusted_team_name.deleter + def trusted_team_name(self): + self._trusted_team_name_value = None + self._trusted_team_name_present = False - @property - def is_emm_managed(self): - """ - Is device managed by emm. Might be missing due to historical data gap. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GuestAdminSignedInViaTrustedTeamsDetails, self)._process_custom_annotations(annotation_type, field_path, processor) - :rtype: bool - """ - if self._is_emm_managed_present: - return self._is_emm_managed_value - else: - return None + def __repr__(self): + return 'GuestAdminSignedInViaTrustedTeamsDetails(team_name={!r}, trusted_team_name={!r})'.format( + self._team_name_value, + self._trusted_team_name_value, + ) - @is_emm_managed.setter - def is_emm_managed(self, val): - if val is None: - del self.is_emm_managed - return - val = self._is_emm_managed_validator.validate(val) - self._is_emm_managed_value = val - self._is_emm_managed_present = True +GuestAdminSignedInViaTrustedTeamsDetails_validator = bv.Struct(GuestAdminSignedInViaTrustedTeamsDetails) - @is_emm_managed.deleter - def is_emm_managed(self): - self._is_emm_managed_value = None - self._is_emm_managed_present = False +class GuestAdminSignedInViaTrustedTeamsType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def platform(self): + def description(self): """ - Information on the hosting platform. Might be missing due to historical - data gap. - :rtype: str """ - if self._platform_present: - return self._platform_value + if self._description_present: + return self._description_value else: - return None + raise AttributeError("missing required field 'description'") - @platform.setter - def platform(self, val): - if val is None: - del self.platform - return - val = self._platform_validator.validate(val) - self._platform_value = val - self._platform_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @platform.deleter - def platform(self): - self._platform_value = None - self._platform_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - @property - def mac_address(self): - """ - The mac address of the last activity from this session. Might be missing - due to historical data gap. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GuestAdminSignedInViaTrustedTeamsType, self)._process_custom_annotations(annotation_type, field_path, processor) - :rtype: str - """ - if self._mac_address_present: - return self._mac_address_value - else: - return None + def __repr__(self): + return 'GuestAdminSignedInViaTrustedTeamsType(description={!r})'.format( + self._description_value, + ) - @mac_address.setter - def mac_address(self, val): - if val is None: - del self.mac_address - return - val = self._mac_address_validator.validate(val) - self._mac_address_value = val - self._mac_address_present = True +GuestAdminSignedInViaTrustedTeamsType_validator = bv.Struct(GuestAdminSignedInViaTrustedTeamsType) - @mac_address.deleter - def mac_address(self): - self._mac_address_value = None - self._mac_address_present = False +class GuestAdminSignedOutViaTrustedTeamsDetails(bb.Struct): + """ + Ended trusted team admin session. + + :ivar team_log.GuestAdminSignedOutViaTrustedTeamsDetails.team_name: Host + team name. + :ivar team_log.GuestAdminSignedOutViaTrustedTeamsDetails.trusted_team_name: + Trusted team name. + """ + + __slots__ = [ + '_team_name_value', + '_team_name_present', + '_trusted_team_name_value', + '_trusted_team_name_present', + ] + + _has_required_fields = False + + def __init__(self, + team_name=None, + trusted_team_name=None): + self._team_name_value = None + self._team_name_present = False + self._trusted_team_name_value = None + self._trusted_team_name_present = False + if team_name is not None: + self.team_name = team_name + if trusted_team_name is not None: + self.trusted_team_name = trusted_team_name @property - def os_version(self): + def team_name(self): """ - The hosting OS version. Might be missing due to historical data gap. + Host team name. :rtype: str """ - if self._os_version_present: - return self._os_version_value + if self._team_name_present: + return self._team_name_value else: return None - @os_version.setter - def os_version(self, val): + @team_name.setter + def team_name(self, val): if val is None: - del self.os_version + del self.team_name return - val = self._os_version_validator.validate(val) - self._os_version_value = val - self._os_version_present = True + val = self._team_name_validator.validate(val) + self._team_name_value = val + self._team_name_present = True - @os_version.deleter - def os_version(self): - self._os_version_value = None - self._os_version_present = False + @team_name.deleter + def team_name(self): + self._team_name_value = None + self._team_name_present = False @property - def device_type(self): + def trusted_team_name(self): """ - Information on the hosting device type. Might be missing due to - historical data gap. + Trusted team name. :rtype: str """ - if self._device_type_present: - return self._device_type_value + if self._trusted_team_name_present: + return self._trusted_team_name_value else: return None - @device_type.setter - def device_type(self, val): + @trusted_team_name.setter + def trusted_team_name(self, val): if val is None: - del self.device_type + del self.trusted_team_name return - val = self._device_type_validator.validate(val) - self._device_type_value = val - self._device_type_present = True + val = self._trusted_team_name_validator.validate(val) + self._trusted_team_name_value = val + self._trusted_team_name_present = True - @device_type.deleter - def device_type(self): - self._device_type_value = None - self._device_type_present = False + @trusted_team_name.deleter + def trusted_team_name(self): + self._trusted_team_name_value = None + self._trusted_team_name_present = False - @property - def client_version(self): - """ - The Dropbox client version. Might be missing due to historical data gap. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GuestAdminSignedOutViaTrustedTeamsDetails, self)._process_custom_annotations(annotation_type, field_path, processor) - :rtype: str - """ - if self._client_version_present: - return self._client_version_value - else: - return None + def __repr__(self): + return 'GuestAdminSignedOutViaTrustedTeamsDetails(team_name={!r}, trusted_team_name={!r})'.format( + self._team_name_value, + self._trusted_team_name_value, + ) - @client_version.setter - def client_version(self, val): - if val is None: - del self.client_version - return - val = self._client_version_validator.validate(val) - self._client_version_value = val - self._client_version_present = True +GuestAdminSignedOutViaTrustedTeamsDetails_validator = bv.Struct(GuestAdminSignedOutViaTrustedTeamsDetails) - @client_version.deleter - def client_version(self): - self._client_version_value = None - self._client_version_present = False +class GuestAdminSignedOutViaTrustedTeamsType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def legacy_uniq_id(self): + def description(self): """ - Alternative unique device session id, instead of session id field. Might - be missing due to historical data gap. - :rtype: str """ - if self._legacy_uniq_id_present: - return self._legacy_uniq_id_value + if self._description_present: + return self._description_value else: - return None + raise AttributeError("missing required field 'description'") - @legacy_uniq_id.setter - def legacy_uniq_id(self, val): - if val is None: - del self.legacy_uniq_id - return - val = self._legacy_uniq_id_validator.validate(val) - self._legacy_uniq_id_value = val - self._legacy_uniq_id_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @legacy_uniq_id.deleter - def legacy_uniq_id(self): - self._legacy_uniq_id_value = None - self._legacy_uniq_id_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(LegacyDeviceSessionLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GuestAdminSignedOutViaTrustedTeamsType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'LegacyDeviceSessionLogInfo(ip_address={!r}, created={!r}, updated={!r}, session_info={!r}, display_name={!r}, is_emm_managed={!r}, platform={!r}, mac_address={!r}, os_version={!r}, device_type={!r}, client_version={!r}, legacy_uniq_id={!r})'.format( - self._ip_address_value, - self._created_value, - self._updated_value, - self._session_info_value, - self._display_name_value, - self._is_emm_managed_value, - self._platform_value, - self._mac_address_value, - self._os_version_value, - self._device_type_value, - self._client_version_value, - self._legacy_uniq_id_value, + return 'GuestAdminSignedOutViaTrustedTeamsType(description={!r})'.format( + self._description_value, ) -LegacyDeviceSessionLogInfo_validator = bv.Struct(LegacyDeviceSessionLogInfo) +GuestAdminSignedOutViaTrustedTeamsType_validator = bv.Struct(GuestAdminSignedOutViaTrustedTeamsType) -class LinkedDeviceLogInfo(bb.Union): +class IdentifierType(bb.Union): """ - The device sessions that user is linked to. - 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 MobileDeviceSessionLogInfo - team_log.LinkedDeviceLogInfo.mobile_device_session: mobile device - session's details. - :ivar DesktopDeviceSessionLogInfo - team_log.LinkedDeviceLogInfo.desktop_device_session: desktop device - session's details. - :ivar WebDeviceSessionLogInfo - team_log.LinkedDeviceLogInfo.web_device_session: web device session's - details. - :ivar LegacyDeviceSessionLogInfo - team_log.LinkedDeviceLogInfo.legacy_device_session: legacy device - session's details. """ _catch_all = 'other' # Attribute is overwritten below the class definition + email = None + # Attribute is overwritten below the class definition + facebook_profile_name = None + # Attribute is overwritten below the class definition other = None - @classmethod - def mobile_device_session(cls, val): - """ - Create an instance of this class set to the ``mobile_device_session`` - tag with value ``val``. - - :param team_log.MobileDeviceSessionLogInfo val: - :rtype: team_log.LinkedDeviceLogInfo - """ - return cls('mobile_device_session', val) - - @classmethod - def desktop_device_session(cls, val): - """ - Create an instance of this class set to the ``desktop_device_session`` - tag with value ``val``. - - :param team_log.DesktopDeviceSessionLogInfo val: - :rtype: team_log.LinkedDeviceLogInfo - """ - return cls('desktop_device_session', val) - - @classmethod - def web_device_session(cls, val): - """ - Create an instance of this class set to the ``web_device_session`` tag - with value ``val``. - - :param team_log.WebDeviceSessionLogInfo val: - :rtype: team_log.LinkedDeviceLogInfo - """ - return cls('web_device_session', val) - - @classmethod - def legacy_device_session(cls, val): - """ - Create an instance of this class set to the ``legacy_device_session`` - tag with value ``val``. - - :param team_log.LegacyDeviceSessionLogInfo val: - :rtype: team_log.LinkedDeviceLogInfo - """ - return cls('legacy_device_session', val) - - def is_mobile_device_session(self): - """ - Check if the union tag is ``mobile_device_session``. - - :rtype: bool - """ - return self._tag == 'mobile_device_session' - - def is_desktop_device_session(self): - """ - Check if the union tag is ``desktop_device_session``. - - :rtype: bool - """ - return self._tag == 'desktop_device_session' - - def is_web_device_session(self): + def is_email(self): """ - Check if the union tag is ``web_device_session``. + Check if the union tag is ``email``. :rtype: bool """ - return self._tag == 'web_device_session' + return self._tag == 'email' - def is_legacy_device_session(self): + def is_facebook_profile_name(self): """ - Check if the union tag is ``legacy_device_session``. + Check if the union tag is ``facebook_profile_name``. :rtype: bool """ - return self._tag == 'legacy_device_session' + return self._tag == 'facebook_profile_name' def is_other(self): """ @@ -34567,186 +36904,172 @@ def is_other(self): """ return self._tag == 'other' - def get_mobile_device_session(self): - """ - mobile device session's details. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(IdentifierType, self)._process_custom_annotations(annotation_type, field_path, processor) - Only call this if :meth:`is_mobile_device_session` is true. + def __repr__(self): + return 'IdentifierType(%r, %r)' % (self._tag, self._value) - :rtype: team_log.MobileDeviceSessionLogInfo - """ - if not self.is_mobile_device_session(): - raise AttributeError("tag 'mobile_device_session' not set") - return self._value +IdentifierType_validator = bv.Union(IdentifierType) - def get_desktop_device_session(self): - """ - desktop device session's details. +class IntegrationConnectedDetails(bb.Struct): + """ + Connected integration for member. - Only call this if :meth:`is_desktop_device_session` is true. + :ivar team_log.IntegrationConnectedDetails.integration_name: Name of the + third-party integration. + """ - :rtype: team_log.DesktopDeviceSessionLogInfo - """ - if not self.is_desktop_device_session(): - raise AttributeError("tag 'desktop_device_session' not set") - return self._value + __slots__ = [ + '_integration_name_value', + '_integration_name_present', + ] - def get_web_device_session(self): - """ - web device session's details. + _has_required_fields = True - Only call this if :meth:`is_web_device_session` is true. + def __init__(self, + integration_name=None): + self._integration_name_value = None + self._integration_name_present = False + if integration_name is not None: + self.integration_name = integration_name - :rtype: team_log.WebDeviceSessionLogInfo + @property + def integration_name(self): """ - if not self.is_web_device_session(): - raise AttributeError("tag 'web_device_session' not set") - return self._value + Name of the third-party integration. - def get_legacy_device_session(self): + :rtype: str """ - legacy device session's details. + if self._integration_name_present: + return self._integration_name_value + else: + raise AttributeError("missing required field 'integration_name'") - Only call this if :meth:`is_legacy_device_session` is true. + @integration_name.setter + def integration_name(self, val): + val = self._integration_name_validator.validate(val) + self._integration_name_value = val + self._integration_name_present = True - :rtype: team_log.LegacyDeviceSessionLogInfo - """ - if not self.is_legacy_device_session(): - raise AttributeError("tag 'legacy_device_session' not set") - return self._value + @integration_name.deleter + def integration_name(self): + self._integration_name_value = None + self._integration_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(LinkedDeviceLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(IntegrationConnectedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'LinkedDeviceLogInfo(%r, %r)' % (self._tag, self._value) - -LinkedDeviceLogInfo_validator = bv.Union(LinkedDeviceLogInfo) + return 'IntegrationConnectedDetails(integration_name={!r})'.format( + self._integration_name_value, + ) -class LoginFailDetails(bb.Struct): - """ - Failed to sign in. +IntegrationConnectedDetails_validator = bv.Struct(IntegrationConnectedDetails) - :ivar team_log.LoginFailDetails.is_emm_managed: Tells if the login device is - EMM managed. Might be missing due to historical data gap. - :ivar team_log.LoginFailDetails.login_method: Login method. - :ivar team_log.LoginFailDetails.error_details: Error details. - """ +class IntegrationConnectedType(bb.Struct): __slots__ = [ - '_is_emm_managed_value', - '_is_emm_managed_present', - '_login_method_value', - '_login_method_present', - '_error_details_value', - '_error_details_present', + '_description_value', + '_description_present', ] _has_required_fields = True def __init__(self, - login_method=None, - error_details=None, - is_emm_managed=None): - self._is_emm_managed_value = None - self._is_emm_managed_present = False - self._login_method_value = None - self._login_method_present = False - self._error_details_value = None - self._error_details_present = False - if is_emm_managed is not None: - self.is_emm_managed = is_emm_managed - if login_method is not None: - self.login_method = login_method - if error_details is not None: - self.error_details = error_details + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def is_emm_managed(self): + def description(self): """ - Tells if the login device is EMM managed. Might be missing due to - historical data gap. - - :rtype: bool + :rtype: str """ - if self._is_emm_managed_present: - return self._is_emm_managed_value + if self._description_present: + return self._description_value else: - return None + raise AttributeError("missing required field 'description'") - @is_emm_managed.setter - def is_emm_managed(self, val): - if val is None: - del self.is_emm_managed - return - val = self._is_emm_managed_validator.validate(val) - self._is_emm_managed_value = val - self._is_emm_managed_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @is_emm_managed.deleter - def is_emm_managed(self): - self._is_emm_managed_value = None - self._is_emm_managed_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - @property - def login_method(self): - """ - Login method. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(IntegrationConnectedType, self)._process_custom_annotations(annotation_type, field_path, processor) - :rtype: team_log.LoginMethod - """ - if self._login_method_present: - return self._login_method_value - else: - raise AttributeError("missing required field 'login_method'") + def __repr__(self): + return 'IntegrationConnectedType(description={!r})'.format( + self._description_value, + ) - @login_method.setter - def login_method(self, val): - self._login_method_validator.validate_type_only(val) - self._login_method_value = val - self._login_method_present = True +IntegrationConnectedType_validator = bv.Struct(IntegrationConnectedType) - @login_method.deleter - def login_method(self): - self._login_method_value = None - self._login_method_present = False +class IntegrationDisconnectedDetails(bb.Struct): + """ + Disconnected integration for member. + + :ivar team_log.IntegrationDisconnectedDetails.integration_name: Name of the + third-party integration. + """ + + __slots__ = [ + '_integration_name_value', + '_integration_name_present', + ] + + _has_required_fields = True + + def __init__(self, + integration_name=None): + self._integration_name_value = None + self._integration_name_present = False + if integration_name is not None: + self.integration_name = integration_name @property - def error_details(self): + def integration_name(self): """ - Error details. + Name of the third-party integration. - :rtype: team_log.FailureDetailsLogInfo + :rtype: str """ - if self._error_details_present: - return self._error_details_value + if self._integration_name_present: + return self._integration_name_value else: - raise AttributeError("missing required field 'error_details'") + raise AttributeError("missing required field 'integration_name'") - @error_details.setter - def error_details(self, val): - self._error_details_validator.validate_type_only(val) - self._error_details_value = val - self._error_details_present = True + @integration_name.setter + def integration_name(self, val): + val = self._integration_name_validator.validate(val) + self._integration_name_value = val + self._integration_name_present = True - @error_details.deleter - def error_details(self): - self._error_details_value = None - self._error_details_present = False + @integration_name.deleter + def integration_name(self): + self._integration_name_value = None + self._integration_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(LoginFailDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(IntegrationDisconnectedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'LoginFailDetails(login_method={!r}, error_details={!r}, is_emm_managed={!r})'.format( - self._login_method_value, - self._error_details_value, - self._is_emm_managed_value, + return 'IntegrationDisconnectedDetails(integration_name={!r})'.format( + self._integration_name_value, ) -LoginFailDetails_validator = bv.Struct(LoginFailDetails) +IntegrationDisconnectedDetails_validator = bv.Struct(IntegrationDisconnectedDetails) -class LoginFailType(bb.Struct): +class IntegrationDisconnectedType(bb.Struct): __slots__ = [ '_description_value', @@ -34783,18 +37106,21 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(LoginFailType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(IntegrationDisconnectedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'LoginFailType(description={!r})'.format( + return 'IntegrationDisconnectedType(description={!r})'.format( self._description_value, ) -LoginFailType_validator = bv.Struct(LoginFailType) +IntegrationDisconnectedType_validator = bv.Struct(IntegrationDisconnectedType) -class LoginMethod(bb.Union): +class IntegrationPolicy(bb.Union): """ + Policy for controlling whether a service integration is enabled for the + team. + 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. @@ -34802,37 +37128,27 @@ class LoginMethod(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - password = None - # Attribute is overwritten below the class definition - two_factor_authentication = None + disabled = None # Attribute is overwritten below the class definition - saml = None + enabled = None # Attribute is overwritten below the class definition other = None - def is_password(self): - """ - Check if the union tag is ``password``. - - :rtype: bool - """ - return self._tag == 'password' - - def is_two_factor_authentication(self): + def is_disabled(self): """ - Check if the union tag is ``two_factor_authentication``. + Check if the union tag is ``disabled``. :rtype: bool """ - return self._tag == 'two_factor_authentication' + return self._tag == 'disabled' - def is_saml(self): + def is_enabled(self): """ - Check if the union tag is ``saml``. + Check if the union tag is ``enabled``. :rtype: bool """ - return self._tag == 'saml' + return self._tag == 'enabled' def is_other(self): """ @@ -34842,106 +37158,136 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(LoginMethod, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(IntegrationPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'LoginMethod(%r, %r)' % (self._tag, self._value) + return 'IntegrationPolicy(%r, %r)' % (self._tag, self._value) -LoginMethod_validator = bv.Union(LoginMethod) +IntegrationPolicy_validator = bv.Union(IntegrationPolicy) -class LoginSuccessDetails(bb.Struct): +class IntegrationPolicyChangedDetails(bb.Struct): """ - Signed in. + Changed integration policy for team. - :ivar team_log.LoginSuccessDetails.is_emm_managed: Tells if the login device - is EMM managed. Might be missing due to historical data gap. - :ivar team_log.LoginSuccessDetails.login_method: Login method. + :ivar team_log.IntegrationPolicyChangedDetails.integration_name: Name of the + third-party integration. + :ivar team_log.IntegrationPolicyChangedDetails.new_value: New integration + policy. + :ivar team_log.IntegrationPolicyChangedDetails.previous_value: Previous + integration policy. """ __slots__ = [ - '_is_emm_managed_value', - '_is_emm_managed_present', - '_login_method_value', - '_login_method_present', + '_integration_name_value', + '_integration_name_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - login_method=None, - is_emm_managed=None): - self._is_emm_managed_value = None - self._is_emm_managed_present = False - self._login_method_value = None - self._login_method_present = False - if is_emm_managed is not None: - self.is_emm_managed = is_emm_managed - if login_method is not None: - self.login_method = login_method + integration_name=None, + new_value=None, + previous_value=None): + self._integration_name_value = None + self._integration_name_present = False + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if integration_name is not None: + self.integration_name = integration_name + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def is_emm_managed(self): + def integration_name(self): """ - Tells if the login device is EMM managed. Might be missing due to - historical data gap. + Name of the third-party integration. - :rtype: bool + :rtype: str """ - if self._is_emm_managed_present: - return self._is_emm_managed_value + if self._integration_name_present: + return self._integration_name_value else: - return None + raise AttributeError("missing required field 'integration_name'") - @is_emm_managed.setter - def is_emm_managed(self, val): - if val is None: - del self.is_emm_managed - return - val = self._is_emm_managed_validator.validate(val) - self._is_emm_managed_value = val - self._is_emm_managed_present = True + @integration_name.setter + def integration_name(self, val): + val = self._integration_name_validator.validate(val) + self._integration_name_value = val + self._integration_name_present = True - @is_emm_managed.deleter - def is_emm_managed(self): - self._is_emm_managed_value = None - self._is_emm_managed_present = False + @integration_name.deleter + def integration_name(self): + self._integration_name_value = None + self._integration_name_present = False @property - def login_method(self): + def new_value(self): """ - Login method. + New integration policy. - :rtype: team_log.LoginMethod + :rtype: IntegrationPolicy """ - if self._login_method_present: - return self._login_method_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'login_method'") + raise AttributeError("missing required field 'new_value'") - @login_method.setter - def login_method(self, val): - self._login_method_validator.validate_type_only(val) - self._login_method_value = val - self._login_method_present = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - @login_method.deleter - def login_method(self): - self._login_method_value = None - self._login_method_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous integration policy. + + :rtype: IntegrationPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") - def _process_custom_annotations(self, annotation_type, processor): - super(LoginSuccessDetails, self)._process_custom_annotations(annotation_type, processor) + @previous_value.setter + def previous_value(self, val): + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(IntegrationPolicyChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'LoginSuccessDetails(login_method={!r}, is_emm_managed={!r})'.format( - self._login_method_value, - self._is_emm_managed_value, + return 'IntegrationPolicyChangedDetails(integration_name={!r}, new_value={!r}, previous_value={!r})'.format( + self._integration_name_value, + self._new_value_value, + self._previous_value_value, ) -LoginSuccessDetails_validator = bv.Struct(LoginSuccessDetails) +IntegrationPolicyChangedDetails_validator = bv.Struct(IntegrationPolicyChangedDetails) -class LoginSuccessType(bb.Struct): +class IntegrationPolicyChangedType(bb.Struct): __slots__ = [ '_description_value', @@ -34978,111 +37324,4605 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(LoginSuccessType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(IntegrationPolicyChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'LoginSuccessType(description={!r})'.format( + return 'IntegrationPolicyChangedType(description={!r})'.format( self._description_value, ) -LoginSuccessType_validator = bv.Struct(LoginSuccessType) +IntegrationPolicyChangedType_validator = bv.Struct(IntegrationPolicyChangedType) -class LogoutDetails(bb.Struct): - """ - Signed out. +class JoinTeamDetails(bb.Struct): """ + Additional information relevant when a new member joins the team. - __slots__ = [ - ] - - _has_required_fields = False - - def __init__(self): - pass - - def _process_custom_annotations(self, annotation_type, processor): - super(LogoutDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'LogoutDetails()' - -LogoutDetails_validator = bv.Struct(LogoutDetails) - -class LogoutType(bb.Struct): + :ivar team_log.JoinTeamDetails.linked_apps: Linked applications. + :ivar team_log.JoinTeamDetails.linked_devices: Linked devices. + :ivar team_log.JoinTeamDetails.linked_shared_folders: Linked shared folders. + """ __slots__ = [ - '_description_value', - '_description_present', + '_linked_apps_value', + '_linked_apps_present', + '_linked_devices_value', + '_linked_devices_present', + '_linked_shared_folders_value', + '_linked_shared_folders_present', ] _has_required_fields = True def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description - - @property - def description(self): - """ - :rtype: str - """ - if self._description_present: + linked_apps=None, + linked_devices=None, + linked_shared_folders=None): + self._linked_apps_value = None + self._linked_apps_present = False + self._linked_devices_value = None + self._linked_devices_present = False + self._linked_shared_folders_value = None + self._linked_shared_folders_present = False + if linked_apps is not None: + self.linked_apps = linked_apps + if linked_devices is not None: + self.linked_devices = linked_devices + if linked_shared_folders is not None: + self.linked_shared_folders = linked_shared_folders + + @property + def linked_apps(self): + """ + Linked applications. + + :rtype: list of [UserLinkedAppLogInfo] + """ + if self._linked_apps_present: + return self._linked_apps_value + else: + raise AttributeError("missing required field 'linked_apps'") + + @linked_apps.setter + def linked_apps(self, val): + val = self._linked_apps_validator.validate(val) + self._linked_apps_value = val + self._linked_apps_present = True + + @linked_apps.deleter + def linked_apps(self): + self._linked_apps_value = None + self._linked_apps_present = False + + @property + def linked_devices(self): + """ + Linked devices. + + :rtype: list of [LinkedDeviceLogInfo] + """ + if self._linked_devices_present: + return self._linked_devices_value + else: + raise AttributeError("missing required field 'linked_devices'") + + @linked_devices.setter + def linked_devices(self, val): + val = self._linked_devices_validator.validate(val) + self._linked_devices_value = val + self._linked_devices_present = True + + @linked_devices.deleter + def linked_devices(self): + self._linked_devices_value = None + self._linked_devices_present = False + + @property + def linked_shared_folders(self): + """ + Linked shared folders. + + :rtype: list of [FolderLogInfo] + """ + if self._linked_shared_folders_present: + return self._linked_shared_folders_value + else: + raise AttributeError("missing required field 'linked_shared_folders'") + + @linked_shared_folders.setter + def linked_shared_folders(self, val): + val = self._linked_shared_folders_validator.validate(val) + self._linked_shared_folders_value = val + self._linked_shared_folders_present = True + + @linked_shared_folders.deleter + def linked_shared_folders(self): + self._linked_shared_folders_value = None + self._linked_shared_folders_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(JoinTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'JoinTeamDetails(linked_apps={!r}, linked_devices={!r}, linked_shared_folders={!r})'.format( + self._linked_apps_value, + self._linked_devices_value, + self._linked_shared_folders_value, + ) + +JoinTeamDetails_validator = bv.Struct(JoinTeamDetails) + +class LegacyDeviceSessionLogInfo(DeviceSessionLogInfo): + """ + Information on sessions, in legacy format + + :ivar team_log.LegacyDeviceSessionLogInfo.session_info: Session unique id. + Might be missing due to historical data gap. + :ivar team_log.LegacyDeviceSessionLogInfo.display_name: The device name. + Might be missing due to historical data gap. + :ivar team_log.LegacyDeviceSessionLogInfo.is_emm_managed: Is device managed + by emm. Might be missing due to historical data gap. + :ivar team_log.LegacyDeviceSessionLogInfo.platform: Information on the + hosting platform. Might be missing due to historical data gap. + :ivar team_log.LegacyDeviceSessionLogInfo.mac_address: The mac address of + the last activity from this session. Might be missing due to historical + data gap. + :ivar team_log.LegacyDeviceSessionLogInfo.os_version: The hosting OS + version. Might be missing due to historical data gap. + :ivar team_log.LegacyDeviceSessionLogInfo.device_type: Information on the + hosting device type. Might be missing due to historical data gap. + :ivar team_log.LegacyDeviceSessionLogInfo.client_version: The Dropbox client + version. Might be missing due to historical data gap. + :ivar team_log.LegacyDeviceSessionLogInfo.legacy_uniq_id: Alternative unique + device session id, instead of session id field. Might be missing due to + historical data gap. + """ + + __slots__ = [ + '_session_info_value', + '_session_info_present', + '_display_name_value', + '_display_name_present', + '_is_emm_managed_value', + '_is_emm_managed_present', + '_platform_value', + '_platform_present', + '_mac_address_value', + '_mac_address_present', + '_os_version_value', + '_os_version_present', + '_device_type_value', + '_device_type_present', + '_client_version_value', + '_client_version_present', + '_legacy_uniq_id_value', + '_legacy_uniq_id_present', + ] + + _has_required_fields = False + + def __init__(self, + ip_address=None, + created=None, + updated=None, + session_info=None, + display_name=None, + is_emm_managed=None, + platform=None, + mac_address=None, + os_version=None, + device_type=None, + client_version=None, + legacy_uniq_id=None): + super(LegacyDeviceSessionLogInfo, self).__init__(ip_address, + created, + updated) + self._session_info_value = None + self._session_info_present = False + self._display_name_value = None + self._display_name_present = False + self._is_emm_managed_value = None + self._is_emm_managed_present = False + self._platform_value = None + self._platform_present = False + self._mac_address_value = None + self._mac_address_present = False + self._os_version_value = None + self._os_version_present = False + self._device_type_value = None + self._device_type_present = False + self._client_version_value = None + self._client_version_present = False + self._legacy_uniq_id_value = None + self._legacy_uniq_id_present = False + if session_info is not None: + self.session_info = session_info + if display_name is not None: + self.display_name = display_name + if is_emm_managed is not None: + self.is_emm_managed = is_emm_managed + if platform is not None: + self.platform = platform + if mac_address is not None: + self.mac_address = mac_address + if os_version is not None: + self.os_version = os_version + if device_type is not None: + self.device_type = device_type + if client_version is not None: + self.client_version = client_version + if legacy_uniq_id is not None: + self.legacy_uniq_id = legacy_uniq_id + + @property + def session_info(self): + """ + Session unique id. Might be missing due to historical data gap. + + :rtype: SessionLogInfo + """ + if self._session_info_present: + return self._session_info_value + else: + return None + + @session_info.setter + def session_info(self, val): + if val is None: + del self.session_info + return + self._session_info_validator.validate_type_only(val) + self._session_info_value = val + self._session_info_present = True + + @session_info.deleter + def session_info(self): + self._session_info_value = None + self._session_info_present = False + + @property + def display_name(self): + """ + The device name. Might be missing due to historical data gap. + + :rtype: str + """ + if self._display_name_present: + return self._display_name_value + else: + return None + + @display_name.setter + def display_name(self, val): + if val is None: + del self.display_name + return + val = self._display_name_validator.validate(val) + self._display_name_value = val + self._display_name_present = True + + @display_name.deleter + def display_name(self): + self._display_name_value = None + self._display_name_present = False + + @property + def is_emm_managed(self): + """ + Is device managed by emm. Might be missing due to historical data gap. + + :rtype: bool + """ + if self._is_emm_managed_present: + return self._is_emm_managed_value + else: + return None + + @is_emm_managed.setter + def is_emm_managed(self, val): + if val is None: + del self.is_emm_managed + return + val = self._is_emm_managed_validator.validate(val) + self._is_emm_managed_value = val + self._is_emm_managed_present = True + + @is_emm_managed.deleter + def is_emm_managed(self): + self._is_emm_managed_value = None + self._is_emm_managed_present = False + + @property + def platform(self): + """ + Information on the hosting platform. Might be missing due to historical + data gap. + + :rtype: str + """ + if self._platform_present: + return self._platform_value + else: + return None + + @platform.setter + def platform(self, val): + if val is None: + del self.platform + return + val = self._platform_validator.validate(val) + self._platform_value = val + self._platform_present = True + + @platform.deleter + def platform(self): + self._platform_value = None + self._platform_present = False + + @property + def mac_address(self): + """ + The mac address of the last activity from this session. Might be missing + due to historical data gap. + + :rtype: str + """ + if self._mac_address_present: + return self._mac_address_value + else: + return None + + @mac_address.setter + def mac_address(self, val): + if val is None: + del self.mac_address + return + val = self._mac_address_validator.validate(val) + self._mac_address_value = val + self._mac_address_present = True + + @mac_address.deleter + def mac_address(self): + self._mac_address_value = None + self._mac_address_present = False + + @property + def os_version(self): + """ + The hosting OS version. Might be missing due to historical data gap. + + :rtype: str + """ + if self._os_version_present: + return self._os_version_value + else: + return None + + @os_version.setter + def os_version(self, val): + if val is None: + del self.os_version + return + val = self._os_version_validator.validate(val) + self._os_version_value = val + self._os_version_present = True + + @os_version.deleter + def os_version(self): + self._os_version_value = None + self._os_version_present = False + + @property + def device_type(self): + """ + Information on the hosting device type. Might be missing due to + historical data gap. + + :rtype: str + """ + if self._device_type_present: + return self._device_type_value + else: + return None + + @device_type.setter + def device_type(self, val): + if val is None: + del self.device_type + return + val = self._device_type_validator.validate(val) + self._device_type_value = val + self._device_type_present = True + + @device_type.deleter + def device_type(self): + self._device_type_value = None + self._device_type_present = False + + @property + def client_version(self): + """ + The Dropbox client version. Might be missing due to historical data gap. + + :rtype: str + """ + if self._client_version_present: + return self._client_version_value + else: + return None + + @client_version.setter + def client_version(self, val): + if val is None: + del self.client_version + return + val = self._client_version_validator.validate(val) + self._client_version_value = val + self._client_version_present = True + + @client_version.deleter + def client_version(self): + self._client_version_value = None + self._client_version_present = False + + @property + def legacy_uniq_id(self): + """ + Alternative unique device session id, instead of session id field. Might + be missing due to historical data gap. + + :rtype: str + """ + if self._legacy_uniq_id_present: + return self._legacy_uniq_id_value + else: + return None + + @legacy_uniq_id.setter + def legacy_uniq_id(self, val): + if val is None: + del self.legacy_uniq_id + return + val = self._legacy_uniq_id_validator.validate(val) + self._legacy_uniq_id_value = val + self._legacy_uniq_id_present = True + + @legacy_uniq_id.deleter + def legacy_uniq_id(self): + self._legacy_uniq_id_value = None + self._legacy_uniq_id_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LegacyDeviceSessionLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'LegacyDeviceSessionLogInfo(ip_address={!r}, created={!r}, updated={!r}, session_info={!r}, display_name={!r}, is_emm_managed={!r}, platform={!r}, mac_address={!r}, os_version={!r}, device_type={!r}, client_version={!r}, legacy_uniq_id={!r})'.format( + self._ip_address_value, + self._created_value, + self._updated_value, + self._session_info_value, + self._display_name_value, + self._is_emm_managed_value, + self._platform_value, + self._mac_address_value, + self._os_version_value, + self._device_type_value, + self._client_version_value, + self._legacy_uniq_id_value, + ) + +LegacyDeviceSessionLogInfo_validator = bv.Struct(LegacyDeviceSessionLogInfo) + +class LinkedDeviceLogInfo(bb.Union): + """ + The device sessions that user is linked to. + + 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 MobileDeviceSessionLogInfo LinkedDeviceLogInfo.mobile_device_session: + mobile device session's details. + :ivar DesktopDeviceSessionLogInfo + LinkedDeviceLogInfo.desktop_device_session: desktop device session's + details. + :ivar WebDeviceSessionLogInfo LinkedDeviceLogInfo.web_device_session: web + device session's details. + :ivar LegacyDeviceSessionLogInfo LinkedDeviceLogInfo.legacy_device_session: + legacy device session's details. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + other = None + + @classmethod + def mobile_device_session(cls, val): + """ + Create an instance of this class set to the ``mobile_device_session`` + tag with value ``val``. + + :param MobileDeviceSessionLogInfo val: + :rtype: LinkedDeviceLogInfo + """ + return cls('mobile_device_session', val) + + @classmethod + def desktop_device_session(cls, val): + """ + Create an instance of this class set to the ``desktop_device_session`` + tag with value ``val``. + + :param DesktopDeviceSessionLogInfo val: + :rtype: LinkedDeviceLogInfo + """ + return cls('desktop_device_session', val) + + @classmethod + def web_device_session(cls, val): + """ + Create an instance of this class set to the ``web_device_session`` tag + with value ``val``. + + :param WebDeviceSessionLogInfo val: + :rtype: LinkedDeviceLogInfo + """ + return cls('web_device_session', val) + + @classmethod + def legacy_device_session(cls, val): + """ + Create an instance of this class set to the ``legacy_device_session`` + tag with value ``val``. + + :param LegacyDeviceSessionLogInfo val: + :rtype: LinkedDeviceLogInfo + """ + return cls('legacy_device_session', val) + + def is_mobile_device_session(self): + """ + Check if the union tag is ``mobile_device_session``. + + :rtype: bool + """ + return self._tag == 'mobile_device_session' + + def is_desktop_device_session(self): + """ + Check if the union tag is ``desktop_device_session``. + + :rtype: bool + """ + return self._tag == 'desktop_device_session' + + def is_web_device_session(self): + """ + Check if the union tag is ``web_device_session``. + + :rtype: bool + """ + return self._tag == 'web_device_session' + + def is_legacy_device_session(self): + """ + Check if the union tag is ``legacy_device_session``. + + :rtype: bool + """ + return self._tag == 'legacy_device_session' + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == 'other' + + def get_mobile_device_session(self): + """ + mobile device session's details. + + Only call this if :meth:`is_mobile_device_session` is true. + + :rtype: MobileDeviceSessionLogInfo + """ + if not self.is_mobile_device_session(): + raise AttributeError("tag 'mobile_device_session' not set") + return self._value + + def get_desktop_device_session(self): + """ + desktop device session's details. + + Only call this if :meth:`is_desktop_device_session` is true. + + :rtype: DesktopDeviceSessionLogInfo + """ + if not self.is_desktop_device_session(): + raise AttributeError("tag 'desktop_device_session' not set") + return self._value + + def get_web_device_session(self): + """ + web device session's details. + + Only call this if :meth:`is_web_device_session` is true. + + :rtype: WebDeviceSessionLogInfo + """ + if not self.is_web_device_session(): + raise AttributeError("tag 'web_device_session' not set") + return self._value + + def get_legacy_device_session(self): + """ + legacy device session's details. + + Only call this if :meth:`is_legacy_device_session` is true. + + :rtype: LegacyDeviceSessionLogInfo + """ + if not self.is_legacy_device_session(): + raise AttributeError("tag 'legacy_device_session' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LinkedDeviceLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'LinkedDeviceLogInfo(%r, %r)' % (self._tag, self._value) + +LinkedDeviceLogInfo_validator = bv.Union(LinkedDeviceLogInfo) + +class LoginFailDetails(bb.Struct): + """ + Failed to sign in. + + :ivar team_log.LoginFailDetails.is_emm_managed: Tells if the login device is + EMM managed. Might be missing due to historical data gap. + :ivar team_log.LoginFailDetails.login_method: Login method. + :ivar team_log.LoginFailDetails.error_details: Error details. + """ + + __slots__ = [ + '_is_emm_managed_value', + '_is_emm_managed_present', + '_login_method_value', + '_login_method_present', + '_error_details_value', + '_error_details_present', + ] + + _has_required_fields = True + + def __init__(self, + login_method=None, + error_details=None, + is_emm_managed=None): + self._is_emm_managed_value = None + self._is_emm_managed_present = False + self._login_method_value = None + self._login_method_present = False + self._error_details_value = None + self._error_details_present = False + if is_emm_managed is not None: + self.is_emm_managed = is_emm_managed + if login_method is not None: + self.login_method = login_method + if error_details is not None: + self.error_details = error_details + + @property + def is_emm_managed(self): + """ + Tells if the login device is EMM managed. Might be missing due to + historical data gap. + + :rtype: bool + """ + if self._is_emm_managed_present: + return self._is_emm_managed_value + else: + return None + + @is_emm_managed.setter + def is_emm_managed(self, val): + if val is None: + del self.is_emm_managed + return + val = self._is_emm_managed_validator.validate(val) + self._is_emm_managed_value = val + self._is_emm_managed_present = True + + @is_emm_managed.deleter + def is_emm_managed(self): + self._is_emm_managed_value = None + self._is_emm_managed_present = False + + @property + def login_method(self): + """ + Login method. + + :rtype: LoginMethod + """ + if self._login_method_present: + return self._login_method_value + else: + raise AttributeError("missing required field 'login_method'") + + @login_method.setter + def login_method(self, val): + self._login_method_validator.validate_type_only(val) + self._login_method_value = val + self._login_method_present = True + + @login_method.deleter + def login_method(self): + self._login_method_value = None + self._login_method_present = False + + @property + def error_details(self): + """ + Error details. + + :rtype: FailureDetailsLogInfo + """ + if self._error_details_present: + return self._error_details_value + else: + raise AttributeError("missing required field 'error_details'") + + @error_details.setter + def error_details(self, val): + self._error_details_validator.validate_type_only(val) + self._error_details_value = val + self._error_details_present = True + + @error_details.deleter + def error_details(self): + self._error_details_value = None + self._error_details_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LoginFailDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'LoginFailDetails(login_method={!r}, error_details={!r}, is_emm_managed={!r})'.format( + self._login_method_value, + self._error_details_value, + self._is_emm_managed_value, + ) + +LoginFailDetails_validator = bv.Struct(LoginFailDetails) + +class LoginFailType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LoginFailType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'LoginFailType(description={!r})'.format( + self._description_value, + ) + +LoginFailType_validator = bv.Struct(LoginFailType) + +class LoginMethod(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 + password = None + # Attribute is overwritten below the class definition + two_factor_authentication = None + # Attribute is overwritten below the class definition + saml = None + # Attribute is overwritten below the class definition + google_oauth = None + # Attribute is overwritten below the class definition + other = None + + def is_password(self): + """ + Check if the union tag is ``password``. + + :rtype: bool + """ + return self._tag == 'password' + + def is_two_factor_authentication(self): + """ + Check if the union tag is ``two_factor_authentication``. + + :rtype: bool + """ + return self._tag == 'two_factor_authentication' + + def is_saml(self): + """ + Check if the union tag is ``saml``. + + :rtype: bool + """ + return self._tag == 'saml' + + def is_google_oauth(self): + """ + Check if the union tag is ``google_oauth``. + + :rtype: bool + """ + return self._tag == 'google_oauth' + + 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(LoginMethod, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'LoginMethod(%r, %r)' % (self._tag, self._value) + +LoginMethod_validator = bv.Union(LoginMethod) + +class LoginSuccessDetails(bb.Struct): + """ + Signed in. + + :ivar team_log.LoginSuccessDetails.is_emm_managed: Tells if the login device + is EMM managed. Might be missing due to historical data gap. + :ivar team_log.LoginSuccessDetails.login_method: Login method. + """ + + __slots__ = [ + '_is_emm_managed_value', + '_is_emm_managed_present', + '_login_method_value', + '_login_method_present', + ] + + _has_required_fields = True + + def __init__(self, + login_method=None, + is_emm_managed=None): + self._is_emm_managed_value = None + self._is_emm_managed_present = False + self._login_method_value = None + self._login_method_present = False + if is_emm_managed is not None: + self.is_emm_managed = is_emm_managed + if login_method is not None: + self.login_method = login_method + + @property + def is_emm_managed(self): + """ + Tells if the login device is EMM managed. Might be missing due to + historical data gap. + + :rtype: bool + """ + if self._is_emm_managed_present: + return self._is_emm_managed_value + else: + return None + + @is_emm_managed.setter + def is_emm_managed(self, val): + if val is None: + del self.is_emm_managed + return + val = self._is_emm_managed_validator.validate(val) + self._is_emm_managed_value = val + self._is_emm_managed_present = True + + @is_emm_managed.deleter + def is_emm_managed(self): + self._is_emm_managed_value = None + self._is_emm_managed_present = False + + @property + def login_method(self): + """ + Login method. + + :rtype: LoginMethod + """ + if self._login_method_present: + return self._login_method_value + else: + raise AttributeError("missing required field 'login_method'") + + @login_method.setter + def login_method(self, val): + self._login_method_validator.validate_type_only(val) + self._login_method_value = val + self._login_method_present = True + + @login_method.deleter + def login_method(self): + self._login_method_value = None + self._login_method_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LoginSuccessDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'LoginSuccessDetails(login_method={!r}, is_emm_managed={!r})'.format( + self._login_method_value, + self._is_emm_managed_value, + ) + +LoginSuccessDetails_validator = bv.Struct(LoginSuccessDetails) + +class LoginSuccessType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LoginSuccessType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'LoginSuccessType(description={!r})'.format( + self._description_value, + ) + +LoginSuccessType_validator = bv.Struct(LoginSuccessType) + +class LogoutDetails(bb.Struct): + """ + Signed out. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LogoutDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'LogoutDetails()' + +LogoutDetails_validator = bv.Struct(LogoutDetails) + +class LogoutType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(LogoutType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'LogoutType(description={!r})'.format( + self._description_value, + ) + +LogoutType_validator = bv.Struct(LogoutType) + +class MemberAddExternalIdDetails(bb.Struct): + """ + Added an external ID for team member. + + :ivar team_log.MemberAddExternalIdDetails.new_value: Current external id. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None): + self._new_value_value = None + self._new_value_present = False + if new_value is not None: + self.new_value = new_value + + @property + def new_value(self): + """ + Current external id. + + :rtype: str + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberAddExternalIdDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberAddExternalIdDetails(new_value={!r})'.format( + self._new_value_value, + ) + +MemberAddExternalIdDetails_validator = bv.Struct(MemberAddExternalIdDetails) + +class MemberAddExternalIdType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberAddExternalIdType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberAddExternalIdType(description={!r})'.format( + self._description_value, + ) + +MemberAddExternalIdType_validator = bv.Struct(MemberAddExternalIdType) + +class MemberAddNameDetails(bb.Struct): + """ + Added team member name. + + :ivar team_log.MemberAddNameDetails.new_value: New user's name. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None): + self._new_value_value = None + self._new_value_present = False + if new_value is not None: + self.new_value = new_value + + @property + def new_value(self): + """ + New user's name. + + :rtype: UserNameLogInfo + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberAddNameDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberAddNameDetails(new_value={!r})'.format( + self._new_value_value, + ) + +MemberAddNameDetails_validator = bv.Struct(MemberAddNameDetails) + +class MemberAddNameType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberAddNameType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberAddNameType(description={!r})'.format( + self._description_value, + ) + +MemberAddNameType_validator = bv.Struct(MemberAddNameType) + +class MemberChangeAdminRoleDetails(bb.Struct): + """ + Changed team member admin role. + + :ivar team_log.MemberChangeAdminRoleDetails.new_value: New admin role. This + field is relevant when the admin role is changed or whenthe user role + changes from no admin rights to with admin rights. + :ivar team_log.MemberChangeAdminRoleDetails.previous_value: Previous admin + role. This field is relevant when the admin role is changed or when the + admin role is removed. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = False + + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + New admin role. This field is relevant when the admin role is changed or + whenthe user role changes from no admin rights to with admin rights. + + :rtype: AdminRole + """ + if self._new_value_present: + return self._new_value_value + else: + return None + + @new_value.setter + def new_value(self, val): + if val is None: + del self.new_value + return + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous admin role. This field is relevant when the admin role is + changed or when the admin role is removed. + + :rtype: AdminRole + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeAdminRoleDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeAdminRoleDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) + +MemberChangeAdminRoleDetails_validator = bv.Struct(MemberChangeAdminRoleDetails) + +class MemberChangeAdminRoleType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeAdminRoleType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeAdminRoleType(description={!r})'.format( + self._description_value, + ) + +MemberChangeAdminRoleType_validator = bv.Struct(MemberChangeAdminRoleType) + +class MemberChangeEmailDetails(bb.Struct): + """ + Changed team member email. + + :ivar team_log.MemberChangeEmailDetails.new_value: New email. + :ivar team_log.MemberChangeEmailDetails.previous_value: Previous email. + Might be missing due to historical data gap. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + New email. + + :rtype: str + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous email. Might be missing due to historical data gap. + + :rtype: str + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeEmailDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeEmailDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) + +MemberChangeEmailDetails_validator = bv.Struct(MemberChangeEmailDetails) + +class MemberChangeEmailType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeEmailType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeEmailType(description={!r})'.format( + self._description_value, + ) + +MemberChangeEmailType_validator = bv.Struct(MemberChangeEmailType) + +class MemberChangeExternalIdDetails(bb.Struct): + """ + Changed the external ID for team member. + + :ivar team_log.MemberChangeExternalIdDetails.new_value: Current external id. + :ivar team_log.MemberChangeExternalIdDetails.previous_value: Old external + id. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + Current external id. + + :rtype: str + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Old external id. + + :rtype: str + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") + + @previous_value.setter + def previous_value(self, val): + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeExternalIdDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeExternalIdDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) + +MemberChangeExternalIdDetails_validator = bv.Struct(MemberChangeExternalIdDetails) + +class MemberChangeExternalIdType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeExternalIdType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeExternalIdType(description={!r})'.format( + self._description_value, + ) + +MemberChangeExternalIdType_validator = bv.Struct(MemberChangeExternalIdType) + +class MemberChangeMembershipTypeDetails(bb.Struct): + """ + Changed membership type (limited/full) of member. + + :ivar team_log.MemberChangeMembershipTypeDetails.prev_value: Previous + membership type. + :ivar team_log.MemberChangeMembershipTypeDetails.new_value: New membership + type. + """ + + __slots__ = [ + '_prev_value_value', + '_prev_value_present', + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + prev_value=None, + new_value=None): + self._prev_value_value = None + self._prev_value_present = False + self._new_value_value = None + self._new_value_present = False + if prev_value is not None: + self.prev_value = prev_value + if new_value is not None: + self.new_value = new_value + + @property + def prev_value(self): + """ + Previous membership type. + + :rtype: TeamMembershipType + """ + if self._prev_value_present: + return self._prev_value_value + else: + raise AttributeError("missing required field 'prev_value'") + + @prev_value.setter + def prev_value(self, val): + self._prev_value_validator.validate_type_only(val) + self._prev_value_value = val + self._prev_value_present = True + + @prev_value.deleter + def prev_value(self): + self._prev_value_value = None + self._prev_value_present = False + + @property + def new_value(self): + """ + New membership type. + + :rtype: TeamMembershipType + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeMembershipTypeDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeMembershipTypeDetails(prev_value={!r}, new_value={!r})'.format( + self._prev_value_value, + self._new_value_value, + ) + +MemberChangeMembershipTypeDetails_validator = bv.Struct(MemberChangeMembershipTypeDetails) + +class MemberChangeMembershipTypeType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeMembershipTypeType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeMembershipTypeType(description={!r})'.format( + self._description_value, + ) + +MemberChangeMembershipTypeType_validator = bv.Struct(MemberChangeMembershipTypeType) + +class MemberChangeNameDetails(bb.Struct): + """ + Changed team member name. + + :ivar team_log.MemberChangeNameDetails.new_value: New user's name. + :ivar team_log.MemberChangeNameDetails.previous_value: Previous user's name. + Might be missing due to historical data gap. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + New user's name. + + :rtype: UserNameLogInfo + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous user's name. Might be missing due to historical data gap. + + :rtype: UserNameLogInfo + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeNameDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeNameDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) + +MemberChangeNameDetails_validator = bv.Struct(MemberChangeNameDetails) + +class MemberChangeNameType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeNameType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeNameType(description={!r})'.format( + self._description_value, + ) + +MemberChangeNameType_validator = bv.Struct(MemberChangeNameType) + +class MemberChangeStatusDetails(bb.Struct): + """ + Changed member status (invited, joined, suspended, etc.). + + :ivar team_log.MemberChangeStatusDetails.previous_value: Previous member + status. Might be missing due to historical data gap. + :ivar team_log.MemberChangeStatusDetails.new_value: New member status. + :ivar team_log.MemberChangeStatusDetails.action: Additional information + indicating the action taken that caused status change. + """ + + __slots__ = [ + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + '_action_value', + '_action_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None, + previous_value=None, + action=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + self._action_value = None + self._action_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value + if action is not None: + self.action = action + + @property + def previous_value(self): + """ + Previous member status. Might be missing due to historical data gap. + + :rtype: MemberStatus + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + @property + def new_value(self): + """ + New member status. + + :rtype: MemberStatus + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def action(self): + """ + Additional information indicating the action taken that caused status + change. + + :rtype: ActionDetails + """ + if self._action_present: + return self._action_value + else: + return None + + @action.setter + def action(self, val): + if val is None: + del self.action + return + self._action_validator.validate_type_only(val) + self._action_value = val + self._action_present = True + + @action.deleter + def action(self): + self._action_value = None + self._action_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeStatusDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeStatusDetails(new_value={!r}, previous_value={!r}, action={!r})'.format( + self._new_value_value, + self._previous_value_value, + self._action_value, + ) + +MemberChangeStatusDetails_validator = bv.Struct(MemberChangeStatusDetails) + +class MemberChangeStatusType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberChangeStatusType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberChangeStatusType(description={!r})'.format( + self._description_value, + ) + +MemberChangeStatusType_validator = bv.Struct(MemberChangeStatusType) + +class MemberDeleteManualContactsDetails(bb.Struct): + """ + Cleared manually added contacts. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberDeleteManualContactsDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberDeleteManualContactsDetails()' + +MemberDeleteManualContactsDetails_validator = bv.Struct(MemberDeleteManualContactsDetails) + +class MemberDeleteManualContactsType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberDeleteManualContactsType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberDeleteManualContactsType(description={!r})'.format( + self._description_value, + ) + +MemberDeleteManualContactsType_validator = bv.Struct(MemberDeleteManualContactsType) + +class MemberPermanentlyDeleteAccountContentsDetails(bb.Struct): + """ + Permanently deleted contents of deleted team member account. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberPermanentlyDeleteAccountContentsDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberPermanentlyDeleteAccountContentsDetails()' + +MemberPermanentlyDeleteAccountContentsDetails_validator = bv.Struct(MemberPermanentlyDeleteAccountContentsDetails) + +class MemberPermanentlyDeleteAccountContentsType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberPermanentlyDeleteAccountContentsType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberPermanentlyDeleteAccountContentsType(description={!r})'.format( + self._description_value, + ) + +MemberPermanentlyDeleteAccountContentsType_validator = bv.Struct(MemberPermanentlyDeleteAccountContentsType) + +class MemberRemoveActionType(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 + delete = None + # Attribute is overwritten below the class definition + offboard = None + # Attribute is overwritten below the class definition + leave = None + # Attribute is overwritten below the class definition + offboard_and_retain_team_folders = None + # Attribute is overwritten below the class definition + other = None + + def is_delete(self): + """ + Check if the union tag is ``delete``. + + :rtype: bool + """ + return self._tag == 'delete' + + def is_offboard(self): + """ + Check if the union tag is ``offboard``. + + :rtype: bool + """ + return self._tag == 'offboard' + + def is_leave(self): + """ + Check if the union tag is ``leave``. + + :rtype: bool + """ + return self._tag == 'leave' + + def is_offboard_and_retain_team_folders(self): + """ + Check if the union tag is ``offboard_and_retain_team_folders``. + + :rtype: bool + """ + return self._tag == 'offboard_and_retain_team_folders' + + 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(MemberRemoveActionType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberRemoveActionType(%r, %r)' % (self._tag, self._value) + +MemberRemoveActionType_validator = bv.Union(MemberRemoveActionType) + +class MemberRemoveExternalIdDetails(bb.Struct): + """ + Removed the external ID for team member. + + :ivar team_log.MemberRemoveExternalIdDetails.previous_value: Old external + id. + """ + + __slots__ = [ + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = True + + def __init__(self, + previous_value=None): + self._previous_value_value = None + self._previous_value_present = False + if previous_value is not None: + self.previous_value = previous_value + + @property + def previous_value(self): + """ + Old external id. + + :rtype: str + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") + + @previous_value.setter + def previous_value(self, val): + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberRemoveExternalIdDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberRemoveExternalIdDetails(previous_value={!r})'.format( + self._previous_value_value, + ) + +MemberRemoveExternalIdDetails_validator = bv.Struct(MemberRemoveExternalIdDetails) + +class MemberRemoveExternalIdType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberRemoveExternalIdType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberRemoveExternalIdType(description={!r})'.format( + self._description_value, + ) + +MemberRemoveExternalIdType_validator = bv.Struct(MemberRemoveExternalIdType) + +class MemberRequestsChangePolicyDetails(bb.Struct): + """ + Changed whether users can find team when not invited. + + :ivar team_log.MemberRequestsChangePolicyDetails.new_value: New member + change requests policy. + :ivar team_log.MemberRequestsChangePolicyDetails.previous_value: Previous + member change requests policy. Might be missing due to historical data + gap. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + New member change requests policy. + + :rtype: MemberRequestsPolicy + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous member change requests policy. Might be missing due to + historical data gap. + + :rtype: MemberRequestsPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberRequestsChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberRequestsChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) + +MemberRequestsChangePolicyDetails_validator = bv.Struct(MemberRequestsChangePolicyDetails) + +class MemberRequestsChangePolicyType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberRequestsChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberRequestsChangePolicyType(description={!r})'.format( + self._description_value, + ) + +MemberRequestsChangePolicyType_validator = bv.Struct(MemberRequestsChangePolicyType) + +class MemberRequestsPolicy(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 + auto_accept = None + # Attribute is overwritten below the class definition + disabled = None + # Attribute is overwritten below the class definition + require_approval = None + # Attribute is overwritten below the class definition + other = None + + def is_auto_accept(self): + """ + Check if the union tag is ``auto_accept``. + + :rtype: bool + """ + return self._tag == 'auto_accept' + + def is_disabled(self): + """ + Check if the union tag is ``disabled``. + + :rtype: bool + """ + return self._tag == 'disabled' + + def is_require_approval(self): + """ + Check if the union tag is ``require_approval``. + + :rtype: bool + """ + return self._tag == 'require_approval' + + 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(MemberRequestsPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberRequestsPolicy(%r, %r)' % (self._tag, self._value) + +MemberRequestsPolicy_validator = bv.Union(MemberRequestsPolicy) + +class MemberSpaceLimitsAddCustomQuotaDetails(bb.Struct): + """ + Set custom member space limit. + + :ivar team_log.MemberSpaceLimitsAddCustomQuotaDetails.new_value: New custom + quota value in bytes. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None): + self._new_value_value = None + self._new_value_present = False + if new_value is not None: + self.new_value = new_value + + @property + def new_value(self): + """ + New custom quota value in bytes. + + :rtype: int + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsAddCustomQuotaDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsAddCustomQuotaDetails(new_value={!r})'.format( + self._new_value_value, + ) + +MemberSpaceLimitsAddCustomQuotaDetails_validator = bv.Struct(MemberSpaceLimitsAddCustomQuotaDetails) + +class MemberSpaceLimitsAddCustomQuotaType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsAddCustomQuotaType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsAddCustomQuotaType(description={!r})'.format( + self._description_value, + ) + +MemberSpaceLimitsAddCustomQuotaType_validator = bv.Struct(MemberSpaceLimitsAddCustomQuotaType) + +class MemberSpaceLimitsAddExceptionDetails(bb.Struct): + """ + Added members to member space limit exception list. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsAddExceptionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsAddExceptionDetails()' + +MemberSpaceLimitsAddExceptionDetails_validator = bv.Struct(MemberSpaceLimitsAddExceptionDetails) + +class MemberSpaceLimitsAddExceptionType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsAddExceptionType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsAddExceptionType(description={!r})'.format( + self._description_value, + ) + +MemberSpaceLimitsAddExceptionType_validator = bv.Struct(MemberSpaceLimitsAddExceptionType) + +class MemberSpaceLimitsChangeCapsTypePolicyDetails(bb.Struct): + """ + Changed member space limit type for team. + + :ivar team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails.previous_value: + Previous space limit type. + :ivar team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails.new_value: New + space limit type. + """ + + __slots__ = [ + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + previous_value=None, + new_value=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value + + @property + def previous_value(self): + """ + Previous space limit type. + + :rtype: SpaceCapsType + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") + + @previous_value.setter + def previous_value(self, val): + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + @property + def new_value(self): + """ + New space limit type. + + :rtype: SpaceCapsType + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsChangeCapsTypePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsChangeCapsTypePolicyDetails(previous_value={!r}, new_value={!r})'.format( + self._previous_value_value, + self._new_value_value, + ) + +MemberSpaceLimitsChangeCapsTypePolicyDetails_validator = bv.Struct(MemberSpaceLimitsChangeCapsTypePolicyDetails) + +class MemberSpaceLimitsChangeCapsTypePolicyType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsChangeCapsTypePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsChangeCapsTypePolicyType(description={!r})'.format( + self._description_value, + ) + +MemberSpaceLimitsChangeCapsTypePolicyType_validator = bv.Struct(MemberSpaceLimitsChangeCapsTypePolicyType) + +class MemberSpaceLimitsChangeCustomQuotaDetails(bb.Struct): + """ + Changed custom member space limit. + + :ivar team_log.MemberSpaceLimitsChangeCustomQuotaDetails.previous_value: + Previous custom quota value in bytes. + :ivar team_log.MemberSpaceLimitsChangeCustomQuotaDetails.new_value: New + custom quota value in bytes. + """ + + __slots__ = [ + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + previous_value=None, + new_value=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value + + @property + def previous_value(self): + """ + Previous custom quota value in bytes. + + :rtype: int + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") + + @previous_value.setter + def previous_value(self, val): + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + @property + def new_value(self): + """ + New custom quota value in bytes. + + :rtype: int + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsChangeCustomQuotaDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsChangeCustomQuotaDetails(previous_value={!r}, new_value={!r})'.format( + self._previous_value_value, + self._new_value_value, + ) + +MemberSpaceLimitsChangeCustomQuotaDetails_validator = bv.Struct(MemberSpaceLimitsChangeCustomQuotaDetails) + +class MemberSpaceLimitsChangeCustomQuotaType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsChangeCustomQuotaType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsChangeCustomQuotaType(description={!r})'.format( + self._description_value, + ) + +MemberSpaceLimitsChangeCustomQuotaType_validator = bv.Struct(MemberSpaceLimitsChangeCustomQuotaType) + +class MemberSpaceLimitsChangePolicyDetails(bb.Struct): + """ + Changed team default member space limit. + + :ivar team_log.MemberSpaceLimitsChangePolicyDetails.previous_value: Previous + team default limit value in bytes. Might be missing due to historical + data gap. + :ivar team_log.MemberSpaceLimitsChangePolicyDetails.new_value: New team + default limit value in bytes. Might be missing due to historical data + gap. + """ + + __slots__ = [ + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = False + + def __init__(self, + previous_value=None, + new_value=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value + + @property + def previous_value(self): + """ + Previous team default limit value in bytes. Might be missing due to + historical data gap. + + :rtype: int + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + @property + def new_value(self): + """ + New team default limit value in bytes. Might be missing due to + historical data gap. + + :rtype: int + """ + if self._new_value_present: + return self._new_value_value + else: + return None + + @new_value.setter + def new_value(self, val): + if val is None: + del self.new_value + return + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsChangePolicyDetails(previous_value={!r}, new_value={!r})'.format( + self._previous_value_value, + self._new_value_value, + ) + +MemberSpaceLimitsChangePolicyDetails_validator = bv.Struct(MemberSpaceLimitsChangePolicyDetails) + +class MemberSpaceLimitsChangePolicyType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsChangePolicyType(description={!r})'.format( + self._description_value, + ) + +MemberSpaceLimitsChangePolicyType_validator = bv.Struct(MemberSpaceLimitsChangePolicyType) + +class MemberSpaceLimitsChangeStatusDetails(bb.Struct): + """ + Changed space limit status. + + :ivar team_log.MemberSpaceLimitsChangeStatusDetails.previous_value: Previous + storage quota status. + :ivar team_log.MemberSpaceLimitsChangeStatusDetails.new_value: New storage + quota status. + """ + + __slots__ = [ + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + previous_value=None, + new_value=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value + + @property + def previous_value(self): + """ + Previous storage quota status. + + :rtype: SpaceLimitsStatus + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") + + @previous_value.setter + def previous_value(self, val): + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + @property + def new_value(self): + """ + New storage quota status. + + :rtype: SpaceLimitsStatus + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsChangeStatusDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsChangeStatusDetails(previous_value={!r}, new_value={!r})'.format( + self._previous_value_value, + self._new_value_value, + ) + +MemberSpaceLimitsChangeStatusDetails_validator = bv.Struct(MemberSpaceLimitsChangeStatusDetails) + +class MemberSpaceLimitsChangeStatusType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsChangeStatusType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsChangeStatusType(description={!r})'.format( + self._description_value, + ) + +MemberSpaceLimitsChangeStatusType_validator = bv.Struct(MemberSpaceLimitsChangeStatusType) + +class MemberSpaceLimitsRemoveCustomQuotaDetails(bb.Struct): + """ + Removed custom member space limit. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsRemoveCustomQuotaDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsRemoveCustomQuotaDetails()' + +MemberSpaceLimitsRemoveCustomQuotaDetails_validator = bv.Struct(MemberSpaceLimitsRemoveCustomQuotaDetails) + +class MemberSpaceLimitsRemoveCustomQuotaType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsRemoveCustomQuotaType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsRemoveCustomQuotaType(description={!r})'.format( + self._description_value, + ) + +MemberSpaceLimitsRemoveCustomQuotaType_validator = bv.Struct(MemberSpaceLimitsRemoveCustomQuotaType) + +class MemberSpaceLimitsRemoveExceptionDetails(bb.Struct): + """ + Removed members from member space limit exception list. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsRemoveExceptionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsRemoveExceptionDetails()' + +MemberSpaceLimitsRemoveExceptionDetails_validator = bv.Struct(MemberSpaceLimitsRemoveExceptionDetails) + +class MemberSpaceLimitsRemoveExceptionType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSpaceLimitsRemoveExceptionType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSpaceLimitsRemoveExceptionType(description={!r})'.format( + self._description_value, + ) + +MemberSpaceLimitsRemoveExceptionType_validator = bv.Struct(MemberSpaceLimitsRemoveExceptionType) + +class MemberStatus(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 + not_joined = None + # Attribute is overwritten below the class definition + invited = None + # Attribute is overwritten below the class definition + active = None + # Attribute is overwritten below the class definition + suspended = None + # Attribute is overwritten below the class definition + removed = None + # Attribute is overwritten below the class definition + other = None + + def is_not_joined(self): + """ + Check if the union tag is ``not_joined``. + + :rtype: bool + """ + return self._tag == 'not_joined' + + def is_invited(self): + """ + Check if the union tag is ``invited``. + + :rtype: bool + """ + return self._tag == 'invited' + + def is_active(self): + """ + Check if the union tag is ``active``. + + :rtype: bool + """ + return self._tag == 'active' + + def is_suspended(self): + """ + Check if the union tag is ``suspended``. + + :rtype: bool + """ + return self._tag == 'suspended' + + def is_removed(self): + """ + Check if the union tag is ``removed``. + + :rtype: bool + """ + return self._tag == 'removed' + + 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(MemberStatus, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberStatus(%r, %r)' % (self._tag, self._value) + +MemberStatus_validator = bv.Union(MemberStatus) + +class MemberSuggestDetails(bb.Struct): + """ + Suggested person to add to team. + + :ivar team_log.MemberSuggestDetails.suggested_members: suggested users + emails. + """ + + __slots__ = [ + '_suggested_members_value', + '_suggested_members_present', + ] + + _has_required_fields = True + + def __init__(self, + suggested_members=None): + self._suggested_members_value = None + self._suggested_members_present = False + if suggested_members is not None: + self.suggested_members = suggested_members + + @property + def suggested_members(self): + """ + suggested users emails. + + :rtype: list of [str] + """ + if self._suggested_members_present: + return self._suggested_members_value + else: + raise AttributeError("missing required field 'suggested_members'") + + @suggested_members.setter + def suggested_members(self, val): + val = self._suggested_members_validator.validate(val) + self._suggested_members_value = val + self._suggested_members_present = True + + @suggested_members.deleter + def suggested_members(self): + self._suggested_members_value = None + self._suggested_members_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSuggestDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSuggestDetails(suggested_members={!r})'.format( + self._suggested_members_value, + ) + +MemberSuggestDetails_validator = bv.Struct(MemberSuggestDetails) + +class MemberSuggestType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSuggestType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSuggestType(description={!r})'.format( + self._description_value, + ) + +MemberSuggestType_validator = bv.Struct(MemberSuggestType) + +class MemberSuggestionsChangePolicyDetails(bb.Struct): + """ + Enabled/disabled option for team members to suggest people to add to team. + + :ivar team_log.MemberSuggestionsChangePolicyDetails.new_value: New team + member suggestions policy. + :ivar team_log.MemberSuggestionsChangePolicyDetails.previous_value: Previous + team member suggestions policy. Might be missing due to historical data + gap. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + New team member suggestions policy. + + :rtype: MemberSuggestionsPolicy + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous team member suggestions policy. Might be missing due to + historical data gap. + + :rtype: MemberSuggestionsPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSuggestionsChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSuggestionsChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) + +MemberSuggestionsChangePolicyDetails_validator = bv.Struct(MemberSuggestionsChangePolicyDetails) + +class MemberSuggestionsChangePolicyType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberSuggestionsChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSuggestionsChangePolicyType(description={!r})'.format( + self._description_value, + ) + +MemberSuggestionsChangePolicyType_validator = bv.Struct(MemberSuggestionsChangePolicyType) + +class MemberSuggestionsPolicy(bb.Union): + """ + Member suggestions policy + + 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 + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None + + def is_disabled(self): + """ + Check if the union tag is ``disabled``. + + :rtype: bool + """ + return self._tag == 'disabled' + + def is_enabled(self): + """ + Check if the union tag is ``enabled``. + + :rtype: bool + """ + return self._tag == 'enabled' + + 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(MemberSuggestionsPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberSuggestionsPolicy(%r, %r)' % (self._tag, self._value) + +MemberSuggestionsPolicy_validator = bv.Union(MemberSuggestionsPolicy) + +class MemberTransferAccountContentsDetails(bb.Struct): + """ + Transferred contents of deleted member account to another member. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberTransferAccountContentsDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberTransferAccountContentsDetails()' + +MemberTransferAccountContentsDetails_validator = bv.Struct(MemberTransferAccountContentsDetails) + +class MemberTransferAccountContentsType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MemberTransferAccountContentsType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MemberTransferAccountContentsType(description={!r})'.format( + self._description_value, + ) + +MemberTransferAccountContentsType_validator = bv.Struct(MemberTransferAccountContentsType) + +class MicrosoftOfficeAddinChangePolicyDetails(bb.Struct): + """ + Enabled/disabled Microsoft Office add-in. + + :ivar team_log.MicrosoftOfficeAddinChangePolicyDetails.new_value: New + Microsoft Office addin policy. + :ivar team_log.MicrosoftOfficeAddinChangePolicyDetails.previous_value: + Previous Microsoft Office addin policy. Might be missing due to + historical data gap. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + New Microsoft Office addin policy. + + :rtype: MicrosoftOfficeAddinPolicy + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous Microsoft Office addin policy. Might be missing due to + historical data gap. + + :rtype: MicrosoftOfficeAddinPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MicrosoftOfficeAddinChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MicrosoftOfficeAddinChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) + +MicrosoftOfficeAddinChangePolicyDetails_validator = bv.Struct(MicrosoftOfficeAddinChangePolicyDetails) + +class MicrosoftOfficeAddinChangePolicyType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: return self._description_value else: - raise AttributeError("missing required field 'description'") + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MicrosoftOfficeAddinChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MicrosoftOfficeAddinChangePolicyType(description={!r})'.format( + self._description_value, + ) + +MicrosoftOfficeAddinChangePolicyType_validator = bv.Struct(MicrosoftOfficeAddinChangePolicyType) + +class MicrosoftOfficeAddinPolicy(bb.Union): + """ + Microsoft Office addin policy + + 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 + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None + + def is_disabled(self): + """ + Check if the union tag is ``disabled``. + + :rtype: bool + """ + return self._tag == 'disabled' + + def is_enabled(self): + """ + Check if the union tag is ``enabled``. + + :rtype: bool + """ + return self._tag == 'enabled' + + 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(MicrosoftOfficeAddinPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MicrosoftOfficeAddinPolicy(%r, %r)' % (self._tag, self._value) + +MicrosoftOfficeAddinPolicy_validator = bv.Union(MicrosoftOfficeAddinPolicy) + +class MissingDetails(bb.Struct): + """ + An indication that an error occurred while retrieving the event. Some + attributes of the event may be omitted as a result. + + :ivar team_log.MissingDetails.source_event_fields: All the data that could + be retrieved and converted from the source event. + """ + + __slots__ = [ + '_source_event_fields_value', + '_source_event_fields_present', + ] + + _has_required_fields = False + + def __init__(self, + source_event_fields=None): + self._source_event_fields_value = None + self._source_event_fields_present = False + if source_event_fields is not None: + self.source_event_fields = source_event_fields + + @property + def source_event_fields(self): + """ + All the data that could be retrieved and converted from the source + event. + + :rtype: str + """ + if self._source_event_fields_present: + return self._source_event_fields_value + else: + return None + + @source_event_fields.setter + def source_event_fields(self, val): + if val is None: + del self.source_event_fields + return + val = self._source_event_fields_validator.validate(val) + self._source_event_fields_value = val + self._source_event_fields_present = True + + @source_event_fields.deleter + def source_event_fields(self): + self._source_event_fields_value = None + self._source_event_fields_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MissingDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MissingDetails(source_event_fields={!r})'.format( + self._source_event_fields_value, + ) + +MissingDetails_validator = bv.Struct(MissingDetails) + +class MobileDeviceSessionLogInfo(DeviceSessionLogInfo): + """ + Information about linked Dropbox mobile client sessions + + :ivar team_log.MobileDeviceSessionLogInfo.session_info: Mobile session + unique id. Might be missing due to historical data gap. + :ivar team_log.MobileDeviceSessionLogInfo.device_name: The device name. + :ivar team_log.MobileDeviceSessionLogInfo.client_type: The mobile + application type. + :ivar team_log.MobileDeviceSessionLogInfo.client_version: The Dropbox client + version. + :ivar team_log.MobileDeviceSessionLogInfo.os_version: The hosting OS + version. + :ivar team_log.MobileDeviceSessionLogInfo.last_carrier: last carrier used by + the device. + """ + + __slots__ = [ + '_session_info_value', + '_session_info_present', + '_device_name_value', + '_device_name_present', + '_client_type_value', + '_client_type_present', + '_client_version_value', + '_client_version_present', + '_os_version_value', + '_os_version_present', + '_last_carrier_value', + '_last_carrier_present', + ] + + _has_required_fields = True + + def __init__(self, + device_name=None, + client_type=None, + ip_address=None, + created=None, + updated=None, + session_info=None, + client_version=None, + os_version=None, + last_carrier=None): + super(MobileDeviceSessionLogInfo, self).__init__(ip_address, + created, + updated) + self._session_info_value = None + self._session_info_present = False + self._device_name_value = None + self._device_name_present = False + self._client_type_value = None + self._client_type_present = False + self._client_version_value = None + self._client_version_present = False + self._os_version_value = None + self._os_version_present = False + self._last_carrier_value = None + self._last_carrier_present = False + if session_info is not None: + self.session_info = session_info + if device_name is not None: + self.device_name = device_name + if client_type is not None: + self.client_type = client_type + if client_version is not None: + self.client_version = client_version + if os_version is not None: + self.os_version = os_version + if last_carrier is not None: + self.last_carrier = last_carrier + + @property + def session_info(self): + """ + Mobile session unique id. Might be missing due to historical data gap. + + :rtype: MobileSessionLogInfo + """ + if self._session_info_present: + return self._session_info_value + else: + return None + + @session_info.setter + def session_info(self, val): + if val is None: + del self.session_info + return + self._session_info_validator.validate_type_only(val) + self._session_info_value = val + self._session_info_present = True + + @session_info.deleter + def session_info(self): + self._session_info_value = None + self._session_info_present = False + + @property + def device_name(self): + """ + The device name. + + :rtype: str + """ + if self._device_name_present: + return self._device_name_value + else: + raise AttributeError("missing required field 'device_name'") + + @device_name.setter + def device_name(self, val): + val = self._device_name_validator.validate(val) + self._device_name_value = val + self._device_name_present = True + + @device_name.deleter + def device_name(self): + self._device_name_value = None + self._device_name_present = False + + @property + def client_type(self): + """ + The mobile application type. + + :rtype: team.MobileClientPlatform + """ + if self._client_type_present: + return self._client_type_value + else: + raise AttributeError("missing required field 'client_type'") + + @client_type.setter + def client_type(self, val): + self._client_type_validator.validate_type_only(val) + self._client_type_value = val + self._client_type_present = True + + @client_type.deleter + def client_type(self): + self._client_type_value = None + self._client_type_present = False + + @property + def client_version(self): + """ + The Dropbox client version. + + :rtype: str + """ + if self._client_version_present: + return self._client_version_value + else: + return None + + @client_version.setter + def client_version(self, val): + if val is None: + del self.client_version + return + val = self._client_version_validator.validate(val) + self._client_version_value = val + self._client_version_present = True + + @client_version.deleter + def client_version(self): + self._client_version_value = None + self._client_version_present = False + + @property + def os_version(self): + """ + The hosting OS version. + + :rtype: str + """ + if self._os_version_present: + return self._os_version_value + else: + return None + + @os_version.setter + def os_version(self, val): + if val is None: + del self.os_version + return + val = self._os_version_validator.validate(val) + self._os_version_value = val + self._os_version_present = True + + @os_version.deleter + def os_version(self): + self._os_version_value = None + self._os_version_present = False + + @property + def last_carrier(self): + """ + last carrier used by the device. + + :rtype: str + """ + if self._last_carrier_present: + return self._last_carrier_value + else: + return None + + @last_carrier.setter + def last_carrier(self, val): + if val is None: + del self.last_carrier + return + val = self._last_carrier_validator.validate(val) + self._last_carrier_value = val + self._last_carrier_present = True + + @last_carrier.deleter + def last_carrier(self): + self._last_carrier_value = None + self._last_carrier_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MobileDeviceSessionLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MobileDeviceSessionLogInfo(device_name={!r}, client_type={!r}, ip_address={!r}, created={!r}, updated={!r}, session_info={!r}, client_version={!r}, os_version={!r}, last_carrier={!r})'.format( + self._device_name_value, + self._client_type_value, + self._ip_address_value, + self._created_value, + self._updated_value, + self._session_info_value, + self._client_version_value, + self._os_version_value, + self._last_carrier_value, + ) + +MobileDeviceSessionLogInfo_validator = bv.Struct(MobileDeviceSessionLogInfo) + +class MobileSessionLogInfo(SessionLogInfo): + """ + Mobile session. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self, + session_id=None): + super(MobileSessionLogInfo, self).__init__(session_id) + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(MobileSessionLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'MobileSessionLogInfo(session_id={!r})'.format( + self._session_id_value, + ) + +MobileSessionLogInfo_validator = bv.Struct(MobileSessionLogInfo) + +class NamespaceRelativePathLogInfo(bb.Struct): + """ + Namespace relative path details. + + :ivar team_log.NamespaceRelativePathLogInfo.ns_id: Namespace ID. Might be + missing due to historical data gap. + :ivar team_log.NamespaceRelativePathLogInfo.relative_path: A path relative + to the specified namespace ID. Might be missing due to historical data + gap. + """ + + __slots__ = [ + '_ns_id_value', + '_ns_id_present', + '_relative_path_value', + '_relative_path_present', + ] + + _has_required_fields = False + + def __init__(self, + ns_id=None, + relative_path=None): + self._ns_id_value = None + self._ns_id_present = False + self._relative_path_value = None + self._relative_path_present = False + if ns_id is not None: + self.ns_id = ns_id + if relative_path is not None: + self.relative_path = relative_path + + @property + def ns_id(self): + """ + Namespace ID. Might be missing due to historical data gap. + + :rtype: str + """ + if self._ns_id_present: + return self._ns_id_value + else: + return None + + @ns_id.setter + def ns_id(self, val): + if val is None: + del self.ns_id + return + val = self._ns_id_validator.validate(val) + self._ns_id_value = val + self._ns_id_present = True + + @ns_id.deleter + def ns_id(self): + self._ns_id_value = None + self._ns_id_present = False + + @property + def relative_path(self): + """ + A path relative to the specified namespace ID. Might be missing due to + historical data gap. + + :rtype: str + """ + if self._relative_path_present: + return self._relative_path_value + else: + return None - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @relative_path.setter + def relative_path(self, val): + if val is None: + del self.relative_path + return + val = self._relative_path_validator.validate(val) + self._relative_path_value = val + self._relative_path_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @relative_path.deleter + def relative_path(self): + self._relative_path_value = None + self._relative_path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(LogoutType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NamespaceRelativePathLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'LogoutType(description={!r})'.format( - self._description_value, + return 'NamespaceRelativePathLogInfo(ns_id={!r}, relative_path={!r})'.format( + self._ns_id_value, + self._relative_path_value, ) -LogoutType_validator = bv.Struct(LogoutType) +NamespaceRelativePathLogInfo_validator = bv.Struct(NamespaceRelativePathLogInfo) -class MemberAddNameDetails(bb.Struct): +class NetworkControlChangePolicyDetails(bb.Struct): """ - Added team member name. + Enabled/disabled network control. - :ivar team_log.MemberAddNameDetails.new_value: New user's name. + :ivar team_log.NetworkControlChangePolicyDetails.new_value: New network + control policy. + :ivar team_log.NetworkControlChangePolicyDetails.previous_value: Previous + network control policy. Might be missing due to historical data gap. """ __slots__ = [ '_new_value_value', '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - new_value=None): + new_value=None, + previous_value=None): self._new_value_value = None self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False if new_value is not None: self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property def new_value(self): """ - New user's name. + New network control policy. - :rtype: team_log.UserNameLogInfo + :rtype: NetworkControlPolicy """ if self._new_value_present: return self._new_value_value @@ -35100,17 +41940,45 @@ def new_value(self): self._new_value_value = None self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberAddNameDetails, self)._process_custom_annotations(annotation_type, processor) + @property + def previous_value(self): + """ + Previous network control policy. Might be missing due to historical data + gap. + + :rtype: NetworkControlPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NetworkControlChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberAddNameDetails(new_value={!r})'.format( + return 'NetworkControlChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, + self._previous_value_value, ) -MemberAddNameDetails_validator = bv.Struct(MemberAddNameDetails) +NetworkControlChangePolicyDetails_validator = bv.Struct(NetworkControlChangePolicyDetails) -class MemberAddNameType(bb.Struct): +class NetworkControlChangePolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -35147,115 +42015,451 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberAddNameType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NetworkControlChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberAddNameType(description={!r})'.format( + return 'NetworkControlChangePolicyType(description={!r})'.format( self._description_value, ) -MemberAddNameType_validator = bv.Struct(MemberAddNameType) +NetworkControlChangePolicyType_validator = bv.Struct(NetworkControlChangePolicyType) -class MemberChangeAdminRoleDetails(bb.Struct): +class NetworkControlPolicy(bb.Union): """ - Changed team member admin role. + Network control policy - :ivar team_log.MemberChangeAdminRoleDetails.new_value: New admin role. This - field is relevant when the admin role is changed or whenthe user role - changes from no admin rights to with admin rights. - :ivar team_log.MemberChangeAdminRoleDetails.previous_value: Previous admin - role. This field is relevant when the admin role is changed or when the - admin role is removed. + 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 + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None + + def is_disabled(self): + """ + Check if the union tag is ``disabled``. + + :rtype: bool + """ + return self._tag == 'disabled' + + def is_enabled(self): + """ + Check if the union tag is ``enabled``. + + :rtype: bool + """ + return self._tag == 'enabled' + + 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(NetworkControlPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'NetworkControlPolicy(%r, %r)' % (self._tag, self._value) + +NetworkControlPolicy_validator = bv.Union(NetworkControlPolicy) + +class UserLogInfo(bb.Struct): + """ + User's logged information. + + :ivar team_log.UserLogInfo.account_id: User unique ID. Might be missing due + to historical data gap. + :ivar team_log.UserLogInfo.display_name: User display name. Might be missing + due to historical data gap. + :ivar team_log.UserLogInfo.email: User email address. Might be missing due + to historical data gap. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_account_id_value', + '_account_id_present', + '_display_name_value', + '_display_name_present', + '_email_value', + '_email_present', ] _has_required_fields = False def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + account_id=None, + display_name=None, + email=None): + self._account_id_value = None + self._account_id_present = False + self._display_name_value = None + self._display_name_present = False + self._email_value = None + self._email_present = False + if account_id is not None: + self.account_id = account_id + if display_name is not None: + self.display_name = display_name + if email is not None: + self.email = email @property - def new_value(self): + def account_id(self): """ - New admin role. This field is relevant when the admin role is changed or - whenthe user role changes from no admin rights to with admin rights. + User unique ID. Might be missing due to historical data gap. - :rtype: team_log.AdminRole + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._account_id_present: + return self._account_id_value else: return None - @new_value.setter - def new_value(self, val): + @account_id.setter + def account_id(self, val): if val is None: - del self.new_value + del self.account_id return - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + val = self._account_id_validator.validate(val) + self._account_id_value = val + self._account_id_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @account_id.deleter + def account_id(self): + self._account_id_value = None + self._account_id_present = False @property - def previous_value(self): + def display_name(self): """ - Previous admin role. This field is relevant when the admin role is - changed or when the admin role is removed. + User display name. Might be missing due to historical data gap. - :rtype: team_log.AdminRole + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._display_name_present: + return self._display_name_value else: return None - @previous_value.setter - def previous_value(self, val): + @display_name.setter + def display_name(self, val): if val is None: - del self.previous_value + del self.display_name return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + val = self._display_name_validator.validate(val) + self._display_name_value = val + self._display_name_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @display_name.deleter + def display_name(self): + self._display_name_value = None + self._display_name_present = False + + @property + def email(self): + """ + User email address. Might be missing due to historical data gap. + + :rtype: str + """ + if self._email_present: + return self._email_value + else: + return None + + @email.setter + def email(self, val): + if val is None: + del self.email + return + val = self._email_validator.validate(val) + self._email_value = val + self._email_present = True + + @email.deleter + def email(self): + self._email_value = None + self._email_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'UserLogInfo(account_id={!r}, display_name={!r}, email={!r})'.format( + self._account_id_value, + self._display_name_value, + self._email_value, + ) + +UserLogInfo_validator = bv.StructTree(UserLogInfo) + +class NonTeamMemberLogInfo(UserLogInfo): + """ + Non team member's logged information. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self, + account_id=None, + display_name=None, + email=None): + super(NonTeamMemberLogInfo, self).__init__(account_id, + display_name, + email) + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NonTeamMemberLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'NonTeamMemberLogInfo(account_id={!r}, display_name={!r}, email={!r})'.format( + self._account_id_value, + self._display_name_value, + self._email_value, + ) + +NonTeamMemberLogInfo_validator = bv.Struct(NonTeamMemberLogInfo) + +class NoteAclInviteOnlyDetails(bb.Struct): + """ + Changed Paper doc to invite-only. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NoteAclInviteOnlyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'NoteAclInviteOnlyDetails()' + +NoteAclInviteOnlyDetails_validator = bv.Struct(NoteAclInviteOnlyDetails) + +class NoteAclInviteOnlyType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NoteAclInviteOnlyType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'NoteAclInviteOnlyType(description={!r})'.format( + self._description_value, + ) + +NoteAclInviteOnlyType_validator = bv.Struct(NoteAclInviteOnlyType) + +class NoteAclLinkDetails(bb.Struct): + """ + Changed Paper doc to link-accessible. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NoteAclLinkDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'NoteAclLinkDetails()' + +NoteAclLinkDetails_validator = bv.Struct(NoteAclLinkDetails) + +class NoteAclLinkType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NoteAclLinkType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'NoteAclLinkType(description={!r})'.format( + self._description_value, + ) + +NoteAclLinkType_validator = bv.Struct(NoteAclLinkType) + +class NoteAclTeamLinkDetails(bb.Struct): + """ + Changed Paper doc to link-accessible for team. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NoteAclTeamLinkDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'NoteAclTeamLinkDetails()' + +NoteAclTeamLinkDetails_validator = bv.Struct(NoteAclTeamLinkDetails) + +class NoteAclTeamLinkType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NoteAclTeamLinkType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'NoteAclTeamLinkType(description={!r})'.format( + self._description_value, + ) + +NoteAclTeamLinkType_validator = bv.Struct(NoteAclTeamLinkType) + +class NoteShareReceiveDetails(bb.Struct): + """ + Shared received Paper doc. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(MemberChangeAdminRoleDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NoteShareReceiveDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberChangeAdminRoleDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, - ) + return 'NoteShareReceiveDetails()' -MemberChangeAdminRoleDetails_validator = bv.Struct(MemberChangeAdminRoleDetails) +NoteShareReceiveDetails_validator = bv.Struct(NoteShareReceiveDetails) -class MemberChangeAdminRoleType(bb.Struct): +class NoteShareReceiveType(bb.Struct): __slots__ = [ '_description_value', @@ -35292,107 +42496,106 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberChangeAdminRoleType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NoteShareReceiveType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberChangeAdminRoleType(description={!r})'.format( + return 'NoteShareReceiveType(description={!r})'.format( self._description_value, ) -MemberChangeAdminRoleType_validator = bv.Struct(MemberChangeAdminRoleType) +NoteShareReceiveType_validator = bv.Struct(NoteShareReceiveType) -class MemberChangeEmailDetails(bb.Struct): +class NoteSharedDetails(bb.Struct): """ - Changed team member email. - - :ivar team_log.MemberChangeEmailDetails.new_value: New email. - :ivar team_log.MemberChangeEmailDetails.previous_value: Previous email. - Might be missing due to historical data gap. + Shared Paper doc. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NoteSharedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'NoteSharedDetails()' + +NoteSharedDetails_validator = bv.Struct(NoteSharedDetails) + +class NoteSharedType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def new_value(self): + def description(self): """ - New email. - :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._description_present: + return self._description_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'description'") - @new_value.setter - def new_value(self, val): - val = self._new_value_validator.validate(val) - self._new_value_value = val - self._new_value_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - @property - def previous_value(self): - """ - Previous email. Might be missing due to historical data gap. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(NoteSharedType, self)._process_custom_annotations(annotation_type, field_path, processor) - :rtype: str - """ - if self._previous_value_present: - return self._previous_value_value - else: - return None + def __repr__(self): + return 'NoteSharedType(description={!r})'.format( + self._description_value, + ) - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - val = self._previous_value_validator.validate(val) - self._previous_value_value = val - self._previous_value_present = True +NoteSharedType_validator = bv.Struct(NoteSharedType) - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False +class OpenNoteSharedDetails(bb.Struct): + """ + Opened shared Paper doc. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(MemberChangeEmailDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(OpenNoteSharedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberChangeEmailDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, - ) + return 'OpenNoteSharedDetails()' -MemberChangeEmailDetails_validator = bv.Struct(MemberChangeEmailDetails) +OpenNoteSharedDetails_validator = bv.Struct(OpenNoteSharedDetails) -class MemberChangeEmailType(bb.Struct): +class OpenNoteSharedType(bb.Struct): __slots__ = [ '_description_value', @@ -35429,105 +42632,185 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberChangeEmailType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(OpenNoteSharedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberChangeEmailType(description={!r})'.format( + return 'OpenNoteSharedType(description={!r})'.format( self._description_value, ) -MemberChangeEmailType_validator = bv.Struct(MemberChangeEmailType) +OpenNoteSharedType_validator = bv.Struct(OpenNoteSharedType) -class MemberChangeMembershipTypeDetails(bb.Struct): +class OriginLogInfo(bb.Struct): """ - Changed membership type (limited/full) of member. + The origin from which the actor performed the action. - :ivar team_log.MemberChangeMembershipTypeDetails.prev_value: Previous - membership type. - :ivar team_log.MemberChangeMembershipTypeDetails.new_value: New membership - type. + :ivar team_log.OriginLogInfo.geo_location: Geographic location details. + :ivar team_log.OriginLogInfo.access_method: The method that was used to + perform the action. """ __slots__ = [ - '_prev_value_value', - '_prev_value_present', - '_new_value_value', - '_new_value_present', + '_geo_location_value', + '_geo_location_present', + '_access_method_value', + '_access_method_present', ] _has_required_fields = True def __init__(self, - prev_value=None, - new_value=None): - self._prev_value_value = None - self._prev_value_present = False - self._new_value_value = None - self._new_value_present = False - if prev_value is not None: - self.prev_value = prev_value - if new_value is not None: - self.new_value = new_value + access_method=None, + geo_location=None): + self._geo_location_value = None + self._geo_location_present = False + self._access_method_value = None + self._access_method_present = False + if geo_location is not None: + self.geo_location = geo_location + if access_method is not None: + self.access_method = access_method @property - def prev_value(self): + def geo_location(self): """ - Previous membership type. + Geographic location details. - :rtype: team_log.TeamMembershipType + :rtype: GeoLocationLogInfo """ - if self._prev_value_present: - return self._prev_value_value + if self._geo_location_present: + return self._geo_location_value else: - raise AttributeError("missing required field 'prev_value'") + return None - @prev_value.setter - def prev_value(self, val): - self._prev_value_validator.validate_type_only(val) - self._prev_value_value = val - self._prev_value_present = True + @geo_location.setter + def geo_location(self, val): + if val is None: + del self.geo_location + return + self._geo_location_validator.validate_type_only(val) + self._geo_location_value = val + self._geo_location_present = True - @prev_value.deleter - def prev_value(self): - self._prev_value_value = None - self._prev_value_present = False + @geo_location.deleter + def geo_location(self): + self._geo_location_value = None + self._geo_location_present = False @property - def new_value(self): + def access_method(self): """ - New membership type. + The method that was used to perform the action. - :rtype: team_log.TeamMembershipType + :rtype: AccessMethodLogInfo """ - if self._new_value_present: - return self._new_value_value + if self._access_method_present: + return self._access_method_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'access_method'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @access_method.setter + def access_method(self, val): + self._access_method_validator.validate_type_only(val) + self._access_method_value = val + self._access_method_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @access_method.deleter + def access_method(self): + self._access_method_value = None + self._access_method_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberChangeMembershipTypeDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(OriginLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberChangeMembershipTypeDetails(prev_value={!r}, new_value={!r})'.format( - self._prev_value_value, - self._new_value_value, + return 'OriginLogInfo(access_method={!r}, geo_location={!r})'.format( + self._access_method_value, + self._geo_location_value, ) -MemberChangeMembershipTypeDetails_validator = bv.Struct(MemberChangeMembershipTypeDetails) +OriginLogInfo_validator = bv.Struct(OriginLogInfo) -class MemberChangeMembershipTypeType(bb.Struct): +class PaperAccessType(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 + viewer = None + # Attribute is overwritten below the class definition + commenter = None + # Attribute is overwritten below the class definition + editor = None + # Attribute is overwritten below the class definition + other = None + + def is_viewer(self): + """ + Check if the union tag is ``viewer``. + + :rtype: bool + """ + return self._tag == 'viewer' + + def is_commenter(self): + """ + Check if the union tag is ``commenter``. + + :rtype: bool + """ + return self._tag == 'commenter' + + def is_editor(self): + """ + Check if the union tag is ``editor``. + + :rtype: bool + """ + return self._tag == 'editor' + + 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(PaperAccessType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperAccessType(%r, %r)' % (self._tag, self._value) + +PaperAccessType_validator = bv.Union(PaperAccessType) + +class PaperAdminExportStartDetails(bb.Struct): + """ + Exported all team Paper docs. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperAdminExportStartDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperAdminExportStartDetails()' + +PaperAdminExportStartDetails_validator = bv.Struct(PaperAdminExportStartDetails) + +class PaperAdminExportStartType(bb.Struct): __slots__ = [ '_description_value', @@ -35564,23 +42847,26 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberChangeMembershipTypeType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperAdminExportStartType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberChangeMembershipTypeType(description={!r})'.format( + return 'PaperAdminExportStartType(description={!r})'.format( self._description_value, ) -MemberChangeMembershipTypeType_validator = bv.Struct(MemberChangeMembershipTypeType) +PaperAdminExportStartType_validator = bv.Struct(PaperAdminExportStartType) -class MemberChangeNameDetails(bb.Struct): +class PaperChangeDeploymentPolicyDetails(bb.Struct): """ - Changed team member name. + Changed whether Dropbox Paper, when enabled, is deployed to all members or + to specific members. - :ivar team_log.MemberChangeNameDetails.new_value: New user's name. - :ivar team_log.MemberChangeNameDetails.previous_value: Previous user's name. - Might be missing due to historical data gap. + :ivar team_log.PaperChangeDeploymentPolicyDetails.new_value: New Dropbox + Paper deployment policy. + :ivar team_log.PaperChangeDeploymentPolicyDetails.previous_value: Previous + Dropbox Paper deployment policy. Might be missing due to historical data + gap. """ __slots__ = [ @@ -35607,9 +42893,9 @@ def __init__(self, @property def new_value(self): """ - New user's name. + New Dropbox Paper deployment policy. - :rtype: team_log.UserNameLogInfo + :rtype: team_policies.PaperDeploymentPolicy """ if self._new_value_present: return self._new_value_value @@ -35630,9 +42916,10 @@ def new_value(self): @property def previous_value(self): """ - Previous user's name. Might be missing due to historical data gap. + Previous Dropbox Paper deployment policy. Might be missing due to + historical data gap. - :rtype: team_log.UserNameLogInfo + :rtype: team_policies.PaperDeploymentPolicy """ if self._previous_value_present: return self._previous_value_value @@ -35653,18 +42940,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberChangeNameDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperChangeDeploymentPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberChangeNameDetails(new_value={!r}, previous_value={!r})'.format( + return 'PaperChangeDeploymentPolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -MemberChangeNameDetails_validator = bv.Struct(MemberChangeNameDetails) +PaperChangeDeploymentPolicyDetails_validator = bv.Struct(PaperChangeDeploymentPolicyDetails) -class MemberChangeNameType(bb.Struct): +class PaperChangeDeploymentPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -35701,212 +42988,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberChangeNameType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperChangeDeploymentPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberChangeNameType(description={!r})'.format( + return 'PaperChangeDeploymentPolicyType(description={!r})'.format( self._description_value, ) -MemberChangeNameType_validator = bv.Struct(MemberChangeNameType) +PaperChangeDeploymentPolicyType_validator = bv.Struct(PaperChangeDeploymentPolicyType) -class MemberChangeStatusDetails(bb.Struct): +class PaperChangeMemberLinkPolicyDetails(bb.Struct): """ - Changed member status (invited, joined, suspended, etc.). + Changed whether non-members can view Paper docs with link. - :ivar team_log.MemberChangeStatusDetails.previous_value: Previous member - status. Might be missing due to historical data gap. - :ivar team_log.MemberChangeStatusDetails.new_value: New member status. - :ivar team_log.MemberChangeStatusDetails.action: Additional information - indicating the action taken that caused status change. + :ivar team_log.PaperChangeMemberLinkPolicyDetails.new_value: New paper + external link accessibility policy. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', '_new_value_value', '_new_value_present', - '_action_value', - '_action_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None, - action=None): - self._previous_value_value = None - self._previous_value_present = False + new_value=None): self._new_value_value = None self._new_value_present = False - self._action_value = None - self._action_present = False - if previous_value is not None: - self.previous_value = previous_value if new_value is not None: self.new_value = new_value - if action is not None: - self.action = action - - @property - def previous_value(self): - """ - Previous member status. Might be missing due to historical data gap. - - :rtype: team_log.MemberStatus - """ - if self._previous_value_present: - return self._previous_value_value - else: - return None - - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True - - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False @property def new_value(self): """ - New member status. + New paper external link accessibility policy. - :rtype: team_log.MemberStatus + :rtype: PaperMemberPolicy """ if self._new_value_present: return self._new_value_value else: raise AttributeError("missing required field 'new_value'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True - - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False - - @property - def action(self): - """ - Additional information indicating the action taken that caused status - change. - - :rtype: team_log.ActionDetails - """ - if self._action_present: - return self._action_value - else: - return None - - @action.setter - def action(self, val): - if val is None: - del self.action - return - self._action_validator.validate_type_only(val) - self._action_value = val - self._action_present = True - - @action.deleter - def action(self): - self._action_value = None - self._action_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(MemberChangeStatusDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'MemberChangeStatusDetails(new_value={!r}, previous_value={!r}, action={!r})'.format( - self._new_value_value, - self._previous_value_value, - self._action_value, - ) - -MemberChangeStatusDetails_validator = bv.Struct(MemberChangeStatusDetails) - -class MemberChangeStatusType(bb.Struct): - - __slots__ = [ - '_description_value', - '_description_present', - ] - - _has_required_fields = True - - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description - - @property - def description(self): - """ - :rtype: str - """ - if self._description_present: - return self._description_value - else: - raise AttributeError("missing required field 'description'") - - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True - - @description.deleter - def description(self): - self._description_value = None - self._description_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(MemberChangeStatusType, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'MemberChangeStatusType(description={!r})'.format( - self._description_value, - ) - -MemberChangeStatusType_validator = bv.Struct(MemberChangeStatusType) - -class MemberDeleteManualContactsDetails(bb.Struct): - """ - Cleared manually added contacts. - """ - - __slots__ = [ - ] - - _has_required_fields = False + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - def __init__(self): - pass + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberDeleteManualContactsDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperChangeMemberLinkPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberDeleteManualContactsDetails()' + return 'PaperChangeMemberLinkPolicyDetails(new_value={!r})'.format( + self._new_value_value, + ) -MemberDeleteManualContactsDetails_validator = bv.Struct(MemberDeleteManualContactsDetails) +PaperChangeMemberLinkPolicyDetails_validator = bv.Struct(PaperChangeMemberLinkPolicyDetails) -class MemberDeleteManualContactsType(bb.Struct): +class PaperChangeMemberLinkPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -35943,38 +43090,111 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberDeleteManualContactsType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperChangeMemberLinkPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberDeleteManualContactsType(description={!r})'.format( + return 'PaperChangeMemberLinkPolicyType(description={!r})'.format( self._description_value, ) -MemberDeleteManualContactsType_validator = bv.Struct(MemberDeleteManualContactsType) +PaperChangeMemberLinkPolicyType_validator = bv.Struct(PaperChangeMemberLinkPolicyType) -class MemberPermanentlyDeleteAccountContentsDetails(bb.Struct): +class PaperChangeMemberPolicyDetails(bb.Struct): """ - Permanently deleted contents of deleted team member account. + Changed whether members can share Paper docs outside team, and if docs are + accessible only by team members or anyone by default. + + :ivar team_log.PaperChangeMemberPolicyDetails.new_value: New paper external + accessibility policy. + :ivar team_log.PaperChangeMemberPolicyDetails.previous_value: Previous paper + external accessibility policy. Might be missing due to historical data + gap. """ __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + New paper external accessibility policy. + + :rtype: PaperMemberPolicy + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous paper external accessibility policy. Might be missing due to + historical data gap. + + :rtype: PaperMemberPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberPermanentlyDeleteAccountContentsDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperChangeMemberPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberPermanentlyDeleteAccountContentsDetails()' + return 'PaperChangeMemberPolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) -MemberPermanentlyDeleteAccountContentsDetails_validator = bv.Struct(MemberPermanentlyDeleteAccountContentsDetails) +PaperChangeMemberPolicyDetails_validator = bv.Struct(PaperChangeMemberPolicyDetails) -class MemberPermanentlyDeleteAccountContentsType(bb.Struct): +class PaperChangeMemberPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -36011,82 +43231,23 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberPermanentlyDeleteAccountContentsType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperChangeMemberPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberPermanentlyDeleteAccountContentsType(description={!r})'.format( + return 'PaperChangeMemberPolicyType(description={!r})'.format( self._description_value, ) -MemberPermanentlyDeleteAccountContentsType_validator = bv.Struct(MemberPermanentlyDeleteAccountContentsType) - -class MemberRemoveActionType(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 - delete = None - # Attribute is overwritten below the class definition - offboard = None - # Attribute is overwritten below the class definition - leave = None - # Attribute is overwritten below the class definition - other = None - - def is_delete(self): - """ - Check if the union tag is ``delete``. - - :rtype: bool - """ - return self._tag == 'delete' - - def is_offboard(self): - """ - Check if the union tag is ``offboard``. - - :rtype: bool - """ - return self._tag == 'offboard' - - def is_leave(self): - """ - Check if the union tag is ``leave``. - - :rtype: bool - """ - return self._tag == 'leave' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(MemberRemoveActionType, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'MemberRemoveActionType(%r, %r)' % (self._tag, self._value) - -MemberRemoveActionType_validator = bv.Union(MemberRemoveActionType) +PaperChangeMemberPolicyType_validator = bv.Struct(PaperChangeMemberPolicyType) -class MemberRequestsChangePolicyDetails(bb.Struct): +class PaperChangePolicyDetails(bb.Struct): """ - Changed whether users can find team when not invited. + Enabled/disabled Dropbox Paper for team. - :ivar team_log.MemberRequestsChangePolicyDetails.new_value: New member - change requests policy. - :ivar team_log.MemberRequestsChangePolicyDetails.previous_value: Previous - member change requests policy. Might be missing due to historical data - gap. + :ivar team_log.PaperChangePolicyDetails.new_value: New Dropbox Paper policy. + :ivar team_log.PaperChangePolicyDetails.previous_value: Previous Dropbox + Paper policy. Might be missing due to historical data gap. """ __slots__ = [ @@ -36113,9 +43274,9 @@ def __init__(self, @property def new_value(self): """ - New member change requests policy. + New Dropbox Paper policy. - :rtype: team_log.MemberRequestsPolicy + :rtype: team_policies.PaperEnabledPolicy """ if self._new_value_present: return self._new_value_value @@ -36136,10 +43297,10 @@ def new_value(self): @property def previous_value(self): """ - Previous member change requests policy. Might be missing due to - historical data gap. + Previous Dropbox Paper policy. Might be missing due to historical data + gap. - :rtype: team_log.MemberRequestsPolicy + :rtype: team_policies.PaperEnabledPolicy """ if self._previous_value_present: return self._previous_value_value @@ -36160,18 +43321,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberRequestsChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberRequestsChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + return 'PaperChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -MemberRequestsChangePolicyDetails_validator = bv.Struct(MemberRequestsChangePolicyDetails) +PaperChangePolicyDetails_validator = bv.Struct(PaperChangePolicyDetails) -class MemberRequestsChangePolicyType(bb.Struct): +class PaperChangePolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -36208,129 +43369,240 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberRequestsChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberRequestsChangePolicyType(description={!r})'.format( + return 'PaperChangePolicyType(description={!r})'.format( self._description_value, ) -MemberRequestsChangePolicyType_validator = bv.Struct(MemberRequestsChangePolicyType) +PaperChangePolicyType_validator = bv.Struct(PaperChangePolicyType) -class MemberRequestsPolicy(bb.Union): +class PaperContentAddMemberDetails(bb.Struct): """ - 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. + Added team member to Paper doc/folder. + + :ivar team_log.PaperContentAddMemberDetails.event_uuid: Event unique + identifier. """ - _catch_all = 'other' - # Attribute is overwritten below the class definition - auto_accept = None - # Attribute is overwritten below the class definition - disabled = None - # Attribute is overwritten below the class definition - require_approval = None - # Attribute is overwritten below the class definition - other = None + __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', + ] - def is_auto_accept(self): - """ - Check if the union tag is ``auto_accept``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'auto_accept' + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid - def is_disabled(self): + @property + def event_uuid(self): """ - Check if the union tag is ``disabled``. + Event unique identifier. - :rtype: bool + :rtype: str """ - return self._tag == 'disabled' + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") - def is_require_approval(self): - """ - Check if the union tag is ``require_approval``. + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - :rtype: bool - """ - return self._tag == 'require_approval' + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def is_other(self): - """ - Check if the union tag is ``other``. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentAddMemberDetails, self)._process_custom_annotations(annotation_type, field_path, processor) - :rtype: bool + def __repr__(self): + return 'PaperContentAddMemberDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) + +PaperContentAddMemberDetails_validator = bv.Struct(PaperContentAddMemberDetails) + +class PaperContentAddMemberType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): """ - return self._tag == 'other' + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(MemberRequestsPolicy, self)._process_custom_annotations(annotation_type, processor) + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentAddMemberType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberRequestsPolicy(%r, %r)' % (self._tag, self._value) + return 'PaperContentAddMemberType(description={!r})'.format( + self._description_value, + ) -MemberRequestsPolicy_validator = bv.Union(MemberRequestsPolicy) +PaperContentAddMemberType_validator = bv.Struct(PaperContentAddMemberType) -class MemberSpaceLimitsAddCustomQuotaDetails(bb.Struct): +class PaperContentAddToFolderDetails(bb.Struct): """ - Set custom member space limit. + Added Paper doc/folder to folder. - :ivar team_log.MemberSpaceLimitsAddCustomQuotaDetails.new_value: New custom - quota value in bytes. + :ivar team_log.PaperContentAddToFolderDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperContentAddToFolderDetails.target_asset_index: Target + asset position in the Assets list. + :ivar team_log.PaperContentAddToFolderDetails.parent_asset_index: Parent + asset position in the Assets list. """ __slots__ = [ - '_new_value_value', - '_new_value_present', + '_event_uuid_value', + '_event_uuid_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_parent_asset_index_value', + '_parent_asset_index_present', ] _has_required_fields = True def __init__(self, - new_value=None): - self._new_value_value = None - self._new_value_present = False - if new_value is not None: - self.new_value = new_value + event_uuid=None, + target_asset_index=None, + parent_asset_index=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._target_asset_index_value = None + self._target_asset_index_present = False + self._parent_asset_index_value = None + self._parent_asset_index_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if parent_asset_index is not None: + self.parent_asset_index = parent_asset_index @property - def new_value(self): + def event_uuid(self): """ - New custom quota value in bytes. + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + @property + def target_asset_index(self): + """ + Target asset position in the Assets list. :rtype: int """ - if self._new_value_present: - return self._new_value_value + if self._target_asset_index_present: + return self._target_asset_index_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'target_asset_index'") - @new_value.setter - def new_value(self, val): - val = self._new_value_validator.validate(val) - self._new_value_value = val - self._new_value_present = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False + + @property + def parent_asset_index(self): + """ + Parent asset position in the Assets list. + + :rtype: int + """ + if self._parent_asset_index_present: + return self._parent_asset_index_value + else: + raise AttributeError("missing required field 'parent_asset_index'") + + @parent_asset_index.setter + def parent_asset_index(self, val): + val = self._parent_asset_index_validator.validate(val) + self._parent_asset_index_value = val + self._parent_asset_index_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsAddCustomQuotaDetails, self)._process_custom_annotations(annotation_type, processor) + @parent_asset_index.deleter + def parent_asset_index(self): + self._parent_asset_index_value = None + self._parent_asset_index_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentAddToFolderDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsAddCustomQuotaDetails(new_value={!r})'.format( - self._new_value_value, + return 'PaperContentAddToFolderDetails(event_uuid={!r}, target_asset_index={!r}, parent_asset_index={!r})'.format( + self._event_uuid_value, + self._target_asset_index_value, + self._parent_asset_index_value, ) -MemberSpaceLimitsAddCustomQuotaDetails_validator = bv.Struct(MemberSpaceLimitsAddCustomQuotaDetails) +PaperContentAddToFolderDetails_validator = bv.Struct(PaperContentAddToFolderDetails) -class MemberSpaceLimitsAddCustomQuotaType(bb.Struct): +class PaperContentAddToFolderType(bb.Struct): __slots__ = [ '_description_value', @@ -36367,38 +43639,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsAddCustomQuotaType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentAddToFolderType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsAddCustomQuotaType(description={!r})'.format( + return 'PaperContentAddToFolderType(description={!r})'.format( self._description_value, ) -MemberSpaceLimitsAddCustomQuotaType_validator = bv.Struct(MemberSpaceLimitsAddCustomQuotaType) +PaperContentAddToFolderType_validator = bv.Struct(PaperContentAddToFolderType) -class MemberSpaceLimitsAddExceptionDetails(bb.Struct): +class PaperContentArchiveDetails(bb.Struct): """ - Added members to member space limit exception list. + Archived Paper doc/folder. + + :ivar team_log.PaperContentArchiveDetails.event_uuid: Event unique + identifier. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsAddExceptionDetails, self)._process_custom_annotations(annotation_type, processor) + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentArchiveDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsAddExceptionDetails()' + return 'PaperContentArchiveDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -MemberSpaceLimitsAddExceptionDetails_validator = bv.Struct(MemberSpaceLimitsAddExceptionDetails) +PaperContentArchiveDetails_validator = bv.Struct(PaperContentArchiveDetails) -class MemberSpaceLimitsAddExceptionType(bb.Struct): +class PaperContentArchiveType(bb.Struct): __slots__ = [ '_description_value', @@ -36435,105 +43741,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsAddExceptionType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentArchiveType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsAddExceptionType(description={!r})'.format( + return 'PaperContentArchiveType(description={!r})'.format( self._description_value, ) -MemberSpaceLimitsAddExceptionType_validator = bv.Struct(MemberSpaceLimitsAddExceptionType) +PaperContentArchiveType_validator = bv.Struct(PaperContentArchiveType) -class MemberSpaceLimitsChangeCapsTypePolicyDetails(bb.Struct): +class PaperContentCreateDetails(bb.Struct): """ - Changed member space limit type for team. + Created Paper doc/folder. - :ivar team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails.previous_value: - Previous space limit type. - :ivar team_log.MemberSpaceLimitsChangeCapsTypePolicyDetails.new_value: New - space limit type. + :ivar team_log.PaperContentCreateDetails.event_uuid: Event unique + identifier. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', - '_new_value_value', - '_new_value_present', + '_event_uuid_value', + '_event_uuid_present', ] _has_required_fields = True def __init__(self, - previous_value=None, - new_value=None): - self._previous_value_value = None - self._previous_value_present = False - self._new_value_value = None - self._new_value_present = False - if previous_value is not None: - self.previous_value = previous_value - if new_value is not None: - self.new_value = new_value - - @property - def previous_value(self): - """ - Previous space limit type. - - :rtype: team_log.SpaceCapsType - """ - if self._previous_value_present: - return self._previous_value_value - else: - raise AttributeError("missing required field 'previous_value'") - - @previous_value.setter - def previous_value(self, val): - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True - - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def new_value(self): + def event_uuid(self): """ - New space limit type. + Event unique identifier. - :rtype: team_log.SpaceCapsType + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'event_uuid'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsChangeCapsTypePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentCreateDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsChangeCapsTypePolicyDetails(previous_value={!r}, new_value={!r})'.format( - self._previous_value_value, - self._new_value_value, + return 'PaperContentCreateDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -MemberSpaceLimitsChangeCapsTypePolicyDetails_validator = bv.Struct(MemberSpaceLimitsChangeCapsTypePolicyDetails) +PaperContentCreateDetails_validator = bv.Struct(PaperContentCreateDetails) -class MemberSpaceLimitsChangeCapsTypePolicyType(bb.Struct): +class PaperContentCreateType(bb.Struct): __slots__ = [ '_description_value', @@ -36570,105 +43843,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsChangeCapsTypePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentCreateType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsChangeCapsTypePolicyType(description={!r})'.format( + return 'PaperContentCreateType(description={!r})'.format( self._description_value, ) -MemberSpaceLimitsChangeCapsTypePolicyType_validator = bv.Struct(MemberSpaceLimitsChangeCapsTypePolicyType) +PaperContentCreateType_validator = bv.Struct(PaperContentCreateType) -class MemberSpaceLimitsChangeCustomQuotaDetails(bb.Struct): +class PaperContentPermanentlyDeleteDetails(bb.Struct): """ - Changed custom member space limit. + Permanently deleted Paper doc/folder. - :ivar team_log.MemberSpaceLimitsChangeCustomQuotaDetails.previous_value: - Previous custom quota value in bytes. - :ivar team_log.MemberSpaceLimitsChangeCustomQuotaDetails.new_value: New - custom quota value in bytes. + :ivar team_log.PaperContentPermanentlyDeleteDetails.event_uuid: Event unique + identifier. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', - '_new_value_value', - '_new_value_present', + '_event_uuid_value', + '_event_uuid_present', ] _has_required_fields = True def __init__(self, - previous_value=None, - new_value=None): - self._previous_value_value = None - self._previous_value_present = False - self._new_value_value = None - self._new_value_present = False - if previous_value is not None: - self.previous_value = previous_value - if new_value is not None: - self.new_value = new_value - - @property - def previous_value(self): - """ - Previous custom quota value in bytes. - - :rtype: int - """ - if self._previous_value_present: - return self._previous_value_value - else: - raise AttributeError("missing required field 'previous_value'") - - @previous_value.setter - def previous_value(self, val): - val = self._previous_value_validator.validate(val) - self._previous_value_value = val - self._previous_value_present = True - - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def new_value(self): + def event_uuid(self): """ - New custom quota value in bytes. + Event unique identifier. - :rtype: int + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'event_uuid'") - @new_value.setter - def new_value(self, val): - val = self._new_value_validator.validate(val) - self._new_value_value = val - self._new_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsChangeCustomQuotaDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentPermanentlyDeleteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsChangeCustomQuotaDetails(previous_value={!r}, new_value={!r})'.format( - self._previous_value_value, - self._new_value_value, + return 'PaperContentPermanentlyDeleteDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -MemberSpaceLimitsChangeCustomQuotaDetails_validator = bv.Struct(MemberSpaceLimitsChangeCustomQuotaDetails) +PaperContentPermanentlyDeleteDetails_validator = bv.Struct(PaperContentPermanentlyDeleteDetails) -class MemberSpaceLimitsChangeCustomQuotaType(bb.Struct): +class PaperContentPermanentlyDeleteType(bb.Struct): __slots__ = [ '_description_value', @@ -36705,115 +43945,138 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsChangeCustomQuotaType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentPermanentlyDeleteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsChangeCustomQuotaType(description={!r})'.format( + return 'PaperContentPermanentlyDeleteType(description={!r})'.format( self._description_value, ) -MemberSpaceLimitsChangeCustomQuotaType_validator = bv.Struct(MemberSpaceLimitsChangeCustomQuotaType) +PaperContentPermanentlyDeleteType_validator = bv.Struct(PaperContentPermanentlyDeleteType) -class MemberSpaceLimitsChangePolicyDetails(bb.Struct): +class PaperContentRemoveFromFolderDetails(bb.Struct): """ - Changed team default member space limit. + Removed Paper doc/folder from folder. - :ivar team_log.MemberSpaceLimitsChangePolicyDetails.previous_value: Previous - team default limit value in bytes. Might be missing due to historical - data gap. - :ivar team_log.MemberSpaceLimitsChangePolicyDetails.new_value: New team - default limit value in bytes. Might be missing due to historical data - gap. + :ivar team_log.PaperContentRemoveFromFolderDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperContentRemoveFromFolderDetails.target_asset_index: + Target asset position in the Assets list. + :ivar team_log.PaperContentRemoveFromFolderDetails.parent_asset_index: + Parent asset position in the Assets list. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', - '_new_value_value', - '_new_value_present', + '_event_uuid_value', + '_event_uuid_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_parent_asset_index_value', + '_parent_asset_index_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - previous_value=None, - new_value=None): - self._previous_value_value = None - self._previous_value_present = False - self._new_value_value = None - self._new_value_present = False - if previous_value is not None: - self.previous_value = previous_value - if new_value is not None: - self.new_value = new_value + event_uuid=None, + target_asset_index=None, + parent_asset_index=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._target_asset_index_value = None + self._target_asset_index_present = False + self._parent_asset_index_value = None + self._parent_asset_index_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if parent_asset_index is not None: + self.parent_asset_index = parent_asset_index @property - def previous_value(self): + def event_uuid(self): """ - Previous team default limit value in bytes. Might be missing due to - historical data gap. + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + @property + def target_asset_index(self): + """ + Target asset position in the Assets list. :rtype: int """ - if self._previous_value_present: - return self._previous_value_value + if self._target_asset_index_present: + return self._target_asset_index_value else: - return None + raise AttributeError("missing required field 'target_asset_index'") - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - val = self._previous_value_validator.validate(val) - self._previous_value_value = val - self._previous_value_present = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False @property - def new_value(self): + def parent_asset_index(self): """ - New team default limit value in bytes. Might be missing due to - historical data gap. + Parent asset position in the Assets list. :rtype: int """ - if self._new_value_present: - return self._new_value_value + if self._parent_asset_index_present: + return self._parent_asset_index_value else: - return None + raise AttributeError("missing required field 'parent_asset_index'") - @new_value.setter - def new_value(self, val): - if val is None: - del self.new_value - return - val = self._new_value_validator.validate(val) - self._new_value_value = val - self._new_value_present = True + @parent_asset_index.setter + def parent_asset_index(self, val): + val = self._parent_asset_index_validator.validate(val) + self._parent_asset_index_value = val + self._parent_asset_index_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @parent_asset_index.deleter + def parent_asset_index(self): + self._parent_asset_index_value = None + self._parent_asset_index_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentRemoveFromFolderDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsChangePolicyDetails(previous_value={!r}, new_value={!r})'.format( - self._previous_value_value, - self._new_value_value, + return 'PaperContentRemoveFromFolderDetails(event_uuid={!r}, target_asset_index={!r}, parent_asset_index={!r})'.format( + self._event_uuid_value, + self._target_asset_index_value, + self._parent_asset_index_value, ) -MemberSpaceLimitsChangePolicyDetails_validator = bv.Struct(MemberSpaceLimitsChangePolicyDetails) +PaperContentRemoveFromFolderDetails_validator = bv.Struct(PaperContentRemoveFromFolderDetails) -class MemberSpaceLimitsChangePolicyType(bb.Struct): +class PaperContentRemoveFromFolderType(bb.Struct): __slots__ = [ '_description_value', @@ -36850,105 +44113,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentRemoveFromFolderType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsChangePolicyType(description={!r})'.format( + return 'PaperContentRemoveFromFolderType(description={!r})'.format( self._description_value, ) -MemberSpaceLimitsChangePolicyType_validator = bv.Struct(MemberSpaceLimitsChangePolicyType) +PaperContentRemoveFromFolderType_validator = bv.Struct(PaperContentRemoveFromFolderType) -class MemberSpaceLimitsChangeStatusDetails(bb.Struct): +class PaperContentRemoveMemberDetails(bb.Struct): """ - Changed space limit status. + Removed team member from Paper doc/folder. - :ivar team_log.MemberSpaceLimitsChangeStatusDetails.previous_value: Previous - storage quota status. - :ivar team_log.MemberSpaceLimitsChangeStatusDetails.new_value: New storage - quota status. + :ivar team_log.PaperContentRemoveMemberDetails.event_uuid: Event unique + identifier. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', - '_new_value_value', - '_new_value_present', + '_event_uuid_value', + '_event_uuid_present', ] _has_required_fields = True def __init__(self, - previous_value=None, - new_value=None): - self._previous_value_value = None - self._previous_value_present = False - self._new_value_value = None - self._new_value_present = False - if previous_value is not None: - self.previous_value = previous_value - if new_value is not None: - self.new_value = new_value - - @property - def previous_value(self): - """ - Previous storage quota status. - - :rtype: team_log.SpaceLimitsStatus - """ - if self._previous_value_present: - return self._previous_value_value - else: - raise AttributeError("missing required field 'previous_value'") - - @previous_value.setter - def previous_value(self, val): - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True - - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def new_value(self): + def event_uuid(self): """ - New storage quota status. + Event unique identifier. - :rtype: team_log.SpaceLimitsStatus + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'event_uuid'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsChangeStatusDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentRemoveMemberDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsChangeStatusDetails(previous_value={!r}, new_value={!r})'.format( - self._previous_value_value, - self._new_value_value, + return 'PaperContentRemoveMemberDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -MemberSpaceLimitsChangeStatusDetails_validator = bv.Struct(MemberSpaceLimitsChangeStatusDetails) +PaperContentRemoveMemberDetails_validator = bv.Struct(PaperContentRemoveMemberDetails) -class MemberSpaceLimitsChangeStatusType(bb.Struct): +class PaperContentRemoveMemberType(bb.Struct): __slots__ = [ '_description_value', @@ -36985,38 +44215,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsChangeStatusType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentRemoveMemberType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsChangeStatusType(description={!r})'.format( + return 'PaperContentRemoveMemberType(description={!r})'.format( self._description_value, ) -MemberSpaceLimitsChangeStatusType_validator = bv.Struct(MemberSpaceLimitsChangeStatusType) +PaperContentRemoveMemberType_validator = bv.Struct(PaperContentRemoveMemberType) -class MemberSpaceLimitsRemoveCustomQuotaDetails(bb.Struct): +class PaperContentRenameDetails(bb.Struct): """ - Removed custom member space limit. + Renamed Paper doc/folder. + + :ivar team_log.PaperContentRenameDetails.event_uuid: Event unique + identifier. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsRemoveCustomQuotaDetails, self)._process_custom_annotations(annotation_type, processor) + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentRenameDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsRemoveCustomQuotaDetails()' + return 'PaperContentRenameDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -MemberSpaceLimitsRemoveCustomQuotaDetails_validator = bv.Struct(MemberSpaceLimitsRemoveCustomQuotaDetails) +PaperContentRenameDetails_validator = bv.Struct(PaperContentRenameDetails) -class MemberSpaceLimitsRemoveCustomQuotaType(bb.Struct): +class PaperContentRenameType(bb.Struct): __slots__ = [ '_description_value', @@ -37053,38 +44317,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsRemoveCustomQuotaType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentRenameType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsRemoveCustomQuotaType(description={!r})'.format( + return 'PaperContentRenameType(description={!r})'.format( self._description_value, ) -MemberSpaceLimitsRemoveCustomQuotaType_validator = bv.Struct(MemberSpaceLimitsRemoveCustomQuotaType) +PaperContentRenameType_validator = bv.Struct(PaperContentRenameType) -class MemberSpaceLimitsRemoveExceptionDetails(bb.Struct): +class PaperContentRestoreDetails(bb.Struct): """ - Removed members from member space limit exception list. + Restored archived Paper doc/folder. + + :ivar team_log.PaperContentRestoreDetails.event_uuid: Event unique + identifier. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True + + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - def __init__(self): - pass + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsRemoveExceptionDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentRestoreDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsRemoveExceptionDetails()' + return 'PaperContentRestoreDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -MemberSpaceLimitsRemoveExceptionDetails_validator = bv.Struct(MemberSpaceLimitsRemoveExceptionDetails) +PaperContentRestoreDetails_validator = bv.Struct(PaperContentRestoreDetails) -class MemberSpaceLimitsRemoveExceptionType(bb.Struct): +class PaperContentRestoreType(bb.Struct): __slots__ = [ '_description_value', @@ -37121,18 +44419,20 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSpaceLimitsRemoveExceptionType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperContentRestoreType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSpaceLimitsRemoveExceptionType(description={!r})'.format( + return 'PaperContentRestoreType(description={!r})'.format( self._description_value, ) -MemberSpaceLimitsRemoveExceptionType_validator = bv.Struct(MemberSpaceLimitsRemoveExceptionType) +PaperContentRestoreType_validator = bv.Struct(PaperContentRestoreType) -class MemberStatus(bb.Union): +class PaperDefaultFolderPolicy(bb.Union): """ + Policy to set default access for newly created Paper folders. + 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. @@ -37140,57 +44440,27 @@ class MemberStatus(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - not_joined = None - # Attribute is overwritten below the class definition - invited = None - # Attribute is overwritten below the class definition - active = None - # Attribute is overwritten below the class definition - suspended = None + everyone_in_team = None # Attribute is overwritten below the class definition - removed = None + invite_only = None # Attribute is overwritten below the class definition other = None - def is_not_joined(self): - """ - Check if the union tag is ``not_joined``. - - :rtype: bool - """ - return self._tag == 'not_joined' - - def is_invited(self): - """ - Check if the union tag is ``invited``. - - :rtype: bool - """ - return self._tag == 'invited' - - def is_active(self): - """ - Check if the union tag is ``active``. - - :rtype: bool - """ - return self._tag == 'active' - - def is_suspended(self): + def is_everyone_in_team(self): """ - Check if the union tag is ``suspended``. + Check if the union tag is ``everyone_in_team``. :rtype: bool """ - return self._tag == 'suspended' + return self._tag == 'everyone_in_team' - def is_removed(self): + def is_invite_only(self): """ - Check if the union tag is ``removed``. + Check if the union tag is ``invite_only``. :rtype: bool """ - return self._tag == 'removed' + return self._tag == 'invite_only' def is_other(self): """ @@ -37200,70 +44470,103 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(MemberStatus, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDefaultFolderPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberStatus(%r, %r)' % (self._tag, self._value) + return 'PaperDefaultFolderPolicy(%r, %r)' % (self._tag, self._value) -MemberStatus_validator = bv.Union(MemberStatus) +PaperDefaultFolderPolicy_validator = bv.Union(PaperDefaultFolderPolicy) -class MemberSuggestDetails(bb.Struct): +class PaperDefaultFolderPolicyChangedDetails(bb.Struct): """ - Suggested person to add to team. + Changed Paper Default Folder Policy setting for team. - :ivar team_log.MemberSuggestDetails.suggested_members: suggested users - emails. + :ivar team_log.PaperDefaultFolderPolicyChangedDetails.new_value: New Paper + Default Folder Policy. + :ivar team_log.PaperDefaultFolderPolicyChangedDetails.previous_value: + Previous Paper Default Folder Policy. """ __slots__ = [ - '_suggested_members_value', - '_suggested_members_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - suggested_members=None): - self._suggested_members_value = None - self._suggested_members_present = False - if suggested_members is not None: - self.suggested_members = suggested_members + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def suggested_members(self): + def new_value(self): """ - suggested users emails. + New Paper Default Folder Policy. - :rtype: list of [str] + :rtype: PaperDefaultFolderPolicy """ - if self._suggested_members_present: - return self._suggested_members_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'suggested_members'") + raise AttributeError("missing required field 'new_value'") - @suggested_members.setter - def suggested_members(self, val): - val = self._suggested_members_validator.validate(val) - self._suggested_members_value = val - self._suggested_members_present = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - @suggested_members.deleter - def suggested_members(self): - self._suggested_members_value = None - self._suggested_members_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous Paper Default Folder Policy. + + :rtype: PaperDefaultFolderPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSuggestDetails, self)._process_custom_annotations(annotation_type, processor) + @previous_value.setter + def previous_value(self, val): + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDefaultFolderPolicyChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSuggestDetails(suggested_members={!r})'.format( - self._suggested_members_value, + return 'PaperDefaultFolderPolicyChangedDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, ) -MemberSuggestDetails_validator = bv.Struct(MemberSuggestDetails) +PaperDefaultFolderPolicyChangedDetails_validator = bv.Struct(PaperDefaultFolderPolicyChangedDetails) -class MemberSuggestType(bb.Struct): +class PaperDefaultFolderPolicyChangedType(bb.Struct): __slots__ = [ '_description_value', @@ -37300,25 +44603,73 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSuggestType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDefaultFolderPolicyChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSuggestType(description={!r})'.format( + return 'PaperDefaultFolderPolicyChangedType(description={!r})'.format( self._description_value, ) -MemberSuggestType_validator = bv.Struct(MemberSuggestType) +PaperDefaultFolderPolicyChangedType_validator = bv.Struct(PaperDefaultFolderPolicyChangedType) -class MemberSuggestionsChangePolicyDetails(bb.Struct): +class PaperDesktopPolicy(bb.Union): """ - Enabled/disabled option for team members to suggest people to add to team. + Policy for controlling if team members can use Paper Desktop - :ivar team_log.MemberSuggestionsChangePolicyDetails.new_value: New team - member suggestions policy. - :ivar team_log.MemberSuggestionsChangePolicyDetails.previous_value: Previous - team member suggestions policy. Might be missing due to historical data - gap. + 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 + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None + + def is_disabled(self): + """ + Check if the union tag is ``disabled``. + + :rtype: bool + """ + return self._tag == 'disabled' + + def is_enabled(self): + """ + Check if the union tag is ``enabled``. + + :rtype: bool + """ + return self._tag == 'enabled' + + 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(PaperDesktopPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperDesktopPolicy(%r, %r)' % (self._tag, self._value) + +PaperDesktopPolicy_validator = bv.Union(PaperDesktopPolicy) + +class PaperDesktopPolicyChangedDetails(bb.Struct): + """ + Enabled/disabled Paper Desktop for team. + + :ivar team_log.PaperDesktopPolicyChangedDetails.new_value: New Paper Desktop + policy. + :ivar team_log.PaperDesktopPolicyChangedDetails.previous_value: Previous + Paper Desktop policy. """ __slots__ = [ @@ -37345,9 +44696,9 @@ def __init__(self, @property def new_value(self): """ - New team member suggestions policy. + New Paper Desktop policy. - :rtype: team_log.MemberSuggestionsPolicy + :rtype: PaperDesktopPolicy """ if self._new_value_present: return self._new_value_value @@ -37368,21 +44719,17 @@ def new_value(self): @property def previous_value(self): """ - Previous team member suggestions policy. Might be missing due to - historical data gap. + Previous Paper Desktop policy. - :rtype: team_log.MemberSuggestionsPolicy + :rtype: PaperDesktopPolicy """ if self._previous_value_present: return self._previous_value_value else: - return None + raise AttributeError("missing required field 'previous_value'") @previous_value.setter def previous_value(self, val): - if val is None: - del self.previous_value - return self._previous_value_validator.validate_type_only(val) self._previous_value_value = val self._previous_value_present = True @@ -37392,18 +44739,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSuggestionsChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDesktopPolicyChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSuggestionsChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + return 'PaperDesktopPolicyChangedDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -MemberSuggestionsChangePolicyDetails_validator = bv.Struct(MemberSuggestionsChangePolicyDetails) +PaperDesktopPolicyChangedDetails_validator = bv.Struct(PaperDesktopPolicyChangedDetails) -class MemberSuggestionsChangePolicyType(bb.Struct): +class PaperDesktopPolicyChangedType(bb.Struct): __slots__ = [ '_description_value', @@ -37440,87 +44787,243 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSuggestionsChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDesktopPolicyChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSuggestionsChangePolicyType(description={!r})'.format( + return 'PaperDesktopPolicyChangedType(description={!r})'.format( self._description_value, ) -MemberSuggestionsChangePolicyType_validator = bv.Struct(MemberSuggestionsChangePolicyType) +PaperDesktopPolicyChangedType_validator = bv.Struct(PaperDesktopPolicyChangedType) -class MemberSuggestionsPolicy(bb.Union): +class PaperDocAddCommentDetails(bb.Struct): """ - Member suggestions policy + Added Paper doc comment. - 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 team_log.PaperDocAddCommentDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperDocAddCommentDetails.comment_text: Comment text. Might + be missing due to historical data gap. """ - _catch_all = 'other' - # Attribute is overwritten below the class definition - disabled = None - # Attribute is overwritten below the class definition - enabled = None - # Attribute is overwritten below the class definition - other = None + __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', + '_comment_text_value', + '_comment_text_present', + ] - def is_disabled(self): - """ - Check if the union tag is ``disabled``. + _has_required_fields = True - :rtype: bool + def __init__(self, + event_uuid=None, + comment_text=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._comment_text_value = None + self._comment_text_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if comment_text is not None: + self.comment_text = comment_text + + @property + def event_uuid(self): """ - return self._tag == 'disabled' + Event unique identifier. - def is_enabled(self): + :rtype: str """ - Check if the union tag is ``enabled``. + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") - :rtype: bool + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + @property + def comment_text(self): """ - return self._tag == 'enabled' + Comment text. Might be missing due to historical data gap. - def is_other(self): + :rtype: str """ - Check if the union tag is ``other``. + if self._comment_text_present: + return self._comment_text_value + else: + return None - :rtype: bool + @comment_text.setter + def comment_text(self, val): + if val is None: + del self.comment_text + return + val = self._comment_text_validator.validate(val) + self._comment_text_value = val + self._comment_text_present = True + + @comment_text.deleter + def comment_text(self): + self._comment_text_value = None + self._comment_text_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocAddCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperDocAddCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + self._event_uuid_value, + self._comment_text_value, + ) + +PaperDocAddCommentDetails_validator = bv.Struct(PaperDocAddCommentDetails) + +class PaperDocAddCommentType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): """ - return self._tag == 'other' + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberSuggestionsPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocAddCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberSuggestionsPolicy(%r, %r)' % (self._tag, self._value) + return 'PaperDocAddCommentType(description={!r})'.format( + self._description_value, + ) -MemberSuggestionsPolicy_validator = bv.Union(MemberSuggestionsPolicy) +PaperDocAddCommentType_validator = bv.Struct(PaperDocAddCommentType) -class MemberTransferAccountContentsDetails(bb.Struct): +class PaperDocChangeMemberRoleDetails(bb.Struct): """ - Transferred contents of deleted member account to another member. + Changed team member permissions for Paper doc. + + :ivar team_log.PaperDocChangeMemberRoleDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperDocChangeMemberRoleDetails.access_type: Paper doc access + type. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', + '_access_type_value', + '_access_type_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None, + access_type=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._access_type_value = None + self._access_type_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if access_type is not None: + self.access_type = access_type + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + @property + def access_type(self): + """ + Paper doc access type. + + :rtype: PaperAccessType + """ + if self._access_type_present: + return self._access_type_value + else: + raise AttributeError("missing required field 'access_type'") + + @access_type.setter + def access_type(self, val): + self._access_type_validator.validate_type_only(val) + self._access_type_value = val + self._access_type_present = True + + @access_type.deleter + def access_type(self): + self._access_type_value = None + self._access_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberTransferAccountContentsDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocChangeMemberRoleDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberTransferAccountContentsDetails()' + return 'PaperDocChangeMemberRoleDetails(event_uuid={!r}, access_type={!r})'.format( + self._event_uuid_value, + self._access_type_value, + ) -MemberTransferAccountContentsDetails_validator = bv.Struct(MemberTransferAccountContentsDetails) +PaperDocChangeMemberRoleDetails_validator = bv.Struct(PaperDocChangeMemberRoleDetails) -class MemberTransferAccountContentsType(bb.Struct): +class PaperDocChangeMemberRoleType(bb.Struct): __slots__ = [ '_description_value', @@ -37557,110 +45060,146 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MemberTransferAccountContentsType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocChangeMemberRoleType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MemberTransferAccountContentsType(description={!r})'.format( + return 'PaperDocChangeMemberRoleType(description={!r})'.format( self._description_value, ) -MemberTransferAccountContentsType_validator = bv.Struct(MemberTransferAccountContentsType) +PaperDocChangeMemberRoleType_validator = bv.Struct(PaperDocChangeMemberRoleType) -class MicrosoftOfficeAddinChangePolicyDetails(bb.Struct): +class PaperDocChangeSharingPolicyDetails(bb.Struct): """ - Enabled/disabled Microsoft Office add-in. + Changed sharing setting for Paper doc. - :ivar team_log.MicrosoftOfficeAddinChangePolicyDetails.new_value: New - Microsoft Office addin policy. - :ivar team_log.MicrosoftOfficeAddinChangePolicyDetails.previous_value: - Previous Microsoft Office addin policy. Might be missing due to - historical data gap. + :ivar team_log.PaperDocChangeSharingPolicyDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperDocChangeSharingPolicyDetails.public_sharing_policy: + Sharing policy with external users. Might be missing due to historical + data gap. + :ivar team_log.PaperDocChangeSharingPolicyDetails.team_sharing_policy: + Sharing policy with team. Might be missing due to historical data gap. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', + '_public_sharing_policy_value', + '_public_sharing_policy_present', + '_team_sharing_policy_value', + '_team_sharing_policy_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + event_uuid=None, + public_sharing_policy=None, + team_sharing_policy=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._public_sharing_policy_value = None + self._public_sharing_policy_present = False + self._team_sharing_policy_value = None + self._team_sharing_policy_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if public_sharing_policy is not None: + self.public_sharing_policy = public_sharing_policy + if team_sharing_policy is not None: + self.team_sharing_policy = team_sharing_policy + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False @property - def new_value(self): + def public_sharing_policy(self): """ - New Microsoft Office addin policy. + Sharing policy with external users. Might be missing due to historical + data gap. - :rtype: team_log.MicrosoftOfficeAddinPolicy + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._public_sharing_policy_present: + return self._public_sharing_policy_value else: - raise AttributeError("missing required field 'new_value'") + return None - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @public_sharing_policy.setter + def public_sharing_policy(self, val): + if val is None: + del self.public_sharing_policy + return + val = self._public_sharing_policy_validator.validate(val) + self._public_sharing_policy_value = val + self._public_sharing_policy_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @public_sharing_policy.deleter + def public_sharing_policy(self): + self._public_sharing_policy_value = None + self._public_sharing_policy_present = False @property - def previous_value(self): + def team_sharing_policy(self): """ - Previous Microsoft Office addin policy. Might be missing due to - historical data gap. + Sharing policy with team. Might be missing due to historical data gap. - :rtype: team_log.MicrosoftOfficeAddinPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._team_sharing_policy_present: + return self._team_sharing_policy_value else: return None - @previous_value.setter - def previous_value(self, val): + @team_sharing_policy.setter + def team_sharing_policy(self, val): if val is None: - del self.previous_value + del self.team_sharing_policy return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + val = self._team_sharing_policy_validator.validate(val) + self._team_sharing_policy_value = val + self._team_sharing_policy_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @team_sharing_policy.deleter + def team_sharing_policy(self): + self._team_sharing_policy_value = None + self._team_sharing_policy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MicrosoftOfficeAddinChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocChangeSharingPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MicrosoftOfficeAddinChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'PaperDocChangeSharingPolicyDetails(event_uuid={!r}, public_sharing_policy={!r}, team_sharing_policy={!r})'.format( + self._event_uuid_value, + self._public_sharing_policy_value, + self._team_sharing_policy_value, ) -MicrosoftOfficeAddinChangePolicyDetails_validator = bv.Struct(MicrosoftOfficeAddinChangePolicyDetails) +PaperDocChangeSharingPolicyDetails_validator = bv.Struct(PaperDocChangeSharingPolicyDetails) -class MicrosoftOfficeAddinChangePolicyType(bb.Struct): +class PaperDocChangeSharingPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -37697,578 +45236,282 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MicrosoftOfficeAddinChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocChangeSharingPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MicrosoftOfficeAddinChangePolicyType(description={!r})'.format( + return 'PaperDocChangeSharingPolicyType(description={!r})'.format( self._description_value, ) -MicrosoftOfficeAddinChangePolicyType_validator = bv.Struct(MicrosoftOfficeAddinChangePolicyType) - -class MicrosoftOfficeAddinPolicy(bb.Union): - """ - Microsoft Office addin policy - - 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 - disabled = None - # Attribute is overwritten below the class definition - enabled = None - # Attribute is overwritten below the class definition - other = None - - def is_disabled(self): - """ - Check if the union tag is ``disabled``. - - :rtype: bool - """ - return self._tag == 'disabled' - - def is_enabled(self): - """ - Check if the union tag is ``enabled``. - - :rtype: bool - """ - return self._tag == 'enabled' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(MicrosoftOfficeAddinPolicy, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'MicrosoftOfficeAddinPolicy(%r, %r)' % (self._tag, self._value) - -MicrosoftOfficeAddinPolicy_validator = bv.Union(MicrosoftOfficeAddinPolicy) - -class MissingDetails(bb.Struct): - """ - An indication that an error occurred while retrieving the event. Some - attributes of the event may be omitted as a result. - - :ivar team_log.MissingDetails.source_event_fields: All the data that could - be retrieved and converted from the source event. - """ - - __slots__ = [ - '_source_event_fields_value', - '_source_event_fields_present', - ] - - _has_required_fields = False - - def __init__(self, - source_event_fields=None): - self._source_event_fields_value = None - self._source_event_fields_present = False - if source_event_fields is not None: - self.source_event_fields = source_event_fields - - @property - def source_event_fields(self): - """ - All the data that could be retrieved and converted from the source - event. - - :rtype: str - """ - if self._source_event_fields_present: - return self._source_event_fields_value - else: - return None - - @source_event_fields.setter - def source_event_fields(self, val): - if val is None: - del self.source_event_fields - return - val = self._source_event_fields_validator.validate(val) - self._source_event_fields_value = val - self._source_event_fields_present = True - - @source_event_fields.deleter - def source_event_fields(self): - self._source_event_fields_value = None - self._source_event_fields_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(MissingDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'MissingDetails(source_event_fields={!r})'.format( - self._source_event_fields_value, - ) - -MissingDetails_validator = bv.Struct(MissingDetails) +PaperDocChangeSharingPolicyType_validator = bv.Struct(PaperDocChangeSharingPolicyType) -class MobileDeviceSessionLogInfo(DeviceSessionLogInfo): +class PaperDocChangeSubscriptionDetails(bb.Struct): """ - Information about linked Dropbox mobile client sessions + Followed/unfollowed Paper doc. - :ivar team_log.MobileDeviceSessionLogInfo.session_info: Mobile session - unique id. Might be missing due to historical data gap. - :ivar team_log.MobileDeviceSessionLogInfo.device_name: The device name. - :ivar team_log.MobileDeviceSessionLogInfo.client_type: The mobile - application type. - :ivar team_log.MobileDeviceSessionLogInfo.client_version: The Dropbox client - version. - :ivar team_log.MobileDeviceSessionLogInfo.os_version: The hosting OS - version. - :ivar team_log.MobileDeviceSessionLogInfo.last_carrier: last carrier used by - the device. + :ivar team_log.PaperDocChangeSubscriptionDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperDocChangeSubscriptionDetails.new_subscription_level: New + doc subscription level. + :ivar + team_log.PaperDocChangeSubscriptionDetails.previous_subscription_level: + Previous doc subscription level. Might be missing due to historical data + gap. """ __slots__ = [ - '_session_info_value', - '_session_info_present', - '_device_name_value', - '_device_name_present', - '_client_type_value', - '_client_type_present', - '_client_version_value', - '_client_version_present', - '_os_version_value', - '_os_version_present', - '_last_carrier_value', - '_last_carrier_present', + '_event_uuid_value', + '_event_uuid_present', + '_new_subscription_level_value', + '_new_subscription_level_present', + '_previous_subscription_level_value', + '_previous_subscription_level_present', ] _has_required_fields = True def __init__(self, - device_name=None, - client_type=None, - ip_address=None, - created=None, - updated=None, - session_info=None, - client_version=None, - os_version=None, - last_carrier=None): - super(MobileDeviceSessionLogInfo, self).__init__(ip_address, - created, - updated) - self._session_info_value = None - self._session_info_present = False - self._device_name_value = None - self._device_name_present = False - self._client_type_value = None - self._client_type_present = False - self._client_version_value = None - self._client_version_present = False - self._os_version_value = None - self._os_version_present = False - self._last_carrier_value = None - self._last_carrier_present = False - if session_info is not None: - self.session_info = session_info - if device_name is not None: - self.device_name = device_name - if client_type is not None: - self.client_type = client_type - if client_version is not None: - self.client_version = client_version - if os_version is not None: - self.os_version = os_version - if last_carrier is not None: - self.last_carrier = last_carrier - - @property - def session_info(self): - """ - Mobile session unique id. Might be missing due to historical data gap. - - :rtype: team_log.MobileSessionLogInfo - """ - if self._session_info_present: - return self._session_info_value - else: - return None - - @session_info.setter - def session_info(self, val): - if val is None: - del self.session_info - return - self._session_info_validator.validate_type_only(val) - self._session_info_value = val - self._session_info_present = True - - @session_info.deleter - def session_info(self): - self._session_info_value = None - self._session_info_present = False - - @property - def device_name(self): - """ - The device name. - - :rtype: str - """ - if self._device_name_present: - return self._device_name_value - else: - raise AttributeError("missing required field 'device_name'") - - @device_name.setter - def device_name(self, val): - val = self._device_name_validator.validate(val) - self._device_name_value = val - self._device_name_present = True - - @device_name.deleter - def device_name(self): - self._device_name_value = None - self._device_name_present = False - - @property - def client_type(self): - """ - The mobile application type. - - :rtype: team.MobileClientPlatform - """ - if self._client_type_present: - return self._client_type_value - else: - raise AttributeError("missing required field 'client_type'") - - @client_type.setter - def client_type(self, val): - self._client_type_validator.validate_type_only(val) - self._client_type_value = val - self._client_type_present = True - - @client_type.deleter - def client_type(self): - self._client_type_value = None - self._client_type_present = False + event_uuid=None, + new_subscription_level=None, + previous_subscription_level=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._new_subscription_level_value = None + self._new_subscription_level_present = False + self._previous_subscription_level_value = None + self._previous_subscription_level_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if new_subscription_level is not None: + self.new_subscription_level = new_subscription_level + if previous_subscription_level is not None: + self.previous_subscription_level = previous_subscription_level @property - def client_version(self): + def event_uuid(self): """ - The Dropbox client version. + Event unique identifier. :rtype: str """ - if self._client_version_present: - return self._client_version_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @client_version.setter - def client_version(self, val): - if val is None: - del self.client_version - return - val = self._client_version_validator.validate(val) - self._client_version_value = val - self._client_version_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @client_version.deleter - def client_version(self): - self._client_version_value = None - self._client_version_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False @property - def os_version(self): + def new_subscription_level(self): """ - The hosting OS version. + New doc subscription level. :rtype: str """ - if self._os_version_present: - return self._os_version_value + if self._new_subscription_level_present: + return self._new_subscription_level_value else: - return None + raise AttributeError("missing required field 'new_subscription_level'") - @os_version.setter - def os_version(self, val): - if val is None: - del self.os_version - return - val = self._os_version_validator.validate(val) - self._os_version_value = val - self._os_version_present = True + @new_subscription_level.setter + def new_subscription_level(self, val): + val = self._new_subscription_level_validator.validate(val) + self._new_subscription_level_value = val + self._new_subscription_level_present = True - @os_version.deleter - def os_version(self): - self._os_version_value = None - self._os_version_present = False + @new_subscription_level.deleter + def new_subscription_level(self): + self._new_subscription_level_value = None + self._new_subscription_level_present = False @property - def last_carrier(self): + def previous_subscription_level(self): """ - last carrier used by the device. + Previous doc subscription level. Might be missing due to historical data + gap. :rtype: str """ - if self._last_carrier_present: - return self._last_carrier_value + if self._previous_subscription_level_present: + return self._previous_subscription_level_value else: return None - @last_carrier.setter - def last_carrier(self, val): + @previous_subscription_level.setter + def previous_subscription_level(self, val): if val is None: - del self.last_carrier + del self.previous_subscription_level return - val = self._last_carrier_validator.validate(val) - self._last_carrier_value = val - self._last_carrier_present = True - - @last_carrier.deleter - def last_carrier(self): - self._last_carrier_value = None - self._last_carrier_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(MobileDeviceSessionLogInfo, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'MobileDeviceSessionLogInfo(device_name={!r}, client_type={!r}, ip_address={!r}, created={!r}, updated={!r}, session_info={!r}, client_version={!r}, os_version={!r}, last_carrier={!r})'.format( - self._device_name_value, - self._client_type_value, - self._ip_address_value, - self._created_value, - self._updated_value, - self._session_info_value, - self._client_version_value, - self._os_version_value, - self._last_carrier_value, - ) - -MobileDeviceSessionLogInfo_validator = bv.Struct(MobileDeviceSessionLogInfo) - -class MobileSessionLogInfo(SessionLogInfo): - """ - Mobile session. - """ - - __slots__ = [ - ] - - _has_required_fields = False + val = self._previous_subscription_level_validator.validate(val) + self._previous_subscription_level_value = val + self._previous_subscription_level_present = True - def __init__(self, - session_id=None): - super(MobileSessionLogInfo, self).__init__(session_id) + @previous_subscription_level.deleter + def previous_subscription_level(self): + self._previous_subscription_level_value = None + self._previous_subscription_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(MobileSessionLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocChangeSubscriptionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'MobileSessionLogInfo(session_id={!r})'.format( - self._session_id_value, + return 'PaperDocChangeSubscriptionDetails(event_uuid={!r}, new_subscription_level={!r}, previous_subscription_level={!r})'.format( + self._event_uuid_value, + self._new_subscription_level_value, + self._previous_subscription_level_value, ) -MobileSessionLogInfo_validator = bv.Struct(MobileSessionLogInfo) - -class NamespaceRelativePathLogInfo(bb.Struct): - """ - Namespace relative path details. - - :ivar team_log.NamespaceRelativePathLogInfo.ns_id: Namespace ID. Might be - missing due to historical data gap. - :ivar team_log.NamespaceRelativePathLogInfo.relative_path: A path relative - to the specified namespace ID. Might be missing due to historical data - gap. - """ - - __slots__ = [ - '_ns_id_value', - '_ns_id_present', - '_relative_path_value', - '_relative_path_present', - ] - - _has_required_fields = False - - def __init__(self, - ns_id=None, - relative_path=None): - self._ns_id_value = None - self._ns_id_present = False - self._relative_path_value = None - self._relative_path_present = False - if ns_id is not None: - self.ns_id = ns_id - if relative_path is not None: - self.relative_path = relative_path - - @property - def ns_id(self): - """ - Namespace ID. Might be missing due to historical data gap. +PaperDocChangeSubscriptionDetails_validator = bv.Struct(PaperDocChangeSubscriptionDetails) - :rtype: str - """ - if self._ns_id_present: - return self._ns_id_value - else: - return None +class PaperDocChangeSubscriptionType(bb.Struct): - @ns_id.setter - def ns_id(self, val): - if val is None: - del self.ns_id - return - val = self._ns_id_validator.validate(val) - self._ns_id_value = val - self._ns_id_present = True + __slots__ = [ + '_description_value', + '_description_present', + ] - @ns_id.deleter - def ns_id(self): - self._ns_id_value = None - self._ns_id_present = False + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def relative_path(self): + def description(self): """ - A path relative to the specified namespace ID. Might be missing due to - historical data gap. - :rtype: str """ - if self._relative_path_present: - return self._relative_path_value + if self._description_present: + return self._description_value else: - return None + raise AttributeError("missing required field 'description'") - @relative_path.setter - def relative_path(self, val): - if val is None: - del self.relative_path - return - val = self._relative_path_validator.validate(val) - self._relative_path_value = val - self._relative_path_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @relative_path.deleter - def relative_path(self): - self._relative_path_value = None - self._relative_path_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NamespaceRelativePathLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocChangeSubscriptionType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NamespaceRelativePathLogInfo(ns_id={!r}, relative_path={!r})'.format( - self._ns_id_value, - self._relative_path_value, + return 'PaperDocChangeSubscriptionType(description={!r})'.format( + self._description_value, ) -NamespaceRelativePathLogInfo_validator = bv.Struct(NamespaceRelativePathLogInfo) +PaperDocChangeSubscriptionType_validator = bv.Struct(PaperDocChangeSubscriptionType) -class NetworkControlChangePolicyDetails(bb.Struct): +class PaperDocDeleteCommentDetails(bb.Struct): """ - Enabled/disabled network control. + Deleted Paper doc comment. - :ivar team_log.NetworkControlChangePolicyDetails.new_value: New network - control policy. - :ivar team_log.NetworkControlChangePolicyDetails.previous_value: Previous - network control policy. Might be missing due to historical data gap. + :ivar team_log.PaperDocDeleteCommentDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperDocDeleteCommentDetails.comment_text: Comment text. + Might be missing due to historical data gap. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', + '_comment_text_value', + '_comment_text_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + event_uuid=None, + comment_text=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._comment_text_value = None + self._comment_text_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if comment_text is not None: + self.comment_text = comment_text @property - def new_value(self): + def event_uuid(self): """ - New network control policy. + Event unique identifier. - :rtype: team_log.NetworkControlPolicy + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'event_uuid'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False @property - def previous_value(self): + def comment_text(self): """ - Previous network control policy. Might be missing due to historical data - gap. + Comment text. Might be missing due to historical data gap. - :rtype: team_log.NetworkControlPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._comment_text_present: + return self._comment_text_value else: return None - @previous_value.setter - def previous_value(self, val): + @comment_text.setter + def comment_text(self, val): if val is None: - del self.previous_value + del self.comment_text return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + val = self._comment_text_validator.validate(val) + self._comment_text_value = val + self._comment_text_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @comment_text.deleter + def comment_text(self): + self._comment_text_value = None + self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NetworkControlChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocDeleteCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NetworkControlChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'PaperDocDeleteCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + self._event_uuid_value, + self._comment_text_value, ) -NetworkControlChangePolicyDetails_validator = bv.Struct(NetworkControlChangePolicyDetails) +PaperDocDeleteCommentDetails_validator = bv.Struct(PaperDocDeleteCommentDetails) -class NetworkControlChangePolicyType(bb.Struct): +class PaperDocDeleteCommentType(bb.Struct): __slots__ = [ '_description_value', @@ -38305,247 +45548,343 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NetworkControlChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocDeleteCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NetworkControlChangePolicyType(description={!r})'.format( + return 'PaperDocDeleteCommentType(description={!r})'.format( self._description_value, ) -NetworkControlChangePolicyType_validator = bv.Struct(NetworkControlChangePolicyType) +PaperDocDeleteCommentType_validator = bv.Struct(PaperDocDeleteCommentType) -class NetworkControlPolicy(bb.Union): +class PaperDocDeletedDetails(bb.Struct): """ - Network control policy + Archived Paper doc. - 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 team_log.PaperDocDeletedDetails.event_uuid: Event unique identifier. """ - _catch_all = 'other' - # Attribute is overwritten below the class definition - disabled = None - # Attribute is overwritten below the class definition - enabled = None - # Attribute is overwritten below the class definition - other = None + __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', + ] - def is_disabled(self): - """ - Check if the union tag is ``disabled``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'disabled' + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid - def is_enabled(self): + @property + def event_uuid(self): """ - Check if the union tag is ``enabled``. + Event unique identifier. - :rtype: bool + :rtype: str """ - return self._tag == 'enabled' + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") - def is_other(self): - """ - Check if the union tag is ``other``. + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - :rtype: bool + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocDeletedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperDocDeletedDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) + +PaperDocDeletedDetails_validator = bv.Struct(PaperDocDeletedDetails) + +class PaperDocDeletedType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): """ - return self._tag == 'other' + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(NetworkControlPolicy, self)._process_custom_annotations(annotation_type, processor) + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocDeletedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NetworkControlPolicy(%r, %r)' % (self._tag, self._value) + return 'PaperDocDeletedType(description={!r})'.format( + self._description_value, + ) -NetworkControlPolicy_validator = bv.Union(NetworkControlPolicy) +PaperDocDeletedType_validator = bv.Struct(PaperDocDeletedType) -class UserLogInfo(bb.Struct): +class PaperDocDownloadDetails(bb.Struct): """ - User's logged information. + Downloaded Paper doc in specific format. - :ivar team_log.UserLogInfo.account_id: User unique ID. Might be missing due - to historical data gap. - :ivar team_log.UserLogInfo.display_name: User display name. Might be missing - due to historical data gap. - :ivar team_log.UserLogInfo.email: User email address. Might be missing due - to historical data gap. + :ivar team_log.PaperDocDownloadDetails.event_uuid: Event unique identifier. + :ivar team_log.PaperDocDownloadDetails.export_file_format: Export file + format. """ __slots__ = [ - '_account_id_value', - '_account_id_present', - '_display_name_value', - '_display_name_present', - '_email_value', - '_email_present', + '_event_uuid_value', + '_event_uuid_present', + '_export_file_format_value', + '_export_file_format_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - account_id=None, - display_name=None, - email=None): - self._account_id_value = None - self._account_id_present = False - self._display_name_value = None - self._display_name_present = False - self._email_value = None - self._email_present = False - if account_id is not None: - self.account_id = account_id - if display_name is not None: - self.display_name = display_name - if email is not None: - self.email = email + event_uuid=None, + export_file_format=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._export_file_format_value = None + self._export_file_format_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if export_file_format is not None: + self.export_file_format = export_file_format @property - def account_id(self): + def event_uuid(self): """ - User unique ID. Might be missing due to historical data gap. + Event unique identifier. :rtype: str """ - if self._account_id_present: - return self._account_id_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @account_id.setter - def account_id(self, val): - if val is None: - del self.account_id - return - val = self._account_id_validator.validate(val) - self._account_id_value = val - self._account_id_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @account_id.deleter - def account_id(self): - self._account_id_value = None - self._account_id_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False @property - def display_name(self): + def export_file_format(self): """ - User display name. Might be missing due to historical data gap. + Export file format. - :rtype: str + :rtype: PaperDownloadFormat """ - if self._display_name_present: - return self._display_name_value + if self._export_file_format_present: + return self._export_file_format_value else: - return None + raise AttributeError("missing required field 'export_file_format'") - @display_name.setter - def display_name(self, val): - if val is None: - del self.display_name - return - val = self._display_name_validator.validate(val) - self._display_name_value = val - self._display_name_present = True + @export_file_format.setter + def export_file_format(self, val): + self._export_file_format_validator.validate_type_only(val) + self._export_file_format_value = val + self._export_file_format_present = True - @display_name.deleter - def display_name(self): - self._display_name_value = None - self._display_name_present = False + @export_file_format.deleter + def export_file_format(self): + self._export_file_format_value = None + self._export_file_format_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocDownloadDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperDocDownloadDetails(event_uuid={!r}, export_file_format={!r})'.format( + self._event_uuid_value, + self._export_file_format_value, + ) + +PaperDocDownloadDetails_validator = bv.Struct(PaperDocDownloadDetails) + +class PaperDocDownloadType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def email(self): + def description(self): """ - User email address. Might be missing due to historical data gap. - :rtype: str """ - if self._email_present: - return self._email_value + if self._description_present: + return self._description_value else: - return None + raise AttributeError("missing required field 'description'") - @email.setter - def email(self, val): - if val is None: - del self.email - return - val = self._email_validator.validate(val) - self._email_value = val - self._email_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @email.deleter - def email(self): - self._email_value = None - self._email_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UserLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocDownloadType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'UserLogInfo(account_id={!r}, display_name={!r}, email={!r})'.format( - self._account_id_value, - self._display_name_value, - self._email_value, + return 'PaperDocDownloadType(description={!r})'.format( + self._description_value, ) -UserLogInfo_validator = bv.StructTree(UserLogInfo) +PaperDocDownloadType_validator = bv.Struct(PaperDocDownloadType) -class NonTeamMemberLogInfo(UserLogInfo): +class PaperDocEditCommentDetails(bb.Struct): """ - Non team member's logged information. + Edited Paper doc comment. + + :ivar team_log.PaperDocEditCommentDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperDocEditCommentDetails.comment_text: Comment text. Might + be missing due to historical data gap. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', + '_comment_text_value', + '_comment_text_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - account_id=None, - display_name=None, - email=None): - super(NonTeamMemberLogInfo, self).__init__(account_id, - display_name, - email) + event_uuid=None, + comment_text=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._comment_text_value = None + self._comment_text_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if comment_text is not None: + self.comment_text = comment_text - def _process_custom_annotations(self, annotation_type, processor): - super(NonTeamMemberLogInfo, self)._process_custom_annotations(annotation_type, processor) + @property + def event_uuid(self): + """ + Event unique identifier. - def __repr__(self): - return 'NonTeamMemberLogInfo(account_id={!r}, display_name={!r}, email={!r})'.format( - self._account_id_value, - self._display_name_value, - self._email_value, - ) + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") -NonTeamMemberLogInfo_validator = bv.Struct(NonTeamMemberLogInfo) + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True -class NoteAclInviteOnlyDetails(bb.Struct): - """ - Changed Paper doc to invite-only. - """ + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - __slots__ = [ - ] + @property + def comment_text(self): + """ + Comment text. Might be missing due to historical data gap. - _has_required_fields = False + :rtype: str + """ + if self._comment_text_present: + return self._comment_text_value + else: + return None - def __init__(self): - pass + @comment_text.setter + def comment_text(self, val): + if val is None: + del self.comment_text + return + val = self._comment_text_validator.validate(val) + self._comment_text_value = val + self._comment_text_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(NoteAclInviteOnlyDetails, self)._process_custom_annotations(annotation_type, processor) + @comment_text.deleter + def comment_text(self): + self._comment_text_value = None + self._comment_text_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocEditCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NoteAclInviteOnlyDetails()' + return 'PaperDocEditCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + self._event_uuid_value, + self._comment_text_value, + ) -NoteAclInviteOnlyDetails_validator = bv.Struct(NoteAclInviteOnlyDetails) +PaperDocEditCommentDetails_validator = bv.Struct(PaperDocEditCommentDetails) -class NoteAclInviteOnlyType(bb.Struct): +class PaperDocEditCommentType(bb.Struct): __slots__ = [ '_description_value', @@ -38582,38 +45921,71 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NoteAclInviteOnlyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocEditCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NoteAclInviteOnlyType(description={!r})'.format( + return 'PaperDocEditCommentType(description={!r})'.format( self._description_value, ) -NoteAclInviteOnlyType_validator = bv.Struct(NoteAclInviteOnlyType) +PaperDocEditCommentType_validator = bv.Struct(PaperDocEditCommentType) -class NoteAclLinkDetails(bb.Struct): +class PaperDocEditDetails(bb.Struct): """ - Changed Paper doc to link-accessible. + Edited Paper doc. + + :ivar team_log.PaperDocEditDetails.event_uuid: Event unique identifier. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NoteAclLinkDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocEditDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NoteAclLinkDetails()' + return 'PaperDocEditDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -NoteAclLinkDetails_validator = bv.Struct(NoteAclLinkDetails) +PaperDocEditDetails_validator = bv.Struct(PaperDocEditDetails) -class NoteAclLinkType(bb.Struct): +class PaperDocEditType(bb.Struct): __slots__ = [ '_description_value', @@ -38650,38 +46022,71 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NoteAclLinkType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocEditType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NoteAclLinkType(description={!r})'.format( + return 'PaperDocEditType(description={!r})'.format( self._description_value, ) -NoteAclLinkType_validator = bv.Struct(NoteAclLinkType) +PaperDocEditType_validator = bv.Struct(PaperDocEditType) -class NoteAclTeamLinkDetails(bb.Struct): +class PaperDocFollowedDetails(bb.Struct): """ - Changed Paper doc to link-accessible for team. + Followed Paper doc. + + :ivar team_log.PaperDocFollowedDetails.event_uuid: Event unique identifier. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NoteAclTeamLinkDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocFollowedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NoteAclTeamLinkDetails()' + return 'PaperDocFollowedDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -NoteAclTeamLinkDetails_validator = bv.Struct(NoteAclTeamLinkDetails) +PaperDocFollowedDetails_validator = bv.Struct(PaperDocFollowedDetails) -class NoteAclTeamLinkType(bb.Struct): +class PaperDocFollowedType(bb.Struct): __slots__ = [ '_description_value', @@ -38718,38 +46123,71 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NoteAclTeamLinkType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocFollowedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NoteAclTeamLinkType(description={!r})'.format( + return 'PaperDocFollowedType(description={!r})'.format( self._description_value, ) -NoteAclTeamLinkType_validator = bv.Struct(NoteAclTeamLinkType) +PaperDocFollowedType_validator = bv.Struct(PaperDocFollowedType) -class NoteShareReceiveDetails(bb.Struct): +class PaperDocMentionDetails(bb.Struct): """ - Shared received Paper doc. + Mentioned team member in Paper doc. + + :ivar team_log.PaperDocMentionDetails.event_uuid: Event unique identifier. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(NoteShareReceiveDetails, self)._process_custom_annotations(annotation_type, processor) + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocMentionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NoteShareReceiveDetails()' + return 'PaperDocMentionDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -NoteShareReceiveDetails_validator = bv.Struct(NoteShareReceiveDetails) +PaperDocMentionDetails_validator = bv.Struct(PaperDocMentionDetails) -class NoteShareReceiveType(bb.Struct): +class PaperDocMentionType(bb.Struct): __slots__ = [ '_description_value', @@ -38786,38 +46224,140 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NoteShareReceiveType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocMentionType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NoteShareReceiveType(description={!r})'.format( + return 'PaperDocMentionType(description={!r})'.format( self._description_value, ) -NoteShareReceiveType_validator = bv.Struct(NoteShareReceiveType) +PaperDocMentionType_validator = bv.Struct(PaperDocMentionType) -class NoteSharedDetails(bb.Struct): +class PaperDocOwnershipChangedDetails(bb.Struct): """ - Shared Paper doc. + Transferred ownership of Paper doc. + + :ivar team_log.PaperDocOwnershipChangedDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperDocOwnershipChangedDetails.old_owner_user_id: Previous + owner. + :ivar team_log.PaperDocOwnershipChangedDetails.new_owner_user_id: New owner. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', + '_old_owner_user_id_value', + '_old_owner_user_id_present', + '_new_owner_user_id_value', + '_new_owner_user_id_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None, + new_owner_user_id=None, + old_owner_user_id=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._old_owner_user_id_value = None + self._old_owner_user_id_present = False + self._new_owner_user_id_value = None + self._new_owner_user_id_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if old_owner_user_id is not None: + self.old_owner_user_id = old_owner_user_id + if new_owner_user_id is not None: + self.new_owner_user_id = new_owner_user_id + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + @property + def old_owner_user_id(self): + """ + Previous owner. + + :rtype: str + """ + if self._old_owner_user_id_present: + return self._old_owner_user_id_value + else: + return None + + @old_owner_user_id.setter + def old_owner_user_id(self, val): + if val is None: + del self.old_owner_user_id + return + val = self._old_owner_user_id_validator.validate(val) + self._old_owner_user_id_value = val + self._old_owner_user_id_present = True + + @old_owner_user_id.deleter + def old_owner_user_id(self): + self._old_owner_user_id_value = None + self._old_owner_user_id_present = False + + @property + def new_owner_user_id(self): + """ + New owner. + + :rtype: str + """ + if self._new_owner_user_id_present: + return self._new_owner_user_id_value + else: + raise AttributeError("missing required field 'new_owner_user_id'") + + @new_owner_user_id.setter + def new_owner_user_id(self, val): + val = self._new_owner_user_id_validator.validate(val) + self._new_owner_user_id_value = val + self._new_owner_user_id_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(NoteSharedDetails, self)._process_custom_annotations(annotation_type, processor) + @new_owner_user_id.deleter + def new_owner_user_id(self): + self._new_owner_user_id_value = None + self._new_owner_user_id_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocOwnershipChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NoteSharedDetails()' + return 'PaperDocOwnershipChangedDetails(event_uuid={!r}, new_owner_user_id={!r}, old_owner_user_id={!r})'.format( + self._event_uuid_value, + self._new_owner_user_id_value, + self._old_owner_user_id_value, + ) -NoteSharedDetails_validator = bv.Struct(NoteSharedDetails) +PaperDocOwnershipChangedDetails_validator = bv.Struct(PaperDocOwnershipChangedDetails) -class NoteSharedType(bb.Struct): +class PaperDocOwnershipChangedType(bb.Struct): __slots__ = [ '_description_value', @@ -38854,38 +46394,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(NoteSharedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocOwnershipChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'NoteSharedType(description={!r})'.format( + return 'PaperDocOwnershipChangedType(description={!r})'.format( self._description_value, ) -NoteSharedType_validator = bv.Struct(NoteSharedType) +PaperDocOwnershipChangedType_validator = bv.Struct(PaperDocOwnershipChangedType) -class OpenNoteSharedDetails(bb.Struct): +class PaperDocRequestAccessDetails(bb.Struct): """ - Opened shared Paper doc. + Requested access to Paper doc. + + :ivar team_log.PaperDocRequestAccessDetails.event_uuid: Event unique + identifier. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(OpenNoteSharedDetails, self)._process_custom_annotations(annotation_type, processor) + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocRequestAccessDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'OpenNoteSharedDetails()' + return 'PaperDocRequestAccessDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -OpenNoteSharedDetails_validator = bv.Struct(OpenNoteSharedDetails) +PaperDocRequestAccessDetails_validator = bv.Struct(PaperDocRequestAccessDetails) -class OpenNoteSharedType(bb.Struct): +class PaperDocRequestAccessType(bb.Struct): __slots__ = [ '_description_value', @@ -38922,185 +46496,209 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(OpenNoteSharedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocRequestAccessType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'OpenNoteSharedType(description={!r})'.format( + return 'PaperDocRequestAccessType(description={!r})'.format( self._description_value, ) -OpenNoteSharedType_validator = bv.Struct(OpenNoteSharedType) +PaperDocRequestAccessType_validator = bv.Struct(PaperDocRequestAccessType) -class OriginLogInfo(bb.Struct): +class PaperDocResolveCommentDetails(bb.Struct): """ - The origin from which the actor performed the action. + Resolved Paper doc comment. - :ivar team_log.OriginLogInfo.geo_location: Geographic location details. - :ivar team_log.OriginLogInfo.access_method: The method that was used to - perform the action. + :ivar team_log.PaperDocResolveCommentDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperDocResolveCommentDetails.comment_text: Comment text. + Might be missing due to historical data gap. """ __slots__ = [ - '_geo_location_value', - '_geo_location_present', - '_access_method_value', - '_access_method_present', + '_event_uuid_value', + '_event_uuid_present', + '_comment_text_value', + '_comment_text_present', ] _has_required_fields = True def __init__(self, - access_method=None, - geo_location=None): - self._geo_location_value = None - self._geo_location_present = False - self._access_method_value = None - self._access_method_present = False - if geo_location is not None: - self.geo_location = geo_location - if access_method is not None: - self.access_method = access_method + event_uuid=None, + comment_text=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._comment_text_value = None + self._comment_text_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if comment_text is not None: + self.comment_text = comment_text @property - def geo_location(self): + def event_uuid(self): """ - Geographic location details. + Event unique identifier. - :rtype: team_log.GeoLocationLogInfo + :rtype: str """ - if self._geo_location_present: - return self._geo_location_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @geo_location.setter - def geo_location(self, val): - if val is None: - del self.geo_location - return - self._geo_location_validator.validate_type_only(val) - self._geo_location_value = val - self._geo_location_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @geo_location.deleter - def geo_location(self): - self._geo_location_value = None - self._geo_location_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False @property - def access_method(self): + def comment_text(self): """ - The method that was used to perform the action. + Comment text. Might be missing due to historical data gap. - :rtype: team_log.AccessMethodLogInfo + :rtype: str """ - if self._access_method_present: - return self._access_method_value + if self._comment_text_present: + return self._comment_text_value else: - raise AttributeError("missing required field 'access_method'") + return None - @access_method.setter - def access_method(self, val): - self._access_method_validator.validate_type_only(val) - self._access_method_value = val - self._access_method_present = True + @comment_text.setter + def comment_text(self, val): + if val is None: + del self.comment_text + return + val = self._comment_text_validator.validate(val) + self._comment_text_value = val + self._comment_text_present = True - @access_method.deleter - def access_method(self): - self._access_method_value = None - self._access_method_present = False + @comment_text.deleter + def comment_text(self): + self._comment_text_value = None + self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(OriginLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocResolveCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'OriginLogInfo(access_method={!r}, geo_location={!r})'.format( - self._access_method_value, - self._geo_location_value, - ) - -OriginLogInfo_validator = bv.Struct(OriginLogInfo) - -class PaperAccessType(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. - """ + return 'PaperDocResolveCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + self._event_uuid_value, + self._comment_text_value, + ) - _catch_all = 'other' - # Attribute is overwritten below the class definition - viewer = None - # Attribute is overwritten below the class definition - commenter = None - # Attribute is overwritten below the class definition - editor = None - # Attribute is overwritten below the class definition - other = None +PaperDocResolveCommentDetails_validator = bv.Struct(PaperDocResolveCommentDetails) - def is_viewer(self): - """ - Check if the union tag is ``viewer``. +class PaperDocResolveCommentType(bb.Struct): - :rtype: bool - """ - return self._tag == 'viewer' + __slots__ = [ + '_description_value', + '_description_present', + ] - def is_commenter(self): - """ - Check if the union tag is ``commenter``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'commenter' + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description - def is_editor(self): + @property + def description(self): """ - Check if the union tag is ``editor``. - - :rtype: bool + :rtype: str """ - return self._tag == 'editor' + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") - def is_other(self): - """ - Check if the union tag is ``other``. + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - :rtype: bool - """ - return self._tag == 'other' + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperAccessType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocResolveCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperAccessType(%r, %r)' % (self._tag, self._value) + return 'PaperDocResolveCommentType(description={!r})'.format( + self._description_value, + ) -PaperAccessType_validator = bv.Union(PaperAccessType) +PaperDocResolveCommentType_validator = bv.Struct(PaperDocResolveCommentType) -class PaperAdminExportStartDetails(bb.Struct): +class PaperDocRevertDetails(bb.Struct): """ - Exported all team Paper docs. + Restored Paper doc to previous version. + + :ivar team_log.PaperDocRevertDetails.event_uuid: Event unique identifier. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(PaperAdminExportStartDetails, self)._process_custom_annotations(annotation_type, processor) + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocRevertDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperAdminExportStartDetails()' + return 'PaperDocRevertDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -PaperAdminExportStartDetails_validator = bv.Struct(PaperAdminExportStartDetails) +PaperDocRevertDetails_validator = bv.Struct(PaperDocRevertDetails) -class PaperAdminExportStartType(bb.Struct): +class PaperDocRevertType(bb.Struct): __slots__ = [ '_description_value', @@ -39137,111 +46735,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperAdminExportStartType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocRevertType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperAdminExportStartType(description={!r})'.format( + return 'PaperDocRevertType(description={!r})'.format( self._description_value, ) -PaperAdminExportStartType_validator = bv.Struct(PaperAdminExportStartType) +PaperDocRevertType_validator = bv.Struct(PaperDocRevertType) -class PaperChangeDeploymentPolicyDetails(bb.Struct): +class PaperDocSlackShareDetails(bb.Struct): """ - Changed whether Dropbox Paper, when enabled, is deployed to all members or - to specific members. + Shared Paper doc via Slack. - :ivar team_log.PaperChangeDeploymentPolicyDetails.new_value: New Dropbox - Paper deployment policy. - :ivar team_log.PaperChangeDeploymentPolicyDetails.previous_value: Previous - Dropbox Paper deployment policy. Might be missing due to historical data - gap. + :ivar team_log.PaperDocSlackShareDetails.event_uuid: Event unique + identifier. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value - - @property - def new_value(self): - """ - New Dropbox Paper deployment policy. - - :rtype: team_policies.PaperDeploymentPolicy - """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") - - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True - - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def previous_value(self): + def event_uuid(self): """ - Previous Dropbox Paper deployment policy. Might be missing due to - historical data gap. + Event unique identifier. - :rtype: team_policies.PaperDeploymentPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperChangeDeploymentPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocSlackShareDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperChangeDeploymentPolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'PaperDocSlackShareDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -PaperChangeDeploymentPolicyDetails_validator = bv.Struct(PaperChangeDeploymentPolicyDetails) +PaperDocSlackShareDetails_validator = bv.Struct(PaperDocSlackShareDetails) -class PaperChangeDeploymentPolicyType(bb.Struct): +class PaperDocSlackShareType(bb.Struct): __slots__ = [ '_description_value', @@ -39278,72 +46837,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperChangeDeploymentPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocSlackShareType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperChangeDeploymentPolicyType(description={!r})'.format( + return 'PaperDocSlackShareType(description={!r})'.format( self._description_value, ) -PaperChangeDeploymentPolicyType_validator = bv.Struct(PaperChangeDeploymentPolicyType) +PaperDocSlackShareType_validator = bv.Struct(PaperDocSlackShareType) -class PaperChangeMemberLinkPolicyDetails(bb.Struct): +class PaperDocTeamInviteDetails(bb.Struct): """ - Changed whether non-members can view Paper docs with link. + Shared Paper doc with team member. - :ivar team_log.PaperChangeMemberLinkPolicyDetails.new_value: New paper - external link accessibility policy. + :ivar team_log.PaperDocTeamInviteDetails.event_uuid: Event unique + identifier. """ __slots__ = [ - '_new_value_value', - '_new_value_present', + '_event_uuid_value', + '_event_uuid_present', ] _has_required_fields = True def __init__(self, - new_value=None): - self._new_value_value = None - self._new_value_present = False - if new_value is not None: - self.new_value = new_value + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def new_value(self): + def event_uuid(self): """ - New paper external link accessibility policy. + Event unique identifier. - :rtype: team_log.PaperMemberPolicy + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'event_uuid'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperChangeMemberLinkPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocTeamInviteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperChangeMemberLinkPolicyDetails(new_value={!r})'.format( - self._new_value_value, + return 'PaperDocTeamInviteDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -PaperChangeMemberLinkPolicyDetails_validator = bv.Struct(PaperChangeMemberLinkPolicyDetails) +PaperDocTeamInviteDetails_validator = bv.Struct(PaperDocTeamInviteDetails) -class PaperChangeMemberLinkPolicyType(bb.Struct): +class PaperDocTeamInviteType(bb.Struct): __slots__ = [ '_description_value', @@ -39380,111 +46939,71 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperChangeMemberLinkPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocTeamInviteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperChangeMemberLinkPolicyType(description={!r})'.format( + return 'PaperDocTeamInviteType(description={!r})'.format( self._description_value, ) -PaperChangeMemberLinkPolicyType_validator = bv.Struct(PaperChangeMemberLinkPolicyType) +PaperDocTeamInviteType_validator = bv.Struct(PaperDocTeamInviteType) -class PaperChangeMemberPolicyDetails(bb.Struct): +class PaperDocTrashedDetails(bb.Struct): """ - Changed whether members can share Paper docs outside team, and if docs are - accessible only by team members or anyone by default. + Deleted Paper doc. - :ivar team_log.PaperChangeMemberPolicyDetails.new_value: New paper external - accessibility policy. - :ivar team_log.PaperChangeMemberPolicyDetails.previous_value: Previous paper - external accessibility policy. Might be missing due to historical data - gap. + :ivar team_log.PaperDocTrashedDetails.event_uuid: Event unique identifier. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value - - @property - def new_value(self): - """ - New paper external accessibility policy. - - :rtype: team_log.PaperMemberPolicy - """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") - - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True - - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def previous_value(self): + def event_uuid(self): """ - Previous paper external accessibility policy. Might be missing due to - historical data gap. + Event unique identifier. - :rtype: team_log.PaperMemberPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperChangeMemberPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocTrashedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperChangeMemberPolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'PaperDocTrashedDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -PaperChangeMemberPolicyDetails_validator = bv.Struct(PaperChangeMemberPolicyDetails) +PaperDocTrashedDetails_validator = bv.Struct(PaperDocTrashedDetails) -class PaperChangeMemberPolicyType(bb.Struct): +class PaperDocTrashedType(bb.Struct): __slots__ = [ '_description_value', @@ -39521,108 +47040,108 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperChangeMemberPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocTrashedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperChangeMemberPolicyType(description={!r})'.format( + return 'PaperDocTrashedType(description={!r})'.format( self._description_value, ) -PaperChangeMemberPolicyType_validator = bv.Struct(PaperChangeMemberPolicyType) +PaperDocTrashedType_validator = bv.Struct(PaperDocTrashedType) -class PaperChangePolicyDetails(bb.Struct): +class PaperDocUnresolveCommentDetails(bb.Struct): """ - Enabled/disabled Dropbox Paper for team. + Unresolved Paper doc comment. - :ivar team_log.PaperChangePolicyDetails.new_value: New Dropbox Paper policy. - :ivar team_log.PaperChangePolicyDetails.previous_value: Previous Dropbox - Paper policy. Might be missing due to historical data gap. + :ivar team_log.PaperDocUnresolveCommentDetails.event_uuid: Event unique + identifier. + :ivar team_log.PaperDocUnresolveCommentDetails.comment_text: Comment text. + Might be missing due to historical data gap. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', + '_comment_text_value', + '_comment_text_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + event_uuid=None, + comment_text=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._comment_text_value = None + self._comment_text_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if comment_text is not None: + self.comment_text = comment_text @property - def new_value(self): + def event_uuid(self): """ - New Dropbox Paper policy. + Event unique identifier. - :rtype: team_policies.PaperEnabledPolicy + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'event_uuid'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False @property - def previous_value(self): + def comment_text(self): """ - Previous Dropbox Paper policy. Might be missing due to historical data - gap. + Comment text. Might be missing due to historical data gap. - :rtype: team_policies.PaperEnabledPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._comment_text_present: + return self._comment_text_value else: return None - @previous_value.setter - def previous_value(self, val): + @comment_text.setter + def comment_text(self, val): if val is None: - del self.previous_value + del self.comment_text return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + val = self._comment_text_validator.validate(val) + self._comment_text_value = val + self._comment_text_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @comment_text.deleter + def comment_text(self): + self._comment_text_value = None + self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocUnresolveCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'PaperDocUnresolveCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + self._event_uuid_value, + self._comment_text_value, ) -PaperChangePolicyDetails_validator = bv.Struct(PaperChangePolicyDetails) +PaperDocUnresolveCommentDetails_validator = bv.Struct(PaperDocUnresolveCommentDetails) -class PaperChangePolicyType(bb.Struct): +class PaperDocUnresolveCommentType(bb.Struct): __slots__ = [ '_description_value', @@ -39659,22 +47178,21 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocUnresolveCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperChangePolicyType(description={!r})'.format( + return 'PaperDocUnresolveCommentType(description={!r})'.format( self._description_value, ) -PaperChangePolicyType_validator = bv.Struct(PaperChangePolicyType) +PaperDocUnresolveCommentType_validator = bv.Struct(PaperDocUnresolveCommentType) -class PaperContentAddMemberDetails(bb.Struct): +class PaperDocUntrashedDetails(bb.Struct): """ - Added team member to Paper doc/folder. + Restored Paper doc. - :ivar team_log.PaperContentAddMemberDetails.event_uuid: Event unique - identifier. + :ivar team_log.PaperDocUntrashedDetails.event_uuid: Event unique identifier. """ __slots__ = [ @@ -39714,17 +47232,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentAddMemberDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocUntrashedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentAddMemberDetails(event_uuid={!r})'.format( + return 'PaperDocUntrashedDetails(event_uuid={!r})'.format( self._event_uuid_value, ) -PaperContentAddMemberDetails_validator = bv.Struct(PaperContentAddMemberDetails) +PaperDocUntrashedDetails_validator = bv.Struct(PaperDocUntrashedDetails) -class PaperContentAddMemberType(bb.Struct): +class PaperDocUntrashedType(bb.Struct): __slots__ = [ '_description_value', @@ -39761,55 +47279,36 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentAddMemberType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocUntrashedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentAddMemberType(description={!r})'.format( + return 'PaperDocUntrashedType(description={!r})'.format( self._description_value, ) -PaperContentAddMemberType_validator = bv.Struct(PaperContentAddMemberType) +PaperDocUntrashedType_validator = bv.Struct(PaperDocUntrashedType) -class PaperContentAddToFolderDetails(bb.Struct): +class PaperDocViewDetails(bb.Struct): """ - Added Paper doc/folder to folder. + Viewed Paper doc. - :ivar team_log.PaperContentAddToFolderDetails.event_uuid: Event unique - identifier. - :ivar team_log.PaperContentAddToFolderDetails.target_asset_index: Target - asset position in the Assets list. - :ivar team_log.PaperContentAddToFolderDetails.parent_asset_index: Parent - asset position in the Assets list. + :ivar team_log.PaperDocViewDetails.event_uuid: Event unique identifier. """ __slots__ = [ '_event_uuid_value', '_event_uuid_present', - '_target_asset_index_value', - '_target_asset_index_present', - '_parent_asset_index_value', - '_parent_asset_index_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - target_asset_index=None, - parent_asset_index=None): + event_uuid=None): self._event_uuid_value = None self._event_uuid_present = False - self._target_asset_index_value = None - self._target_asset_index_present = False - self._parent_asset_index_value = None - self._parent_asset_index_present = False if event_uuid is not None: self.event_uuid = event_uuid - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if parent_asset_index is not None: - self.parent_asset_index = parent_asset_index @property def event_uuid(self): @@ -39834,65 +47333,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - @property - def target_asset_index(self): - """ - Target asset position in the Assets list. - - :rtype: int - """ - if self._target_asset_index_present: - return self._target_asset_index_value - else: - raise AttributeError("missing required field 'target_asset_index'") - - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True - - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False - - @property - def parent_asset_index(self): - """ - Parent asset position in the Assets list. - - :rtype: int - """ - if self._parent_asset_index_present: - return self._parent_asset_index_value - else: - raise AttributeError("missing required field 'parent_asset_index'") - - @parent_asset_index.setter - def parent_asset_index(self, val): - val = self._parent_asset_index_validator.validate(val) - self._parent_asset_index_value = val - self._parent_asset_index_present = True - - @parent_asset_index.deleter - def parent_asset_index(self): - self._parent_asset_index_value = None - self._parent_asset_index_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentAddToFolderDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocViewDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentAddToFolderDetails(event_uuid={!r}, target_asset_index={!r}, parent_asset_index={!r})'.format( + return 'PaperDocViewDetails(event_uuid={!r})'.format( self._event_uuid_value, - self._target_asset_index_value, - self._parent_asset_index_value, ) -PaperContentAddToFolderDetails_validator = bv.Struct(PaperContentAddToFolderDetails) +PaperDocViewDetails_validator = bv.Struct(PaperDocViewDetails) -class PaperContentAddToFolderType(bb.Struct): +class PaperDocViewType(bb.Struct): __slots__ = [ '_description_value', @@ -39929,72 +47380,191 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentAddToFolderType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocViewType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentAddToFolderType(description={!r})'.format( + return 'PaperDocViewType(description={!r})'.format( self._description_value, ) -PaperContentAddToFolderType_validator = bv.Struct(PaperContentAddToFolderType) +PaperDocViewType_validator = bv.Struct(PaperDocViewType) -class PaperContentArchiveDetails(bb.Struct): +class PaperDocumentLogInfo(bb.Struct): """ - Archived Paper doc/folder. + Paper document's logged information. - :ivar team_log.PaperContentArchiveDetails.event_uuid: Event unique - identifier. + :ivar team_log.PaperDocumentLogInfo.doc_id: Papers document Id. + :ivar team_log.PaperDocumentLogInfo.doc_title: Paper document title. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_doc_id_value', + '_doc_id_present', + '_doc_title_value', + '_doc_title_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + doc_id=None, + doc_title=None): + self._doc_id_value = None + self._doc_id_present = False + self._doc_title_value = None + self._doc_title_present = False + if doc_id is not None: + self.doc_id = doc_id + if doc_title is not None: + self.doc_title = doc_title @property - def event_uuid(self): + def doc_id(self): """ - Event unique identifier. + Papers document Id. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._doc_id_present: + return self._doc_id_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'doc_id'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @doc_id.setter + def doc_id(self, val): + val = self._doc_id_validator.validate(val) + self._doc_id_value = val + self._doc_id_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @doc_id.deleter + def doc_id(self): + self._doc_id_value = None + self._doc_id_present = False + + @property + def doc_title(self): + """ + Paper document title. + + :rtype: str + """ + if self._doc_title_present: + return self._doc_title_value + else: + raise AttributeError("missing required field 'doc_title'") - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentArchiveDetails, self)._process_custom_annotations(annotation_type, processor) + @doc_title.setter + def doc_title(self, val): + val = self._doc_title_validator.validate(val) + self._doc_title_value = val + self._doc_title_present = True + + @doc_title.deleter + def doc_title(self): + self._doc_title_value = None + self._doc_title_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDocumentLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentArchiveDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'PaperDocumentLogInfo(doc_id={!r}, doc_title={!r})'.format( + self._doc_id_value, + self._doc_title_value, ) -PaperContentArchiveDetails_validator = bv.Struct(PaperContentArchiveDetails) +PaperDocumentLogInfo_validator = bv.Struct(PaperDocumentLogInfo) -class PaperContentArchiveType(bb.Struct): +class PaperDownloadFormat(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 + docx = None + # Attribute is overwritten below the class definition + html = None + # Attribute is overwritten below the class definition + markdown = None + # Attribute is overwritten below the class definition + pdf = None + # Attribute is overwritten below the class definition + other = None + + def is_docx(self): + """ + Check if the union tag is ``docx``. + + :rtype: bool + """ + return self._tag == 'docx' + + def is_html(self): + """ + Check if the union tag is ``html``. + + :rtype: bool + """ + return self._tag == 'html' + + def is_markdown(self): + """ + Check if the union tag is ``markdown``. + + :rtype: bool + """ + return self._tag == 'markdown' + + def is_pdf(self): + """ + Check if the union tag is ``pdf``. + + :rtype: bool + """ + return self._tag == 'pdf' + + 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(PaperDownloadFormat, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperDownloadFormat(%r, %r)' % (self._tag, self._value) + +PaperDownloadFormat_validator = bv.Union(PaperDownloadFormat) + +class PaperEnabledUsersGroupAdditionDetails(bb.Struct): + """ + Added users to Paper-enabled users list. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperEnabledUsersGroupAdditionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperEnabledUsersGroupAdditionDetails()' + +PaperEnabledUsersGroupAdditionDetails_validator = bv.Struct(PaperEnabledUsersGroupAdditionDetails) + +class PaperEnabledUsersGroupAdditionType(bb.Struct): __slots__ = [ '_description_value', @@ -40031,72 +47601,38 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentArchiveType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperEnabledUsersGroupAdditionType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentArchiveType(description={!r})'.format( + return 'PaperEnabledUsersGroupAdditionType(description={!r})'.format( self._description_value, ) -PaperContentArchiveType_validator = bv.Struct(PaperContentArchiveType) +PaperEnabledUsersGroupAdditionType_validator = bv.Struct(PaperEnabledUsersGroupAdditionType) -class PaperContentCreateDetails(bb.Struct): +class PaperEnabledUsersGroupRemovalDetails(bb.Struct): """ - Created Paper doc/folder. - - :ivar team_log.PaperContentCreateDetails.event_uuid: Event unique - identifier. + Removed users from Paper-enabled users list. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', ] - _has_required_fields = True - - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - - @property - def event_uuid(self): - """ - Event unique identifier. - - :rtype: str - """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") - - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + _has_required_fields = False - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentCreateDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperEnabledUsersGroupRemovalDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentCreateDetails(event_uuid={!r})'.format( - self._event_uuid_value, - ) + return 'PaperEnabledUsersGroupRemovalDetails()' -PaperContentCreateDetails_validator = bv.Struct(PaperContentCreateDetails) +PaperEnabledUsersGroupRemovalDetails_validator = bv.Struct(PaperEnabledUsersGroupRemovalDetails) -class PaperContentCreateType(bb.Struct): +class PaperEnabledUsersGroupRemovalType(bb.Struct): __slots__ = [ '_description_value', @@ -40133,21 +47669,21 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentCreateType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperEnabledUsersGroupRemovalType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentCreateType(description={!r})'.format( + return 'PaperEnabledUsersGroupRemovalType(description={!r})'.format( self._description_value, ) -PaperContentCreateType_validator = bv.Struct(PaperContentCreateType) +PaperEnabledUsersGroupRemovalType_validator = bv.Struct(PaperEnabledUsersGroupRemovalType) -class PaperContentPermanentlyDeleteDetails(bb.Struct): +class PaperExternalViewAllowDetails(bb.Struct): """ - Permanently deleted Paper doc/folder. + Changed Paper external sharing setting to anyone. - :ivar team_log.PaperContentPermanentlyDeleteDetails.event_uuid: Event unique + :ivar team_log.PaperExternalViewAllowDetails.event_uuid: Event unique identifier. """ @@ -40188,17 +47724,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentPermanentlyDeleteDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperExternalViewAllowDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentPermanentlyDeleteDetails(event_uuid={!r})'.format( + return 'PaperExternalViewAllowDetails(event_uuid={!r})'.format( self._event_uuid_value, ) -PaperContentPermanentlyDeleteDetails_validator = bv.Struct(PaperContentPermanentlyDeleteDetails) +PaperExternalViewAllowDetails_validator = bv.Struct(PaperExternalViewAllowDetails) -class PaperContentPermanentlyDeleteType(bb.Struct): +class PaperExternalViewAllowType(bb.Struct): __slots__ = [ '_description_value', @@ -40235,55 +47771,37 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentPermanentlyDeleteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperExternalViewAllowType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentPermanentlyDeleteType(description={!r})'.format( + return 'PaperExternalViewAllowType(description={!r})'.format( self._description_value, ) -PaperContentPermanentlyDeleteType_validator = bv.Struct(PaperContentPermanentlyDeleteType) +PaperExternalViewAllowType_validator = bv.Struct(PaperExternalViewAllowType) -class PaperContentRemoveFromFolderDetails(bb.Struct): +class PaperExternalViewDefaultTeamDetails(bb.Struct): """ - Removed Paper doc/folder from folder. + Changed Paper external sharing setting to default team. - :ivar team_log.PaperContentRemoveFromFolderDetails.event_uuid: Event unique + :ivar team_log.PaperExternalViewDefaultTeamDetails.event_uuid: Event unique identifier. - :ivar team_log.PaperContentRemoveFromFolderDetails.target_asset_index: - Target asset position in the Assets list. - :ivar team_log.PaperContentRemoveFromFolderDetails.parent_asset_index: - Parent asset position in the Assets list. """ __slots__ = [ '_event_uuid_value', '_event_uuid_present', - '_target_asset_index_value', - '_target_asset_index_present', - '_parent_asset_index_value', - '_parent_asset_index_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - target_asset_index=None, - parent_asset_index=None): + event_uuid=None): self._event_uuid_value = None self._event_uuid_present = False - self._target_asset_index_value = None - self._target_asset_index_present = False - self._parent_asset_index_value = None - self._parent_asset_index_present = False if event_uuid is not None: self.event_uuid = event_uuid - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if parent_asset_index is not None: - self.parent_asset_index = parent_asset_index @property def event_uuid(self): @@ -40308,65 +47826,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - @property - def target_asset_index(self): - """ - Target asset position in the Assets list. - - :rtype: int - """ - if self._target_asset_index_present: - return self._target_asset_index_value - else: - raise AttributeError("missing required field 'target_asset_index'") - - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True - - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False - - @property - def parent_asset_index(self): - """ - Parent asset position in the Assets list. - - :rtype: int - """ - if self._parent_asset_index_present: - return self._parent_asset_index_value - else: - raise AttributeError("missing required field 'parent_asset_index'") - - @parent_asset_index.setter - def parent_asset_index(self, val): - val = self._parent_asset_index_validator.validate(val) - self._parent_asset_index_value = val - self._parent_asset_index_present = True - - @parent_asset_index.deleter - def parent_asset_index(self): - self._parent_asset_index_value = None - self._parent_asset_index_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentRemoveFromFolderDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperExternalViewDefaultTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentRemoveFromFolderDetails(event_uuid={!r}, target_asset_index={!r}, parent_asset_index={!r})'.format( + return 'PaperExternalViewDefaultTeamDetails(event_uuid={!r})'.format( self._event_uuid_value, - self._target_asset_index_value, - self._parent_asset_index_value, ) -PaperContentRemoveFromFolderDetails_validator = bv.Struct(PaperContentRemoveFromFolderDetails) +PaperExternalViewDefaultTeamDetails_validator = bv.Struct(PaperExternalViewDefaultTeamDetails) -class PaperContentRemoveFromFolderType(bb.Struct): +class PaperExternalViewDefaultTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -40403,21 +47873,21 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentRemoveFromFolderType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperExternalViewDefaultTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentRemoveFromFolderType(description={!r})'.format( + return 'PaperExternalViewDefaultTeamType(description={!r})'.format( self._description_value, ) -PaperContentRemoveFromFolderType_validator = bv.Struct(PaperContentRemoveFromFolderType) +PaperExternalViewDefaultTeamType_validator = bv.Struct(PaperExternalViewDefaultTeamType) -class PaperContentRemoveMemberDetails(bb.Struct): +class PaperExternalViewForbidDetails(bb.Struct): """ - Removed team member from Paper doc/folder. + Changed Paper external sharing setting to team-only. - :ivar team_log.PaperContentRemoveMemberDetails.event_uuid: Event unique + :ivar team_log.PaperExternalViewForbidDetails.event_uuid: Event unique identifier. """ @@ -40458,17 +47928,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentRemoveMemberDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperExternalViewForbidDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentRemoveMemberDetails(event_uuid={!r})'.format( + return 'PaperExternalViewForbidDetails(event_uuid={!r})'.format( self._event_uuid_value, ) -PaperContentRemoveMemberDetails_validator = bv.Struct(PaperContentRemoveMemberDetails) +PaperExternalViewForbidDetails_validator = bv.Struct(PaperExternalViewForbidDetails) -class PaperContentRemoveMemberType(bb.Struct): +class PaperExternalViewForbidType(bb.Struct): __slots__ = [ '_description_value', @@ -40505,37 +47975,57 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentRemoveMemberType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperExternalViewForbidType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentRemoveMemberType(description={!r})'.format( + return 'PaperExternalViewForbidType(description={!r})'.format( self._description_value, ) -PaperContentRemoveMemberType_validator = bv.Struct(PaperContentRemoveMemberType) +PaperExternalViewForbidType_validator = bv.Struct(PaperExternalViewForbidType) -class PaperContentRenameDetails(bb.Struct): +class PaperFolderChangeSubscriptionDetails(bb.Struct): """ - Renamed Paper doc/folder. + Followed/unfollowed Paper folder. - :ivar team_log.PaperContentRenameDetails.event_uuid: Event unique + :ivar team_log.PaperFolderChangeSubscriptionDetails.event_uuid: Event unique identifier. + :ivar team_log.PaperFolderChangeSubscriptionDetails.new_subscription_level: + New folder subscription level. + :ivar + team_log.PaperFolderChangeSubscriptionDetails.previous_subscription_level: + Previous folder subscription level. Might be missing due to historical + data gap. """ __slots__ = [ '_event_uuid_value', '_event_uuid_present', + '_new_subscription_level_value', + '_new_subscription_level_present', + '_previous_subscription_level_value', + '_previous_subscription_level_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): + event_uuid=None, + new_subscription_level=None, + previous_subscription_level=None): self._event_uuid_value = None self._event_uuid_present = False + self._new_subscription_level_value = None + self._new_subscription_level_present = False + self._previous_subscription_level_value = None + self._previous_subscription_level_present = False if event_uuid is not None: self.event_uuid = event_uuid + if new_subscription_level is not None: + self.new_subscription_level = new_subscription_level + if previous_subscription_level is not None: + self.previous_subscription_level = previous_subscription_level @property def event_uuid(self): @@ -40555,22 +48045,74 @@ def event_uuid(self, val): self._event_uuid_value = val self._event_uuid_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + @property + def new_subscription_level(self): + """ + New folder subscription level. + + :rtype: str + """ + if self._new_subscription_level_present: + return self._new_subscription_level_value + else: + raise AttributeError("missing required field 'new_subscription_level'") + + @new_subscription_level.setter + def new_subscription_level(self, val): + val = self._new_subscription_level_validator.validate(val) + self._new_subscription_level_value = val + self._new_subscription_level_present = True + + @new_subscription_level.deleter + def new_subscription_level(self): + self._new_subscription_level_value = None + self._new_subscription_level_present = False + + @property + def previous_subscription_level(self): + """ + Previous folder subscription level. Might be missing due to historical + data gap. + + :rtype: str + """ + if self._previous_subscription_level_present: + return self._previous_subscription_level_value + else: + return None + + @previous_subscription_level.setter + def previous_subscription_level(self, val): + if val is None: + del self.previous_subscription_level + return + val = self._previous_subscription_level_validator.validate(val) + self._previous_subscription_level_value = val + self._previous_subscription_level_present = True + + @previous_subscription_level.deleter + def previous_subscription_level(self): + self._previous_subscription_level_value = None + self._previous_subscription_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentRenameDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperFolderChangeSubscriptionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentRenameDetails(event_uuid={!r})'.format( + return 'PaperFolderChangeSubscriptionDetails(event_uuid={!r}, new_subscription_level={!r}, previous_subscription_level={!r})'.format( self._event_uuid_value, + self._new_subscription_level_value, + self._previous_subscription_level_value, ) -PaperContentRenameDetails_validator = bv.Struct(PaperContentRenameDetails) +PaperFolderChangeSubscriptionDetails_validator = bv.Struct(PaperFolderChangeSubscriptionDetails) -class PaperContentRenameType(bb.Struct): +class PaperFolderChangeSubscriptionType(bb.Struct): __slots__ = [ '_description_value', @@ -40607,21 +48149,21 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentRenameType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperFolderChangeSubscriptionType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentRenameType(description={!r})'.format( + return 'PaperFolderChangeSubscriptionType(description={!r})'.format( self._description_value, ) -PaperContentRenameType_validator = bv.Struct(PaperContentRenameType) +PaperFolderChangeSubscriptionType_validator = bv.Struct(PaperFolderChangeSubscriptionType) -class PaperContentRestoreDetails(bb.Struct): +class PaperFolderDeletedDetails(bb.Struct): """ - Restored archived Paper doc/folder. + Archived Paper folder. - :ivar team_log.PaperContentRestoreDetails.event_uuid: Event unique + :ivar team_log.PaperFolderDeletedDetails.event_uuid: Event unique identifier. """ @@ -40662,17 +48204,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentRestoreDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperFolderDeletedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentRestoreDetails(event_uuid={!r})'.format( + return 'PaperFolderDeletedDetails(event_uuid={!r})'.format( self._event_uuid_value, ) -PaperContentRestoreDetails_validator = bv.Struct(PaperContentRestoreDetails) +PaperFolderDeletedDetails_validator = bv.Struct(PaperFolderDeletedDetails) -class PaperContentRestoreType(bb.Struct): +class PaperFolderDeletedType(bb.Struct): __slots__ = [ '_description_value', @@ -40709,46 +48251,37 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperContentRestoreType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperFolderDeletedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperContentRestoreType(description={!r})'.format( + return 'PaperFolderDeletedType(description={!r})'.format( self._description_value, ) -PaperContentRestoreType_validator = bv.Struct(PaperContentRestoreType) +PaperFolderDeletedType_validator = bv.Struct(PaperFolderDeletedType) -class PaperDocAddCommentDetails(bb.Struct): +class PaperFolderFollowedDetails(bb.Struct): """ - Added Paper doc comment. + Followed Paper folder. - :ivar team_log.PaperDocAddCommentDetails.event_uuid: Event unique + :ivar team_log.PaperFolderFollowedDetails.event_uuid: Event unique identifier. - :ivar team_log.PaperDocAddCommentDetails.comment_text: Comment text. Might - be missing due to historical data gap. """ __slots__ = [ '_event_uuid_value', '_event_uuid_present', - '_comment_text_value', - '_comment_text_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - comment_text=None): + event_uuid=None): self._event_uuid_value = None self._event_uuid_present = False - self._comment_text_value = None - self._comment_text_present = False if event_uuid is not None: self.event_uuid = event_uuid - if comment_text is not None: - self.comment_text = comment_text @property def event_uuid(self): @@ -40773,44 +48306,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - @property - def comment_text(self): - """ - Comment text. Might be missing due to historical data gap. - - :rtype: str - """ - if self._comment_text_present: - return self._comment_text_value - else: - return None - - @comment_text.setter - def comment_text(self, val): - if val is None: - del self.comment_text - return - val = self._comment_text_validator.validate(val) - self._comment_text_value = val - self._comment_text_present = True - - @comment_text.deleter - def comment_text(self): - self._comment_text_value = None - self._comment_text_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocAddCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperFolderFollowedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocAddCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + return 'PaperFolderFollowedDetails(event_uuid={!r})'.format( self._event_uuid_value, - self._comment_text_value, ) -PaperDocAddCommentDetails_validator = bv.Struct(PaperDocAddCommentDetails) +PaperFolderFollowedDetails_validator = bv.Struct(PaperFolderFollowedDetails) -class PaperDocAddCommentType(bb.Struct): +class PaperFolderFollowedType(bb.Struct): __slots__ = [ '_description_value', @@ -40847,191 +48353,123 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocAddCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperFolderFollowedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocAddCommentType(description={!r})'.format( + return 'PaperFolderFollowedType(description={!r})'.format( self._description_value, ) -PaperDocAddCommentType_validator = bv.Struct(PaperDocAddCommentType) +PaperFolderFollowedType_validator = bv.Struct(PaperFolderFollowedType) -class PaperDocChangeMemberRoleDetails(bb.Struct): +class PaperFolderLogInfo(bb.Struct): """ - Changed team member permissions for Paper doc. + Paper folder's logged information. - :ivar team_log.PaperDocChangeMemberRoleDetails.event_uuid: Event unique - identifier. - :ivar team_log.PaperDocChangeMemberRoleDetails.access_type: Paper doc access - type. + :ivar team_log.PaperFolderLogInfo.folder_id: Papers folder Id. + :ivar team_log.PaperFolderLogInfo.folder_name: Paper folder name. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_access_type_value', - '_access_type_present', + '_folder_id_value', + '_folder_id_present', + '_folder_name_value', + '_folder_name_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - access_type=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._access_type_value = None - self._access_type_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if access_type is not None: - self.access_type = access_type + folder_id=None, + folder_name=None): + self._folder_id_value = None + self._folder_id_present = False + self._folder_name_value = None + self._folder_name_present = False + if folder_id is not None: + self.folder_id = folder_id + if folder_name is not None: + self.folder_name = folder_name @property - def event_uuid(self): + def folder_id(self): """ - Event unique identifier. + Papers folder Id. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._folder_id_present: + return self._folder_id_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'folder_id'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @folder_id.setter + def folder_id(self, val): + val = self._folder_id_validator.validate(val) + self._folder_id_value = val + self._folder_id_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @folder_id.deleter + def folder_id(self): + self._folder_id_value = None + self._folder_id_present = False @property - def access_type(self): - """ - Paper doc access type. - - :rtype: team_log.PaperAccessType + def folder_name(self): """ - if self._access_type_present: - return self._access_type_value - else: - raise AttributeError("missing required field 'access_type'") - - @access_type.setter - def access_type(self, val): - self._access_type_validator.validate_type_only(val) - self._access_type_value = val - self._access_type_present = True - - @access_type.deleter - def access_type(self): - self._access_type_value = None - self._access_type_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocChangeMemberRoleDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PaperDocChangeMemberRoleDetails(event_uuid={!r}, access_type={!r})'.format( - self._event_uuid_value, - self._access_type_value, - ) - -PaperDocChangeMemberRoleDetails_validator = bv.Struct(PaperDocChangeMemberRoleDetails) - -class PaperDocChangeMemberRoleType(bb.Struct): - - __slots__ = [ - '_description_value', - '_description_present', - ] - - _has_required_fields = True - - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + Paper folder name. - @property - def description(self): - """ :rtype: str """ - if self._description_present: - return self._description_value + if self._folder_name_present: + return self._folder_name_value else: - raise AttributeError("missing required field 'description'") + raise AttributeError("missing required field 'folder_name'") - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @folder_name.setter + def folder_name(self, val): + val = self._folder_name_validator.validate(val) + self._folder_name_value = val + self._folder_name_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @folder_name.deleter + def folder_name(self): + self._folder_name_value = None + self._folder_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocChangeMemberRoleType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperFolderLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocChangeMemberRoleType(description={!r})'.format( - self._description_value, + return 'PaperFolderLogInfo(folder_id={!r}, folder_name={!r})'.format( + self._folder_id_value, + self._folder_name_value, ) -PaperDocChangeMemberRoleType_validator = bv.Struct(PaperDocChangeMemberRoleType) +PaperFolderLogInfo_validator = bv.Struct(PaperFolderLogInfo) -class PaperDocChangeSharingPolicyDetails(bb.Struct): +class PaperFolderTeamInviteDetails(bb.Struct): """ - Changed sharing setting for Paper doc. + Shared Paper folder with member. - :ivar team_log.PaperDocChangeSharingPolicyDetails.event_uuid: Event unique + :ivar team_log.PaperFolderTeamInviteDetails.event_uuid: Event unique identifier. - :ivar team_log.PaperDocChangeSharingPolicyDetails.public_sharing_policy: - Sharing policy with external users. Might be missing due to historical - data gap. - :ivar team_log.PaperDocChangeSharingPolicyDetails.team_sharing_policy: - Sharing policy with team. Might be missing due to historical data gap. """ __slots__ = [ '_event_uuid_value', '_event_uuid_present', - '_public_sharing_policy_value', - '_public_sharing_policy_present', - '_team_sharing_policy_value', - '_team_sharing_policy_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - public_sharing_policy=None, - team_sharing_policy=None): + event_uuid=None): self._event_uuid_value = None self._event_uuid_present = False - self._public_sharing_policy_value = None - self._public_sharing_policy_present = False - self._team_sharing_policy_value = None - self._team_sharing_policy_present = False if event_uuid is not None: self.event_uuid = event_uuid - if public_sharing_policy is not None: - self.public_sharing_policy = public_sharing_policy - if team_sharing_policy is not None: - self.team_sharing_policy = team_sharing_policy @property def event_uuid(self): @@ -41056,72 +48494,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - @property - def public_sharing_policy(self): - """ - Sharing policy with external users. Might be missing due to historical - data gap. - - :rtype: str - """ - if self._public_sharing_policy_present: - return self._public_sharing_policy_value - else: - return None - - @public_sharing_policy.setter - def public_sharing_policy(self, val): - if val is None: - del self.public_sharing_policy - return - val = self._public_sharing_policy_validator.validate(val) - self._public_sharing_policy_value = val - self._public_sharing_policy_present = True - - @public_sharing_policy.deleter - def public_sharing_policy(self): - self._public_sharing_policy_value = None - self._public_sharing_policy_present = False - - @property - def team_sharing_policy(self): - """ - Sharing policy with team. Might be missing due to historical data gap. - - :rtype: str - """ - if self._team_sharing_policy_present: - return self._team_sharing_policy_value - else: - return None - - @team_sharing_policy.setter - def team_sharing_policy(self, val): - if val is None: - del self.team_sharing_policy - return - val = self._team_sharing_policy_validator.validate(val) - self._team_sharing_policy_value = val - self._team_sharing_policy_present = True - - @team_sharing_policy.deleter - def team_sharing_policy(self): - self._team_sharing_policy_value = None - self._team_sharing_policy_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocChangeSharingPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperFolderTeamInviteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocChangeSharingPolicyDetails(event_uuid={!r}, public_sharing_policy={!r}, team_sharing_policy={!r})'.format( + return 'PaperFolderTeamInviteDetails(event_uuid={!r})'.format( self._event_uuid_value, - self._public_sharing_policy_value, - self._team_sharing_policy_value, ) -PaperDocChangeSharingPolicyDetails_validator = bv.Struct(PaperDocChangeSharingPolicyDetails) +PaperFolderTeamInviteDetails_validator = bv.Struct(PaperFolderTeamInviteDetails) -class PaperDocChangeSharingPolicyType(bb.Struct): +class PaperFolderTeamInviteType(bb.Struct): __slots__ = [ '_description_value', @@ -41158,57 +48541,96 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocChangeSharingPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperFolderTeamInviteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocChangeSharingPolicyType(description={!r})'.format( + return 'PaperFolderTeamInviteType(description={!r})'.format( self._description_value, ) -PaperDocChangeSharingPolicyType_validator = bv.Struct(PaperDocChangeSharingPolicyType) +PaperFolderTeamInviteType_validator = bv.Struct(PaperFolderTeamInviteType) -class PaperDocChangeSubscriptionDetails(bb.Struct): +class PaperMemberPolicy(bb.Union): """ - Followed/unfollowed Paper doc. + Policy for controlling if team members can share Paper documents externally. - :ivar team_log.PaperDocChangeSubscriptionDetails.event_uuid: Event unique + 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 + anyone_with_link = None + # Attribute is overwritten below the class definition + only_team = None + # Attribute is overwritten below the class definition + team_and_explicitly_shared = None + # Attribute is overwritten below the class definition + other = None + + def is_anyone_with_link(self): + """ + Check if the union tag is ``anyone_with_link``. + + :rtype: bool + """ + return self._tag == 'anyone_with_link' + + def is_only_team(self): + """ + Check if the union tag is ``only_team``. + + :rtype: bool + """ + return self._tag == 'only_team' + + def is_team_and_explicitly_shared(self): + """ + Check if the union tag is ``team_and_explicitly_shared``. + + :rtype: bool + """ + return self._tag == 'team_and_explicitly_shared' + + 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(PaperMemberPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperMemberPolicy(%r, %r)' % (self._tag, self._value) + +PaperMemberPolicy_validator = bv.Union(PaperMemberPolicy) + +class PaperPublishedLinkCreateDetails(bb.Struct): + """ + Published doc. + + :ivar team_log.PaperPublishedLinkCreateDetails.event_uuid: Event unique identifier. - :ivar team_log.PaperDocChangeSubscriptionDetails.new_subscription_level: New - doc subscription level. - :ivar - team_log.PaperDocChangeSubscriptionDetails.previous_subscription_level: - Previous doc subscription level. Might be missing due to historical data - gap. """ __slots__ = [ '_event_uuid_value', '_event_uuid_present', - '_new_subscription_level_value', - '_new_subscription_level_present', - '_previous_subscription_level_value', - '_previous_subscription_level_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - new_subscription_level=None, - previous_subscription_level=None): + event_uuid=None): self._event_uuid_value = None self._event_uuid_present = False - self._new_subscription_level_value = None - self._new_subscription_level_present = False - self._previous_subscription_level_value = None - self._previous_subscription_level_present = False if event_uuid is not None: self.event_uuid = event_uuid - if new_subscription_level is not None: - self.new_subscription_level = new_subscription_level - if previous_subscription_level is not None: - self.previous_subscription_level = previous_subscription_level @property def event_uuid(self): @@ -41233,69 +48655,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - @property - def new_subscription_level(self): - """ - New doc subscription level. - - :rtype: str - """ - if self._new_subscription_level_present: - return self._new_subscription_level_value - else: - raise AttributeError("missing required field 'new_subscription_level'") - - @new_subscription_level.setter - def new_subscription_level(self, val): - val = self._new_subscription_level_validator.validate(val) - self._new_subscription_level_value = val - self._new_subscription_level_present = True - - @new_subscription_level.deleter - def new_subscription_level(self): - self._new_subscription_level_value = None - self._new_subscription_level_present = False - - @property - def previous_subscription_level(self): - """ - Previous doc subscription level. Might be missing due to historical data - gap. - - :rtype: str - """ - if self._previous_subscription_level_present: - return self._previous_subscription_level_value - else: - return None - - @previous_subscription_level.setter - def previous_subscription_level(self, val): - if val is None: - del self.previous_subscription_level - return - val = self._previous_subscription_level_validator.validate(val) - self._previous_subscription_level_value = val - self._previous_subscription_level_present = True - - @previous_subscription_level.deleter - def previous_subscription_level(self): - self._previous_subscription_level_value = None - self._previous_subscription_level_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocChangeSubscriptionDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperPublishedLinkCreateDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocChangeSubscriptionDetails(event_uuid={!r}, new_subscription_level={!r}, previous_subscription_level={!r})'.format( + return 'PaperPublishedLinkCreateDetails(event_uuid={!r})'.format( self._event_uuid_value, - self._new_subscription_level_value, - self._previous_subscription_level_value, ) -PaperDocChangeSubscriptionDetails_validator = bv.Struct(PaperDocChangeSubscriptionDetails) +PaperPublishedLinkCreateDetails_validator = bv.Struct(PaperPublishedLinkCreateDetails) -class PaperDocChangeSubscriptionType(bb.Struct): +class PaperPublishedLinkCreateType(bb.Struct): __slots__ = [ '_description_value', @@ -41332,46 +48702,37 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocChangeSubscriptionType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperPublishedLinkCreateType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocChangeSubscriptionType(description={!r})'.format( + return 'PaperPublishedLinkCreateType(description={!r})'.format( self._description_value, ) -PaperDocChangeSubscriptionType_validator = bv.Struct(PaperDocChangeSubscriptionType) +PaperPublishedLinkCreateType_validator = bv.Struct(PaperPublishedLinkCreateType) -class PaperDocDeleteCommentDetails(bb.Struct): +class PaperPublishedLinkDisabledDetails(bb.Struct): """ - Deleted Paper doc comment. + Unpublished doc. - :ivar team_log.PaperDocDeleteCommentDetails.event_uuid: Event unique + :ivar team_log.PaperPublishedLinkDisabledDetails.event_uuid: Event unique identifier. - :ivar team_log.PaperDocDeleteCommentDetails.comment_text: Comment text. - Might be missing due to historical data gap. """ __slots__ = [ '_event_uuid_value', '_event_uuid_present', - '_comment_text_value', - '_comment_text_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - comment_text=None): + event_uuid=None): self._event_uuid_value = None self._event_uuid_present = False - self._comment_text_value = None - self._comment_text_present = False if event_uuid is not None: self.event_uuid = event_uuid - if comment_text is not None: - self.comment_text = comment_text @property def event_uuid(self): @@ -41389,51 +48750,24 @@ def event_uuid(self): def event_uuid(self, val): val = self._event_uuid_validator.validate(val) self._event_uuid_value = val - self._event_uuid_present = True - - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False - - @property - def comment_text(self): - """ - Comment text. Might be missing due to historical data gap. - - :rtype: str - """ - if self._comment_text_present: - return self._comment_text_value - else: - return None - - @comment_text.setter - def comment_text(self, val): - if val is None: - del self.comment_text - return - val = self._comment_text_validator.validate(val) - self._comment_text_value = val - self._comment_text_present = True + self._event_uuid_present = True - @comment_text.deleter - def comment_text(self): - self._comment_text_value = None - self._comment_text_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocDeleteCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperPublishedLinkDisabledDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocDeleteCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + return 'PaperPublishedLinkDisabledDetails(event_uuid={!r})'.format( self._event_uuid_value, - self._comment_text_value, ) -PaperDocDeleteCommentDetails_validator = bv.Struct(PaperDocDeleteCommentDetails) +PaperPublishedLinkDisabledDetails_validator = bv.Struct(PaperPublishedLinkDisabledDetails) -class PaperDocDeleteCommentType(bb.Struct): +class PaperPublishedLinkDisabledType(bb.Struct): __slots__ = [ '_description_value', @@ -41470,21 +48804,22 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocDeleteCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperPublishedLinkDisabledType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocDeleteCommentType(description={!r})'.format( + return 'PaperPublishedLinkDisabledType(description={!r})'.format( self._description_value, ) -PaperDocDeleteCommentType_validator = bv.Struct(PaperDocDeleteCommentType) +PaperPublishedLinkDisabledType_validator = bv.Struct(PaperPublishedLinkDisabledType) -class PaperDocDeletedDetails(bb.Struct): +class PaperPublishedLinkViewDetails(bb.Struct): """ - Archived Paper doc. + Viewed published doc. - :ivar team_log.PaperDocDeletedDetails.event_uuid: Event unique identifier. + :ivar team_log.PaperPublishedLinkViewDetails.event_uuid: Event unique + identifier. """ __slots__ = [ @@ -41524,17 +48859,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocDeletedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperPublishedLinkViewDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocDeletedDetails(event_uuid={!r})'.format( + return 'PaperPublishedLinkViewDetails(event_uuid={!r})'.format( self._event_uuid_value, ) -PaperDocDeletedDetails_validator = bv.Struct(PaperDocDeletedDetails) +PaperPublishedLinkViewDetails_validator = bv.Struct(PaperPublishedLinkViewDetails) -class PaperDocDeletedType(bb.Struct): +class PaperPublishedLinkViewType(bb.Struct): __slots__ = [ '_description_value', @@ -41571,104 +48906,189 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocDeletedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperPublishedLinkViewType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocDeletedType(description={!r})'.format( + return 'PaperPublishedLinkViewType(description={!r})'.format( self._description_value, ) -PaperDocDeletedType_validator = bv.Struct(PaperDocDeletedType) +PaperPublishedLinkViewType_validator = bv.Struct(PaperPublishedLinkViewType) -class PaperDocDownloadDetails(bb.Struct): +class ParticipantLogInfo(bb.Union): """ - Downloaded Paper doc in specific format. + A user or group - :ivar team_log.PaperDocDownloadDetails.event_uuid: Event unique identifier. - :ivar team_log.PaperDocDownloadDetails.export_file_format: Export file - format. + 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 UserLogInfo ParticipantLogInfo.user: A user with a Dropbox account. + :ivar GroupLogInfo ParticipantLogInfo.group: Group details. """ - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_export_file_format_value', - '_export_file_format_present', - ] + _catch_all = 'other' + # Attribute is overwritten below the class definition + other = None - _has_required_fields = True + @classmethod + def user(cls, val): + """ + Create an instance of this class set to the ``user`` tag with value + ``val``. - def __init__(self, - event_uuid=None, - export_file_format=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._export_file_format_value = None - self._export_file_format_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if export_file_format is not None: - self.export_file_format = export_file_format + :param UserLogInfo val: + :rtype: ParticipantLogInfo + """ + return cls('user', val) - @property - def event_uuid(self): + @classmethod + def group(cls, val): """ - Event unique identifier. + Create an instance of this class set to the ``group`` tag with value + ``val``. - :rtype: str + :param GroupLogInfo val: + :rtype: ParticipantLogInfo """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") + return cls('group', val) - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + def is_user(self): + """ + Check if the union tag is ``user``. - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + :rtype: bool + """ + return self._tag == 'user' - @property - def export_file_format(self): + def is_group(self): """ - Export file format. + Check if the union tag is ``group``. - :rtype: team_log.PaperDownloadFormat + :rtype: bool """ - if self._export_file_format_present: - return self._export_file_format_value - else: - raise AttributeError("missing required field 'export_file_format'") + return self._tag == 'group' - @export_file_format.setter - def export_file_format(self, val): - self._export_file_format_validator.validate_type_only(val) - self._export_file_format_value = val - self._export_file_format_present = True + def is_other(self): + """ + Check if the union tag is ``other``. - @export_file_format.deleter - def export_file_format(self): - self._export_file_format_value = None - self._export_file_format_present = False + :rtype: bool + """ + return self._tag == 'other' + + def get_user(self): + """ + A user with a Dropbox account. + + Only call this if :meth:`is_user` is true. + + :rtype: UserLogInfo + """ + if not self.is_user(): + raise AttributeError("tag 'user' not set") + return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocDownloadDetails, self)._process_custom_annotations(annotation_type, processor) + def get_group(self): + """ + Group details. + + Only call this if :meth:`is_group` is true. + + :rtype: GroupLogInfo + """ + if not self.is_group(): + raise AttributeError("tag 'group' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ParticipantLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocDownloadDetails(event_uuid={!r}, export_file_format={!r})'.format( - self._event_uuid_value, - self._export_file_format_value, - ) + return 'ParticipantLogInfo(%r, %r)' % (self._tag, self._value) -PaperDocDownloadDetails_validator = bv.Struct(PaperDocDownloadDetails) +ParticipantLogInfo_validator = bv.Union(ParticipantLogInfo) -class PaperDocDownloadType(bb.Struct): +class PassPolicy(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 + enabled = None + # Attribute is overwritten below the class definition + allow = None + # Attribute is overwritten below the class definition + disabled = None + # Attribute is overwritten below the class definition + other = None + + def is_enabled(self): + """ + Check if the union tag is ``enabled``. + + :rtype: bool + """ + return self._tag == 'enabled' + + def is_allow(self): + """ + Check if the union tag is ``allow``. + + :rtype: bool + """ + return self._tag == 'allow' + + def is_disabled(self): + """ + Check if the union tag is ``disabled``. + + :rtype: bool + """ + return self._tag == 'disabled' + + 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(PassPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PassPolicy(%r, %r)' % (self._tag, self._value) + +PassPolicy_validator = bv.Union(PassPolicy) + +class PasswordChangeDetails(bb.Struct): + """ + Changed password. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PasswordChangeDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PasswordChangeDetails()' + +PasswordChangeDetails_validator = bv.Struct(PasswordChangeDetails) + +class PasswordChangeType(bb.Struct): __slots__ = [ '_description_value', @@ -41705,108 +49125,106 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocDownloadType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PasswordChangeType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocDownloadType(description={!r})'.format( + return 'PasswordChangeType(description={!r})'.format( self._description_value, ) -PaperDocDownloadType_validator = bv.Struct(PaperDocDownloadType) +PasswordChangeType_validator = bv.Struct(PasswordChangeType) -class PaperDocEditCommentDetails(bb.Struct): +class PasswordResetAllDetails(bb.Struct): """ - Edited Paper doc comment. - - :ivar team_log.PaperDocEditCommentDetails.event_uuid: Event unique - identifier. - :ivar team_log.PaperDocEditCommentDetails.comment_text: Comment text. Might - be missing due to historical data gap. + Reset all team member passwords. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_comment_text_value', - '_comment_text_present', + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PasswordResetAllDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PasswordResetAllDetails()' + +PasswordResetAllDetails_validator = bv.Struct(PasswordResetAllDetails) + +class PasswordResetAllType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - comment_text=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._comment_text_value = None - self._comment_text_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if comment_text is not None: - self.comment_text = comment_text + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def event_uuid(self): + def description(self): """ - Event unique identifier. - :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._description_present: + return self._description_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'description'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - @property - def comment_text(self): - """ - Comment text. Might be missing due to historical data gap. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PasswordResetAllType, self)._process_custom_annotations(annotation_type, field_path, processor) - :rtype: str - """ - if self._comment_text_present: - return self._comment_text_value - else: - return None + def __repr__(self): + return 'PasswordResetAllType(description={!r})'.format( + self._description_value, + ) - @comment_text.setter - def comment_text(self, val): - if val is None: - del self.comment_text - return - val = self._comment_text_validator.validate(val) - self._comment_text_value = val - self._comment_text_present = True +PasswordResetAllType_validator = bv.Struct(PasswordResetAllType) - @comment_text.deleter - def comment_text(self): - self._comment_text_value = None - self._comment_text_present = False +class PasswordResetDetails(bb.Struct): + """ + Reset password. + """ + + __slots__ = [ + ] + + _has_required_fields = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocEditCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PasswordResetDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocEditCommentDetails(event_uuid={!r}, comment_text={!r})'.format( - self._event_uuid_value, - self._comment_text_value, - ) + return 'PasswordResetDetails()' -PaperDocEditCommentDetails_validator = bv.Struct(PaperDocEditCommentDetails) +PasswordResetDetails_validator = bv.Struct(PasswordResetDetails) -class PaperDocEditCommentType(bb.Struct): +class PasswordResetType(bb.Struct): __slots__ = [ '_description_value', @@ -41843,71 +49261,202 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocEditCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PasswordResetType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocEditCommentType(description={!r})'.format( + return 'PasswordResetType(description={!r})'.format( self._description_value, ) -PaperDocEditCommentType_validator = bv.Struct(PaperDocEditCommentType) +PasswordResetType_validator = bv.Struct(PasswordResetType) -class PaperDocEditDetails(bb.Struct): +class PathLogInfo(bb.Struct): """ - Edited Paper doc. + Path's details. - :ivar team_log.PaperDocEditDetails.event_uuid: Event unique identifier. + :ivar team_log.PathLogInfo.contextual: Fully qualified path relative to + event's context. Might be missing due to historical data gap. + :ivar team_log.PathLogInfo.namespace_relative: Path relative to the + namespace containing the content. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_contextual_value', + '_contextual_present', + '_namespace_relative_value', + '_namespace_relative_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + namespace_relative=None, + contextual=None): + self._contextual_value = None + self._contextual_present = False + self._namespace_relative_value = None + self._namespace_relative_present = False + if contextual is not None: + self.contextual = contextual + if namespace_relative is not None: + self.namespace_relative = namespace_relative @property - def event_uuid(self): + def contextual(self): """ - Event unique identifier. + Fully qualified path relative to event's context. Might be missing due + to historical data gap. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._contextual_present: + return self._contextual_value else: - raise AttributeError("missing required field 'event_uuid'") + return None - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @contextual.setter + def contextual(self, val): + if val is None: + del self.contextual + return + val = self._contextual_validator.validate(val) + self._contextual_value = val + self._contextual_present = True + + @contextual.deleter + def contextual(self): + self._contextual_value = None + self._contextual_present = False + + @property + def namespace_relative(self): + """ + Path relative to the namespace containing the content. + + :rtype: NamespaceRelativePathLogInfo + """ + if self._namespace_relative_present: + return self._namespace_relative_value + else: + raise AttributeError("missing required field 'namespace_relative'") + + @namespace_relative.setter + def namespace_relative(self, val): + self._namespace_relative_validator.validate_type_only(val) + self._namespace_relative_value = val + self._namespace_relative_present = True + + @namespace_relative.deleter + def namespace_relative(self): + self._namespace_relative_value = None + self._namespace_relative_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PathLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PathLogInfo(namespace_relative={!r}, contextual={!r})'.format( + self._namespace_relative_value, + self._contextual_value, + ) + +PathLogInfo_validator = bv.Struct(PathLogInfo) + +class PermanentDeleteChangePolicyDetails(bb.Struct): + """ + Enabled/disabled ability of team members to permanently delete content. + + :ivar team_log.PermanentDeleteChangePolicyDetails.new_value: New permanent + delete content policy. + :ivar team_log.PermanentDeleteChangePolicyDetails.previous_value: Previous + permanent delete content policy. Might be missing due to historical data + gap. + """ + + __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + New permanent delete content policy. + + :rtype: ContentPermanentDeletePolicy + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous permanent delete content policy. Might be missing due to + historical data gap. + + :rtype: ContentPermanentDeletePolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocEditDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PermanentDeleteChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocEditDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'PermanentDeleteChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, ) -PaperDocEditDetails_validator = bv.Struct(PaperDocEditDetails) +PermanentDeleteChangePolicyDetails_validator = bv.Struct(PermanentDeleteChangePolicyDetails) -class PaperDocEditType(bb.Struct): +class PermanentDeleteChangePolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -41944,444 +49493,778 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocEditType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PermanentDeleteChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocEditType(description={!r})'.format( + return 'PermanentDeleteChangePolicyType(description={!r})'.format( self._description_value, ) -PaperDocEditType_validator = bv.Struct(PaperDocEditType) +PermanentDeleteChangePolicyType_validator = bv.Struct(PermanentDeleteChangePolicyType) -class PaperDocFollowedDetails(bb.Struct): +class PlacementRestriction(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. """ - Followed Paper doc. - :ivar team_log.PaperDocFollowedDetails.event_uuid: Event unique identifier. + _catch_all = 'other' + # Attribute is overwritten below the class definition + australia_only = None + # Attribute is overwritten below the class definition + europe_only = None + # Attribute is overwritten below the class definition + japan_only = None + # Attribute is overwritten below the class definition + none = None + # Attribute is overwritten below the class definition + other = None + + def is_australia_only(self): + """ + Check if the union tag is ``australia_only``. + + :rtype: bool + """ + return self._tag == 'australia_only' + + def is_europe_only(self): + """ + Check if the union tag is ``europe_only``. + + :rtype: bool + """ + return self._tag == 'europe_only' + + def is_japan_only(self): + """ + Check if the union tag is ``japan_only``. + + :rtype: bool + """ + return self._tag == 'japan_only' + + def is_none(self): + """ + Check if the union tag is ``none``. + + :rtype: bool + """ + return self._tag == 'none' + + 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(PlacementRestriction, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PlacementRestriction(%r, %r)' % (self._tag, self._value) + +PlacementRestriction_validator = bv.Union(PlacementRestriction) + +class PrimaryTeamRequestAcceptedDetails(bb.Struct): + """ + Team merge request acceptance details shown to the primary team + + :ivar team_log.PrimaryTeamRequestAcceptedDetails.secondary_team: The + secondary team name. + :ivar team_log.PrimaryTeamRequestAcceptedDetails.sent_by: The name of the + secondary team admin who sent the request originally. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_secondary_team_value', + '_secondary_team_present', + '_sent_by_value', + '_sent_by_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + secondary_team=None, + sent_by=None): + self._secondary_team_value = None + self._secondary_team_present = False + self._sent_by_value = None + self._sent_by_present = False + if secondary_team is not None: + self.secondary_team = secondary_team + if sent_by is not None: + self.sent_by = sent_by @property - def event_uuid(self): + def secondary_team(self): """ - Event unique identifier. + The secondary team name. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._secondary_team_present: + return self._secondary_team_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'secondary_team'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @secondary_team.setter + def secondary_team(self, val): + val = self._secondary_team_validator.validate(val) + self._secondary_team_value = val + self._secondary_team_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @secondary_team.deleter + def secondary_team(self): + self._secondary_team_value = None + self._secondary_team_present = False + + @property + def sent_by(self): + """ + The name of the secondary team admin who sent the request originally. + + :rtype: str + """ + if self._sent_by_present: + return self._sent_by_value + else: + raise AttributeError("missing required field 'sent_by'") + + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True + + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocFollowedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PrimaryTeamRequestAcceptedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocFollowedDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'PrimaryTeamRequestAcceptedDetails(secondary_team={!r}, sent_by={!r})'.format( + self._secondary_team_value, + self._sent_by_value, ) -PaperDocFollowedDetails_validator = bv.Struct(PaperDocFollowedDetails) +PrimaryTeamRequestAcceptedDetails_validator = bv.Struct(PrimaryTeamRequestAcceptedDetails) -class PaperDocFollowedType(bb.Struct): +class PrimaryTeamRequestCanceledDetails(bb.Struct): + """ + Team merge request cancellation details shown to the primary team + + :ivar team_log.PrimaryTeamRequestCanceledDetails.secondary_team: The + secondary team name. + :ivar team_log.PrimaryTeamRequestCanceledDetails.sent_by: The name of the + secondary team admin who sent the request originally. + """ __slots__ = [ - '_description_value', - '_description_present', + '_secondary_team_value', + '_secondary_team_present', + '_sent_by_value', + '_sent_by_present', ] _has_required_fields = True def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + secondary_team=None, + sent_by=None): + self._secondary_team_value = None + self._secondary_team_present = False + self._sent_by_value = None + self._sent_by_present = False + if secondary_team is not None: + self.secondary_team = secondary_team + if sent_by is not None: + self.sent_by = sent_by @property - def description(self): + def secondary_team(self): """ + The secondary team name. + :rtype: str """ - if self._description_present: - return self._description_value + if self._secondary_team_present: + return self._secondary_team_value else: - raise AttributeError("missing required field 'description'") + raise AttributeError("missing required field 'secondary_team'") - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @secondary_team.setter + def secondary_team(self, val): + val = self._secondary_team_validator.validate(val) + self._secondary_team_value = val + self._secondary_team_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @secondary_team.deleter + def secondary_team(self): + self._secondary_team_value = None + self._secondary_team_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocFollowedType, self)._process_custom_annotations(annotation_type, processor) + @property + def sent_by(self): + """ + The name of the secondary team admin who sent the request originally. + + :rtype: str + """ + if self._sent_by_present: + return self._sent_by_value + else: + raise AttributeError("missing required field 'sent_by'") + + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True + + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PrimaryTeamRequestCanceledDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocFollowedType(description={!r})'.format( - self._description_value, + return 'PrimaryTeamRequestCanceledDetails(secondary_team={!r}, sent_by={!r})'.format( + self._secondary_team_value, + self._sent_by_value, ) -PaperDocFollowedType_validator = bv.Struct(PaperDocFollowedType) +PrimaryTeamRequestCanceledDetails_validator = bv.Struct(PrimaryTeamRequestCanceledDetails) -class PaperDocMentionDetails(bb.Struct): +class PrimaryTeamRequestExpiredDetails(bb.Struct): """ - Mentioned team member in Paper doc. + Team merge request expiration details shown to the primary team - :ivar team_log.PaperDocMentionDetails.event_uuid: Event unique identifier. + :ivar team_log.PrimaryTeamRequestExpiredDetails.secondary_team: The + secondary team name. + :ivar team_log.PrimaryTeamRequestExpiredDetails.sent_by: The name of the + secondary team admin who sent the request originally. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_secondary_team_value', + '_secondary_team_present', + '_sent_by_value', + '_sent_by_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + secondary_team=None, + sent_by=None): + self._secondary_team_value = None + self._secondary_team_present = False + self._sent_by_value = None + self._sent_by_present = False + if secondary_team is not None: + self.secondary_team = secondary_team + if sent_by is not None: + self.sent_by = sent_by @property - def event_uuid(self): + def secondary_team(self): """ - Event unique identifier. + The secondary team name. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._secondary_team_present: + return self._secondary_team_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'secondary_team'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @secondary_team.setter + def secondary_team(self, val): + val = self._secondary_team_validator.validate(val) + self._secondary_team_value = val + self._secondary_team_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @secondary_team.deleter + def secondary_team(self): + self._secondary_team_value = None + self._secondary_team_present = False + + @property + def sent_by(self): + """ + The name of the secondary team admin who sent the request originally. + + :rtype: str + """ + if self._sent_by_present: + return self._sent_by_value + else: + raise AttributeError("missing required field 'sent_by'") + + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocMentionDetails, self)._process_custom_annotations(annotation_type, processor) + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PrimaryTeamRequestExpiredDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocMentionDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'PrimaryTeamRequestExpiredDetails(secondary_team={!r}, sent_by={!r})'.format( + self._secondary_team_value, + self._sent_by_value, ) -PaperDocMentionDetails_validator = bv.Struct(PaperDocMentionDetails) +PrimaryTeamRequestExpiredDetails_validator = bv.Struct(PrimaryTeamRequestExpiredDetails) -class PaperDocMentionType(bb.Struct): +class PrimaryTeamRequestReminderDetails(bb.Struct): + """ + Team merge request reminder details shown to the primary team + + :ivar team_log.PrimaryTeamRequestReminderDetails.secondary_team: The + secondary team name. + :ivar team_log.PrimaryTeamRequestReminderDetails.sent_to: The name of the + primary team admin the request was sent to. + """ __slots__ = [ - '_description_value', - '_description_present', + '_secondary_team_value', + '_secondary_team_present', + '_sent_to_value', + '_sent_to_present', ] _has_required_fields = True def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + secondary_team=None, + sent_to=None): + self._secondary_team_value = None + self._secondary_team_present = False + self._sent_to_value = None + self._sent_to_present = False + if secondary_team is not None: + self.secondary_team = secondary_team + if sent_to is not None: + self.sent_to = sent_to @property - def description(self): + def secondary_team(self): """ + The secondary team name. + :rtype: str """ - if self._description_present: - return self._description_value + if self._secondary_team_present: + return self._secondary_team_value else: - raise AttributeError("missing required field 'description'") + raise AttributeError("missing required field 'secondary_team'") - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @secondary_team.setter + def secondary_team(self, val): + val = self._secondary_team_validator.validate(val) + self._secondary_team_value = val + self._secondary_team_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @secondary_team.deleter + def secondary_team(self): + self._secondary_team_value = None + self._secondary_team_present = False + + @property + def sent_to(self): + """ + The name of the primary team admin the request was sent to. + + :rtype: str + """ + if self._sent_to_present: + return self._sent_to_value + else: + raise AttributeError("missing required field 'sent_to'") - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocMentionType, self)._process_custom_annotations(annotation_type, processor) + @sent_to.setter + def sent_to(self, val): + val = self._sent_to_validator.validate(val) + self._sent_to_value = val + self._sent_to_present = True + + @sent_to.deleter + def sent_to(self): + self._sent_to_value = None + self._sent_to_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PrimaryTeamRequestReminderDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocMentionType(description={!r})'.format( - self._description_value, + return 'PrimaryTeamRequestReminderDetails(secondary_team={!r}, sent_to={!r})'.format( + self._secondary_team_value, + self._sent_to_value, ) -PaperDocMentionType_validator = bv.Struct(PaperDocMentionType) +PrimaryTeamRequestReminderDetails_validator = bv.Struct(PrimaryTeamRequestReminderDetails) -class PaperDocOwnershipChangedDetails(bb.Struct): +class QuickActionType(bb.Union): """ - Transferred ownership of Paper doc. + Quick action type. - :ivar team_log.PaperDocOwnershipChangedDetails.event_uuid: Event unique - identifier. - :ivar team_log.PaperDocOwnershipChangedDetails.old_owner_user_id: Previous - owner. - :ivar team_log.PaperDocOwnershipChangedDetails.new_owner_user_id: New owner. + 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. """ - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_old_owner_user_id_value', - '_old_owner_user_id_present', - '_new_owner_user_id_value', - '_new_owner_user_id_present', - ] + _catch_all = 'other' + # Attribute is overwritten below the class definition + delete_shared_link = None + # Attribute is overwritten below the class definition + reset_password = None + # Attribute is overwritten below the class definition + restore_file_or_folder = None + # Attribute is overwritten below the class definition + unlink_app = None + # Attribute is overwritten below the class definition + unlink_session = None + # Attribute is overwritten below the class definition + other = None - _has_required_fields = True + def is_delete_shared_link(self): + """ + Check if the union tag is ``delete_shared_link``. - def __init__(self, - event_uuid=None, - new_owner_user_id=None, - old_owner_user_id=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._old_owner_user_id_value = None - self._old_owner_user_id_present = False - self._new_owner_user_id_value = None - self._new_owner_user_id_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if old_owner_user_id is not None: - self.old_owner_user_id = old_owner_user_id - if new_owner_user_id is not None: - self.new_owner_user_id = new_owner_user_id + :rtype: bool + """ + return self._tag == 'delete_shared_link' - @property - def event_uuid(self): + def is_reset_password(self): """ - Event unique identifier. + Check if the union tag is ``reset_password``. - :rtype: str + :rtype: bool """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") + return self._tag == 'reset_password' - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + def is_restore_file_or_folder(self): + """ + Check if the union tag is ``restore_file_or_folder``. - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + :rtype: bool + """ + return self._tag == 'restore_file_or_folder' + + def is_unlink_app(self): + """ + Check if the union tag is ``unlink_app``. + + :rtype: bool + """ + return self._tag == 'unlink_app' + + def is_unlink_session(self): + """ + Check if the union tag is ``unlink_session``. + + :rtype: bool + """ + return self._tag == 'unlink_session' + + 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(QuickActionType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'QuickActionType(%r, %r)' % (self._tag, self._value) + +QuickActionType_validator = bv.Union(QuickActionType) + +class RelocateAssetReferencesLogInfo(bb.Struct): + """ + Provides the indices of the source asset and the destination asset for a + relocate action. + + :ivar team_log.RelocateAssetReferencesLogInfo.src_asset_index: Source asset + position in the Assets list. + :ivar team_log.RelocateAssetReferencesLogInfo.dest_asset_index: Destination + asset position in the Assets list. + """ + + __slots__ = [ + '_src_asset_index_value', + '_src_asset_index_present', + '_dest_asset_index_value', + '_dest_asset_index_present', + ] + + _has_required_fields = True + + def __init__(self, + src_asset_index=None, + dest_asset_index=None): + self._src_asset_index_value = None + self._src_asset_index_present = False + self._dest_asset_index_value = None + self._dest_asset_index_present = False + if src_asset_index is not None: + self.src_asset_index = src_asset_index + if dest_asset_index is not None: + self.dest_asset_index = dest_asset_index @property - def old_owner_user_id(self): + def src_asset_index(self): """ - Previous owner. + Source asset position in the Assets list. - :rtype: str + :rtype: int """ - if self._old_owner_user_id_present: - return self._old_owner_user_id_value + if self._src_asset_index_present: + return self._src_asset_index_value else: - return None + raise AttributeError("missing required field 'src_asset_index'") - @old_owner_user_id.setter - def old_owner_user_id(self, val): - if val is None: - del self.old_owner_user_id - return - val = self._old_owner_user_id_validator.validate(val) - self._old_owner_user_id_value = val - self._old_owner_user_id_present = True + @src_asset_index.setter + def src_asset_index(self, val): + val = self._src_asset_index_validator.validate(val) + self._src_asset_index_value = val + self._src_asset_index_present = True - @old_owner_user_id.deleter - def old_owner_user_id(self): - self._old_owner_user_id_value = None - self._old_owner_user_id_present = False + @src_asset_index.deleter + def src_asset_index(self): + self._src_asset_index_value = None + self._src_asset_index_present = False @property - def new_owner_user_id(self): + def dest_asset_index(self): """ - New owner. + Destination asset position in the Assets list. - :rtype: str + :rtype: int """ - if self._new_owner_user_id_present: - return self._new_owner_user_id_value + if self._dest_asset_index_present: + return self._dest_asset_index_value else: - raise AttributeError("missing required field 'new_owner_user_id'") + raise AttributeError("missing required field 'dest_asset_index'") - @new_owner_user_id.setter - def new_owner_user_id(self, val): - val = self._new_owner_user_id_validator.validate(val) - self._new_owner_user_id_value = val - self._new_owner_user_id_present = True + @dest_asset_index.setter + def dest_asset_index(self, val): + val = self._dest_asset_index_validator.validate(val) + self._dest_asset_index_value = val + self._dest_asset_index_present = True - @new_owner_user_id.deleter - def new_owner_user_id(self): - self._new_owner_user_id_value = None - self._new_owner_user_id_present = False + @dest_asset_index.deleter + def dest_asset_index(self): + self._dest_asset_index_value = None + self._dest_asset_index_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocOwnershipChangedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RelocateAssetReferencesLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocOwnershipChangedDetails(event_uuid={!r}, new_owner_user_id={!r}, old_owner_user_id={!r})'.format( - self._event_uuid_value, - self._new_owner_user_id_value, - self._old_owner_user_id_value, + return 'RelocateAssetReferencesLogInfo(src_asset_index={!r}, dest_asset_index={!r})'.format( + self._src_asset_index_value, + self._dest_asset_index_value, ) -PaperDocOwnershipChangedDetails_validator = bv.Struct(PaperDocOwnershipChangedDetails) +RelocateAssetReferencesLogInfo_validator = bv.Struct(RelocateAssetReferencesLogInfo) -class PaperDocOwnershipChangedType(bb.Struct): +class ResellerLogInfo(bb.Struct): + """ + Reseller information. + + :ivar team_log.ResellerLogInfo.reseller_name: Reseller name. + :ivar team_log.ResellerLogInfo.reseller_email: Reseller email. + """ __slots__ = [ - '_description_value', - '_description_present', + '_reseller_name_value', + '_reseller_name_present', + '_reseller_email_value', + '_reseller_email_present', ] _has_required_fields = True def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + reseller_name=None, + reseller_email=None): + self._reseller_name_value = None + self._reseller_name_present = False + self._reseller_email_value = None + self._reseller_email_present = False + if reseller_name is not None: + self.reseller_name = reseller_name + if reseller_email is not None: + self.reseller_email = reseller_email @property - def description(self): + def reseller_name(self): """ + Reseller name. + :rtype: str """ - if self._description_present: - return self._description_value + if self._reseller_name_present: + return self._reseller_name_value else: - raise AttributeError("missing required field 'description'") + raise AttributeError("missing required field 'reseller_name'") - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @reseller_name.setter + def reseller_name(self, val): + val = self._reseller_name_validator.validate(val) + self._reseller_name_value = val + self._reseller_name_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @reseller_name.deleter + def reseller_name(self): + self._reseller_name_value = None + self._reseller_name_present = False + + @property + def reseller_email(self): + """ + Reseller email. + + :rtype: str + """ + if self._reseller_email_present: + return self._reseller_email_value + else: + raise AttributeError("missing required field 'reseller_email'") + + @reseller_email.setter + def reseller_email(self, val): + val = self._reseller_email_validator.validate(val) + self._reseller_email_value = val + self._reseller_email_present = True + + @reseller_email.deleter + def reseller_email(self): + self._reseller_email_value = None + self._reseller_email_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocOwnershipChangedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ResellerLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocOwnershipChangedType(description={!r})'.format( - self._description_value, + return 'ResellerLogInfo(reseller_name={!r}, reseller_email={!r})'.format( + self._reseller_name_value, + self._reseller_email_value, ) -PaperDocOwnershipChangedType_validator = bv.Struct(PaperDocOwnershipChangedType) +ResellerLogInfo_validator = bv.Struct(ResellerLogInfo) -class PaperDocRequestAccessDetails(bb.Struct): +class ResellerSupportChangePolicyDetails(bb.Struct): """ - Requested access to Paper doc. + Enabled/disabled reseller support. - :ivar team_log.PaperDocRequestAccessDetails.event_uuid: Event unique - identifier. + :ivar team_log.ResellerSupportChangePolicyDetails.new_value: New Reseller + support policy. + :ivar team_log.ResellerSupportChangePolicyDetails.previous_value: Previous + Reseller support policy. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def event_uuid(self): + def new_value(self): """ - Event unique identifier. + New Reseller support policy. - :rtype: str + :rtype: ResellerSupportPolicy """ - if self._event_uuid_present: - return self._event_uuid_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'new_value'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous Reseller support policy. + + :rtype: ResellerSupportPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") + + @previous_value.setter + def previous_value(self, val): + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocRequestAccessDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ResellerSupportChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocRequestAccessDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'ResellerSupportChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, ) -PaperDocRequestAccessDetails_validator = bv.Struct(PaperDocRequestAccessDetails) +ResellerSupportChangePolicyDetails_validator = bv.Struct(ResellerSupportChangePolicyDetails) -class PaperDocRequestAccessType(bb.Struct): +class ResellerSupportChangePolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -42418,108 +50301,88 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocRequestAccessType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ResellerSupportChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocRequestAccessType(description={!r})'.format( + return 'ResellerSupportChangePolicyType(description={!r})'.format( self._description_value, ) -PaperDocRequestAccessType_validator = bv.Struct(PaperDocRequestAccessType) +ResellerSupportChangePolicyType_validator = bv.Struct(ResellerSupportChangePolicyType) -class PaperDocResolveCommentDetails(bb.Struct): +class ResellerSupportPolicy(bb.Union): """ - Resolved Paper doc comment. + Policy for controlling if reseller can access the admin console as + administrator - :ivar team_log.PaperDocResolveCommentDetails.event_uuid: Event unique - identifier. - :ivar team_log.PaperDocResolveCommentDetails.comment_text: Comment text. - Might be missing due to historical data gap. + 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. """ - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_comment_text_value', - '_comment_text_present', - ] - - _has_required_fields = True - - def __init__(self, - event_uuid=None, - comment_text=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._comment_text_value = None - self._comment_text_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if comment_text is not None: - self.comment_text = comment_text + _catch_all = 'other' + # Attribute is overwritten below the class definition + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None - @property - def event_uuid(self): + def is_disabled(self): """ - Event unique identifier. + Check if the union tag is ``disabled``. - :rtype: str + :rtype: bool """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") + return self._tag == 'disabled' - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + def is_enabled(self): + """ + Check if the union tag is ``enabled``. - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + :rtype: bool + """ + return self._tag == 'enabled' - @property - def comment_text(self): + def is_other(self): """ - Comment text. Might be missing due to historical data gap. + Check if the union tag is ``other``. - :rtype: str + :rtype: bool """ - if self._comment_text_present: - return self._comment_text_value - else: - return None + return self._tag == 'other' - @comment_text.setter - def comment_text(self, val): - if val is None: - del self.comment_text - return - val = self._comment_text_validator.validate(val) - self._comment_text_value = val - self._comment_text_present = True + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ResellerSupportPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) - @comment_text.deleter - def comment_text(self): - self._comment_text_value = None - self._comment_text_present = False + def __repr__(self): + return 'ResellerSupportPolicy(%r, %r)' % (self._tag, self._value) + +ResellerSupportPolicy_validator = bv.Union(ResellerSupportPolicy) - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocResolveCommentDetails, self)._process_custom_annotations(annotation_type, processor) +class ResellerSupportSessionEndDetails(bb.Struct): + """ + Ended reseller support session. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ResellerSupportSessionEndDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocResolveCommentDetails(event_uuid={!r}, comment_text={!r})'.format( - self._event_uuid_value, - self._comment_text_value, - ) + return 'ResellerSupportSessionEndDetails()' -PaperDocResolveCommentDetails_validator = bv.Struct(PaperDocResolveCommentDetails) +ResellerSupportSessionEndDetails_validator = bv.Struct(ResellerSupportSessionEndDetails) -class PaperDocResolveCommentType(bb.Struct): +class ResellerSupportSessionEndType(bb.Struct): __slots__ = [ '_description_value', @@ -42556,71 +50419,38 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocResolveCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ResellerSupportSessionEndType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocResolveCommentType(description={!r})'.format( + return 'ResellerSupportSessionEndType(description={!r})'.format( self._description_value, ) -PaperDocResolveCommentType_validator = bv.Struct(PaperDocResolveCommentType) +ResellerSupportSessionEndType_validator = bv.Struct(ResellerSupportSessionEndType) -class PaperDocRevertDetails(bb.Struct): +class ResellerSupportSessionStartDetails(bb.Struct): """ - Restored Paper doc to previous version. - - :ivar team_log.PaperDocRevertDetails.event_uuid: Event unique identifier. + Started reseller support session. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', ] - _has_required_fields = True - - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - - @property - def event_uuid(self): - """ - Event unique identifier. - - :rtype: str - """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") - - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + _has_required_fields = False - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocRevertDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ResellerSupportSessionStartDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocRevertDetails(event_uuid={!r})'.format( - self._event_uuid_value, - ) + return 'ResellerSupportSessionStartDetails()' -PaperDocRevertDetails_validator = bv.Struct(PaperDocRevertDetails) +ResellerSupportSessionStartDetails_validator = bv.Struct(ResellerSupportSessionStartDetails) -class PaperDocRevertType(bb.Struct): +class ResellerSupportSessionStartType(bb.Struct): __slots__ = [ '_description_value', @@ -42657,174 +50487,152 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocRevertType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ResellerSupportSessionStartType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocRevertType(description={!r})'.format( + return 'ResellerSupportSessionStartType(description={!r})'.format( self._description_value, ) -PaperDocRevertType_validator = bv.Struct(PaperDocRevertType) +ResellerSupportSessionStartType_validator = bv.Struct(ResellerSupportSessionStartType) -class PaperDocSlackShareDetails(bb.Struct): +class SecondaryMailsPolicy(bb.Union): """ - Shared Paper doc via Slack. - - :ivar team_log.PaperDocSlackShareDetails.event_uuid: Event unique - identifier. + 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. """ - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - ] + _catch_all = 'other' + # Attribute is overwritten below the class definition + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None - _has_required_fields = True + def is_disabled(self): + """ + Check if the union tag is ``disabled``. - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + :rtype: bool + """ + return self._tag == 'disabled' - @property - def event_uuid(self): + def is_enabled(self): """ - Event unique identifier. + Check if the union tag is ``enabled``. - :rtype: str + :rtype: bool """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") + return self._tag == 'enabled' - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + def is_other(self): + """ + Check if the union tag is ``other``. - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + :rtype: bool + """ + return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocSlackShareDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SecondaryMailsPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocSlackShareDetails(event_uuid={!r})'.format( - self._event_uuid_value, - ) + return 'SecondaryMailsPolicy(%r, %r)' % (self._tag, self._value) -PaperDocSlackShareDetails_validator = bv.Struct(PaperDocSlackShareDetails) +SecondaryMailsPolicy_validator = bv.Union(SecondaryMailsPolicy) -class PaperDocSlackShareType(bb.Struct): +class SecondaryMailsPolicyChangedDetails(bb.Struct): + """ + Secondary mails policy changed. + + :ivar team_log.SecondaryMailsPolicyChangedDetails.previous_value: Previous + secondary mails policy. + :ivar team_log.SecondaryMailsPolicyChangedDetails.new_value: New secondary + mails policy. + """ __slots__ = [ - '_description_value', - '_description_present', + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', ] _has_required_fields = True def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + previous_value=None, + new_value=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value @property - def description(self): + def previous_value(self): """ - :rtype: str + Previous secondary mails policy. + + :rtype: SecondaryMailsPolicy """ - if self._description_present: - return self._description_value + if self._previous_value_present: + return self._previous_value_value else: - raise AttributeError("missing required field 'description'") - - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True - - @description.deleter - def description(self): - self._description_value = None - self._description_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocSlackShareType, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PaperDocSlackShareType(description={!r})'.format( - self._description_value, - ) - -PaperDocSlackShareType_validator = bv.Struct(PaperDocSlackShareType) - -class PaperDocTeamInviteDetails(bb.Struct): - """ - Shared Paper doc with team member. - - :ivar team_log.PaperDocTeamInviteDetails.event_uuid: Event unique - identifier. - """ - - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - ] + raise AttributeError("missing required field 'previous_value'") - _has_required_fields = True + @previous_value.setter + def previous_value(self, val): + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False @property - def event_uuid(self): + def new_value(self): """ - Event unique identifier. + New secondary mails policy. - :rtype: str + :rtype: SecondaryMailsPolicy """ - if self._event_uuid_present: - return self._event_uuid_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'new_value'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocTeamInviteDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SecondaryMailsPolicyChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocTeamInviteDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SecondaryMailsPolicyChangedDetails(previous_value={!r}, new_value={!r})'.format( + self._previous_value_value, + self._new_value_value, ) -PaperDocTeamInviteDetails_validator = bv.Struct(PaperDocTeamInviteDetails) +SecondaryMailsPolicyChangedDetails_validator = bv.Struct(SecondaryMailsPolicyChangedDetails) -class PaperDocTeamInviteType(bb.Struct): +class SecondaryMailsPolicyChangedType(bb.Struct): __slots__ = [ '_description_value', @@ -42861,411 +50669,459 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocTeamInviteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SecondaryMailsPolicyChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocTeamInviteType(description={!r})'.format( + return 'SecondaryMailsPolicyChangedType(description={!r})'.format( self._description_value, ) -PaperDocTeamInviteType_validator = bv.Struct(PaperDocTeamInviteType) +SecondaryMailsPolicyChangedType_validator = bv.Struct(SecondaryMailsPolicyChangedType) -class PaperDocTrashedDetails(bb.Struct): +class SecondaryTeamRequestAcceptedDetails(bb.Struct): """ - Deleted Paper doc. + Team merge request acceptance details shown to the secondary team - :ivar team_log.PaperDocTrashedDetails.event_uuid: Event unique identifier. + :ivar team_log.SecondaryTeamRequestAcceptedDetails.primary_team: The primary + team name. + :ivar team_log.SecondaryTeamRequestAcceptedDetails.sent_by: The name of the + secondary team admin who sent the request originally. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_primary_team_value', + '_primary_team_present', + '_sent_by_value', + '_sent_by_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + primary_team=None, + sent_by=None): + self._primary_team_value = None + self._primary_team_present = False + self._sent_by_value = None + self._sent_by_present = False + if primary_team is not None: + self.primary_team = primary_team + if sent_by is not None: + self.sent_by = sent_by @property - def event_uuid(self): + def primary_team(self): """ - Event unique identifier. + The primary team name. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._primary_team_present: + return self._primary_team_value else: - raise AttributeError("missing required field 'event_uuid'") - - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True - - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocTrashedDetails, self)._process_custom_annotations(annotation_type, processor) + raise AttributeError("missing required field 'primary_team'") - def __repr__(self): - return 'PaperDocTrashedDetails(event_uuid={!r})'.format( - self._event_uuid_value, - ) - -PaperDocTrashedDetails_validator = bv.Struct(PaperDocTrashedDetails) - -class PaperDocTrashedType(bb.Struct): + @primary_team.setter + def primary_team(self, val): + val = self._primary_team_validator.validate(val) + self._primary_team_value = val + self._primary_team_present = True - __slots__ = [ - '_description_value', - '_description_present', - ] - - _has_required_fields = True - - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + @primary_team.deleter + def primary_team(self): + self._primary_team_value = None + self._primary_team_present = False @property - def description(self): + def sent_by(self): """ + The name of the secondary team admin who sent the request originally. + :rtype: str """ - if self._description_present: - return self._description_value + if self._sent_by_present: + return self._sent_by_value else: - raise AttributeError("missing required field 'description'") - - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + raise AttributeError("missing required field 'sent_by'") - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocTrashedType, self)._process_custom_annotations(annotation_type, processor) + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SecondaryTeamRequestAcceptedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocTrashedType(description={!r})'.format( - self._description_value, + return 'SecondaryTeamRequestAcceptedDetails(primary_team={!r}, sent_by={!r})'.format( + self._primary_team_value, + self._sent_by_value, ) -PaperDocTrashedType_validator = bv.Struct(PaperDocTrashedType) +SecondaryTeamRequestAcceptedDetails_validator = bv.Struct(SecondaryTeamRequestAcceptedDetails) -class PaperDocUnresolveCommentDetails(bb.Struct): +class SecondaryTeamRequestCanceledDetails(bb.Struct): """ - Unresolved Paper doc comment. + Team merge request cancellation details shown to the secondary team - :ivar team_log.PaperDocUnresolveCommentDetails.event_uuid: Event unique - identifier. - :ivar team_log.PaperDocUnresolveCommentDetails.comment_text: Comment text. - Might be missing due to historical data gap. + :ivar team_log.SecondaryTeamRequestCanceledDetails.sent_to: The email of the + primary team admin that the request was sent to. + :ivar team_log.SecondaryTeamRequestCanceledDetails.sent_by: The name of the + secondary team admin who sent the request originally. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_comment_text_value', - '_comment_text_present', + '_sent_to_value', + '_sent_to_present', + '_sent_by_value', + '_sent_by_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - comment_text=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._comment_text_value = None - self._comment_text_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if comment_text is not None: - self.comment_text = comment_text + sent_to=None, + sent_by=None): + self._sent_to_value = None + self._sent_to_present = False + self._sent_by_value = None + self._sent_by_present = False + if sent_to is not None: + self.sent_to = sent_to + if sent_by is not None: + self.sent_by = sent_by @property - def event_uuid(self): + def sent_to(self): """ - Event unique identifier. + The email of the primary team admin that the request was sent to. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._sent_to_present: + return self._sent_to_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'sent_to'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @sent_to.setter + def sent_to(self, val): + val = self._sent_to_validator.validate(val) + self._sent_to_value = val + self._sent_to_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @sent_to.deleter + def sent_to(self): + self._sent_to_value = None + self._sent_to_present = False @property - def comment_text(self): + def sent_by(self): """ - Comment text. Might be missing due to historical data gap. + The name of the secondary team admin who sent the request originally. :rtype: str """ - if self._comment_text_present: - return self._comment_text_value + if self._sent_by_present: + return self._sent_by_value else: - return None + raise AttributeError("missing required field 'sent_by'") - @comment_text.setter - def comment_text(self, val): - if val is None: - del self.comment_text - return - val = self._comment_text_validator.validate(val) - self._comment_text_value = val - self._comment_text_present = True + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True - @comment_text.deleter - def comment_text(self): - self._comment_text_value = None - self._comment_text_present = False + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocUnresolveCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SecondaryTeamRequestCanceledDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocUnresolveCommentDetails(event_uuid={!r}, comment_text={!r})'.format( - self._event_uuid_value, - self._comment_text_value, + return 'SecondaryTeamRequestCanceledDetails(sent_to={!r}, sent_by={!r})'.format( + self._sent_to_value, + self._sent_by_value, ) -PaperDocUnresolveCommentDetails_validator = bv.Struct(PaperDocUnresolveCommentDetails) +SecondaryTeamRequestCanceledDetails_validator = bv.Struct(SecondaryTeamRequestCanceledDetails) -class PaperDocUnresolveCommentType(bb.Struct): +class SecondaryTeamRequestExpiredDetails(bb.Struct): + """ + Team merge request expiration details shown to the secondary team + + :ivar team_log.SecondaryTeamRequestExpiredDetails.sent_to: The email of the + primary team admin the request was sent to. + """ __slots__ = [ - '_description_value', - '_description_present', + '_sent_to_value', + '_sent_to_present', ] _has_required_fields = True def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + sent_to=None): + self._sent_to_value = None + self._sent_to_present = False + if sent_to is not None: + self.sent_to = sent_to @property - def description(self): + def sent_to(self): """ + The email of the primary team admin the request was sent to. + :rtype: str """ - if self._description_present: - return self._description_value + if self._sent_to_present: + return self._sent_to_value else: - raise AttributeError("missing required field 'description'") + raise AttributeError("missing required field 'sent_to'") - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @sent_to.setter + def sent_to(self, val): + val = self._sent_to_validator.validate(val) + self._sent_to_value = val + self._sent_to_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @sent_to.deleter + def sent_to(self): + self._sent_to_value = None + self._sent_to_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocUnresolveCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SecondaryTeamRequestExpiredDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocUnresolveCommentType(description={!r})'.format( - self._description_value, + return 'SecondaryTeamRequestExpiredDetails(sent_to={!r})'.format( + self._sent_to_value, ) -PaperDocUnresolveCommentType_validator = bv.Struct(PaperDocUnresolveCommentType) +SecondaryTeamRequestExpiredDetails_validator = bv.Struct(SecondaryTeamRequestExpiredDetails) -class PaperDocUntrashedDetails(bb.Struct): +class SecondaryTeamRequestReminderDetails(bb.Struct): """ - Restored Paper doc. + Team merge request reminder details shown to the secondary team - :ivar team_log.PaperDocUntrashedDetails.event_uuid: Event unique identifier. + :ivar team_log.SecondaryTeamRequestReminderDetails.sent_to: The email of the + primary team admin the request was sent to. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_sent_to_value', + '_sent_to_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + sent_to=None): + self._sent_to_value = None + self._sent_to_present = False + if sent_to is not None: + self.sent_to = sent_to @property - def event_uuid(self): + def sent_to(self): """ - Event unique identifier. + The email of the primary team admin the request was sent to. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._sent_to_present: + return self._sent_to_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'sent_to'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @sent_to.setter + def sent_to(self, val): + val = self._sent_to_validator.validate(val) + self._sent_to_value = val + self._sent_to_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @sent_to.deleter + def sent_to(self): + self._sent_to_value = None + self._sent_to_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocUntrashedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SecondaryTeamRequestReminderDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocUntrashedDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SecondaryTeamRequestReminderDetails(sent_to={!r})'.format( + self._sent_to_value, ) -PaperDocUntrashedDetails_validator = bv.Struct(PaperDocUntrashedDetails) +SecondaryTeamRequestReminderDetails_validator = bv.Struct(SecondaryTeamRequestReminderDetails) -class PaperDocUntrashedType(bb.Struct): +class SfAddGroupDetails(bb.Struct): + """ + Added team to shared folder. + + :ivar team_log.SfAddGroupDetails.target_asset_index: Target asset position + in the Assets list. + :ivar team_log.SfAddGroupDetails.original_folder_name: Original shared + folder name. + :ivar team_log.SfAddGroupDetails.sharing_permission: Sharing permission. + Might be missing due to historical data gap. + :ivar team_log.SfAddGroupDetails.team_name: Team name. + """ __slots__ = [ - '_description_value', - '_description_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', + '_sharing_permission_value', + '_sharing_permission_present', + '_team_name_value', + '_team_name_present', ] _has_required_fields = True def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + target_asset_index=None, + original_folder_name=None, + team_name=None, + sharing_permission=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + self._sharing_permission_value = None + self._sharing_permission_present = False + self._team_name_value = None + self._team_name_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name + if sharing_permission is not None: + self.sharing_permission = sharing_permission + if team_name is not None: + self.team_name = team_name @property - def description(self): + def target_asset_index(self): """ - :rtype: str + Target asset position in the Assets list. + + :rtype: int """ - if self._description_present: - return self._description_value + if self._target_asset_index_present: + return self._target_asset_index_value else: - raise AttributeError("missing required field 'description'") + raise AttributeError("missing required field 'target_asset_index'") - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocUntrashedType, self)._process_custom_annotations(annotation_type, processor) + @property + def original_folder_name(self): + """ + Original shared folder name. - def __repr__(self): - return 'PaperDocUntrashedType(description={!r})'.format( - self._description_value, - ) + :rtype: str + """ + if self._original_folder_name_present: + return self._original_folder_name_value + else: + raise AttributeError("missing required field 'original_folder_name'") -PaperDocUntrashedType_validator = bv.Struct(PaperDocUntrashedType) + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True -class PaperDocViewDetails(bb.Struct): - """ - Viewed Paper doc. + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False - :ivar team_log.PaperDocViewDetails.event_uuid: Event unique identifier. - """ + @property + def sharing_permission(self): + """ + Sharing permission. Might be missing due to historical data gap. - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - ] + :rtype: str + """ + if self._sharing_permission_present: + return self._sharing_permission_value + else: + return None - _has_required_fields = True + @sharing_permission.setter + def sharing_permission(self, val): + if val is None: + del self.sharing_permission + return + val = self._sharing_permission_validator.validate(val) + self._sharing_permission_value = val + self._sharing_permission_present = True - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + @sharing_permission.deleter + def sharing_permission(self): + self._sharing_permission_value = None + self._sharing_permission_present = False @property - def event_uuid(self): + def team_name(self): """ - Event unique identifier. + Team name. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._team_name_present: + return self._team_name_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'team_name'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @team_name.setter + def team_name(self, val): + val = self._team_name_validator.validate(val) + self._team_name_value = val + self._team_name_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @team_name.deleter + def team_name(self): + self._team_name_value = None + self._team_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocViewDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfAddGroupDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocViewDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SfAddGroupDetails(target_asset_index={!r}, original_folder_name={!r}, team_name={!r}, sharing_permission={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, + self._team_name_value, + self._sharing_permission_value, ) -PaperDocViewDetails_validator = bv.Struct(PaperDocViewDetails) +SfAddGroupDetails_validator = bv.Struct(SfAddGroupDetails) -class PaperDocViewType(bb.Struct): +class SfAddGroupType(bb.Struct): __slots__ = [ '_description_value', @@ -43302,191 +51158,142 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocViewType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfAddGroupType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperDocViewType(description={!r})'.format( + return 'SfAddGroupType(description={!r})'.format( self._description_value, ) -PaperDocViewType_validator = bv.Struct(PaperDocViewType) +SfAddGroupType_validator = bv.Struct(SfAddGroupType) -class PaperDocumentLogInfo(bb.Struct): +class SfAllowNonMembersToViewSharedLinksDetails(bb.Struct): """ - Paper document's logged information. + Allowed non-collaborators to view links to files in shared folder. - :ivar team_log.PaperDocumentLogInfo.doc_id: Papers document Id. - :ivar team_log.PaperDocumentLogInfo.doc_title: Paper document title. + :ivar team_log.SfAllowNonMembersToViewSharedLinksDetails.target_asset_index: + Target asset position in the Assets list. + :ivar + team_log.SfAllowNonMembersToViewSharedLinksDetails.original_folder_name: + Original shared folder name. + :ivar team_log.SfAllowNonMembersToViewSharedLinksDetails.shared_folder_type: + Shared folder type. Might be missing due to historical data gap. """ __slots__ = [ - '_doc_id_value', - '_doc_id_present', - '_doc_title_value', - '_doc_title_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', + '_shared_folder_type_value', + '_shared_folder_type_present', ] _has_required_fields = True def __init__(self, - doc_id=None, - doc_title=None): - self._doc_id_value = None - self._doc_id_present = False - self._doc_title_value = None - self._doc_title_present = False - if doc_id is not None: - self.doc_id = doc_id - if doc_title is not None: - self.doc_title = doc_title + target_asset_index=None, + original_folder_name=None, + shared_folder_type=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + self._shared_folder_type_value = None + self._shared_folder_type_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name + if shared_folder_type is not None: + self.shared_folder_type = shared_folder_type @property - def doc_id(self): + def target_asset_index(self): """ - Papers document Id. + Target asset position in the Assets list. - :rtype: str + :rtype: int """ - if self._doc_id_present: - return self._doc_id_value + if self._target_asset_index_present: + return self._target_asset_index_value else: - raise AttributeError("missing required field 'doc_id'") + raise AttributeError("missing required field 'target_asset_index'") - @doc_id.setter - def doc_id(self, val): - val = self._doc_id_validator.validate(val) - self._doc_id_value = val - self._doc_id_present = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - @doc_id.deleter - def doc_id(self): - self._doc_id_value = None - self._doc_id_present = False + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False @property - def doc_title(self): + def original_folder_name(self): """ - Paper document title. + Original shared folder name. :rtype: str """ - if self._doc_title_present: - return self._doc_title_value + if self._original_folder_name_present: + return self._original_folder_name_value else: - raise AttributeError("missing required field 'doc_title'") - - @doc_title.setter - def doc_title(self, val): - val = self._doc_title_validator.validate(val) - self._doc_title_value = val - self._doc_title_present = True - - @doc_title.deleter - def doc_title(self): - self._doc_title_value = None - self._doc_title_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDocumentLogInfo, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PaperDocumentLogInfo(doc_id={!r}, doc_title={!r})'.format( - self._doc_id_value, - self._doc_title_value, - ) - -PaperDocumentLogInfo_validator = bv.Struct(PaperDocumentLogInfo) - -class PaperDownloadFormat(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 - docx = None - # Attribute is overwritten below the class definition - html = None - # Attribute is overwritten below the class definition - markdown = None - # Attribute is overwritten below the class definition - pdf = None - # Attribute is overwritten below the class definition - other = None - - def is_docx(self): - """ - Check if the union tag is ``docx``. - - :rtype: bool - """ - return self._tag == 'docx' - - def is_html(self): - """ - Check if the union tag is ``html``. - - :rtype: bool - """ - return self._tag == 'html' - - def is_markdown(self): - """ - Check if the union tag is ``markdown``. - - :rtype: bool - """ - return self._tag == 'markdown' + raise AttributeError("missing required field 'original_folder_name'") - def is_pdf(self): - """ - Check if the union tag is ``pdf``. + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True - :rtype: bool - """ - return self._tag == 'pdf' + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False - def is_other(self): + @property + def shared_folder_type(self): """ - Check if the union tag is ``other``. + Shared folder type. Might be missing due to historical data gap. - :rtype: bool + :rtype: str """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDownloadFormat, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PaperDownloadFormat(%r, %r)' % (self._tag, self._value) - -PaperDownloadFormat_validator = bv.Union(PaperDownloadFormat) - -class PaperEnabledUsersGroupAdditionDetails(bb.Struct): - """ - Added users to Paper-enabled users list. - """ - - __slots__ = [ - ] + if self._shared_folder_type_present: + return self._shared_folder_type_value + else: + return None - _has_required_fields = False + @shared_folder_type.setter + def shared_folder_type(self, val): + if val is None: + del self.shared_folder_type + return + val = self._shared_folder_type_validator.validate(val) + self._shared_folder_type_value = val + self._shared_folder_type_present = True - def __init__(self): - pass + @shared_folder_type.deleter + def shared_folder_type(self): + self._shared_folder_type_value = None + self._shared_folder_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperEnabledUsersGroupAdditionDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfAllowNonMembersToViewSharedLinksDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperEnabledUsersGroupAdditionDetails()' + return 'SfAllowNonMembersToViewSharedLinksDetails(target_asset_index={!r}, original_folder_name={!r}, shared_folder_type={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, + self._shared_folder_type_value, + ) -PaperEnabledUsersGroupAdditionDetails_validator = bv.Struct(PaperEnabledUsersGroupAdditionDetails) +SfAllowNonMembersToViewSharedLinksDetails_validator = bv.Struct(SfAllowNonMembersToViewSharedLinksDetails) -class PaperEnabledUsersGroupAdditionType(bb.Struct): +class SfAllowNonMembersToViewSharedLinksType(bb.Struct): __slots__ = [ '_description_value', @@ -43523,140 +51330,179 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperEnabledUsersGroupAdditionType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfAllowNonMembersToViewSharedLinksType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperEnabledUsersGroupAdditionType(description={!r})'.format( + return 'SfAllowNonMembersToViewSharedLinksType(description={!r})'.format( self._description_value, ) -PaperEnabledUsersGroupAdditionType_validator = bv.Struct(PaperEnabledUsersGroupAdditionType) +SfAllowNonMembersToViewSharedLinksType_validator = bv.Struct(SfAllowNonMembersToViewSharedLinksType) -class PaperEnabledUsersGroupRemovalDetails(bb.Struct): - """ - Removed users from Paper-enabled users list. +class SfExternalInviteWarnDetails(bb.Struct): """ + Set team members to see warning before sharing folders outside team. - __slots__ = [ - ] - - _has_required_fields = False - - def __init__(self): - pass - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperEnabledUsersGroupRemovalDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PaperEnabledUsersGroupRemovalDetails()' - -PaperEnabledUsersGroupRemovalDetails_validator = bv.Struct(PaperEnabledUsersGroupRemovalDetails) - -class PaperEnabledUsersGroupRemovalType(bb.Struct): + :ivar team_log.SfExternalInviteWarnDetails.target_asset_index: Target asset + position in the Assets list. + :ivar team_log.SfExternalInviteWarnDetails.original_folder_name: Original + shared folder name. + :ivar team_log.SfExternalInviteWarnDetails.new_sharing_permission: New + sharing permission. Might be missing due to historical data gap. + :ivar team_log.SfExternalInviteWarnDetails.previous_sharing_permission: + Previous sharing permission. Might be missing due to historical data + gap. + """ __slots__ = [ - '_description_value', - '_description_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', + '_new_sharing_permission_value', + '_new_sharing_permission_present', + '_previous_sharing_permission_value', + '_previous_sharing_permission_present', ] _has_required_fields = True def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + target_asset_index=None, + original_folder_name=None, + new_sharing_permission=None, + previous_sharing_permission=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + self._new_sharing_permission_value = None + self._new_sharing_permission_present = False + self._previous_sharing_permission_value = None + self._previous_sharing_permission_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name + if new_sharing_permission is not None: + self.new_sharing_permission = new_sharing_permission + if previous_sharing_permission is not None: + self.previous_sharing_permission = previous_sharing_permission @property - def description(self): + def target_asset_index(self): """ - :rtype: str + Target asset position in the Assets list. + + :rtype: int """ - if self._description_present: - return self._description_value + if self._target_asset_index_present: + return self._target_asset_index_value else: - raise AttributeError("missing required field 'description'") + raise AttributeError("missing required field 'target_asset_index'") - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperEnabledUsersGroupRemovalType, self)._process_custom_annotations(annotation_type, processor) + @property + def original_folder_name(self): + """ + Original shared folder name. - def __repr__(self): - return 'PaperEnabledUsersGroupRemovalType(description={!r})'.format( - self._description_value, - ) + :rtype: str + """ + if self._original_folder_name_present: + return self._original_folder_name_value + else: + raise AttributeError("missing required field 'original_folder_name'") -PaperEnabledUsersGroupRemovalType_validator = bv.Struct(PaperEnabledUsersGroupRemovalType) + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True -class PaperExternalViewAllowDetails(bb.Struct): - """ - Changed Paper external sharing setting to anyone. + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False - :ivar team_log.PaperExternalViewAllowDetails.event_uuid: Event unique - identifier. - """ + @property + def new_sharing_permission(self): + """ + New sharing permission. Might be missing due to historical data gap. - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - ] + :rtype: str + """ + if self._new_sharing_permission_present: + return self._new_sharing_permission_value + else: + return None - _has_required_fields = True + @new_sharing_permission.setter + def new_sharing_permission(self, val): + if val is None: + del self.new_sharing_permission + return + val = self._new_sharing_permission_validator.validate(val) + self._new_sharing_permission_value = val + self._new_sharing_permission_present = True - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + @new_sharing_permission.deleter + def new_sharing_permission(self): + self._new_sharing_permission_value = None + self._new_sharing_permission_present = False @property - def event_uuid(self): + def previous_sharing_permission(self): """ - Event unique identifier. + Previous sharing permission. Might be missing due to historical data + gap. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._previous_sharing_permission_present: + return self._previous_sharing_permission_value else: - raise AttributeError("missing required field 'event_uuid'") + return None - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @previous_sharing_permission.setter + def previous_sharing_permission(self, val): + if val is None: + del self.previous_sharing_permission + return + val = self._previous_sharing_permission_validator.validate(val) + self._previous_sharing_permission_value = val + self._previous_sharing_permission_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @previous_sharing_permission.deleter + def previous_sharing_permission(self): + self._previous_sharing_permission_value = None + self._previous_sharing_permission_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperExternalViewAllowDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfExternalInviteWarnDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperExternalViewAllowDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SfExternalInviteWarnDetails(target_asset_index={!r}, original_folder_name={!r}, new_sharing_permission={!r}, previous_sharing_permission={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, + self._new_sharing_permission_value, + self._previous_sharing_permission_value, ) -PaperExternalViewAllowDetails_validator = bv.Struct(PaperExternalViewAllowDetails) +SfExternalInviteWarnDetails_validator = bv.Struct(SfExternalInviteWarnDetails) -class PaperExternalViewAllowType(bb.Struct): +class SfExternalInviteWarnType(bb.Struct): __slots__ = [ '_description_value', @@ -43693,72 +51539,179 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperExternalViewAllowType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfExternalInviteWarnType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperExternalViewAllowType(description={!r})'.format( + return 'SfExternalInviteWarnType(description={!r})'.format( self._description_value, ) -PaperExternalViewAllowType_validator = bv.Struct(PaperExternalViewAllowType) +SfExternalInviteWarnType_validator = bv.Struct(SfExternalInviteWarnType) -class PaperExternalViewDefaultTeamDetails(bb.Struct): +class SfFbInviteChangeRoleDetails(bb.Struct): """ - Changed Paper external sharing setting to default team. + Changed Facebook user's role in shared folder. - :ivar team_log.PaperExternalViewDefaultTeamDetails.event_uuid: Event unique - identifier. + :ivar team_log.SfFbInviteChangeRoleDetails.target_asset_index: Target asset + position in the Assets list. + :ivar team_log.SfFbInviteChangeRoleDetails.original_folder_name: Original + shared folder name. + :ivar team_log.SfFbInviteChangeRoleDetails.previous_sharing_permission: + Previous sharing permission. Might be missing due to historical data + gap. + :ivar team_log.SfFbInviteChangeRoleDetails.new_sharing_permission: New + sharing permission. Might be missing due to historical data gap. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', + '_previous_sharing_permission_value', + '_previous_sharing_permission_present', + '_new_sharing_permission_value', + '_new_sharing_permission_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + target_asset_index=None, + original_folder_name=None, + previous_sharing_permission=None, + new_sharing_permission=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + self._previous_sharing_permission_value = None + self._previous_sharing_permission_present = False + self._new_sharing_permission_value = None + self._new_sharing_permission_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name + if previous_sharing_permission is not None: + self.previous_sharing_permission = previous_sharing_permission + if new_sharing_permission is not None: + self.new_sharing_permission = new_sharing_permission @property - def event_uuid(self): + def target_asset_index(self): """ - Event unique identifier. + Target asset position in the Assets list. + + :rtype: int + """ + if self._target_asset_index_present: + return self._target_asset_index_value + else: + raise AttributeError("missing required field 'target_asset_index'") + + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True + + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False + + @property + def original_folder_name(self): + """ + Original shared folder name. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._original_folder_name_present: + return self._original_folder_name_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'original_folder_name'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False + + @property + def previous_sharing_permission(self): + """ + Previous sharing permission. Might be missing due to historical data + gap. + + :rtype: str + """ + if self._previous_sharing_permission_present: + return self._previous_sharing_permission_value + else: + return None + + @previous_sharing_permission.setter + def previous_sharing_permission(self, val): + if val is None: + del self.previous_sharing_permission + return + val = self._previous_sharing_permission_validator.validate(val) + self._previous_sharing_permission_value = val + self._previous_sharing_permission_present = True + + @previous_sharing_permission.deleter + def previous_sharing_permission(self): + self._previous_sharing_permission_value = None + self._previous_sharing_permission_present = False + + @property + def new_sharing_permission(self): + """ + New sharing permission. Might be missing due to historical data gap. + + :rtype: str + """ + if self._new_sharing_permission_present: + return self._new_sharing_permission_value + else: + return None + + @new_sharing_permission.setter + def new_sharing_permission(self, val): + if val is None: + del self.new_sharing_permission + return + val = self._new_sharing_permission_validator.validate(val) + self._new_sharing_permission_value = val + self._new_sharing_permission_present = True + + @new_sharing_permission.deleter + def new_sharing_permission(self): + self._new_sharing_permission_value = None + self._new_sharing_permission_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperExternalViewDefaultTeamDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfFbInviteChangeRoleDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperExternalViewDefaultTeamDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SfFbInviteChangeRoleDetails(target_asset_index={!r}, original_folder_name={!r}, previous_sharing_permission={!r}, new_sharing_permission={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, + self._previous_sharing_permission_value, + self._new_sharing_permission_value, ) -PaperExternalViewDefaultTeamDetails_validator = bv.Struct(PaperExternalViewDefaultTeamDetails) +SfFbInviteChangeRoleDetails_validator = bv.Struct(SfFbInviteChangeRoleDetails) -class PaperExternalViewDefaultTeamType(bb.Struct): +class SfFbInviteChangeRoleType(bb.Struct): __slots__ = [ '_description_value', @@ -43795,72 +51748,141 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperExternalViewDefaultTeamType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfFbInviteChangeRoleType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperExternalViewDefaultTeamType(description={!r})'.format( + return 'SfFbInviteChangeRoleType(description={!r})'.format( self._description_value, ) -PaperExternalViewDefaultTeamType_validator = bv.Struct(PaperExternalViewDefaultTeamType) +SfFbInviteChangeRoleType_validator = bv.Struct(SfFbInviteChangeRoleType) -class PaperExternalViewForbidDetails(bb.Struct): +class SfFbInviteDetails(bb.Struct): """ - Changed Paper external sharing setting to team-only. + Invited Facebook users to shared folder. - :ivar team_log.PaperExternalViewForbidDetails.event_uuid: Event unique - identifier. + :ivar team_log.SfFbInviteDetails.target_asset_index: Target asset position + in the Assets list. + :ivar team_log.SfFbInviteDetails.original_folder_name: Original shared + folder name. + :ivar team_log.SfFbInviteDetails.sharing_permission: Sharing permission. + Might be missing due to historical data gap. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', + '_sharing_permission_value', + '_sharing_permission_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + target_asset_index=None, + original_folder_name=None, + sharing_permission=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + self._sharing_permission_value = None + self._sharing_permission_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name + if sharing_permission is not None: + self.sharing_permission = sharing_permission @property - def event_uuid(self): + def target_asset_index(self): """ - Event unique identifier. + Target asset position in the Assets list. + + :rtype: int + """ + if self._target_asset_index_present: + return self._target_asset_index_value + else: + raise AttributeError("missing required field 'target_asset_index'") + + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True + + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False + + @property + def original_folder_name(self): + """ + Original shared folder name. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._original_folder_name_present: + return self._original_folder_name_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'original_folder_name'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False + + @property + def sharing_permission(self): + """ + Sharing permission. Might be missing due to historical data gap. - def _process_custom_annotations(self, annotation_type, processor): - super(PaperExternalViewForbidDetails, self)._process_custom_annotations(annotation_type, processor) + :rtype: str + """ + if self._sharing_permission_present: + return self._sharing_permission_value + else: + return None + + @sharing_permission.setter + def sharing_permission(self, val): + if val is None: + del self.sharing_permission + return + val = self._sharing_permission_validator.validate(val) + self._sharing_permission_value = val + self._sharing_permission_present = True + + @sharing_permission.deleter + def sharing_permission(self): + self._sharing_permission_value = None + self._sharing_permission_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfFbInviteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperExternalViewForbidDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SfFbInviteDetails(target_asset_index={!r}, original_folder_name={!r}, sharing_permission={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, + self._sharing_permission_value, ) -PaperExternalViewForbidDetails_validator = bv.Struct(PaperExternalViewForbidDetails) +SfFbInviteDetails_validator = bv.Struct(SfFbInviteDetails) -class PaperExternalViewForbidType(bb.Struct): +class SfFbInviteType(bb.Struct): __slots__ = [ '_description_value', @@ -43897,144 +51919,105 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperExternalViewForbidType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfFbInviteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperExternalViewForbidType(description={!r})'.format( + return 'SfFbInviteType(description={!r})'.format( self._description_value, ) -PaperExternalViewForbidType_validator = bv.Struct(PaperExternalViewForbidType) +SfFbInviteType_validator = bv.Struct(SfFbInviteType) -class PaperFolderChangeSubscriptionDetails(bb.Struct): +class SfFbUninviteDetails(bb.Struct): """ - Followed/unfollowed Paper folder. + Uninvited Facebook user from shared folder. - :ivar team_log.PaperFolderChangeSubscriptionDetails.event_uuid: Event unique - identifier. - :ivar team_log.PaperFolderChangeSubscriptionDetails.new_subscription_level: - New folder subscription level. - :ivar - team_log.PaperFolderChangeSubscriptionDetails.previous_subscription_level: - Previous folder subscription level. Might be missing due to historical - data gap. + :ivar team_log.SfFbUninviteDetails.target_asset_index: Target asset position + in the Assets list. + :ivar team_log.SfFbUninviteDetails.original_folder_name: Original shared + folder name. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_new_subscription_level_value', - '_new_subscription_level_present', - '_previous_subscription_level_value', - '_previous_subscription_level_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - new_subscription_level=None, - previous_subscription_level=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._new_subscription_level_value = None - self._new_subscription_level_present = False - self._previous_subscription_level_value = None - self._previous_subscription_level_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if new_subscription_level is not None: - self.new_subscription_level = new_subscription_level - if previous_subscription_level is not None: - self.previous_subscription_level = previous_subscription_level - - @property - def event_uuid(self): - """ - Event unique identifier. - - :rtype: str - """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") - - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True - - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + target_asset_index=None, + original_folder_name=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name @property - def new_subscription_level(self): + def target_asset_index(self): """ - New folder subscription level. + Target asset position in the Assets list. - :rtype: str + :rtype: int """ - if self._new_subscription_level_present: - return self._new_subscription_level_value + if self._target_asset_index_present: + return self._target_asset_index_value else: - raise AttributeError("missing required field 'new_subscription_level'") + raise AttributeError("missing required field 'target_asset_index'") - @new_subscription_level.setter - def new_subscription_level(self, val): - val = self._new_subscription_level_validator.validate(val) - self._new_subscription_level_value = val - self._new_subscription_level_present = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - @new_subscription_level.deleter - def new_subscription_level(self): - self._new_subscription_level_value = None - self._new_subscription_level_present = False + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False @property - def previous_subscription_level(self): + def original_folder_name(self): """ - Previous folder subscription level. Might be missing due to historical - data gap. + Original shared folder name. :rtype: str """ - if self._previous_subscription_level_present: - return self._previous_subscription_level_value + if self._original_folder_name_present: + return self._original_folder_name_value else: - return None + raise AttributeError("missing required field 'original_folder_name'") - @previous_subscription_level.setter - def previous_subscription_level(self, val): - if val is None: - del self.previous_subscription_level - return - val = self._previous_subscription_level_validator.validate(val) - self._previous_subscription_level_value = val - self._previous_subscription_level_present = True + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True - @previous_subscription_level.deleter - def previous_subscription_level(self): - self._previous_subscription_level_value = None - self._previous_subscription_level_present = False + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperFolderChangeSubscriptionDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfFbUninviteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperFolderChangeSubscriptionDetails(event_uuid={!r}, new_subscription_level={!r}, previous_subscription_level={!r})'.format( - self._event_uuid_value, - self._new_subscription_level_value, - self._previous_subscription_level_value, + return 'SfFbUninviteDetails(target_asset_index={!r}, original_folder_name={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, ) -PaperFolderChangeSubscriptionDetails_validator = bv.Struct(PaperFolderChangeSubscriptionDetails) +SfFbUninviteDetails_validator = bv.Struct(SfFbUninviteDetails) -class PaperFolderChangeSubscriptionType(bb.Struct): +class SfFbUninviteType(bb.Struct): __slots__ = [ '_description_value', @@ -44071,72 +52054,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperFolderChangeSubscriptionType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfFbUninviteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperFolderChangeSubscriptionType(description={!r})'.format( + return 'SfFbUninviteType(description={!r})'.format( self._description_value, ) -PaperFolderChangeSubscriptionType_validator = bv.Struct(PaperFolderChangeSubscriptionType) +SfFbUninviteType_validator = bv.Struct(SfFbUninviteType) -class PaperFolderDeletedDetails(bb.Struct): +class SfInviteGroupDetails(bb.Struct): """ - Archived Paper folder. + Invited group to shared folder. - :ivar team_log.PaperFolderDeletedDetails.event_uuid: Event unique - identifier. + :ivar team_log.SfInviteGroupDetails.target_asset_index: Target asset + position in the Assets list. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_target_asset_index_value', + '_target_asset_index_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + target_asset_index=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index @property - def event_uuid(self): + def target_asset_index(self): """ - Event unique identifier. + Target asset position in the Assets list. - :rtype: str + :rtype: int """ - if self._event_uuid_present: - return self._event_uuid_value + if self._target_asset_index_present: + return self._target_asset_index_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'target_asset_index'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperFolderDeletedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfInviteGroupDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperFolderDeletedDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SfInviteGroupDetails(target_asset_index={!r})'.format( + self._target_asset_index_value, ) -PaperFolderDeletedDetails_validator = bv.Struct(PaperFolderDeletedDetails) +SfInviteGroupDetails_validator = bv.Struct(SfInviteGroupDetails) -class PaperFolderDeletedType(bb.Struct): +class SfInviteGroupType(bb.Struct): __slots__ = [ '_description_value', @@ -44173,72 +52156,105 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperFolderDeletedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfInviteGroupType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperFolderDeletedType(description={!r})'.format( + return 'SfInviteGroupType(description={!r})'.format( self._description_value, ) -PaperFolderDeletedType_validator = bv.Struct(PaperFolderDeletedType) +SfInviteGroupType_validator = bv.Struct(SfInviteGroupType) -class PaperFolderFollowedDetails(bb.Struct): +class SfTeamGrantAccessDetails(bb.Struct): """ - Followed Paper folder. + Granted access to shared folder. - :ivar team_log.PaperFolderFollowedDetails.event_uuid: Event unique - identifier. + :ivar team_log.SfTeamGrantAccessDetails.target_asset_index: Target asset + position in the Assets list. + :ivar team_log.SfTeamGrantAccessDetails.original_folder_name: Original + shared folder name. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + target_asset_index=None, + original_folder_name=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name @property - def event_uuid(self): + def target_asset_index(self): """ - Event unique identifier. + Target asset position in the Assets list. + + :rtype: int + """ + if self._target_asset_index_present: + return self._target_asset_index_value + else: + raise AttributeError("missing required field 'target_asset_index'") + + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True + + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False + + @property + def original_folder_name(self): + """ + Original shared folder name. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._original_folder_name_present: + return self._original_folder_name_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'original_folder_name'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperFolderFollowedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamGrantAccessDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperFolderFollowedDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SfTeamGrantAccessDetails(target_asset_index={!r}, original_folder_name={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, ) -PaperFolderFollowedDetails_validator = bv.Struct(PaperFolderFollowedDetails) +SfTeamGrantAccessDetails_validator = bv.Struct(SfTeamGrantAccessDetails) -class PaperFolderFollowedType(bb.Struct): +class SfTeamGrantAccessType(bb.Struct): __slots__ = [ '_description_value', @@ -44275,158 +52291,179 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperFolderFollowedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamGrantAccessType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperFolderFollowedType(description={!r})'.format( + return 'SfTeamGrantAccessType(description={!r})'.format( self._description_value, ) -PaperFolderFollowedType_validator = bv.Struct(PaperFolderFollowedType) +SfTeamGrantAccessType_validator = bv.Struct(SfTeamGrantAccessType) -class PaperFolderLogInfo(bb.Struct): +class SfTeamInviteChangeRoleDetails(bb.Struct): """ - Paper folder's logged information. + Changed team member's role in shared folder. - :ivar team_log.PaperFolderLogInfo.folder_id: Papers folder Id. - :ivar team_log.PaperFolderLogInfo.folder_name: Paper folder name. + :ivar team_log.SfTeamInviteChangeRoleDetails.target_asset_index: Target + asset position in the Assets list. + :ivar team_log.SfTeamInviteChangeRoleDetails.original_folder_name: Original + shared folder name. + :ivar team_log.SfTeamInviteChangeRoleDetails.new_sharing_permission: New + sharing permission. Might be missing due to historical data gap. + :ivar team_log.SfTeamInviteChangeRoleDetails.previous_sharing_permission: + Previous sharing permission. Might be missing due to historical data + gap. """ __slots__ = [ - '_folder_id_value', - '_folder_id_present', - '_folder_name_value', - '_folder_name_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', + '_new_sharing_permission_value', + '_new_sharing_permission_present', + '_previous_sharing_permission_value', + '_previous_sharing_permission_present', ] _has_required_fields = True def __init__(self, - folder_id=None, - folder_name=None): - self._folder_id_value = None - self._folder_id_present = False - self._folder_name_value = None - self._folder_name_present = False - if folder_id is not None: - self.folder_id = folder_id - if folder_name is not None: - self.folder_name = folder_name + target_asset_index=None, + original_folder_name=None, + new_sharing_permission=None, + previous_sharing_permission=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + self._new_sharing_permission_value = None + self._new_sharing_permission_present = False + self._previous_sharing_permission_value = None + self._previous_sharing_permission_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name + if new_sharing_permission is not None: + self.new_sharing_permission = new_sharing_permission + if previous_sharing_permission is not None: + self.previous_sharing_permission = previous_sharing_permission @property - def folder_id(self): + def target_asset_index(self): """ - Papers folder Id. + Target asset position in the Assets list. - :rtype: str + :rtype: int """ - if self._folder_id_present: - return self._folder_id_value + if self._target_asset_index_present: + return self._target_asset_index_value else: - raise AttributeError("missing required field 'folder_id'") + raise AttributeError("missing required field 'target_asset_index'") - @folder_id.setter - def folder_id(self, val): - val = self._folder_id_validator.validate(val) - self._folder_id_value = val - self._folder_id_present = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - @folder_id.deleter - def folder_id(self): - self._folder_id_value = None - self._folder_id_present = False + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False @property - def folder_name(self): + def original_folder_name(self): """ - Paper folder name. + Original shared folder name. :rtype: str """ - if self._folder_name_present: - return self._folder_name_value + if self._original_folder_name_present: + return self._original_folder_name_value else: - raise AttributeError("missing required field 'folder_name'") - - @folder_name.setter - def folder_name(self, val): - val = self._folder_name_validator.validate(val) - self._folder_name_value = val - self._folder_name_present = True - - @folder_name.deleter - def folder_name(self): - self._folder_name_value = None - self._folder_name_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperFolderLogInfo, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PaperFolderLogInfo(folder_id={!r}, folder_name={!r})'.format( - self._folder_id_value, - self._folder_name_value, - ) + raise AttributeError("missing required field 'original_folder_name'") -PaperFolderLogInfo_validator = bv.Struct(PaperFolderLogInfo) + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True -class PaperFolderTeamInviteDetails(bb.Struct): - """ - Shared Paper folder with member. + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False - :ivar team_log.PaperFolderTeamInviteDetails.event_uuid: Event unique - identifier. - """ + @property + def new_sharing_permission(self): + """ + New sharing permission. Might be missing due to historical data gap. - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - ] + :rtype: str + """ + if self._new_sharing_permission_present: + return self._new_sharing_permission_value + else: + return None - _has_required_fields = True + @new_sharing_permission.setter + def new_sharing_permission(self, val): + if val is None: + del self.new_sharing_permission + return + val = self._new_sharing_permission_validator.validate(val) + self._new_sharing_permission_value = val + self._new_sharing_permission_present = True - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + @new_sharing_permission.deleter + def new_sharing_permission(self): + self._new_sharing_permission_value = None + self._new_sharing_permission_present = False @property - def event_uuid(self): + def previous_sharing_permission(self): """ - Event unique identifier. + Previous sharing permission. Might be missing due to historical data + gap. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._previous_sharing_permission_present: + return self._previous_sharing_permission_value else: - raise AttributeError("missing required field 'event_uuid'") + return None - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @previous_sharing_permission.setter + def previous_sharing_permission(self, val): + if val is None: + del self.previous_sharing_permission + return + val = self._previous_sharing_permission_validator.validate(val) + self._previous_sharing_permission_value = val + self._previous_sharing_permission_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @previous_sharing_permission.deleter + def previous_sharing_permission(self): + self._previous_sharing_permission_value = None + self._previous_sharing_permission_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperFolderTeamInviteDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamInviteChangeRoleDetails, self)._process_custom_annotations(annotation_type, field_path, processor) - def __repr__(self): - return 'PaperFolderTeamInviteDetails(event_uuid={!r})'.format( - self._event_uuid_value, + def __repr__(self): + return 'SfTeamInviteChangeRoleDetails(target_asset_index={!r}, original_folder_name={!r}, new_sharing_permission={!r}, previous_sharing_permission={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, + self._new_sharing_permission_value, + self._previous_sharing_permission_value, ) -PaperFolderTeamInviteDetails_validator = bv.Struct(PaperFolderTeamInviteDetails) +SfTeamInviteChangeRoleDetails_validator = bv.Struct(SfTeamInviteChangeRoleDetails) -class PaperFolderTeamInviteType(bb.Struct): +class SfTeamInviteChangeRoleType(bb.Struct): __slots__ = [ '_description_value', @@ -44463,317 +52500,436 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PaperFolderTeamInviteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamInviteChangeRoleType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PaperFolderTeamInviteType(description={!r})'.format( + return 'SfTeamInviteChangeRoleType(description={!r})'.format( self._description_value, ) -PaperFolderTeamInviteType_validator = bv.Struct(PaperFolderTeamInviteType) +SfTeamInviteChangeRoleType_validator = bv.Struct(SfTeamInviteChangeRoleType) -class PaperMemberPolicy(bb.Union): +class SfTeamInviteDetails(bb.Struct): """ - Policy for controlling if team members can share Paper documents externally. + Invited team members to shared folder. - 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 team_log.SfTeamInviteDetails.target_asset_index: Target asset position + in the Assets list. + :ivar team_log.SfTeamInviteDetails.original_folder_name: Original shared + folder name. + :ivar team_log.SfTeamInviteDetails.sharing_permission: Sharing permission. + Might be missing due to historical data gap. """ - _catch_all = 'other' - # Attribute is overwritten below the class definition - anyone_with_link = None - # Attribute is overwritten below the class definition - only_team = None - # Attribute is overwritten below the class definition - team_and_explicitly_shared = None - # Attribute is overwritten below the class definition - other = None + __slots__ = [ + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', + '_sharing_permission_value', + '_sharing_permission_present', + ] - def is_anyone_with_link(self): - """ - Check if the union tag is ``anyone_with_link``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'anyone_with_link' + def __init__(self, + target_asset_index=None, + original_folder_name=None, + sharing_permission=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + self._sharing_permission_value = None + self._sharing_permission_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name + if sharing_permission is not None: + self.sharing_permission = sharing_permission - def is_only_team(self): + @property + def target_asset_index(self): """ - Check if the union tag is ``only_team``. + Target asset position in the Assets list. - :rtype: bool + :rtype: int """ - return self._tag == 'only_team' + if self._target_asset_index_present: + return self._target_asset_index_value + else: + raise AttributeError("missing required field 'target_asset_index'") - def is_team_and_explicitly_shared(self): - """ - Check if the union tag is ``team_and_explicitly_shared``. + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - :rtype: bool - """ - return self._tag == 'team_and_explicitly_shared' + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False - def is_other(self): + @property + def original_folder_name(self): """ - Check if the union tag is ``other``. + Original shared folder name. - :rtype: bool + :rtype: str """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(PaperMemberPolicy, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PaperMemberPolicy(%r, %r)' % (self._tag, self._value) - -PaperMemberPolicy_validator = bv.Union(PaperMemberPolicy) - -class ParticipantLogInfo(bb.Union): - """ - A user or group - - 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 UserLogInfo team_log.ParticipantLogInfo.user: A user with a Dropbox - account. - :ivar GroupLogInfo team_log.ParticipantLogInfo.group: Group details. - """ + if self._original_folder_name_present: + return self._original_folder_name_value + else: + raise AttributeError("missing required field 'original_folder_name'") - _catch_all = 'other' - # Attribute is overwritten below the class definition - other = None + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True - @classmethod - def user(cls, val): - """ - Create an instance of this class set to the ``user`` tag with value - ``val``. + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False - :param team_log.UserLogInfo val: - :rtype: team_log.ParticipantLogInfo + @property + def sharing_permission(self): """ - return cls('user', val) + Sharing permission. Might be missing due to historical data gap. - @classmethod - def group(cls, val): + :rtype: str """ - Create an instance of this class set to the ``group`` tag with value - ``val``. + if self._sharing_permission_present: + return self._sharing_permission_value + else: + return None - :param team_log.GroupLogInfo val: - :rtype: team_log.ParticipantLogInfo - """ - return cls('group', val) + @sharing_permission.setter + def sharing_permission(self, val): + if val is None: + del self.sharing_permission + return + val = self._sharing_permission_validator.validate(val) + self._sharing_permission_value = val + self._sharing_permission_present = True - def is_user(self): - """ - Check if the union tag is ``user``. + @sharing_permission.deleter + def sharing_permission(self): + self._sharing_permission_value = None + self._sharing_permission_present = False - :rtype: bool - """ - return self._tag == 'user' + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamInviteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) - def is_group(self): - """ - Check if the union tag is ``group``. + def __repr__(self): + return 'SfTeamInviteDetails(target_asset_index={!r}, original_folder_name={!r}, sharing_permission={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, + self._sharing_permission_value, + ) - :rtype: bool - """ - return self._tag == 'group' +SfTeamInviteDetails_validator = bv.Struct(SfTeamInviteDetails) - def is_other(self): - """ - Check if the union tag is ``other``. +class SfTeamInviteType(bb.Struct): - :rtype: bool - """ - return self._tag == 'other' + __slots__ = [ + '_description_value', + '_description_present', + ] - def get_user(self): - """ - A user with a Dropbox account. + _has_required_fields = True - Only call this if :meth:`is_user` is true. + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description - :rtype: team_log.UserLogInfo + @property + def description(self): """ - if not self.is_user(): - raise AttributeError("tag 'user' not set") - return self._value - - def get_group(self): + :rtype: str """ - Group details. + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") - Only call this if :meth:`is_group` is true. + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - :rtype: team_log.GroupLogInfo - """ - if not self.is_group(): - raise AttributeError("tag 'group' not set") - return self._value + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ParticipantLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamInviteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ParticipantLogInfo(%r, %r)' % (self._tag, self._value) + return 'SfTeamInviteType(description={!r})'.format( + self._description_value, + ) -ParticipantLogInfo_validator = bv.Union(ParticipantLogInfo) +SfTeamInviteType_validator = bv.Struct(SfTeamInviteType) -class PassPolicy(bb.Union): +class SfTeamJoinDetails(bb.Struct): """ - 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. + Joined team member's shared folder. + + :ivar team_log.SfTeamJoinDetails.target_asset_index: Target asset position + in the Assets list. + :ivar team_log.SfTeamJoinDetails.original_folder_name: Original shared + folder name. """ - _catch_all = 'other' - # Attribute is overwritten below the class definition - enabled = None - # Attribute is overwritten below the class definition - allow = None - # Attribute is overwritten below the class definition - disabled = None - # Attribute is overwritten below the class definition - other = None + __slots__ = [ + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', + ] - def is_enabled(self): - """ - Check if the union tag is ``enabled``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'enabled' + def __init__(self, + target_asset_index=None, + original_folder_name=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name - def is_allow(self): + @property + def target_asset_index(self): """ - Check if the union tag is ``allow``. + Target asset position in the Assets list. - :rtype: bool + :rtype: int """ - return self._tag == 'allow' + if self._target_asset_index_present: + return self._target_asset_index_value + else: + raise AttributeError("missing required field 'target_asset_index'") - def is_disabled(self): - """ - Check if the union tag is ``disabled``. + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - :rtype: bool - """ - return self._tag == 'disabled' + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False - def is_other(self): + @property + def original_folder_name(self): """ - Check if the union tag is ``other``. + Original shared folder name. - :rtype: bool + :rtype: str """ - return self._tag == 'other' + if self._original_folder_name_present: + return self._original_folder_name_value + else: + raise AttributeError("missing required field 'original_folder_name'") + + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True + + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PassPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamJoinDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PassPolicy(%r, %r)' % (self._tag, self._value) + return 'SfTeamJoinDetails(target_asset_index={!r}, original_folder_name={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, + ) -PassPolicy_validator = bv.Union(PassPolicy) +SfTeamJoinDetails_validator = bv.Struct(SfTeamJoinDetails) -class PasswordChangeDetails(bb.Struct): +class SfTeamJoinFromOobLinkDetails(bb.Struct): """ - Changed password. + Joined team member's shared folder from link. + + :ivar team_log.SfTeamJoinFromOobLinkDetails.target_asset_index: Target asset + position in the Assets list. + :ivar team_log.SfTeamJoinFromOobLinkDetails.original_folder_name: Original + shared folder name. + :ivar team_log.SfTeamJoinFromOobLinkDetails.token_key: Shared link token + key. + :ivar team_log.SfTeamJoinFromOobLinkDetails.sharing_permission: Sharing + permission. Might be missing due to historical data gap. """ __slots__ = [ + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', + '_token_key_value', + '_token_key_present', + '_sharing_permission_value', + '_sharing_permission_present', ] - _has_required_fields = False - - def __init__(self): - pass - - def _process_custom_annotations(self, annotation_type, processor): - super(PasswordChangeDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PasswordChangeDetails()' + _has_required_fields = True -PasswordChangeDetails_validator = bv.Struct(PasswordChangeDetails) + def __init__(self, + target_asset_index=None, + original_folder_name=None, + token_key=None, + sharing_permission=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + self._token_key_value = None + self._token_key_present = False + self._sharing_permission_value = None + self._sharing_permission_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name + if token_key is not None: + self.token_key = token_key + if sharing_permission is not None: + self.sharing_permission = sharing_permission -class PasswordChangeType(bb.Struct): + @property + def target_asset_index(self): + """ + Target asset position in the Assets list. - __slots__ = [ - '_description_value', - '_description_present', - ] + :rtype: int + """ + if self._target_asset_index_present: + return self._target_asset_index_value + else: + raise AttributeError("missing required field 'target_asset_index'") - _has_required_fields = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False @property - def description(self): + def original_folder_name(self): """ + Original shared folder name. + :rtype: str """ - if self._description_present: - return self._description_value + if self._original_folder_name_present: + return self._original_folder_name_value else: - raise AttributeError("missing required field 'description'") + raise AttributeError("missing required field 'original_folder_name'") - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PasswordChangeType, self)._process_custom_annotations(annotation_type, processor) + @property + def token_key(self): + """ + Shared link token key. - def __repr__(self): - return 'PasswordChangeType(description={!r})'.format( - self._description_value, - ) + :rtype: str + """ + if self._token_key_present: + return self._token_key_value + else: + return None -PasswordChangeType_validator = bv.Struct(PasswordChangeType) + @token_key.setter + def token_key(self, val): + if val is None: + del self.token_key + return + val = self._token_key_validator.validate(val) + self._token_key_value = val + self._token_key_present = True -class PasswordResetAllDetails(bb.Struct): - """ - Reset all team member passwords. - """ + @token_key.deleter + def token_key(self): + self._token_key_value = None + self._token_key_present = False - __slots__ = [ - ] + @property + def sharing_permission(self): + """ + Sharing permission. Might be missing due to historical data gap. - _has_required_fields = False + :rtype: str + """ + if self._sharing_permission_present: + return self._sharing_permission_value + else: + return None - def __init__(self): - pass + @sharing_permission.setter + def sharing_permission(self, val): + if val is None: + del self.sharing_permission + return + val = self._sharing_permission_validator.validate(val) + self._sharing_permission_value = val + self._sharing_permission_present = True + + @sharing_permission.deleter + def sharing_permission(self): + self._sharing_permission_value = None + self._sharing_permission_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PasswordResetAllDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamJoinFromOobLinkDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PasswordResetAllDetails()' + return 'SfTeamJoinFromOobLinkDetails(target_asset_index={!r}, original_folder_name={!r}, token_key={!r}, sharing_permission={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, + self._token_key_value, + self._sharing_permission_value, + ) -PasswordResetAllDetails_validator = bv.Struct(PasswordResetAllDetails) +SfTeamJoinFromOobLinkDetails_validator = bv.Struct(SfTeamJoinFromOobLinkDetails) -class PasswordResetAllType(bb.Struct): +class SfTeamJoinFromOobLinkType(bb.Struct): __slots__ = [ '_description_value', @@ -44810,38 +52966,17 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PasswordResetAllType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamJoinFromOobLinkType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PasswordResetAllType(description={!r})'.format( + return 'SfTeamJoinFromOobLinkType(description={!r})'.format( self._description_value, ) -PasswordResetAllType_validator = bv.Struct(PasswordResetAllType) - -class PasswordResetDetails(bb.Struct): - """ - Reset password. - """ - - __slots__ = [ - ] - - _has_required_fields = False - - def __init__(self): - pass - - def _process_custom_annotations(self, annotation_type, processor): - super(PasswordResetDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PasswordResetDetails()' - -PasswordResetDetails_validator = bv.Struct(PasswordResetDetails) +SfTeamJoinFromOobLinkType_validator = bv.Struct(SfTeamJoinFromOobLinkType) -class PasswordResetType(bb.Struct): +class SfTeamJoinType(bb.Struct): __slots__ = [ '_description_value', @@ -44878,202 +53013,105 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PasswordResetType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamJoinType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PasswordResetType(description={!r})'.format( + return 'SfTeamJoinType(description={!r})'.format( self._description_value, ) -PasswordResetType_validator = bv.Struct(PasswordResetType) - -class PathLogInfo(bb.Struct): - """ - Path's details. - - :ivar team_log.PathLogInfo.contextual: Fully qualified path relative to - event's context. Might be missing due to historical data gap. - :ivar team_log.PathLogInfo.namespace_relative: Path relative to the - namespace containing the content. - """ - - __slots__ = [ - '_contextual_value', - '_contextual_present', - '_namespace_relative_value', - '_namespace_relative_present', - ] - - _has_required_fields = True - - def __init__(self, - namespace_relative=None, - contextual=None): - self._contextual_value = None - self._contextual_present = False - self._namespace_relative_value = None - self._namespace_relative_present = False - if contextual is not None: - self.contextual = contextual - if namespace_relative is not None: - self.namespace_relative = namespace_relative - - @property - def contextual(self): - """ - Fully qualified path relative to event's context. Might be missing due - to historical data gap. - - :rtype: str - """ - if self._contextual_present: - return self._contextual_value - else: - return None - - @contextual.setter - def contextual(self, val): - if val is None: - del self.contextual - return - val = self._contextual_validator.validate(val) - self._contextual_value = val - self._contextual_present = True - - @contextual.deleter - def contextual(self): - self._contextual_value = None - self._contextual_present = False - - @property - def namespace_relative(self): - """ - Path relative to the namespace containing the content. - - :rtype: team_log.NamespaceRelativePathLogInfo - """ - if self._namespace_relative_present: - return self._namespace_relative_value - else: - raise AttributeError("missing required field 'namespace_relative'") - - @namespace_relative.setter - def namespace_relative(self, val): - self._namespace_relative_validator.validate_type_only(val) - self._namespace_relative_value = val - self._namespace_relative_present = True - - @namespace_relative.deleter - def namespace_relative(self): - self._namespace_relative_value = None - self._namespace_relative_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(PathLogInfo, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PathLogInfo(namespace_relative={!r}, contextual={!r})'.format( - self._namespace_relative_value, - self._contextual_value, - ) - -PathLogInfo_validator = bv.Struct(PathLogInfo) +SfTeamJoinType_validator = bv.Struct(SfTeamJoinType) -class PermanentDeleteChangePolicyDetails(bb.Struct): +class SfTeamUninviteDetails(bb.Struct): """ - Enabled/disabled ability of team members to permanently delete content. + Unshared folder with team member. - :ivar team_log.PermanentDeleteChangePolicyDetails.new_value: New permanent - delete content policy. - :ivar team_log.PermanentDeleteChangePolicyDetails.previous_value: Previous - permanent delete content policy. Might be missing due to historical data - gap. + :ivar team_log.SfTeamUninviteDetails.target_asset_index: Target asset + position in the Assets list. + :ivar team_log.SfTeamUninviteDetails.original_folder_name: Original shared + folder name. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_target_asset_index_value', + '_target_asset_index_present', + '_original_folder_name_value', + '_original_folder_name_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + target_asset_index=None, + original_folder_name=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + self._original_folder_name_value = None + self._original_folder_name_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index + if original_folder_name is not None: + self.original_folder_name = original_folder_name @property - def new_value(self): + def target_asset_index(self): """ - New permanent delete content policy. + Target asset position in the Assets list. - :rtype: team_log.ContentPermanentDeletePolicy + :rtype: int """ - if self._new_value_present: - return self._new_value_value + if self._target_asset_index_present: + return self._target_asset_index_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'target_asset_index'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False @property - def previous_value(self): + def original_folder_name(self): """ - Previous permanent delete content policy. Might be missing due to - historical data gap. + Original shared folder name. - :rtype: team_log.ContentPermanentDeletePolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._original_folder_name_present: + return self._original_folder_name_value else: - return None + raise AttributeError("missing required field 'original_folder_name'") - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + @original_folder_name.setter + def original_folder_name(self, val): + val = self._original_folder_name_validator.validate(val) + self._original_folder_name_value = val + self._original_folder_name_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @original_folder_name.deleter + def original_folder_name(self): + self._original_folder_name_value = None + self._original_folder_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PermanentDeleteChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamUninviteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PermanentDeleteChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'SfTeamUninviteDetails(target_asset_index={!r}, original_folder_name={!r})'.format( + self._target_asset_index_value, + self._original_folder_name_value, ) -PermanentDeleteChangePolicyDetails_validator = bv.Struct(PermanentDeleteChangePolicyDetails) +SfTeamUninviteDetails_validator = bv.Struct(SfTeamUninviteDetails) -class PermanentDeleteChangePolicyType(bb.Struct): +class SfTeamUninviteType(bb.Struct): __slots__ = [ '_description_value', @@ -45110,299 +53148,211 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(PermanentDeleteChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SfTeamUninviteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'PermanentDeleteChangePolicyType(description={!r})'.format( + return 'SfTeamUninviteType(description={!r})'.format( self._description_value, ) -PermanentDeleteChangePolicyType_validator = bv.Struct(PermanentDeleteChangePolicyType) - -class PlacementRestriction(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 - europe_only = None - # Attribute is overwritten below the class definition - none = None - # Attribute is overwritten below the class definition - other = None - - def is_europe_only(self): - """ - Check if the union tag is ``europe_only``. - - :rtype: bool - """ - return self._tag == 'europe_only' - - def is_none(self): - """ - Check if the union tag is ``none``. - - :rtype: bool - """ - return self._tag == 'none' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(PlacementRestriction, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'PlacementRestriction(%r, %r)' % (self._tag, self._value) - -PlacementRestriction_validator = bv.Union(PlacementRestriction) - -class QuickActionType(bb.Union): - """ - Quick action type. - - 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 - delete_shared_link = None - # Attribute is overwritten below the class definition - other = None - - def is_delete_shared_link(self): - """ - Check if the union tag is ``delete_shared_link``. - - :rtype: bool - """ - return self._tag == 'delete_shared_link' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(QuickActionType, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'QuickActionType(%r, %r)' % (self._tag, self._value) - -QuickActionType_validator = bv.Union(QuickActionType) +SfTeamUninviteType_validator = bv.Struct(SfTeamUninviteType) -class RelocateAssetReferencesLogInfo(bb.Struct): +class SharedContentAddInviteesDetails(bb.Struct): """ - Provides the indices of the source asset and the destination asset for a - relocate action. + Invited user to Dropbox and added them to shared file/folder. - :ivar team_log.RelocateAssetReferencesLogInfo.src_asset_index: Source asset - position in the Assets list. - :ivar team_log.RelocateAssetReferencesLogInfo.dest_asset_index: Destination - asset position in the Assets list. + :ivar team_log.SharedContentAddInviteesDetails.shared_content_access_level: + Shared content access level. + :ivar team_log.SharedContentAddInviteesDetails.invitees: A list of invitees. """ __slots__ = [ - '_src_asset_index_value', - '_src_asset_index_present', - '_dest_asset_index_value', - '_dest_asset_index_present', + '_shared_content_access_level_value', + '_shared_content_access_level_present', + '_invitees_value', + '_invitees_present', ] _has_required_fields = True def __init__(self, - src_asset_index=None, - dest_asset_index=None): - self._src_asset_index_value = None - self._src_asset_index_present = False - self._dest_asset_index_value = None - self._dest_asset_index_present = False - if src_asset_index is not None: - self.src_asset_index = src_asset_index - if dest_asset_index is not None: - self.dest_asset_index = dest_asset_index + shared_content_access_level=None, + invitees=None): + self._shared_content_access_level_value = None + self._shared_content_access_level_present = False + self._invitees_value = None + self._invitees_present = False + if shared_content_access_level is not None: + self.shared_content_access_level = shared_content_access_level + if invitees is not None: + self.invitees = invitees @property - def src_asset_index(self): + def shared_content_access_level(self): """ - Source asset position in the Assets list. + Shared content access level. - :rtype: int + :rtype: sharing.AccessLevel """ - if self._src_asset_index_present: - return self._src_asset_index_value + if self._shared_content_access_level_present: + return self._shared_content_access_level_value else: - raise AttributeError("missing required field 'src_asset_index'") + raise AttributeError("missing required field 'shared_content_access_level'") - @src_asset_index.setter - def src_asset_index(self, val): - val = self._src_asset_index_validator.validate(val) - self._src_asset_index_value = val - self._src_asset_index_present = True + @shared_content_access_level.setter + def shared_content_access_level(self, val): + self._shared_content_access_level_validator.validate_type_only(val) + self._shared_content_access_level_value = val + self._shared_content_access_level_present = True - @src_asset_index.deleter - def src_asset_index(self): - self._src_asset_index_value = None - self._src_asset_index_present = False + @shared_content_access_level.deleter + def shared_content_access_level(self): + self._shared_content_access_level_value = None + self._shared_content_access_level_present = False @property - def dest_asset_index(self): + def invitees(self): """ - Destination asset position in the Assets list. + A list of invitees. - :rtype: int + :rtype: list of [str] """ - if self._dest_asset_index_present: - return self._dest_asset_index_value + if self._invitees_present: + return self._invitees_value else: - raise AttributeError("missing required field 'dest_asset_index'") + raise AttributeError("missing required field 'invitees'") - @dest_asset_index.setter - def dest_asset_index(self, val): - val = self._dest_asset_index_validator.validate(val) - self._dest_asset_index_value = val - self._dest_asset_index_present = True + @invitees.setter + def invitees(self, val): + val = self._invitees_validator.validate(val) + self._invitees_value = val + self._invitees_present = True - @dest_asset_index.deleter - def dest_asset_index(self): - self._dest_asset_index_value = None - self._dest_asset_index_present = False + @invitees.deleter + def invitees(self): + self._invitees_value = None + self._invitees_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(RelocateAssetReferencesLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentAddInviteesDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'RelocateAssetReferencesLogInfo(src_asset_index={!r}, dest_asset_index={!r})'.format( - self._src_asset_index_value, - self._dest_asset_index_value, + return 'SharedContentAddInviteesDetails(shared_content_access_level={!r}, invitees={!r})'.format( + self._shared_content_access_level_value, + self._invitees_value, ) -RelocateAssetReferencesLogInfo_validator = bv.Struct(RelocateAssetReferencesLogInfo) - -class ResellerLogInfo(bb.Struct): - """ - Reseller information. +SharedContentAddInviteesDetails_validator = bv.Struct(SharedContentAddInviteesDetails) - :ivar team_log.ResellerLogInfo.reseller_name: Reseller name. - :ivar team_log.ResellerLogInfo.reseller_email: Reseller email. - """ +class SharedContentAddInviteesType(bb.Struct): __slots__ = [ - '_reseller_name_value', - '_reseller_name_present', - '_reseller_email_value', - '_reseller_email_present', + '_description_value', + '_description_present', ] _has_required_fields = True def __init__(self, - reseller_name=None, - reseller_email=None): - self._reseller_name_value = None - self._reseller_name_present = False - self._reseller_email_value = None - self._reseller_email_present = False - if reseller_name is not None: - self.reseller_name = reseller_name - if reseller_email is not None: - self.reseller_email = reseller_email - - @property - def reseller_name(self): - """ - Reseller name. - - :rtype: str - """ - if self._reseller_name_present: - return self._reseller_name_value - else: - raise AttributeError("missing required field 'reseller_name'") - - @reseller_name.setter - def reseller_name(self, val): - val = self._reseller_name_validator.validate(val) - self._reseller_name_value = val - self._reseller_name_present = True - - @reseller_name.deleter - def reseller_name(self): - self._reseller_name_value = None - self._reseller_name_present = False + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def reseller_email(self): + def description(self): """ - Reseller email. - :rtype: str """ - if self._reseller_email_present: - return self._reseller_email_value + if self._description_present: + return self._description_value else: - raise AttributeError("missing required field 'reseller_email'") - - @reseller_email.setter - def reseller_email(self, val): - val = self._reseller_email_validator.validate(val) - self._reseller_email_value = val - self._reseller_email_present = True + raise AttributeError("missing required field 'description'") - @reseller_email.deleter - def reseller_email(self): - self._reseller_email_value = None - self._reseller_email_present = False + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(ResellerLogInfo, self)._process_custom_annotations(annotation_type, processor) + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentAddInviteesType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ResellerLogInfo(reseller_name={!r}, reseller_email={!r})'.format( - self._reseller_name_value, - self._reseller_email_value, + return 'SharedContentAddInviteesType(description={!r})'.format( + self._description_value, ) -ResellerLogInfo_validator = bv.Struct(ResellerLogInfo) +SharedContentAddInviteesType_validator = bv.Struct(SharedContentAddInviteesType) -class ResellerSupportSessionEndDetails(bb.Struct): +class SharedContentAddLinkExpiryDetails(bb.Struct): """ - Ended reseller support session. + Added expiration date to link for shared file/folder. + + :ivar team_log.SharedContentAddLinkExpiryDetails.new_value: New shared + content link expiration date. Might be missing due to historical data + gap. """ __slots__ = [ + '_new_value_value', + '_new_value_present', ] _has_required_fields = False - def __init__(self): - pass + def __init__(self, + new_value=None): + self._new_value_value = None + self._new_value_present = False + if new_value is not None: + self.new_value = new_value + + @property + def new_value(self): + """ + New shared content link expiration date. Might be missing due to + historical data gap. + + :rtype: datetime.datetime + """ + if self._new_value_present: + return self._new_value_value + else: + return None + + @new_value.setter + def new_value(self, val): + if val is None: + del self.new_value + return + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ResellerSupportSessionEndDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentAddLinkExpiryDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ResellerSupportSessionEndDetails()' + return 'SharedContentAddLinkExpiryDetails(new_value={!r})'.format( + self._new_value_value, + ) -ResellerSupportSessionEndDetails_validator = bv.Struct(ResellerSupportSessionEndDetails) +SharedContentAddLinkExpiryDetails_validator = bv.Struct(SharedContentAddLinkExpiryDetails) -class ResellerSupportSessionEndType(bb.Struct): +class SharedContentAddLinkExpiryType(bb.Struct): __slots__ = [ '_description_value', @@ -45439,19 +53389,19 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ResellerSupportSessionEndType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentAddLinkExpiryType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ResellerSupportSessionEndType(description={!r})'.format( + return 'SharedContentAddLinkExpiryType(description={!r})'.format( self._description_value, ) -ResellerSupportSessionEndType_validator = bv.Struct(ResellerSupportSessionEndType) +SharedContentAddLinkExpiryType_validator = bv.Struct(SharedContentAddLinkExpiryType) -class ResellerSupportSessionStartDetails(bb.Struct): +class SharedContentAddLinkPasswordDetails(bb.Struct): """ - Started reseller support session. + Added password to link for shared file/folder. """ __slots__ = [ @@ -45462,15 +53412,15 @@ class ResellerSupportSessionStartDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(ResellerSupportSessionStartDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentAddLinkPasswordDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ResellerSupportSessionStartDetails()' + return 'SharedContentAddLinkPasswordDetails()' -ResellerSupportSessionStartDetails_validator = bv.Struct(ResellerSupportSessionStartDetails) +SharedContentAddLinkPasswordDetails_validator = bv.Struct(SharedContentAddLinkPasswordDetails) -class ResellerSupportSessionStartType(bb.Struct): +class SharedContentAddLinkPasswordType(bb.Struct): __slots__ = [ '_description_value', @@ -45507,152 +53457,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ResellerSupportSessionStartType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentAddLinkPasswordType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ResellerSupportSessionStartType(description={!r})'.format( + return 'SharedContentAddLinkPasswordType(description={!r})'.format( self._description_value, ) -ResellerSupportSessionStartType_validator = bv.Struct(ResellerSupportSessionStartType) - -class SecondaryMailsPolicy(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 - disabled = None - # Attribute is overwritten below the class definition - enabled = None - # Attribute is overwritten below the class definition - other = None - - def is_disabled(self): - """ - Check if the union tag is ``disabled``. - - :rtype: bool - """ - return self._tag == 'disabled' - - def is_enabled(self): - """ - Check if the union tag is ``enabled``. - - :rtype: bool - """ - return self._tag == 'enabled' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(SecondaryMailsPolicy, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SecondaryMailsPolicy(%r, %r)' % (self._tag, self._value) - -SecondaryMailsPolicy_validator = bv.Union(SecondaryMailsPolicy) +SharedContentAddLinkPasswordType_validator = bv.Struct(SharedContentAddLinkPasswordType) -class SecondaryMailsPolicyChangedDetails(bb.Struct): +class SharedContentAddMemberDetails(bb.Struct): """ - Secondary mails policy changed. + Added users and/or groups to shared file/folder. - :ivar team_log.SecondaryMailsPolicyChangedDetails.previous_value: Previous - secondary mails policy. - :ivar team_log.SecondaryMailsPolicyChangedDetails.new_value: New secondary - mails policy. + :ivar team_log.SharedContentAddMemberDetails.shared_content_access_level: + Shared content access level. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', - '_new_value_value', - '_new_value_present', + '_shared_content_access_level_value', + '_shared_content_access_level_present', ] _has_required_fields = True def __init__(self, - previous_value=None, - new_value=None): - self._previous_value_value = None - self._previous_value_present = False - self._new_value_value = None - self._new_value_present = False - if previous_value is not None: - self.previous_value = previous_value - if new_value is not None: - self.new_value = new_value - - @property - def previous_value(self): - """ - Previous secondary mails policy. - - :rtype: team_log.SecondaryMailsPolicy - """ - if self._previous_value_present: - return self._previous_value_value - else: - raise AttributeError("missing required field 'previous_value'") - - @previous_value.setter - def previous_value(self, val): - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True - - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + shared_content_access_level=None): + self._shared_content_access_level_value = None + self._shared_content_access_level_present = False + if shared_content_access_level is not None: + self.shared_content_access_level = shared_content_access_level @property - def new_value(self): + def shared_content_access_level(self): """ - New secondary mails policy. + Shared content access level. - :rtype: team_log.SecondaryMailsPolicy + :rtype: sharing.AccessLevel """ - if self._new_value_present: - return self._new_value_value + if self._shared_content_access_level_present: + return self._shared_content_access_level_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'shared_content_access_level'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @shared_content_access_level.setter + def shared_content_access_level(self, val): + self._shared_content_access_level_validator.validate_type_only(val) + self._shared_content_access_level_value = val + self._shared_content_access_level_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @shared_content_access_level.deleter + def shared_content_access_level(self): + self._shared_content_access_level_value = None + self._shared_content_access_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SecondaryMailsPolicyChangedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentAddMemberDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SecondaryMailsPolicyChangedDetails(previous_value={!r}, new_value={!r})'.format( - self._previous_value_value, - self._new_value_value, + return 'SharedContentAddMemberDetails(shared_content_access_level={!r})'.format( + self._shared_content_access_level_value, ) -SecondaryMailsPolicyChangedDetails_validator = bv.Struct(SecondaryMailsPolicyChangedDetails) +SharedContentAddMemberDetails_validator = bv.Struct(SharedContentAddMemberDetails) -class SecondaryMailsPolicyChangedType(bb.Struct): +class SharedContentAddMemberType(bb.Struct): __slots__ = [ '_description_value', @@ -45689,173 +53559,108 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SecondaryMailsPolicyChangedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentAddMemberType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SecondaryMailsPolicyChangedType(description={!r})'.format( + return 'SharedContentAddMemberType(description={!r})'.format( self._description_value, ) -SecondaryMailsPolicyChangedType_validator = bv.Struct(SecondaryMailsPolicyChangedType) +SharedContentAddMemberType_validator = bv.Struct(SharedContentAddMemberType) -class SfAddGroupDetails(bb.Struct): +class SharedContentChangeDownloadsPolicyDetails(bb.Struct): """ - Added team to shared folder. + Changed whether members can download shared file/folder. - :ivar team_log.SfAddGroupDetails.target_asset_index: Target asset position - in the Assets list. - :ivar team_log.SfAddGroupDetails.original_folder_name: Original shared - folder name. - :ivar team_log.SfAddGroupDetails.sharing_permission: Sharing permission. - Might be missing due to historical data gap. - :ivar team_log.SfAddGroupDetails.team_name: Team name. + :ivar team_log.SharedContentChangeDownloadsPolicyDetails.new_value: New + downloads policy. + :ivar team_log.SharedContentChangeDownloadsPolicyDetails.previous_value: + Previous downloads policy. Might be missing due to historical data gap. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', - '_sharing_permission_value', - '_sharing_permission_present', - '_team_name_value', - '_team_name_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - target_asset_index=None, - original_folder_name=None, - team_name=None, - sharing_permission=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - self._sharing_permission_value = None - self._sharing_permission_present = False - self._team_name_value = None - self._team_name_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name - if sharing_permission is not None: - self.sharing_permission = sharing_permission - if team_name is not None: - self.team_name = team_name - - @property - def target_asset_index(self): - """ - Target asset position in the Assets list. - - :rtype: int - """ - if self._target_asset_index_present: - return self._target_asset_index_value - else: - raise AttributeError("missing required field 'target_asset_index'") - - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True - - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def original_folder_name(self): + def new_value(self): """ - Original shared folder name. + New downloads policy. - :rtype: str + :rtype: DownloadPolicyType """ - if self._original_folder_name_present: - return self._original_folder_name_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'original_folder_name'") + raise AttributeError("missing required field 'new_value'") - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False @property - def sharing_permission(self): + def previous_value(self): """ - Sharing permission. Might be missing due to historical data gap. + Previous downloads policy. Might be missing due to historical data gap. - :rtype: str + :rtype: DownloadPolicyType """ - if self._sharing_permission_present: - return self._sharing_permission_value + if self._previous_value_present: + return self._previous_value_value else: return None - @sharing_permission.setter - def sharing_permission(self, val): + @previous_value.setter + def previous_value(self, val): if val is None: - del self.sharing_permission + del self.previous_value return - val = self._sharing_permission_validator.validate(val) - self._sharing_permission_value = val - self._sharing_permission_present = True - - @sharing_permission.deleter - def sharing_permission(self): - self._sharing_permission_value = None - self._sharing_permission_present = False - - @property - def team_name(self): - """ - Team name. - - :rtype: str - """ - if self._team_name_present: - return self._team_name_value - else: - raise AttributeError("missing required field 'team_name'") - - @team_name.setter - def team_name(self, val): - val = self._team_name_validator.validate(val) - self._team_name_value = val - self._team_name_present = True + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True - @team_name.deleter - def team_name(self): - self._team_name_value = None - self._team_name_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfAddGroupDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeDownloadsPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfAddGroupDetails(target_asset_index={!r}, original_folder_name={!r}, team_name={!r}, sharing_permission={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, - self._team_name_value, - self._sharing_permission_value, + return 'SharedContentChangeDownloadsPolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, ) -SfAddGroupDetails_validator = bv.Struct(SfAddGroupDetails) +SharedContentChangeDownloadsPolicyDetails_validator = bv.Struct(SharedContentChangeDownloadsPolicyDetails) -class SfAddGroupType(bb.Struct): +class SharedContentChangeDownloadsPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -45892,142 +53697,142 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfAddGroupType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeDownloadsPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfAddGroupType(description={!r})'.format( + return 'SharedContentChangeDownloadsPolicyType(description={!r})'.format( self._description_value, ) -SfAddGroupType_validator = bv.Struct(SfAddGroupType) +SharedContentChangeDownloadsPolicyType_validator = bv.Struct(SharedContentChangeDownloadsPolicyType) -class SfAllowNonMembersToViewSharedLinksDetails(bb.Struct): +class SharedContentChangeInviteeRoleDetails(bb.Struct): """ - Allowed non-collaborators to view links to files in shared folder. + Changed access type of invitee to shared file/folder before invite was + accepted. - :ivar team_log.SfAllowNonMembersToViewSharedLinksDetails.target_asset_index: - Target asset position in the Assets list. - :ivar - team_log.SfAllowNonMembersToViewSharedLinksDetails.original_folder_name: - Original shared folder name. - :ivar team_log.SfAllowNonMembersToViewSharedLinksDetails.shared_folder_type: - Shared folder type. Might be missing due to historical data gap. + :ivar team_log.SharedContentChangeInviteeRoleDetails.previous_access_level: + Previous access level. Might be missing due to historical data gap. + :ivar team_log.SharedContentChangeInviteeRoleDetails.new_access_level: New + access level. + :ivar team_log.SharedContentChangeInviteeRoleDetails.invitee: The invitee + whose role was changed. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', - '_shared_folder_type_value', - '_shared_folder_type_present', + '_previous_access_level_value', + '_previous_access_level_present', + '_new_access_level_value', + '_new_access_level_present', + '_invitee_value', + '_invitee_present', ] _has_required_fields = True def __init__(self, - target_asset_index=None, - original_folder_name=None, - shared_folder_type=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - self._shared_folder_type_value = None - self._shared_folder_type_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name - if shared_folder_type is not None: - self.shared_folder_type = shared_folder_type + new_access_level=None, + invitee=None, + previous_access_level=None): + self._previous_access_level_value = None + self._previous_access_level_present = False + self._new_access_level_value = None + self._new_access_level_present = False + self._invitee_value = None + self._invitee_present = False + if previous_access_level is not None: + self.previous_access_level = previous_access_level + if new_access_level is not None: + self.new_access_level = new_access_level + if invitee is not None: + self.invitee = invitee @property - def target_asset_index(self): + def previous_access_level(self): """ - Target asset position in the Assets list. + Previous access level. Might be missing due to historical data gap. - :rtype: int + :rtype: sharing.AccessLevel """ - if self._target_asset_index_present: - return self._target_asset_index_value + if self._previous_access_level_present: + return self._previous_access_level_value else: - raise AttributeError("missing required field 'target_asset_index'") + return None - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True + @previous_access_level.setter + def previous_access_level(self, val): + if val is None: + del self.previous_access_level + return + self._previous_access_level_validator.validate_type_only(val) + self._previous_access_level_value = val + self._previous_access_level_present = True - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False + @previous_access_level.deleter + def previous_access_level(self): + self._previous_access_level_value = None + self._previous_access_level_present = False @property - def original_folder_name(self): + def new_access_level(self): """ - Original shared folder name. + New access level. - :rtype: str + :rtype: sharing.AccessLevel """ - if self._original_folder_name_present: - return self._original_folder_name_value + if self._new_access_level_present: + return self._new_access_level_value else: - raise AttributeError("missing required field 'original_folder_name'") + raise AttributeError("missing required field 'new_access_level'") - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True + @new_access_level.setter + def new_access_level(self, val): + self._new_access_level_validator.validate_type_only(val) + self._new_access_level_value = val + self._new_access_level_present = True - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False + @new_access_level.deleter + def new_access_level(self): + self._new_access_level_value = None + self._new_access_level_present = False @property - def shared_folder_type(self): + def invitee(self): """ - Shared folder type. Might be missing due to historical data gap. + The invitee whose role was changed. :rtype: str """ - if self._shared_folder_type_present: - return self._shared_folder_type_value + if self._invitee_present: + return self._invitee_value else: - return None + raise AttributeError("missing required field 'invitee'") - @shared_folder_type.setter - def shared_folder_type(self, val): - if val is None: - del self.shared_folder_type - return - val = self._shared_folder_type_validator.validate(val) - self._shared_folder_type_value = val - self._shared_folder_type_present = True + @invitee.setter + def invitee(self, val): + val = self._invitee_validator.validate(val) + self._invitee_value = val + self._invitee_present = True - @shared_folder_type.deleter - def shared_folder_type(self): - self._shared_folder_type_value = None - self._shared_folder_type_present = False + @invitee.deleter + def invitee(self): + self._invitee_value = None + self._invitee_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfAllowNonMembersToViewSharedLinksDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeInviteeRoleDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfAllowNonMembersToViewSharedLinksDetails(target_asset_index={!r}, original_folder_name={!r}, shared_folder_type={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, - self._shared_folder_type_value, + return 'SharedContentChangeInviteeRoleDetails(new_access_level={!r}, invitee={!r}, previous_access_level={!r})'.format( + self._new_access_level_value, + self._invitee_value, + self._previous_access_level_value, ) -SfAllowNonMembersToViewSharedLinksDetails_validator = bv.Struct(SfAllowNonMembersToViewSharedLinksDetails) +SharedContentChangeInviteeRoleDetails_validator = bv.Struct(SharedContentChangeInviteeRoleDetails) -class SfAllowNonMembersToViewSharedLinksType(bb.Struct): +class SharedContentChangeInviteeRoleType(bb.Struct): __slots__ = [ '_description_value', @@ -46064,179 +53869,108 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfAllowNonMembersToViewSharedLinksType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeInviteeRoleType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfAllowNonMembersToViewSharedLinksType(description={!r})'.format( + return 'SharedContentChangeInviteeRoleType(description={!r})'.format( self._description_value, ) -SfAllowNonMembersToViewSharedLinksType_validator = bv.Struct(SfAllowNonMembersToViewSharedLinksType) +SharedContentChangeInviteeRoleType_validator = bv.Struct(SharedContentChangeInviteeRoleType) -class SfExternalInviteWarnDetails(bb.Struct): +class SharedContentChangeLinkAudienceDetails(bb.Struct): """ - Set team members to see warning before sharing folders outside team. + Changed link audience of shared file/folder. - :ivar team_log.SfExternalInviteWarnDetails.target_asset_index: Target asset - position in the Assets list. - :ivar team_log.SfExternalInviteWarnDetails.original_folder_name: Original - shared folder name. - :ivar team_log.SfExternalInviteWarnDetails.new_sharing_permission: New - sharing permission. Might be missing due to historical data gap. - :ivar team_log.SfExternalInviteWarnDetails.previous_sharing_permission: - Previous sharing permission. Might be missing due to historical data - gap. + :ivar team_log.SharedContentChangeLinkAudienceDetails.new_value: New link + audience value. + :ivar team_log.SharedContentChangeLinkAudienceDetails.previous_value: + Previous link audience value. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', - '_new_sharing_permission_value', - '_new_sharing_permission_present', - '_previous_sharing_permission_value', - '_previous_sharing_permission_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - target_asset_index=None, - original_folder_name=None, - new_sharing_permission=None, - previous_sharing_permission=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - self._new_sharing_permission_value = None - self._new_sharing_permission_present = False - self._previous_sharing_permission_value = None - self._previous_sharing_permission_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name - if new_sharing_permission is not None: - self.new_sharing_permission = new_sharing_permission - if previous_sharing_permission is not None: - self.previous_sharing_permission = previous_sharing_permission - - @property - def target_asset_index(self): - """ - Target asset position in the Assets list. - - :rtype: int - """ - if self._target_asset_index_present: - return self._target_asset_index_value - else: - raise AttributeError("missing required field 'target_asset_index'") - - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True - - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False - - @property - def original_folder_name(self): - """ - Original shared folder name. - - :rtype: str - """ - if self._original_folder_name_present: - return self._original_folder_name_value - else: - raise AttributeError("missing required field 'original_folder_name'") - - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True - - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def new_sharing_permission(self): + def new_value(self): """ - New sharing permission. Might be missing due to historical data gap. + New link audience value. - :rtype: str + :rtype: sharing.LinkAudience """ - if self._new_sharing_permission_present: - return self._new_sharing_permission_value + if self._new_value_present: + return self._new_value_value else: - return None + raise AttributeError("missing required field 'new_value'") - @new_sharing_permission.setter - def new_sharing_permission(self, val): - if val is None: - del self.new_sharing_permission - return - val = self._new_sharing_permission_validator.validate(val) - self._new_sharing_permission_value = val - self._new_sharing_permission_present = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - @new_sharing_permission.deleter - def new_sharing_permission(self): - self._new_sharing_permission_value = None - self._new_sharing_permission_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False @property - def previous_sharing_permission(self): + def previous_value(self): """ - Previous sharing permission. Might be missing due to historical data - gap. + Previous link audience value. - :rtype: str + :rtype: sharing.LinkAudience """ - if self._previous_sharing_permission_present: - return self._previous_sharing_permission_value + if self._previous_value_present: + return self._previous_value_value else: return None - @previous_sharing_permission.setter - def previous_sharing_permission(self, val): + @previous_value.setter + def previous_value(self, val): if val is None: - del self.previous_sharing_permission + del self.previous_value return - val = self._previous_sharing_permission_validator.validate(val) - self._previous_sharing_permission_value = val - self._previous_sharing_permission_present = True + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True - @previous_sharing_permission.deleter - def previous_sharing_permission(self): - self._previous_sharing_permission_value = None - self._previous_sharing_permission_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfExternalInviteWarnDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeLinkAudienceDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfExternalInviteWarnDetails(target_asset_index={!r}, original_folder_name={!r}, new_sharing_permission={!r}, previous_sharing_permission={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, - self._new_sharing_permission_value, - self._previous_sharing_permission_value, + return 'SharedContentChangeLinkAudienceDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, ) -SfExternalInviteWarnDetails_validator = bv.Struct(SfExternalInviteWarnDetails) +SharedContentChangeLinkAudienceDetails_validator = bv.Struct(SharedContentChangeLinkAudienceDetails) -class SfExternalInviteWarnType(bb.Struct): +class SharedContentChangeLinkAudienceType(bb.Struct): __slots__ = [ '_description_value', @@ -46273,179 +54007,115 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfExternalInviteWarnType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeLinkAudienceType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfExternalInviteWarnType(description={!r})'.format( + return 'SharedContentChangeLinkAudienceType(description={!r})'.format( self._description_value, ) -SfExternalInviteWarnType_validator = bv.Struct(SfExternalInviteWarnType) +SharedContentChangeLinkAudienceType_validator = bv.Struct(SharedContentChangeLinkAudienceType) -class SfFbInviteChangeRoleDetails(bb.Struct): +class SharedContentChangeLinkExpiryDetails(bb.Struct): """ - Changed Facebook user's role in shared folder. + Changed link expiration of shared file/folder. - :ivar team_log.SfFbInviteChangeRoleDetails.target_asset_index: Target asset - position in the Assets list. - :ivar team_log.SfFbInviteChangeRoleDetails.original_folder_name: Original - shared folder name. - :ivar team_log.SfFbInviteChangeRoleDetails.previous_sharing_permission: - Previous sharing permission. Might be missing due to historical data + :ivar team_log.SharedContentChangeLinkExpiryDetails.new_value: New shared + content link expiration date. Might be missing due to historical data gap. - :ivar team_log.SfFbInviteChangeRoleDetails.new_sharing_permission: New - sharing permission. Might be missing due to historical data gap. + :ivar team_log.SharedContentChangeLinkExpiryDetails.previous_value: Previous + shared content link expiration date. Might be missing due to historical + data gap. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', - '_previous_sharing_permission_value', - '_previous_sharing_permission_present', - '_new_sharing_permission_value', - '_new_sharing_permission_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] - _has_required_fields = True + _has_required_fields = False def __init__(self, - target_asset_index=None, - original_folder_name=None, - previous_sharing_permission=None, - new_sharing_permission=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - self._previous_sharing_permission_value = None - self._previous_sharing_permission_present = False - self._new_sharing_permission_value = None - self._new_sharing_permission_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name - if previous_sharing_permission is not None: - self.previous_sharing_permission = previous_sharing_permission - if new_sharing_permission is not None: - self.new_sharing_permission = new_sharing_permission - - @property - def target_asset_index(self): - """ - Target asset position in the Assets list. - - :rtype: int - """ - if self._target_asset_index_present: - return self._target_asset_index_value - else: - raise AttributeError("missing required field 'target_asset_index'") - - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True - - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False - - @property - def original_folder_name(self): - """ - Original shared folder name. - - :rtype: str - """ - if self._original_folder_name_present: - return self._original_folder_name_value - else: - raise AttributeError("missing required field 'original_folder_name'") - - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True - - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def previous_sharing_permission(self): + def new_value(self): """ - Previous sharing permission. Might be missing due to historical data - gap. + New shared content link expiration date. Might be missing due to + historical data gap. - :rtype: str + :rtype: datetime.datetime """ - if self._previous_sharing_permission_present: - return self._previous_sharing_permission_value + if self._new_value_present: + return self._new_value_value else: return None - @previous_sharing_permission.setter - def previous_sharing_permission(self, val): + @new_value.setter + def new_value(self, val): if val is None: - del self.previous_sharing_permission + del self.new_value return - val = self._previous_sharing_permission_validator.validate(val) - self._previous_sharing_permission_value = val - self._previous_sharing_permission_present = True + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True - @previous_sharing_permission.deleter - def previous_sharing_permission(self): - self._previous_sharing_permission_value = None - self._previous_sharing_permission_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False @property - def new_sharing_permission(self): + def previous_value(self): """ - New sharing permission. Might be missing due to historical data gap. + Previous shared content link expiration date. Might be missing due to + historical data gap. - :rtype: str + :rtype: datetime.datetime """ - if self._new_sharing_permission_present: - return self._new_sharing_permission_value + if self._previous_value_present: + return self._previous_value_value else: return None - @new_sharing_permission.setter - def new_sharing_permission(self, val): + @previous_value.setter + def previous_value(self, val): if val is None: - del self.new_sharing_permission + del self.previous_value return - val = self._new_sharing_permission_validator.validate(val) - self._new_sharing_permission_value = val - self._new_sharing_permission_present = True + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True - @new_sharing_permission.deleter - def new_sharing_permission(self): - self._new_sharing_permission_value = None - self._new_sharing_permission_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfFbInviteChangeRoleDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeLinkExpiryDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfFbInviteChangeRoleDetails(target_asset_index={!r}, original_folder_name={!r}, previous_sharing_permission={!r}, new_sharing_permission={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, - self._previous_sharing_permission_value, - self._new_sharing_permission_value, + return 'SharedContentChangeLinkExpiryDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, ) -SfFbInviteChangeRoleDetails_validator = bv.Struct(SfFbInviteChangeRoleDetails) +SharedContentChangeLinkExpiryDetails_validator = bv.Struct(SharedContentChangeLinkExpiryDetails) -class SfFbInviteChangeRoleType(bb.Struct): +class SharedContentChangeLinkExpiryType(bb.Struct): __slots__ = [ '_description_value', @@ -46482,141 +54152,38 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfFbInviteChangeRoleType, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SfFbInviteChangeRoleType(description={!r})'.format( - self._description_value, - ) - -SfFbInviteChangeRoleType_validator = bv.Struct(SfFbInviteChangeRoleType) - -class SfFbInviteDetails(bb.Struct): - """ - Invited Facebook users to shared folder. - - :ivar team_log.SfFbInviteDetails.target_asset_index: Target asset position - in the Assets list. - :ivar team_log.SfFbInviteDetails.original_folder_name: Original shared - folder name. - :ivar team_log.SfFbInviteDetails.sharing_permission: Sharing permission. - Might be missing due to historical data gap. - """ - - __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', - '_sharing_permission_value', - '_sharing_permission_present', - ] - - _has_required_fields = True - - def __init__(self, - target_asset_index=None, - original_folder_name=None, - sharing_permission=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - self._sharing_permission_value = None - self._sharing_permission_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name - if sharing_permission is not None: - self.sharing_permission = sharing_permission - - @property - def target_asset_index(self): - """ - Target asset position in the Assets list. - - :rtype: int - """ - if self._target_asset_index_present: - return self._target_asset_index_value - else: - raise AttributeError("missing required field 'target_asset_index'") - - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True - - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False - - @property - def original_folder_name(self): - """ - Original shared folder name. - - :rtype: str - """ - if self._original_folder_name_present: - return self._original_folder_name_value - else: - raise AttributeError("missing required field 'original_folder_name'") + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeLinkExpiryType, self)._process_custom_annotations(annotation_type, field_path, processor) - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True + def __repr__(self): + return 'SharedContentChangeLinkExpiryType(description={!r})'.format( + self._description_value, + ) - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False +SharedContentChangeLinkExpiryType_validator = bv.Struct(SharedContentChangeLinkExpiryType) - @property - def sharing_permission(self): - """ - Sharing permission. Might be missing due to historical data gap. +class SharedContentChangeLinkPasswordDetails(bb.Struct): + """ + Changed link password of shared file/folder. + """ - :rtype: str - """ - if self._sharing_permission_present: - return self._sharing_permission_value - else: - return None + __slots__ = [ + ] - @sharing_permission.setter - def sharing_permission(self, val): - if val is None: - del self.sharing_permission - return - val = self._sharing_permission_validator.validate(val) - self._sharing_permission_value = val - self._sharing_permission_present = True + _has_required_fields = False - @sharing_permission.deleter - def sharing_permission(self): - self._sharing_permission_value = None - self._sharing_permission_present = False + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(SfFbInviteDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeLinkPasswordDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfFbInviteDetails(target_asset_index={!r}, original_folder_name={!r}, sharing_permission={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, - self._sharing_permission_value, - ) + return 'SharedContentChangeLinkPasswordDetails()' -SfFbInviteDetails_validator = bv.Struct(SfFbInviteDetails) +SharedContentChangeLinkPasswordDetails_validator = bv.Struct(SharedContentChangeLinkPasswordDetails) -class SfFbInviteType(bb.Struct): +class SharedContentChangeLinkPasswordType(bb.Struct): __slots__ = [ '_description_value', @@ -46653,105 +54220,108 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfFbInviteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeLinkPasswordType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfFbInviteType(description={!r})'.format( + return 'SharedContentChangeLinkPasswordType(description={!r})'.format( self._description_value, ) -SfFbInviteType_validator = bv.Struct(SfFbInviteType) +SharedContentChangeLinkPasswordType_validator = bv.Struct(SharedContentChangeLinkPasswordType) -class SfFbUninviteDetails(bb.Struct): +class SharedContentChangeMemberRoleDetails(bb.Struct): """ - Uninvited Facebook user from shared folder. + Changed access type of shared file/folder member. - :ivar team_log.SfFbUninviteDetails.target_asset_index: Target asset position - in the Assets list. - :ivar team_log.SfFbUninviteDetails.original_folder_name: Original shared - folder name. + :ivar team_log.SharedContentChangeMemberRoleDetails.previous_access_level: + Previous access level. Might be missing due to historical data gap. + :ivar team_log.SharedContentChangeMemberRoleDetails.new_access_level: New + access level. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', + '_previous_access_level_value', + '_previous_access_level_present', + '_new_access_level_value', + '_new_access_level_present', ] _has_required_fields = True def __init__(self, - target_asset_index=None, - original_folder_name=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name + new_access_level=None, + previous_access_level=None): + self._previous_access_level_value = None + self._previous_access_level_present = False + self._new_access_level_value = None + self._new_access_level_present = False + if previous_access_level is not None: + self.previous_access_level = previous_access_level + if new_access_level is not None: + self.new_access_level = new_access_level @property - def target_asset_index(self): + def previous_access_level(self): """ - Target asset position in the Assets list. + Previous access level. Might be missing due to historical data gap. - :rtype: int + :rtype: sharing.AccessLevel """ - if self._target_asset_index_present: - return self._target_asset_index_value + if self._previous_access_level_present: + return self._previous_access_level_value else: - raise AttributeError("missing required field 'target_asset_index'") + return None - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True + @previous_access_level.setter + def previous_access_level(self, val): + if val is None: + del self.previous_access_level + return + self._previous_access_level_validator.validate_type_only(val) + self._previous_access_level_value = val + self._previous_access_level_present = True - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False + @previous_access_level.deleter + def previous_access_level(self): + self._previous_access_level_value = None + self._previous_access_level_present = False @property - def original_folder_name(self): + def new_access_level(self): """ - Original shared folder name. + New access level. - :rtype: str + :rtype: sharing.AccessLevel """ - if self._original_folder_name_present: - return self._original_folder_name_value + if self._new_access_level_present: + return self._new_access_level_value else: - raise AttributeError("missing required field 'original_folder_name'") + raise AttributeError("missing required field 'new_access_level'") - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True + @new_access_level.setter + def new_access_level(self, val): + self._new_access_level_validator.validate_type_only(val) + self._new_access_level_value = val + self._new_access_level_present = True - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False + @new_access_level.deleter + def new_access_level(self): + self._new_access_level_value = None + self._new_access_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfFbUninviteDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeMemberRoleDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfFbUninviteDetails(target_asset_index={!r}, original_folder_name={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, + return 'SharedContentChangeMemberRoleDetails(new_access_level={!r}, previous_access_level={!r})'.format( + self._new_access_level_value, + self._previous_access_level_value, ) -SfFbUninviteDetails_validator = bv.Struct(SfFbUninviteDetails) +SharedContentChangeMemberRoleDetails_validator = bv.Struct(SharedContentChangeMemberRoleDetails) -class SfFbUninviteType(bb.Struct): +class SharedContentChangeMemberRoleType(bb.Struct): __slots__ = [ '_description_value', @@ -46788,72 +54358,108 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfFbUninviteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeMemberRoleType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfFbUninviteType(description={!r})'.format( + return 'SharedContentChangeMemberRoleType(description={!r})'.format( self._description_value, ) -SfFbUninviteType_validator = bv.Struct(SfFbUninviteType) +SharedContentChangeMemberRoleType_validator = bv.Struct(SharedContentChangeMemberRoleType) -class SfInviteGroupDetails(bb.Struct): +class SharedContentChangeViewerInfoPolicyDetails(bb.Struct): """ - Invited group to shared folder. + Changed whether members can see who viewed shared file/folder. - :ivar team_log.SfInviteGroupDetails.target_asset_index: Target asset - position in the Assets list. + :ivar team_log.SharedContentChangeViewerInfoPolicyDetails.new_value: New + viewer info policy. + :ivar team_log.SharedContentChangeViewerInfoPolicyDetails.previous_value: + Previous view info policy. Might be missing due to historical data gap. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - target_asset_index=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def target_asset_index(self): + def new_value(self): """ - Target asset position in the Assets list. + New viewer info policy. - :rtype: int + :rtype: sharing.ViewerInfoPolicy """ - if self._target_asset_index_present: - return self._target_asset_index_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'target_asset_index'") + raise AttributeError("missing required field 'new_value'") - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous view info policy. Might be missing due to historical data gap. + + :rtype: sharing.ViewerInfoPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfInviteGroupDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeViewerInfoPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfInviteGroupDetails(target_asset_index={!r})'.format( - self._target_asset_index_value, + return 'SharedContentChangeViewerInfoPolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, ) -SfInviteGroupDetails_validator = bv.Struct(SfInviteGroupDetails) +SharedContentChangeViewerInfoPolicyDetails_validator = bv.Struct(SharedContentChangeViewerInfoPolicyDetails) -class SfInviteGroupType(bb.Struct): +class SharedContentChangeViewerInfoPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -46890,105 +54496,75 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfInviteGroupType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentChangeViewerInfoPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfInviteGroupType(description={!r})'.format( + return 'SharedContentChangeViewerInfoPolicyType(description={!r})'.format( self._description_value, ) -SfInviteGroupType_validator = bv.Struct(SfInviteGroupType) +SharedContentChangeViewerInfoPolicyType_validator = bv.Struct(SharedContentChangeViewerInfoPolicyType) -class SfTeamGrantAccessDetails(bb.Struct): +class SharedContentClaimInvitationDetails(bb.Struct): """ - Granted access to shared folder. + Acquired membership of shared file/folder by accepting invite. - :ivar team_log.SfTeamGrantAccessDetails.target_asset_index: Target asset - position in the Assets list. - :ivar team_log.SfTeamGrantAccessDetails.original_folder_name: Original - shared folder name. + :ivar team_log.SharedContentClaimInvitationDetails.shared_content_link: + Shared content link. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', + '_shared_content_link_value', + '_shared_content_link_present', ] - _has_required_fields = True + _has_required_fields = False def __init__(self, - target_asset_index=None, - original_folder_name=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name - - @property - def target_asset_index(self): - """ - Target asset position in the Assets list. - - :rtype: int - """ - if self._target_asset_index_present: - return self._target_asset_index_value - else: - raise AttributeError("missing required field 'target_asset_index'") - - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True - - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False + shared_content_link=None): + self._shared_content_link_value = None + self._shared_content_link_present = False + if shared_content_link is not None: + self.shared_content_link = shared_content_link @property - def original_folder_name(self): + def shared_content_link(self): """ - Original shared folder name. + Shared content link. :rtype: str """ - if self._original_folder_name_present: - return self._original_folder_name_value + if self._shared_content_link_present: + return self._shared_content_link_value else: - raise AttributeError("missing required field 'original_folder_name'") + return None - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True + @shared_content_link.setter + def shared_content_link(self, val): + if val is None: + del self.shared_content_link + return + val = self._shared_content_link_validator.validate(val) + self._shared_content_link_value = val + self._shared_content_link_present = True - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False + @shared_content_link.deleter + def shared_content_link(self): + self._shared_content_link_value = None + self._shared_content_link_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamGrantAccessDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentClaimInvitationDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamGrantAccessDetails(target_asset_index={!r}, original_folder_name={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, + return 'SharedContentClaimInvitationDetails(shared_content_link={!r})'.format( + self._shared_content_link_value, ) -SfTeamGrantAccessDetails_validator = bv.Struct(SfTeamGrantAccessDetails) +SharedContentClaimInvitationDetails_validator = bv.Struct(SharedContentClaimInvitationDetails) -class SfTeamGrantAccessType(bb.Struct): +class SharedContentClaimInvitationType(bb.Struct): __slots__ = [ '_description_value', @@ -47025,179 +54601,174 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamGrantAccessType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentClaimInvitationType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamGrantAccessType(description={!r})'.format( + return 'SharedContentClaimInvitationType(description={!r})'.format( self._description_value, ) -SfTeamGrantAccessType_validator = bv.Struct(SfTeamGrantAccessType) +SharedContentClaimInvitationType_validator = bv.Struct(SharedContentClaimInvitationType) -class SfTeamInviteChangeRoleDetails(bb.Struct): +class SharedContentCopyDetails(bb.Struct): """ - Changed team member's role in shared folder. + Copied shared file/folder to own Dropbox. - :ivar team_log.SfTeamInviteChangeRoleDetails.target_asset_index: Target - asset position in the Assets list. - :ivar team_log.SfTeamInviteChangeRoleDetails.original_folder_name: Original - shared folder name. - :ivar team_log.SfTeamInviteChangeRoleDetails.new_sharing_permission: New - sharing permission. Might be missing due to historical data gap. - :ivar team_log.SfTeamInviteChangeRoleDetails.previous_sharing_permission: - Previous sharing permission. Might be missing due to historical data - gap. + :ivar team_log.SharedContentCopyDetails.shared_content_link: Shared content + link. + :ivar team_log.SharedContentCopyDetails.shared_content_owner: The shared + content owner. + :ivar team_log.SharedContentCopyDetails.shared_content_access_level: Shared + content access level. + :ivar team_log.SharedContentCopyDetails.destination_path: The path where the + member saved the content. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', - '_new_sharing_permission_value', - '_new_sharing_permission_present', - '_previous_sharing_permission_value', - '_previous_sharing_permission_present', + '_shared_content_link_value', + '_shared_content_link_present', + '_shared_content_owner_value', + '_shared_content_owner_present', + '_shared_content_access_level_value', + '_shared_content_access_level_present', + '_destination_path_value', + '_destination_path_present', ] _has_required_fields = True def __init__(self, - target_asset_index=None, - original_folder_name=None, - new_sharing_permission=None, - previous_sharing_permission=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - self._new_sharing_permission_value = None - self._new_sharing_permission_present = False - self._previous_sharing_permission_value = None - self._previous_sharing_permission_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name - if new_sharing_permission is not None: - self.new_sharing_permission = new_sharing_permission - if previous_sharing_permission is not None: - self.previous_sharing_permission = previous_sharing_permission + shared_content_link=None, + shared_content_access_level=None, + destination_path=None, + shared_content_owner=None): + self._shared_content_link_value = None + self._shared_content_link_present = False + self._shared_content_owner_value = None + self._shared_content_owner_present = False + self._shared_content_access_level_value = None + self._shared_content_access_level_present = False + self._destination_path_value = None + self._destination_path_present = False + if shared_content_link is not None: + self.shared_content_link = shared_content_link + if shared_content_owner is not None: + self.shared_content_owner = shared_content_owner + if shared_content_access_level is not None: + self.shared_content_access_level = shared_content_access_level + if destination_path is not None: + self.destination_path = destination_path @property - def target_asset_index(self): + def shared_content_link(self): """ - Target asset position in the Assets list. + Shared content link. - :rtype: int + :rtype: str """ - if self._target_asset_index_present: - return self._target_asset_index_value + if self._shared_content_link_present: + return self._shared_content_link_value else: - raise AttributeError("missing required field 'target_asset_index'") + raise AttributeError("missing required field 'shared_content_link'") - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True + @shared_content_link.setter + def shared_content_link(self, val): + val = self._shared_content_link_validator.validate(val) + self._shared_content_link_value = val + self._shared_content_link_present = True - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False + @shared_content_link.deleter + def shared_content_link(self): + self._shared_content_link_value = None + self._shared_content_link_present = False @property - def original_folder_name(self): + def shared_content_owner(self): """ - Original shared folder name. + The shared content owner. - :rtype: str + :rtype: UserLogInfo """ - if self._original_folder_name_present: - return self._original_folder_name_value + if self._shared_content_owner_present: + return self._shared_content_owner_value else: - raise AttributeError("missing required field 'original_folder_name'") + return None - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True + @shared_content_owner.setter + def shared_content_owner(self, val): + if val is None: + del self.shared_content_owner + return + self._shared_content_owner_validator.validate_type_only(val) + self._shared_content_owner_value = val + self._shared_content_owner_present = True - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False + @shared_content_owner.deleter + def shared_content_owner(self): + self._shared_content_owner_value = None + self._shared_content_owner_present = False @property - def new_sharing_permission(self): + def shared_content_access_level(self): """ - New sharing permission. Might be missing due to historical data gap. + Shared content access level. - :rtype: str + :rtype: sharing.AccessLevel """ - if self._new_sharing_permission_present: - return self._new_sharing_permission_value + if self._shared_content_access_level_present: + return self._shared_content_access_level_value else: - return None + raise AttributeError("missing required field 'shared_content_access_level'") - @new_sharing_permission.setter - def new_sharing_permission(self, val): - if val is None: - del self.new_sharing_permission - return - val = self._new_sharing_permission_validator.validate(val) - self._new_sharing_permission_value = val - self._new_sharing_permission_present = True + @shared_content_access_level.setter + def shared_content_access_level(self, val): + self._shared_content_access_level_validator.validate_type_only(val) + self._shared_content_access_level_value = val + self._shared_content_access_level_present = True - @new_sharing_permission.deleter - def new_sharing_permission(self): - self._new_sharing_permission_value = None - self._new_sharing_permission_present = False + @shared_content_access_level.deleter + def shared_content_access_level(self): + self._shared_content_access_level_value = None + self._shared_content_access_level_present = False @property - def previous_sharing_permission(self): + def destination_path(self): """ - Previous sharing permission. Might be missing due to historical data - gap. + The path where the member saved the content. :rtype: str """ - if self._previous_sharing_permission_present: - return self._previous_sharing_permission_value + if self._destination_path_present: + return self._destination_path_value else: - return None + raise AttributeError("missing required field 'destination_path'") - @previous_sharing_permission.setter - def previous_sharing_permission(self, val): - if val is None: - del self.previous_sharing_permission - return - val = self._previous_sharing_permission_validator.validate(val) - self._previous_sharing_permission_value = val - self._previous_sharing_permission_present = True + @destination_path.setter + def destination_path(self, val): + val = self._destination_path_validator.validate(val) + self._destination_path_value = val + self._destination_path_present = True - @previous_sharing_permission.deleter - def previous_sharing_permission(self): - self._previous_sharing_permission_value = None - self._previous_sharing_permission_present = False + @destination_path.deleter + def destination_path(self): + self._destination_path_value = None + self._destination_path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamInviteChangeRoleDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentCopyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamInviteChangeRoleDetails(target_asset_index={!r}, original_folder_name={!r}, new_sharing_permission={!r}, previous_sharing_permission={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, - self._new_sharing_permission_value, - self._previous_sharing_permission_value, + return 'SharedContentCopyDetails(shared_content_link={!r}, shared_content_access_level={!r}, destination_path={!r}, shared_content_owner={!r})'.format( + self._shared_content_link_value, + self._shared_content_access_level_value, + self._destination_path_value, + self._shared_content_owner_value, ) -SfTeamInviteChangeRoleDetails_validator = bv.Struct(SfTeamInviteChangeRoleDetails) +SharedContentCopyDetails_validator = bv.Struct(SharedContentCopyDetails) -class SfTeamInviteChangeRoleType(bb.Struct): +class SharedContentCopyType(bb.Struct): __slots__ = [ '_description_value', @@ -47234,141 +54805,141 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamInviteChangeRoleType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentCopyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamInviteChangeRoleType(description={!r})'.format( + return 'SharedContentCopyType(description={!r})'.format( self._description_value, ) -SfTeamInviteChangeRoleType_validator = bv.Struct(SfTeamInviteChangeRoleType) +SharedContentCopyType_validator = bv.Struct(SharedContentCopyType) -class SfTeamInviteDetails(bb.Struct): +class SharedContentDownloadDetails(bb.Struct): """ - Invited team members to shared folder. + Downloaded shared file/folder. - :ivar team_log.SfTeamInviteDetails.target_asset_index: Target asset position - in the Assets list. - :ivar team_log.SfTeamInviteDetails.original_folder_name: Original shared - folder name. - :ivar team_log.SfTeamInviteDetails.sharing_permission: Sharing permission. - Might be missing due to historical data gap. + :ivar team_log.SharedContentDownloadDetails.shared_content_link: Shared + content link. + :ivar team_log.SharedContentDownloadDetails.shared_content_owner: The shared + content owner. + :ivar team_log.SharedContentDownloadDetails.shared_content_access_level: + Shared content access level. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', - '_sharing_permission_value', - '_sharing_permission_present', + '_shared_content_link_value', + '_shared_content_link_present', + '_shared_content_owner_value', + '_shared_content_owner_present', + '_shared_content_access_level_value', + '_shared_content_access_level_present', ] _has_required_fields = True def __init__(self, - target_asset_index=None, - original_folder_name=None, - sharing_permission=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - self._sharing_permission_value = None - self._sharing_permission_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name - if sharing_permission is not None: - self.sharing_permission = sharing_permission + shared_content_link=None, + shared_content_access_level=None, + shared_content_owner=None): + self._shared_content_link_value = None + self._shared_content_link_present = False + self._shared_content_owner_value = None + self._shared_content_owner_present = False + self._shared_content_access_level_value = None + self._shared_content_access_level_present = False + if shared_content_link is not None: + self.shared_content_link = shared_content_link + if shared_content_owner is not None: + self.shared_content_owner = shared_content_owner + if shared_content_access_level is not None: + self.shared_content_access_level = shared_content_access_level @property - def target_asset_index(self): + def shared_content_link(self): """ - Target asset position in the Assets list. + Shared content link. - :rtype: int + :rtype: str """ - if self._target_asset_index_present: - return self._target_asset_index_value + if self._shared_content_link_present: + return self._shared_content_link_value else: - raise AttributeError("missing required field 'target_asset_index'") + raise AttributeError("missing required field 'shared_content_link'") - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True + @shared_content_link.setter + def shared_content_link(self, val): + val = self._shared_content_link_validator.validate(val) + self._shared_content_link_value = val + self._shared_content_link_present = True - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False + @shared_content_link.deleter + def shared_content_link(self): + self._shared_content_link_value = None + self._shared_content_link_present = False @property - def original_folder_name(self): + def shared_content_owner(self): """ - Original shared folder name. + The shared content owner. - :rtype: str + :rtype: UserLogInfo """ - if self._original_folder_name_present: - return self._original_folder_name_value + if self._shared_content_owner_present: + return self._shared_content_owner_value else: - raise AttributeError("missing required field 'original_folder_name'") + return None - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True + @shared_content_owner.setter + def shared_content_owner(self, val): + if val is None: + del self.shared_content_owner + return + self._shared_content_owner_validator.validate_type_only(val) + self._shared_content_owner_value = val + self._shared_content_owner_present = True - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False + @shared_content_owner.deleter + def shared_content_owner(self): + self._shared_content_owner_value = None + self._shared_content_owner_present = False @property - def sharing_permission(self): + def shared_content_access_level(self): """ - Sharing permission. Might be missing due to historical data gap. + Shared content access level. - :rtype: str + :rtype: sharing.AccessLevel """ - if self._sharing_permission_present: - return self._sharing_permission_value + if self._shared_content_access_level_present: + return self._shared_content_access_level_value else: - return None + raise AttributeError("missing required field 'shared_content_access_level'") - @sharing_permission.setter - def sharing_permission(self, val): - if val is None: - del self.sharing_permission - return - val = self._sharing_permission_validator.validate(val) - self._sharing_permission_value = val - self._sharing_permission_present = True + @shared_content_access_level.setter + def shared_content_access_level(self, val): + self._shared_content_access_level_validator.validate_type_only(val) + self._shared_content_access_level_value = val + self._shared_content_access_level_present = True - @sharing_permission.deleter - def sharing_permission(self): - self._sharing_permission_value = None - self._sharing_permission_present = False + @shared_content_access_level.deleter + def shared_content_access_level(self): + self._shared_content_access_level_value = None + self._shared_content_access_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamInviteDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentDownloadDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamInviteDetails(target_asset_index={!r}, original_folder_name={!r}, sharing_permission={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, - self._sharing_permission_value, + return 'SharedContentDownloadDetails(shared_content_link={!r}, shared_content_access_level={!r}, shared_content_owner={!r})'.format( + self._shared_content_link_value, + self._shared_content_access_level_value, + self._shared_content_owner_value, ) -SfTeamInviteDetails_validator = bv.Struct(SfTeamInviteDetails) +SharedContentDownloadDetails_validator = bv.Struct(SharedContentDownloadDetails) -class SfTeamInviteType(bb.Struct): +class SharedContentDownloadType(bb.Struct): __slots__ = [ '_description_value', @@ -47405,265 +54976,140 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamInviteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentDownloadType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamInviteType(description={!r})'.format( + return 'SharedContentDownloadType(description={!r})'.format( self._description_value, ) -SfTeamInviteType_validator = bv.Struct(SfTeamInviteType) +SharedContentDownloadType_validator = bv.Struct(SharedContentDownloadType) -class SfTeamJoinDetails(bb.Struct): +class SharedContentRelinquishMembershipDetails(bb.Struct): """ - Joined team member's shared folder. - - :ivar team_log.SfTeamJoinDetails.target_asset_index: Target asset position - in the Assets list. - :ivar team_log.SfTeamJoinDetails.original_folder_name: Original shared - folder name. + Left shared file/folder. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', ] - _has_required_fields = True + _has_required_fields = False - def __init__(self, - target_asset_index=None, - original_folder_name=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name + def __init__(self): + pass - @property - def target_asset_index(self): - """ - Target asset position in the Assets list. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRelinquishMembershipDetails, self)._process_custom_annotations(annotation_type, field_path, processor) - :rtype: int - """ - if self._target_asset_index_present: - return self._target_asset_index_value - else: - raise AttributeError("missing required field 'target_asset_index'") + def __repr__(self): + return 'SharedContentRelinquishMembershipDetails()' - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True +SharedContentRelinquishMembershipDetails_validator = bv.Struct(SharedContentRelinquishMembershipDetails) - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False +class SharedContentRelinquishMembershipType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def original_folder_name(self): + def description(self): """ - Original shared folder name. - :rtype: str """ - if self._original_folder_name_present: - return self._original_folder_name_value + if self._description_present: + return self._description_value else: - raise AttributeError("missing required field 'original_folder_name'") + raise AttributeError("missing required field 'description'") - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamJoinDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRelinquishMembershipType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamJoinDetails(target_asset_index={!r}, original_folder_name={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, + return 'SharedContentRelinquishMembershipType(description={!r})'.format( + self._description_value, ) -SfTeamJoinDetails_validator = bv.Struct(SfTeamJoinDetails) +SharedContentRelinquishMembershipType_validator = bv.Struct(SharedContentRelinquishMembershipType) -class SfTeamJoinFromOobLinkDetails(bb.Struct): +class SharedContentRemoveInviteesDetails(bb.Struct): """ - Joined team member's shared folder from link. + Removed invitee from shared file/folder before invite was accepted. - :ivar team_log.SfTeamJoinFromOobLinkDetails.target_asset_index: Target asset - position in the Assets list. - :ivar team_log.SfTeamJoinFromOobLinkDetails.original_folder_name: Original - shared folder name. - :ivar team_log.SfTeamJoinFromOobLinkDetails.token_key: Shared link token - key. - :ivar team_log.SfTeamJoinFromOobLinkDetails.sharing_permission: Sharing - permission. Might be missing due to historical data gap. + :ivar team_log.SharedContentRemoveInviteesDetails.invitees: A list of + invitees. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', - '_token_key_value', - '_token_key_present', - '_sharing_permission_value', - '_sharing_permission_present', + '_invitees_value', + '_invitees_present', ] _has_required_fields = True def __init__(self, - target_asset_index=None, - original_folder_name=None, - token_key=None, - sharing_permission=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - self._token_key_value = None - self._token_key_present = False - self._sharing_permission_value = None - self._sharing_permission_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name - if token_key is not None: - self.token_key = token_key - if sharing_permission is not None: - self.sharing_permission = sharing_permission - - @property - def target_asset_index(self): - """ - Target asset position in the Assets list. - - :rtype: int - """ - if self._target_asset_index_present: - return self._target_asset_index_value - else: - raise AttributeError("missing required field 'target_asset_index'") - - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True - - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False - - @property - def original_folder_name(self): - """ - Original shared folder name. - - :rtype: str - """ - if self._original_folder_name_present: - return self._original_folder_name_value - else: - raise AttributeError("missing required field 'original_folder_name'") - - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True - - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False - - @property - def token_key(self): - """ - Shared link token key. - - :rtype: str - """ - if self._token_key_present: - return self._token_key_value - else: - return None - - @token_key.setter - def token_key(self, val): - if val is None: - del self.token_key - return - val = self._token_key_validator.validate(val) - self._token_key_value = val - self._token_key_present = True - - @token_key.deleter - def token_key(self): - self._token_key_value = None - self._token_key_present = False + invitees=None): + self._invitees_value = None + self._invitees_present = False + if invitees is not None: + self.invitees = invitees @property - def sharing_permission(self): + def invitees(self): """ - Sharing permission. Might be missing due to historical data gap. + A list of invitees. - :rtype: str + :rtype: list of [str] """ - if self._sharing_permission_present: - return self._sharing_permission_value + if self._invitees_present: + return self._invitees_value else: - return None - - @sharing_permission.setter - def sharing_permission(self, val): - if val is None: - del self.sharing_permission - return - val = self._sharing_permission_validator.validate(val) - self._sharing_permission_value = val - self._sharing_permission_present = True - - @sharing_permission.deleter - def sharing_permission(self): - self._sharing_permission_value = None - self._sharing_permission_present = False + raise AttributeError("missing required field 'invitees'") - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamJoinFromOobLinkDetails, self)._process_custom_annotations(annotation_type, processor) + @invitees.setter + def invitees(self, val): + val = self._invitees_validator.validate(val) + self._invitees_value = val + self._invitees_present = True - def __repr__(self): - return 'SfTeamJoinFromOobLinkDetails(target_asset_index={!r}, original_folder_name={!r}, token_key={!r}, sharing_permission={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, - self._token_key_value, - self._sharing_permission_value, + @invitees.deleter + def invitees(self): + self._invitees_value = None + self._invitees_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRemoveInviteesDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharedContentRemoveInviteesDetails(invitees={!r})'.format( + self._invitees_value, ) -SfTeamJoinFromOobLinkDetails_validator = bv.Struct(SfTeamJoinFromOobLinkDetails) +SharedContentRemoveInviteesDetails_validator = bv.Struct(SharedContentRemoveInviteesDetails) -class SfTeamJoinFromOobLinkType(bb.Struct): +class SharedContentRemoveInviteesType(bb.Struct): __slots__ = [ '_description_value', @@ -47700,17 +55146,77 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamJoinFromOobLinkType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRemoveInviteesType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamJoinFromOobLinkType(description={!r})'.format( + return 'SharedContentRemoveInviteesType(description={!r})'.format( self._description_value, ) -SfTeamJoinFromOobLinkType_validator = bv.Struct(SfTeamJoinFromOobLinkType) +SharedContentRemoveInviteesType_validator = bv.Struct(SharedContentRemoveInviteesType) -class SfTeamJoinType(bb.Struct): +class SharedContentRemoveLinkExpiryDetails(bb.Struct): + """ + Removed link expiration date of shared file/folder. + + :ivar team_log.SharedContentRemoveLinkExpiryDetails.previous_value: Previous + shared content link expiration date. Might be missing due to historical + data gap. + """ + + __slots__ = [ + '_previous_value_value', + '_previous_value_present', + ] + + _has_required_fields = False + + def __init__(self, + previous_value=None): + self._previous_value_value = None + self._previous_value_present = False + if previous_value is not None: + self.previous_value = previous_value + + @property + def previous_value(self): + """ + Previous shared content link expiration date. Might be missing due to + historical data gap. + + :rtype: datetime.datetime + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRemoveLinkExpiryDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharedContentRemoveLinkExpiryDetails(previous_value={!r})'.format( + self._previous_value_value, + ) + +SharedContentRemoveLinkExpiryDetails_validator = bv.Struct(SharedContentRemoveLinkExpiryDetails) + +class SharedContentRemoveLinkExpiryType(bb.Struct): __slots__ = [ '_description_value', @@ -47747,105 +55253,38 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamJoinType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRemoveLinkExpiryType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamJoinType(description={!r})'.format( + return 'SharedContentRemoveLinkExpiryType(description={!r})'.format( self._description_value, ) -SfTeamJoinType_validator = bv.Struct(SfTeamJoinType) +SharedContentRemoveLinkExpiryType_validator = bv.Struct(SharedContentRemoveLinkExpiryType) -class SfTeamUninviteDetails(bb.Struct): +class SharedContentRemoveLinkPasswordDetails(bb.Struct): """ - Unshared folder with team member. - - :ivar team_log.SfTeamUninviteDetails.target_asset_index: Target asset - position in the Assets list. - :ivar team_log.SfTeamUninviteDetails.original_folder_name: Original shared - folder name. + Removed link password of shared file/folder. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', - '_original_folder_name_value', - '_original_folder_name_present', ] - _has_required_fields = True - - def __init__(self, - target_asset_index=None, - original_folder_name=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - self._original_folder_name_value = None - self._original_folder_name_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index - if original_folder_name is not None: - self.original_folder_name = original_folder_name - - @property - def target_asset_index(self): - """ - Target asset position in the Assets list. - - :rtype: int - """ - if self._target_asset_index_present: - return self._target_asset_index_value - else: - raise AttributeError("missing required field 'target_asset_index'") - - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True - - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False - - @property - def original_folder_name(self): - """ - Original shared folder name. - - :rtype: str - """ - if self._original_folder_name_present: - return self._original_folder_name_value - else: - raise AttributeError("missing required field 'original_folder_name'") - - @original_folder_name.setter - def original_folder_name(self, val): - val = self._original_folder_name_validator.validate(val) - self._original_folder_name_value = val - self._original_folder_name_present = True + _has_required_fields = False - @original_folder_name.deleter - def original_folder_name(self): - self._original_folder_name_value = None - self._original_folder_name_present = False + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamUninviteDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRemoveLinkPasswordDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamUninviteDetails(target_asset_index={!r}, original_folder_name={!r})'.format( - self._target_asset_index_value, - self._original_folder_name_value, - ) + return 'SharedContentRemoveLinkPasswordDetails()' -SfTeamUninviteDetails_validator = bv.Struct(SfTeamUninviteDetails) +SharedContentRemoveLinkPasswordDetails_validator = bv.Struct(SharedContentRemoveLinkPasswordDetails) -class SfTeamUninviteType(bb.Struct): +class SharedContentRemoveLinkPasswordType(bb.Struct): __slots__ = [ '_description_value', @@ -47882,45 +55321,37 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SfTeamUninviteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRemoveLinkPasswordType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SfTeamUninviteType(description={!r})'.format( + return 'SharedContentRemoveLinkPasswordType(description={!r})'.format( self._description_value, ) -SfTeamUninviteType_validator = bv.Struct(SfTeamUninviteType) +SharedContentRemoveLinkPasswordType_validator = bv.Struct(SharedContentRemoveLinkPasswordType) -class SharedContentAddInviteesDetails(bb.Struct): +class SharedContentRemoveMemberDetails(bb.Struct): """ - Invited user to Dropbox and added them to shared file/folder. + Removed user/group from shared file/folder. - :ivar team_log.SharedContentAddInviteesDetails.shared_content_access_level: + :ivar team_log.SharedContentRemoveMemberDetails.shared_content_access_level: Shared content access level. - :ivar team_log.SharedContentAddInviteesDetails.invitees: A list of invitees. """ __slots__ = [ '_shared_content_access_level_value', '_shared_content_access_level_present', - '_invitees_value', - '_invitees_present', ] - _has_required_fields = True + _has_required_fields = False def __init__(self, - shared_content_access_level=None, - invitees=None): + shared_content_access_level=None): self._shared_content_access_level_value = None self._shared_content_access_level_present = False - self._invitees_value = None - self._invitees_present = False if shared_content_access_level is not None: self.shared_content_access_level = shared_content_access_level - if invitees is not None: - self.invitees = invitees @property def shared_content_access_level(self): @@ -47932,10 +55363,13 @@ def shared_content_access_level(self): if self._shared_content_access_level_present: return self._shared_content_access_level_value else: - raise AttributeError("missing required field 'shared_content_access_level'") + return None @shared_content_access_level.setter def shared_content_access_level(self, val): + if val is None: + del self.shared_content_access_level + return self._shared_content_access_level_validator.validate_type_only(val) self._shared_content_access_level_value = val self._shared_content_access_level_present = True @@ -47945,41 +55379,17 @@ def shared_content_access_level(self): self._shared_content_access_level_value = None self._shared_content_access_level_present = False - @property - def invitees(self): - """ - A list of invitees. - - :rtype: list of [str] - """ - if self._invitees_present: - return self._invitees_value - else: - raise AttributeError("missing required field 'invitees'") - - @invitees.setter - def invitees(self, val): - val = self._invitees_validator.validate(val) - self._invitees_value = val - self._invitees_present = True - - @invitees.deleter - def invitees(self): - self._invitees_value = None - self._invitees_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentAddInviteesDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRemoveMemberDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentAddInviteesDetails(shared_content_access_level={!r}, invitees={!r})'.format( + return 'SharedContentRemoveMemberDetails(shared_content_access_level={!r})'.format( self._shared_content_access_level_value, - self._invitees_value, ) -SharedContentAddInviteesDetails_validator = bv.Struct(SharedContentAddInviteesDetails) +SharedContentRemoveMemberDetails_validator = bv.Struct(SharedContentRemoveMemberDetails) -class SharedContentAddInviteesType(bb.Struct): +class SharedContentRemoveMemberType(bb.Struct): __slots__ = [ '_description_value', @@ -48016,77 +55426,75 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentAddInviteesType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRemoveMemberType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentAddInviteesType(description={!r})'.format( + return 'SharedContentRemoveMemberType(description={!r})'.format( self._description_value, ) -SharedContentAddInviteesType_validator = bv.Struct(SharedContentAddInviteesType) +SharedContentRemoveMemberType_validator = bv.Struct(SharedContentRemoveMemberType) -class SharedContentAddLinkExpiryDetails(bb.Struct): +class SharedContentRequestAccessDetails(bb.Struct): """ - Added expiration date to link for shared file/folder. + Requested access to shared file/folder. - :ivar team_log.SharedContentAddLinkExpiryDetails.new_value: New shared - content link expiration date. Might be missing due to historical data - gap. + :ivar team_log.SharedContentRequestAccessDetails.shared_content_link: Shared + content link. """ __slots__ = [ - '_new_value_value', - '_new_value_present', + '_shared_content_link_value', + '_shared_content_link_present', ] _has_required_fields = False def __init__(self, - new_value=None): - self._new_value_value = None - self._new_value_present = False - if new_value is not None: - self.new_value = new_value + shared_content_link=None): + self._shared_content_link_value = None + self._shared_content_link_present = False + if shared_content_link is not None: + self.shared_content_link = shared_content_link @property - def new_value(self): + def shared_content_link(self): """ - New shared content link expiration date. Might be missing due to - historical data gap. + Shared content link. - :rtype: datetime.datetime + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._shared_content_link_present: + return self._shared_content_link_value else: return None - @new_value.setter - def new_value(self, val): + @shared_content_link.setter + def shared_content_link(self, val): if val is None: - del self.new_value + del self.shared_content_link return - val = self._new_value_validator.validate(val) - self._new_value_value = val - self._new_value_present = True + val = self._shared_content_link_validator.validate(val) + self._shared_content_link_value = val + self._shared_content_link_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @shared_content_link.deleter + def shared_content_link(self): + self._shared_content_link_value = None + self._shared_content_link_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentAddLinkExpiryDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRequestAccessDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentAddLinkExpiryDetails(new_value={!r})'.format( - self._new_value_value, + return 'SharedContentRequestAccessDetails(shared_content_link={!r})'.format( + self._shared_content_link_value, ) -SharedContentAddLinkExpiryDetails_validator = bv.Struct(SharedContentAddLinkExpiryDetails) +SharedContentRequestAccessDetails_validator = bv.Struct(SharedContentRequestAccessDetails) -class SharedContentAddLinkExpiryType(bb.Struct): +class SharedContentRequestAccessType(bb.Struct): __slots__ = [ '_description_value', @@ -48123,19 +55531,19 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentAddLinkExpiryType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentRequestAccessType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentAddLinkExpiryType(description={!r})'.format( + return 'SharedContentRequestAccessType(description={!r})'.format( self._description_value, ) -SharedContentAddLinkExpiryType_validator = bv.Struct(SharedContentAddLinkExpiryType) +SharedContentRequestAccessType_validator = bv.Struct(SharedContentRequestAccessType) -class SharedContentAddLinkPasswordDetails(bb.Struct): +class SharedContentUnshareDetails(bb.Struct): """ - Added password to link for shared file/folder. + Unshared file/folder by clearing membership and turning off link. """ __slots__ = [ @@ -48146,15 +55554,15 @@ class SharedContentAddLinkPasswordDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentAddLinkPasswordDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentUnshareDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentAddLinkPasswordDetails()' + return 'SharedContentUnshareDetails()' -SharedContentAddLinkPasswordDetails_validator = bv.Struct(SharedContentAddLinkPasswordDetails) +SharedContentUnshareDetails_validator = bv.Struct(SharedContentUnshareDetails) -class SharedContentAddLinkPasswordType(bb.Struct): +class SharedContentUnshareType(bb.Struct): __slots__ = [ '_description_value', @@ -48191,25 +55599,33 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentAddLinkPasswordType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentUnshareType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentAddLinkPasswordType(description={!r})'.format( + return 'SharedContentUnshareType(description={!r})'.format( self._description_value, ) -SharedContentAddLinkPasswordType_validator = bv.Struct(SharedContentAddLinkPasswordType) +SharedContentUnshareType_validator = bv.Struct(SharedContentUnshareType) -class SharedContentAddMemberDetails(bb.Struct): +class SharedContentViewDetails(bb.Struct): """ - Added users and/or groups to shared file/folder. + Previewed shared file/folder. - :ivar team_log.SharedContentAddMemberDetails.shared_content_access_level: - Shared content access level. + :ivar team_log.SharedContentViewDetails.shared_content_link: Shared content + link. + :ivar team_log.SharedContentViewDetails.shared_content_owner: The shared + content owner. + :ivar team_log.SharedContentViewDetails.shared_content_access_level: Shared + content access level. """ __slots__ = [ + '_shared_content_link_value', + '_shared_content_link_present', + '_shared_content_owner_value', + '_shared_content_owner_present', '_shared_content_access_level_value', '_shared_content_access_level_present', ] @@ -48217,12 +55633,71 @@ class SharedContentAddMemberDetails(bb.Struct): _has_required_fields = True def __init__(self, - shared_content_access_level=None): + shared_content_link=None, + shared_content_access_level=None, + shared_content_owner=None): + self._shared_content_link_value = None + self._shared_content_link_present = False + self._shared_content_owner_value = None + self._shared_content_owner_present = False self._shared_content_access_level_value = None self._shared_content_access_level_present = False + if shared_content_link is not None: + self.shared_content_link = shared_content_link + if shared_content_owner is not None: + self.shared_content_owner = shared_content_owner if shared_content_access_level is not None: self.shared_content_access_level = shared_content_access_level + @property + def shared_content_link(self): + """ + Shared content link. + + :rtype: str + """ + if self._shared_content_link_present: + return self._shared_content_link_value + else: + raise AttributeError("missing required field 'shared_content_link'") + + @shared_content_link.setter + def shared_content_link(self, val): + val = self._shared_content_link_validator.validate(val) + self._shared_content_link_value = val + self._shared_content_link_present = True + + @shared_content_link.deleter + def shared_content_link(self): + self._shared_content_link_value = None + self._shared_content_link_present = False + + @property + def shared_content_owner(self): + """ + The shared content owner. + + :rtype: UserLogInfo + """ + if self._shared_content_owner_present: + return self._shared_content_owner_value + else: + return None + + @shared_content_owner.setter + def shared_content_owner(self, val): + if val is None: + del self.shared_content_owner + return + self._shared_content_owner_validator.validate_type_only(val) + self._shared_content_owner_value = val + self._shared_content_owner_present = True + + @shared_content_owner.deleter + def shared_content_owner(self): + self._shared_content_owner_value = None + self._shared_content_owner_present = False + @property def shared_content_access_level(self): """ @@ -48246,17 +55721,19 @@ def shared_content_access_level(self): self._shared_content_access_level_value = None self._shared_content_access_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentAddMemberDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentViewDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentAddMemberDetails(shared_content_access_level={!r})'.format( + return 'SharedContentViewDetails(shared_content_link={!r}, shared_content_access_level={!r}, shared_content_owner={!r})'.format( + self._shared_content_link_value, self._shared_content_access_level_value, + self._shared_content_owner_value, ) -SharedContentAddMemberDetails_validator = bv.Struct(SharedContentAddMemberDetails) +SharedContentViewDetails_validator = bv.Struct(SharedContentViewDetails) -class SharedContentAddMemberType(bb.Struct): +class SharedContentViewType(bb.Struct): __slots__ = [ '_description_value', @@ -48293,24 +55770,24 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentAddMemberType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedContentViewType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentAddMemberType(description={!r})'.format( + return 'SharedContentViewType(description={!r})'.format( self._description_value, ) -SharedContentAddMemberType_validator = bv.Struct(SharedContentAddMemberType) +SharedContentViewType_validator = bv.Struct(SharedContentViewType) -class SharedContentChangeDownloadsPolicyDetails(bb.Struct): +class SharedFolderChangeLinkPolicyDetails(bb.Struct): """ - Changed whether members can download shared file/folder. + Changed who can access shared folder via link. - :ivar team_log.SharedContentChangeDownloadsPolicyDetails.new_value: New - downloads policy. - :ivar team_log.SharedContentChangeDownloadsPolicyDetails.previous_value: - Previous downloads policy. Might be missing due to historical data gap. + :ivar team_log.SharedFolderChangeLinkPolicyDetails.new_value: New shared + folder link policy. + :ivar team_log.SharedFolderChangeLinkPolicyDetails.previous_value: Previous + shared folder link policy. Might be missing due to historical data gap. """ __slots__ = [ @@ -48337,9 +55814,9 @@ def __init__(self, @property def new_value(self): """ - New downloads policy. + New shared folder link policy. - :rtype: team_log.DownloadPolicyType + :rtype: sharing.SharedLinkPolicy """ if self._new_value_present: return self._new_value_value @@ -48360,9 +55837,10 @@ def new_value(self): @property def previous_value(self): """ - Previous downloads policy. Might be missing due to historical data gap. + Previous shared folder link policy. Might be missing due to historical + data gap. - :rtype: team_log.DownloadPolicyType + :rtype: sharing.SharedLinkPolicy """ if self._previous_value_present: return self._previous_value_value @@ -48383,18 +55861,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeDownloadsPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderChangeLinkPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeDownloadsPolicyDetails(new_value={!r}, previous_value={!r})'.format( + return 'SharedFolderChangeLinkPolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -SharedContentChangeDownloadsPolicyDetails_validator = bv.Struct(SharedContentChangeDownloadsPolicyDetails) +SharedFolderChangeLinkPolicyDetails_validator = bv.Struct(SharedFolderChangeLinkPolicyDetails) -class SharedContentChangeDownloadsPolicyType(bb.Struct): +class SharedFolderChangeLinkPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -48431,142 +55909,111 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeDownloadsPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderChangeLinkPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeDownloadsPolicyType(description={!r})'.format( + return 'SharedFolderChangeLinkPolicyType(description={!r})'.format( self._description_value, ) -SharedContentChangeDownloadsPolicyType_validator = bv.Struct(SharedContentChangeDownloadsPolicyType) +SharedFolderChangeLinkPolicyType_validator = bv.Struct(SharedFolderChangeLinkPolicyType) -class SharedContentChangeInviteeRoleDetails(bb.Struct): +class SharedFolderChangeMembersInheritancePolicyDetails(bb.Struct): """ - Changed access type of invitee to shared file/folder before invite was - accepted. + Changed whether shared folder inherits members from parent folder. - :ivar team_log.SharedContentChangeInviteeRoleDetails.previous_access_level: - Previous access level. Might be missing due to historical data gap. - :ivar team_log.SharedContentChangeInviteeRoleDetails.new_access_level: New - access level. - :ivar team_log.SharedContentChangeInviteeRoleDetails.invitee: The invitee - whose role was changed. + :ivar team_log.SharedFolderChangeMembersInheritancePolicyDetails.new_value: + New member inheritance policy. + :ivar + team_log.SharedFolderChangeMembersInheritancePolicyDetails.previous_value: + Previous member inheritance policy. Might be missing due to historical + data gap. """ __slots__ = [ - '_previous_access_level_value', - '_previous_access_level_present', - '_new_access_level_value', - '_new_access_level_present', - '_invitee_value', - '_invitee_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - new_access_level=None, - invitee=None, - previous_access_level=None): - self._previous_access_level_value = None - self._previous_access_level_present = False - self._new_access_level_value = None - self._new_access_level_present = False - self._invitee_value = None - self._invitee_present = False - if previous_access_level is not None: - self.previous_access_level = previous_access_level - if new_access_level is not None: - self.new_access_level = new_access_level - if invitee is not None: - self.invitee = invitee - - @property - def previous_access_level(self): - """ - Previous access level. Might be missing due to historical data gap. - - :rtype: sharing.AccessLevel - """ - if self._previous_access_level_present: - return self._previous_access_level_value - else: - return None - - @previous_access_level.setter - def previous_access_level(self, val): - if val is None: - del self.previous_access_level - return - self._previous_access_level_validator.validate_type_only(val) - self._previous_access_level_value = val - self._previous_access_level_present = True - - @previous_access_level.deleter - def previous_access_level(self): - self._previous_access_level_value = None - self._previous_access_level_present = False + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def new_access_level(self): + def new_value(self): """ - New access level. + New member inheritance policy. - :rtype: sharing.AccessLevel + :rtype: SharedFolderMembersInheritancePolicy """ - if self._new_access_level_present: - return self._new_access_level_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'new_access_level'") - - @new_access_level.setter - def new_access_level(self, val): - self._new_access_level_validator.validate_type_only(val) - self._new_access_level_value = val - self._new_access_level_present = True + raise AttributeError("missing required field 'new_value'") - @new_access_level.deleter - def new_access_level(self): - self._new_access_level_value = None - self._new_access_level_present = False + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False @property - def invitee(self): + def previous_value(self): """ - The invitee whose role was changed. + Previous member inheritance policy. Might be missing due to historical + data gap. - :rtype: str + :rtype: SharedFolderMembersInheritancePolicy """ - if self._invitee_present: - return self._invitee_value + if self._previous_value_present: + return self._previous_value_value else: - raise AttributeError("missing required field 'invitee'") + return None - @invitee.setter - def invitee(self, val): - val = self._invitee_validator.validate(val) - self._invitee_value = val - self._invitee_present = True + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True - @invitee.deleter - def invitee(self): - self._invitee_value = None - self._invitee_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeInviteeRoleDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderChangeMembersInheritancePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeInviteeRoleDetails(new_access_level={!r}, invitee={!r}, previous_access_level={!r})'.format( - self._new_access_level_value, - self._invitee_value, - self._previous_access_level_value, + return 'SharedFolderChangeMembersInheritancePolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, ) -SharedContentChangeInviteeRoleDetails_validator = bv.Struct(SharedContentChangeInviteeRoleDetails) +SharedFolderChangeMembersInheritancePolicyDetails_validator = bv.Struct(SharedFolderChangeMembersInheritancePolicyDetails) -class SharedContentChangeInviteeRoleType(bb.Struct): +class SharedFolderChangeMembersInheritancePolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -48603,24 +56050,26 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeInviteeRoleType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderChangeMembersInheritancePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeInviteeRoleType(description={!r})'.format( + return 'SharedFolderChangeMembersInheritancePolicyType(description={!r})'.format( self._description_value, ) -SharedContentChangeInviteeRoleType_validator = bv.Struct(SharedContentChangeInviteeRoleType) +SharedFolderChangeMembersInheritancePolicyType_validator = bv.Struct(SharedFolderChangeMembersInheritancePolicyType) -class SharedContentChangeLinkAudienceDetails(bb.Struct): +class SharedFolderChangeMembersManagementPolicyDetails(bb.Struct): """ - Changed link audience of shared file/folder. + Changed who can add/remove members of shared folder. - :ivar team_log.SharedContentChangeLinkAudienceDetails.new_value: New link - audience value. - :ivar team_log.SharedContentChangeLinkAudienceDetails.previous_value: - Previous link audience value. + :ivar team_log.SharedFolderChangeMembersManagementPolicyDetails.new_value: + New members management policy. + :ivar + team_log.SharedFolderChangeMembersManagementPolicyDetails.previous_value: + Previous members management policy. Might be missing due to historical + data gap. """ __slots__ = [ @@ -48647,9 +56096,9 @@ def __init__(self, @property def new_value(self): """ - New link audience value. + New members management policy. - :rtype: sharing.LinkAudience + :rtype: sharing.AclUpdatePolicy """ if self._new_value_present: return self._new_value_value @@ -48670,9 +56119,10 @@ def new_value(self): @property def previous_value(self): """ - Previous link audience value. + Previous members management policy. Might be missing due to historical + data gap. - :rtype: sharing.LinkAudience + :rtype: sharing.AclUpdatePolicy """ if self._previous_value_present: return self._previous_value_value @@ -48693,18 +56143,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeLinkAudienceDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderChangeMembersManagementPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeLinkAudienceDetails(new_value={!r}, previous_value={!r})'.format( + return 'SharedFolderChangeMembersManagementPolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -SharedContentChangeLinkAudienceDetails_validator = bv.Struct(SharedContentChangeLinkAudienceDetails) +SharedFolderChangeMembersManagementPolicyDetails_validator = bv.Struct(SharedFolderChangeMembersManagementPolicyDetails) -class SharedContentChangeLinkAudienceType(bb.Struct): +class SharedFolderChangeMembersManagementPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -48741,26 +56191,25 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeLinkAudienceType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderChangeMembersManagementPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeLinkAudienceType(description={!r})'.format( + return 'SharedFolderChangeMembersManagementPolicyType(description={!r})'.format( self._description_value, ) -SharedContentChangeLinkAudienceType_validator = bv.Struct(SharedContentChangeLinkAudienceType) +SharedFolderChangeMembersManagementPolicyType_validator = bv.Struct(SharedFolderChangeMembersManagementPolicyType) -class SharedContentChangeLinkExpiryDetails(bb.Struct): +class SharedFolderChangeMembersPolicyDetails(bb.Struct): """ - Changed link expiration of shared file/folder. + Changed who can become member of shared folder. - :ivar team_log.SharedContentChangeLinkExpiryDetails.new_value: New shared - content link expiration date. Might be missing due to historical data + :ivar team_log.SharedFolderChangeMembersPolicyDetails.new_value: New + external invite policy. + :ivar team_log.SharedFolderChangeMembersPolicyDetails.previous_value: + Previous external invite policy. Might be missing due to historical data gap. - :ivar team_log.SharedContentChangeLinkExpiryDetails.previous_value: Previous - shared content link expiration date. Might be missing due to historical - data gap. """ __slots__ = [ @@ -48770,7 +56219,7 @@ class SharedContentChangeLinkExpiryDetails(bb.Struct): '_previous_value_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, new_value=None, @@ -48787,22 +56236,18 @@ def __init__(self, @property def new_value(self): """ - New shared content link expiration date. Might be missing due to - historical data gap. + New external invite policy. - :rtype: datetime.datetime + :rtype: sharing.MemberPolicy """ if self._new_value_present: return self._new_value_value else: - return None + raise AttributeError("missing required field 'new_value'") @new_value.setter def new_value(self, val): - if val is None: - del self.new_value - return - val = self._new_value_validator.validate(val) + self._new_value_validator.validate_type_only(val) self._new_value_value = val self._new_value_present = True @@ -48814,10 +56259,10 @@ def new_value(self): @property def previous_value(self): """ - Previous shared content link expiration date. Might be missing due to - historical data gap. + Previous external invite policy. Might be missing due to historical data + gap. - :rtype: datetime.datetime + :rtype: sharing.MemberPolicy """ if self._previous_value_present: return self._previous_value_value @@ -48829,7 +56274,7 @@ def previous_value(self, val): if val is None: del self.previous_value return - val = self._previous_value_validator.validate(val) + self._previous_value_validator.validate_type_only(val) self._previous_value_value = val self._previous_value_present = True @@ -48838,18 +56283,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeLinkExpiryDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderChangeMembersPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeLinkExpiryDetails(new_value={!r}, previous_value={!r})'.format( + return 'SharedFolderChangeMembersPolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -SharedContentChangeLinkExpiryDetails_validator = bv.Struct(SharedContentChangeLinkExpiryDetails) +SharedFolderChangeMembersPolicyDetails_validator = bv.Struct(SharedFolderChangeMembersPolicyDetails) -class SharedContentChangeLinkExpiryType(bb.Struct): +class SharedFolderChangeMembersPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -48886,19 +56331,124 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeLinkExpiryType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderChangeMembersPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeLinkExpiryType(description={!r})'.format( + return 'SharedFolderChangeMembersPolicyType(description={!r})'.format( self._description_value, ) -SharedContentChangeLinkExpiryType_validator = bv.Struct(SharedContentChangeLinkExpiryType) +SharedFolderChangeMembersPolicyType_validator = bv.Struct(SharedFolderChangeMembersPolicyType) -class SharedContentChangeLinkPasswordDetails(bb.Struct): +class SharedFolderCreateDetails(bb.Struct): """ - Changed link password of shared file/folder. + Created shared folder. + + :ivar team_log.SharedFolderCreateDetails.target_ns_id: Target namespace ID. + Might be missing due to historical data gap. + """ + + __slots__ = [ + '_target_ns_id_value', + '_target_ns_id_present', + ] + + _has_required_fields = False + + def __init__(self, + target_ns_id=None): + self._target_ns_id_value = None + self._target_ns_id_present = False + if target_ns_id is not None: + self.target_ns_id = target_ns_id + + @property + def target_ns_id(self): + """ + Target namespace ID. Might be missing due to historical data gap. + + :rtype: str + """ + if self._target_ns_id_present: + return self._target_ns_id_value + else: + return None + + @target_ns_id.setter + def target_ns_id(self, val): + if val is None: + del self.target_ns_id + return + val = self._target_ns_id_validator.validate(val) + self._target_ns_id_value = val + self._target_ns_id_present = True + + @target_ns_id.deleter + def target_ns_id(self): + self._target_ns_id_value = None + self._target_ns_id_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderCreateDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharedFolderCreateDetails(target_ns_id={!r})'.format( + self._target_ns_id_value, + ) + +SharedFolderCreateDetails_validator = bv.Struct(SharedFolderCreateDetails) + +class SharedFolderCreateType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderCreateType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharedFolderCreateType(description={!r})'.format( + self._description_value, + ) + +SharedFolderCreateType_validator = bv.Struct(SharedFolderCreateType) + +class SharedFolderDeclineInvitationDetails(bb.Struct): + """ + Declined team member's invite to shared folder. """ __slots__ = [ @@ -48909,15 +56459,15 @@ class SharedContentChangeLinkPasswordDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeLinkPasswordDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderDeclineInvitationDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeLinkPasswordDetails()' + return 'SharedFolderDeclineInvitationDetails()' -SharedContentChangeLinkPasswordDetails_validator = bv.Struct(SharedContentChangeLinkPasswordDetails) +SharedFolderDeclineInvitationDetails_validator = bv.Struct(SharedFolderDeclineInvitationDetails) -class SharedContentChangeLinkPasswordType(bb.Struct): +class SharedFolderDeclineInvitationType(bb.Struct): __slots__ = [ '_description_value', @@ -48954,108 +56504,301 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeLinkPasswordType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderDeclineInvitationType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeLinkPasswordType(description={!r})'.format( + return 'SharedFolderDeclineInvitationType(description={!r})'.format( self._description_value, ) -SharedContentChangeLinkPasswordType_validator = bv.Struct(SharedContentChangeLinkPasswordType) +SharedFolderDeclineInvitationType_validator = bv.Struct(SharedFolderDeclineInvitationType) -class SharedContentChangeMemberRoleDetails(bb.Struct): +class SharedFolderMembersInheritancePolicy(bb.Union): """ - Changed access type of shared file/folder member. + Specifies if a shared folder inherits its members from the parent folder. - :ivar team_log.SharedContentChangeMemberRoleDetails.previous_access_level: - Previous access level. Might be missing due to historical data gap. - :ivar team_log.SharedContentChangeMemberRoleDetails.new_access_level: New - access level. + 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 + inherit_members = None + # Attribute is overwritten below the class definition + dont_inherit_members = None + # Attribute is overwritten below the class definition + other = None + + def is_inherit_members(self): + """ + Check if the union tag is ``inherit_members``. + + :rtype: bool + """ + return self._tag == 'inherit_members' + + def is_dont_inherit_members(self): + """ + Check if the union tag is ``dont_inherit_members``. + + :rtype: bool + """ + return self._tag == 'dont_inherit_members' + + 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(SharedFolderMembersInheritancePolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharedFolderMembersInheritancePolicy(%r, %r)' % (self._tag, self._value) + +SharedFolderMembersInheritancePolicy_validator = bv.Union(SharedFolderMembersInheritancePolicy) + +class SharedFolderMountDetails(bb.Struct): + """ + Added shared folder to own Dropbox. """ __slots__ = [ - '_previous_access_level_value', - '_previous_access_level_present', - '_new_access_level_value', - '_new_access_level_present', + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderMountDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharedFolderMountDetails()' + +SharedFolderMountDetails_validator = bv.Struct(SharedFolderMountDetails) + +class SharedFolderMountType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', ] _has_required_fields = True def __init__(self, - new_access_level=None, - previous_access_level=None): - self._previous_access_level_value = None - self._previous_access_level_present = False - self._new_access_level_value = None - self._new_access_level_present = False - if previous_access_level is not None: - self.previous_access_level = previous_access_level - if new_access_level is not None: - self.new_access_level = new_access_level + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def previous_access_level(self): + def description(self): """ - Previous access level. Might be missing due to historical data gap. + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") - :rtype: sharing.AccessLevel + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderMountType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharedFolderMountType(description={!r})'.format( + self._description_value, + ) + +SharedFolderMountType_validator = bv.Struct(SharedFolderMountType) + +class SharedFolderNestDetails(bb.Struct): + """ + Changed parent of shared folder. + + :ivar team_log.SharedFolderNestDetails.previous_parent_ns_id: Previous + parent namespace ID. Might be missing due to historical data gap. + :ivar team_log.SharedFolderNestDetails.new_parent_ns_id: New parent + namespace ID. Might be missing due to historical data gap. + :ivar team_log.SharedFolderNestDetails.previous_ns_path: Previous namespace + path. Might be missing due to historical data gap. + :ivar team_log.SharedFolderNestDetails.new_ns_path: New namespace path. + Might be missing due to historical data gap. + """ + + __slots__ = [ + '_previous_parent_ns_id_value', + '_previous_parent_ns_id_present', + '_new_parent_ns_id_value', + '_new_parent_ns_id_present', + '_previous_ns_path_value', + '_previous_ns_path_present', + '_new_ns_path_value', + '_new_ns_path_present', + ] + + _has_required_fields = False + + def __init__(self, + previous_parent_ns_id=None, + new_parent_ns_id=None, + previous_ns_path=None, + new_ns_path=None): + self._previous_parent_ns_id_value = None + self._previous_parent_ns_id_present = False + self._new_parent_ns_id_value = None + self._new_parent_ns_id_present = False + self._previous_ns_path_value = None + self._previous_ns_path_present = False + self._new_ns_path_value = None + self._new_ns_path_present = False + if previous_parent_ns_id is not None: + self.previous_parent_ns_id = previous_parent_ns_id + if new_parent_ns_id is not None: + self.new_parent_ns_id = new_parent_ns_id + if previous_ns_path is not None: + self.previous_ns_path = previous_ns_path + if new_ns_path is not None: + self.new_ns_path = new_ns_path + + @property + def previous_parent_ns_id(self): """ - if self._previous_access_level_present: - return self._previous_access_level_value + Previous parent namespace ID. Might be missing due to historical data + gap. + + :rtype: str + """ + if self._previous_parent_ns_id_present: + return self._previous_parent_ns_id_value else: return None - @previous_access_level.setter - def previous_access_level(self, val): + @previous_parent_ns_id.setter + def previous_parent_ns_id(self, val): if val is None: - del self.previous_access_level + del self.previous_parent_ns_id return - self._previous_access_level_validator.validate_type_only(val) - self._previous_access_level_value = val - self._previous_access_level_present = True + val = self._previous_parent_ns_id_validator.validate(val) + self._previous_parent_ns_id_value = val + self._previous_parent_ns_id_present = True - @previous_access_level.deleter - def previous_access_level(self): - self._previous_access_level_value = None - self._previous_access_level_present = False + @previous_parent_ns_id.deleter + def previous_parent_ns_id(self): + self._previous_parent_ns_id_value = None + self._previous_parent_ns_id_present = False @property - def new_access_level(self): + def new_parent_ns_id(self): """ - New access level. + New parent namespace ID. Might be missing due to historical data gap. + + :rtype: str + """ + if self._new_parent_ns_id_present: + return self._new_parent_ns_id_value + else: + return None + + @new_parent_ns_id.setter + def new_parent_ns_id(self, val): + if val is None: + del self.new_parent_ns_id + return + val = self._new_parent_ns_id_validator.validate(val) + self._new_parent_ns_id_value = val + self._new_parent_ns_id_present = True + + @new_parent_ns_id.deleter + def new_parent_ns_id(self): + self._new_parent_ns_id_value = None + self._new_parent_ns_id_present = False + + @property + def previous_ns_path(self): + """ + Previous namespace path. Might be missing due to historical data gap. + + :rtype: str + """ + if self._previous_ns_path_present: + return self._previous_ns_path_value + else: + return None + + @previous_ns_path.setter + def previous_ns_path(self, val): + if val is None: + del self.previous_ns_path + return + val = self._previous_ns_path_validator.validate(val) + self._previous_ns_path_value = val + self._previous_ns_path_present = True + + @previous_ns_path.deleter + def previous_ns_path(self): + self._previous_ns_path_value = None + self._previous_ns_path_present = False + + @property + def new_ns_path(self): + """ + New namespace path. Might be missing due to historical data gap. - :rtype: sharing.AccessLevel + :rtype: str """ - if self._new_access_level_present: - return self._new_access_level_value + if self._new_ns_path_present: + return self._new_ns_path_value else: - raise AttributeError("missing required field 'new_access_level'") + return None - @new_access_level.setter - def new_access_level(self, val): - self._new_access_level_validator.validate_type_only(val) - self._new_access_level_value = val - self._new_access_level_present = True + @new_ns_path.setter + def new_ns_path(self, val): + if val is None: + del self.new_ns_path + return + val = self._new_ns_path_validator.validate(val) + self._new_ns_path_value = val + self._new_ns_path_present = True - @new_access_level.deleter - def new_access_level(self): - self._new_access_level_value = None - self._new_access_level_present = False + @new_ns_path.deleter + def new_ns_path(self): + self._new_ns_path_value = None + self._new_ns_path_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeMemberRoleDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderNestDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeMemberRoleDetails(new_access_level={!r}, previous_access_level={!r})'.format( - self._new_access_level_value, - self._previous_access_level_value, + return 'SharedFolderNestDetails(previous_parent_ns_id={!r}, new_parent_ns_id={!r}, previous_ns_path={!r}, new_ns_path={!r})'.format( + self._previous_parent_ns_id_value, + self._new_parent_ns_id_value, + self._previous_ns_path_value, + self._new_ns_path_value, ) -SharedContentChangeMemberRoleDetails_validator = bv.Struct(SharedContentChangeMemberRoleDetails) +SharedFolderNestDetails_validator = bv.Struct(SharedFolderNestDetails) -class SharedContentChangeMemberRoleType(bb.Struct): +class SharedFolderNestType(bb.Struct): __slots__ = [ '_description_value', @@ -49092,108 +56835,108 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeMemberRoleType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderNestType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeMemberRoleType(description={!r})'.format( + return 'SharedFolderNestType(description={!r})'.format( self._description_value, ) -SharedContentChangeMemberRoleType_validator = bv.Struct(SharedContentChangeMemberRoleType) +SharedFolderNestType_validator = bv.Struct(SharedFolderNestType) -class SharedContentChangeViewerInfoPolicyDetails(bb.Struct): +class SharedFolderTransferOwnershipDetails(bb.Struct): """ - Changed whether members can see who viewed shared file/folder. + Transferred ownership of shared folder to another member. - :ivar team_log.SharedContentChangeViewerInfoPolicyDetails.new_value: New - viewer info policy. - :ivar team_log.SharedContentChangeViewerInfoPolicyDetails.previous_value: - Previous view info policy. Might be missing due to historical data gap. + :ivar team_log.SharedFolderTransferOwnershipDetails.previous_owner_email: + The email address of the previous shared folder owner. + :ivar team_log.SharedFolderTransferOwnershipDetails.new_owner_email: The + email address of the new shared folder owner. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_previous_owner_email_value', + '_previous_owner_email_present', + '_new_owner_email_value', + '_new_owner_email_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + new_owner_email=None, + previous_owner_email=None): + self._previous_owner_email_value = None + self._previous_owner_email_present = False + self._new_owner_email_value = None + self._new_owner_email_present = False + if previous_owner_email is not None: + self.previous_owner_email = previous_owner_email + if new_owner_email is not None: + self.new_owner_email = new_owner_email @property - def new_value(self): + def previous_owner_email(self): """ - New viewer info policy. + The email address of the previous shared folder owner. - :rtype: sharing.ViewerInfoPolicy + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._previous_owner_email_present: + return self._previous_owner_email_value else: - raise AttributeError("missing required field 'new_value'") + return None - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @previous_owner_email.setter + def previous_owner_email(self, val): + if val is None: + del self.previous_owner_email + return + val = self._previous_owner_email_validator.validate(val) + self._previous_owner_email_value = val + self._previous_owner_email_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @previous_owner_email.deleter + def previous_owner_email(self): + self._previous_owner_email_value = None + self._previous_owner_email_present = False @property - def previous_value(self): + def new_owner_email(self): """ - Previous view info policy. Might be missing due to historical data gap. + The email address of the new shared folder owner. - :rtype: sharing.ViewerInfoPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._new_owner_email_present: + return self._new_owner_email_value else: - return None + raise AttributeError("missing required field 'new_owner_email'") - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + @new_owner_email.setter + def new_owner_email(self, val): + val = self._new_owner_email_validator.validate(val) + self._new_owner_email_value = val + self._new_owner_email_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @new_owner_email.deleter + def new_owner_email(self): + self._new_owner_email_value = None + self._new_owner_email_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeViewerInfoPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderTransferOwnershipDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeViewerInfoPolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'SharedFolderTransferOwnershipDetails(new_owner_email={!r}, previous_owner_email={!r})'.format( + self._new_owner_email_value, + self._previous_owner_email_value, ) -SharedContentChangeViewerInfoPolicyDetails_validator = bv.Struct(SharedContentChangeViewerInfoPolicyDetails) +SharedFolderTransferOwnershipDetails_validator = bv.Struct(SharedFolderTransferOwnershipDetails) -class SharedContentChangeViewerInfoPolicyType(bb.Struct): +class SharedFolderTransferOwnershipType(bb.Struct): __slots__ = [ '_description_value', @@ -49230,75 +56973,38 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentChangeViewerInfoPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderTransferOwnershipType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentChangeViewerInfoPolicyType(description={!r})'.format( + return 'SharedFolderTransferOwnershipType(description={!r})'.format( self._description_value, ) -SharedContentChangeViewerInfoPolicyType_validator = bv.Struct(SharedContentChangeViewerInfoPolicyType) +SharedFolderTransferOwnershipType_validator = bv.Struct(SharedFolderTransferOwnershipType) -class SharedContentClaimInvitationDetails(bb.Struct): +class SharedFolderUnmountDetails(bb.Struct): """ - Acquired membership of shared file/folder by accepting invite. - - :ivar team_log.SharedContentClaimInvitationDetails.shared_content_link: - Shared content link. + Deleted shared folder from Dropbox. """ __slots__ = [ - '_shared_content_link_value', - '_shared_content_link_present', ] _has_required_fields = False - def __init__(self, - shared_content_link=None): - self._shared_content_link_value = None - self._shared_content_link_present = False - if shared_content_link is not None: - self.shared_content_link = shared_content_link - - @property - def shared_content_link(self): - """ - Shared content link. - - :rtype: str - """ - if self._shared_content_link_present: - return self._shared_content_link_value - else: - return None - - @shared_content_link.setter - def shared_content_link(self, val): - if val is None: - del self.shared_content_link - return - val = self._shared_content_link_validator.validate(val) - self._shared_content_link_value = val - self._shared_content_link_present = True - - @shared_content_link.deleter - def shared_content_link(self): - self._shared_content_link_value = None - self._shared_content_link_present = False + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentClaimInvitationDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderUnmountDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentClaimInvitationDetails(shared_content_link={!r})'.format( - self._shared_content_link_value, - ) + return 'SharedFolderUnmountDetails()' -SharedContentClaimInvitationDetails_validator = bv.Struct(SharedContentClaimInvitationDetails) +SharedFolderUnmountDetails_validator = bv.Struct(SharedFolderUnmountDetails) -class SharedContentClaimInvitationType(bb.Struct): +class SharedFolderUnmountType(bb.Struct): __slots__ = [ '_description_value', @@ -49335,174 +57041,131 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentClaimInvitationType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderUnmountType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentClaimInvitationType(description={!r})'.format( + return 'SharedFolderUnmountType(description={!r})'.format( self._description_value, ) -SharedContentClaimInvitationType_validator = bv.Struct(SharedContentClaimInvitationType) +SharedFolderUnmountType_validator = bv.Struct(SharedFolderUnmountType) -class SharedContentCopyDetails(bb.Struct): +class SharedLinkAccessLevel(bb.Union): """ - Copied shared file/folder to own Dropbox. + Shared link access level. - :ivar team_log.SharedContentCopyDetails.shared_content_link: Shared content - link. - :ivar team_log.SharedContentCopyDetails.shared_content_owner: The shared - content owner. - :ivar team_log.SharedContentCopyDetails.shared_content_access_level: Shared - content access level. - :ivar team_log.SharedContentCopyDetails.destination_path: The path where the - member saved the content. + 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. """ - __slots__ = [ - '_shared_content_link_value', - '_shared_content_link_present', - '_shared_content_owner_value', - '_shared_content_owner_present', - '_shared_content_access_level_value', - '_shared_content_access_level_present', - '_destination_path_value', - '_destination_path_present', - ] + _catch_all = 'other' + # Attribute is overwritten below the class definition + none = None + # Attribute is overwritten below the class definition + reader = None + # Attribute is overwritten below the class definition + writer = None + # Attribute is overwritten below the class definition + other = None - _has_required_fields = True + def is_none(self): + """ + Check if the union tag is ``none``. - def __init__(self, - shared_content_link=None, - shared_content_access_level=None, - destination_path=None, - shared_content_owner=None): - self._shared_content_link_value = None - self._shared_content_link_present = False - self._shared_content_owner_value = None - self._shared_content_owner_present = False - self._shared_content_access_level_value = None - self._shared_content_access_level_present = False - self._destination_path_value = None - self._destination_path_present = False - if shared_content_link is not None: - self.shared_content_link = shared_content_link - if shared_content_owner is not None: - self.shared_content_owner = shared_content_owner - if shared_content_access_level is not None: - self.shared_content_access_level = shared_content_access_level - if destination_path is not None: - self.destination_path = destination_path + :rtype: bool + """ + return self._tag == 'none' - @property - def shared_content_link(self): + def is_reader(self): """ - Shared content link. + Check if the union tag is ``reader``. - :rtype: str + :rtype: bool """ - if self._shared_content_link_present: - return self._shared_content_link_value - else: - raise AttributeError("missing required field 'shared_content_link'") + return self._tag == 'reader' - @shared_content_link.setter - def shared_content_link(self, val): - val = self._shared_content_link_validator.validate(val) - self._shared_content_link_value = val - self._shared_content_link_present = True + def is_writer(self): + """ + Check if the union tag is ``writer``. - @shared_content_link.deleter - def shared_content_link(self): - self._shared_content_link_value = None - self._shared_content_link_present = False + :rtype: bool + """ + return self._tag == 'writer' - @property - def shared_content_owner(self): + def is_other(self): """ - The shared content owner. + Check if the union tag is ``other``. - :rtype: team_log.UserLogInfo + :rtype: bool """ - if self._shared_content_owner_present: - return self._shared_content_owner_value - else: - return None + return self._tag == 'other' - @shared_content_owner.setter - def shared_content_owner(self, val): - if val is None: - del self.shared_content_owner - return - self._shared_content_owner_validator.validate_type_only(val) - self._shared_content_owner_value = val - self._shared_content_owner_present = True + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkAccessLevel, self)._process_custom_annotations(annotation_type, field_path, processor) - @shared_content_owner.deleter - def shared_content_owner(self): - self._shared_content_owner_value = None - self._shared_content_owner_present = False + def __repr__(self): + return 'SharedLinkAccessLevel(%r, %r)' % (self._tag, self._value) - @property - def shared_content_access_level(self): - """ - Shared content access level. +SharedLinkAccessLevel_validator = bv.Union(SharedLinkAccessLevel) - :rtype: sharing.AccessLevel - """ - if self._shared_content_access_level_present: - return self._shared_content_access_level_value - else: - raise AttributeError("missing required field 'shared_content_access_level'") +class SharedLinkAddExpiryDetails(bb.Struct): + """ + Added shared link expiration date. - @shared_content_access_level.setter - def shared_content_access_level(self, val): - self._shared_content_access_level_validator.validate_type_only(val) - self._shared_content_access_level_value = val - self._shared_content_access_level_present = True + :ivar team_log.SharedLinkAddExpiryDetails.new_value: New shared link + expiration date. + """ - @shared_content_access_level.deleter - def shared_content_access_level(self): - self._shared_content_access_level_value = None - self._shared_content_access_level_present = False + __slots__ = [ + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + new_value=None): + self._new_value_value = None + self._new_value_present = False + if new_value is not None: + self.new_value = new_value @property - def destination_path(self): + def new_value(self): """ - The path where the member saved the content. + New shared link expiration date. - :rtype: str + :rtype: datetime.datetime """ - if self._destination_path_present: - return self._destination_path_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'destination_path'") + raise AttributeError("missing required field 'new_value'") - @destination_path.setter - def destination_path(self, val): - val = self._destination_path_validator.validate(val) - self._destination_path_value = val - self._destination_path_present = True + @new_value.setter + def new_value(self, val): + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True - @destination_path.deleter - def destination_path(self): - self._destination_path_value = None - self._destination_path_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentCopyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkAddExpiryDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentCopyDetails(shared_content_link={!r}, shared_content_access_level={!r}, destination_path={!r}, shared_content_owner={!r})'.format( - self._shared_content_link_value, - self._shared_content_access_level_value, - self._destination_path_value, - self._shared_content_owner_value, + return 'SharedLinkAddExpiryDetails(new_value={!r})'.format( + self._new_value_value, ) -SharedContentCopyDetails_validator = bv.Struct(SharedContentCopyDetails) +SharedLinkAddExpiryDetails_validator = bv.Struct(SharedLinkAddExpiryDetails) -class SharedContentCopyType(bb.Struct): +class SharedLinkAddExpiryType(bb.Struct): __slots__ = [ '_description_value', @@ -49539,141 +57202,113 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentCopyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkAddExpiryType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentCopyType(description={!r})'.format( + return 'SharedLinkAddExpiryType(description={!r})'.format( self._description_value, ) -SharedContentCopyType_validator = bv.Struct(SharedContentCopyType) +SharedLinkAddExpiryType_validator = bv.Struct(SharedLinkAddExpiryType) -class SharedContentDownloadDetails(bb.Struct): +class SharedLinkChangeExpiryDetails(bb.Struct): """ - Downloaded shared file/folder. + Changed shared link expiration date. - :ivar team_log.SharedContentDownloadDetails.shared_content_link: Shared - content link. - :ivar team_log.SharedContentDownloadDetails.shared_content_owner: The shared - content owner. - :ivar team_log.SharedContentDownloadDetails.shared_content_access_level: - Shared content access level. + :ivar team_log.SharedLinkChangeExpiryDetails.new_value: New shared link + expiration date. Might be missing due to historical data gap. + :ivar team_log.SharedLinkChangeExpiryDetails.previous_value: Previous shared + link expiration date. Might be missing due to historical data gap. """ __slots__ = [ - '_shared_content_link_value', - '_shared_content_link_present', - '_shared_content_owner_value', - '_shared_content_owner_present', - '_shared_content_access_level_value', - '_shared_content_access_level_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] - _has_required_fields = True + _has_required_fields = False def __init__(self, - shared_content_link=None, - shared_content_access_level=None, - shared_content_owner=None): - self._shared_content_link_value = None - self._shared_content_link_present = False - self._shared_content_owner_value = None - self._shared_content_owner_present = False - self._shared_content_access_level_value = None - self._shared_content_access_level_present = False - if shared_content_link is not None: - self.shared_content_link = shared_content_link - if shared_content_owner is not None: - self.shared_content_owner = shared_content_owner - if shared_content_access_level is not None: - self.shared_content_access_level = shared_content_access_level - - @property - def shared_content_link(self): - """ - Shared content link. - - :rtype: str - """ - if self._shared_content_link_present: - return self._shared_content_link_value - else: - raise AttributeError("missing required field 'shared_content_link'") - - @shared_content_link.setter - def shared_content_link(self, val): - val = self._shared_content_link_validator.validate(val) - self._shared_content_link_value = val - self._shared_content_link_present = True - - @shared_content_link.deleter - def shared_content_link(self): - self._shared_content_link_value = None - self._shared_content_link_present = False + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def shared_content_owner(self): + def new_value(self): """ - The shared content owner. + New shared link expiration date. Might be missing due to historical data + gap. - :rtype: team_log.UserLogInfo + :rtype: datetime.datetime """ - if self._shared_content_owner_present: - return self._shared_content_owner_value + if self._new_value_present: + return self._new_value_value else: return None - @shared_content_owner.setter - def shared_content_owner(self, val): + @new_value.setter + def new_value(self, val): if val is None: - del self.shared_content_owner - return - self._shared_content_owner_validator.validate_type_only(val) - self._shared_content_owner_value = val - self._shared_content_owner_present = True + del self.new_value + return + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True - @shared_content_owner.deleter - def shared_content_owner(self): - self._shared_content_owner_value = None - self._shared_content_owner_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False @property - def shared_content_access_level(self): + def previous_value(self): """ - Shared content access level. + Previous shared link expiration date. Might be missing due to historical + data gap. - :rtype: sharing.AccessLevel + :rtype: datetime.datetime """ - if self._shared_content_access_level_present: - return self._shared_content_access_level_value + if self._previous_value_present: + return self._previous_value_value else: - raise AttributeError("missing required field 'shared_content_access_level'") + return None - @shared_content_access_level.setter - def shared_content_access_level(self, val): - self._shared_content_access_level_validator.validate_type_only(val) - self._shared_content_access_level_value = val - self._shared_content_access_level_present = True + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True - @shared_content_access_level.deleter - def shared_content_access_level(self): - self._shared_content_access_level_value = None - self._shared_content_access_level_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentDownloadDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkChangeExpiryDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentDownloadDetails(shared_content_link={!r}, shared_content_access_level={!r}, shared_content_owner={!r})'.format( - self._shared_content_link_value, - self._shared_content_access_level_value, - self._shared_content_owner_value, + return 'SharedLinkChangeExpiryDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, ) -SharedContentDownloadDetails_validator = bv.Struct(SharedContentDownloadDetails) +SharedLinkChangeExpiryDetails_validator = bv.Struct(SharedLinkChangeExpiryDetails) -class SharedContentDownloadType(bb.Struct): +class SharedLinkChangeExpiryType(bb.Struct): __slots__ = [ '_description_value', @@ -49710,38 +57345,109 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentDownloadType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkChangeExpiryType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentDownloadType(description={!r})'.format( + return 'SharedLinkChangeExpiryType(description={!r})'.format( self._description_value, ) -SharedContentDownloadType_validator = bv.Struct(SharedContentDownloadType) +SharedLinkChangeExpiryType_validator = bv.Struct(SharedLinkChangeExpiryType) -class SharedContentRelinquishMembershipDetails(bb.Struct): +class SharedLinkChangeVisibilityDetails(bb.Struct): """ - Left shared file/folder. + Changed visibility of shared link. + + :ivar team_log.SharedLinkChangeVisibilityDetails.new_value: New shared link + visibility. + :ivar team_log.SharedLinkChangeVisibilityDetails.previous_value: Previous + shared link visibility. Might be missing due to historical data gap. """ __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value + + @property + def new_value(self): + """ + New shared link visibility. + + :rtype: SharedLinkVisibility + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous shared link visibility. Might be missing due to historical data + gap. + + :rtype: SharedLinkVisibility + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRelinquishMembershipDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkChangeVisibilityDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRelinquishMembershipDetails()' + return 'SharedLinkChangeVisibilityDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) -SharedContentRelinquishMembershipDetails_validator = bv.Struct(SharedContentRelinquishMembershipDetails) +SharedLinkChangeVisibilityDetails_validator = bv.Struct(SharedLinkChangeVisibilityDetails) -class SharedContentRelinquishMembershipType(bb.Struct): +class SharedLinkChangeVisibilityType(bb.Struct): __slots__ = [ '_description_value', @@ -49778,72 +57484,75 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRelinquishMembershipType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkChangeVisibilityType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRelinquishMembershipType(description={!r})'.format( + return 'SharedLinkChangeVisibilityType(description={!r})'.format( self._description_value, ) -SharedContentRelinquishMembershipType_validator = bv.Struct(SharedContentRelinquishMembershipType) +SharedLinkChangeVisibilityType_validator = bv.Struct(SharedLinkChangeVisibilityType) -class SharedContentRemoveInviteesDetails(bb.Struct): +class SharedLinkCopyDetails(bb.Struct): """ - Removed invitee from shared file/folder before invite was accepted. + Added file/folder to Dropbox from shared link. - :ivar team_log.SharedContentRemoveInviteesDetails.invitees: A list of - invitees. + :ivar team_log.SharedLinkCopyDetails.shared_link_owner: Shared link owner + details. Might be missing due to historical data gap. """ __slots__ = [ - '_invitees_value', - '_invitees_present', + '_shared_link_owner_value', + '_shared_link_owner_present', ] - _has_required_fields = True + _has_required_fields = False def __init__(self, - invitees=None): - self._invitees_value = None - self._invitees_present = False - if invitees is not None: - self.invitees = invitees + shared_link_owner=None): + self._shared_link_owner_value = None + self._shared_link_owner_present = False + if shared_link_owner is not None: + self.shared_link_owner = shared_link_owner @property - def invitees(self): + def shared_link_owner(self): """ - A list of invitees. + Shared link owner details. Might be missing due to historical data gap. - :rtype: list of [str] + :rtype: UserLogInfo """ - if self._invitees_present: - return self._invitees_value + if self._shared_link_owner_present: + return self._shared_link_owner_value else: - raise AttributeError("missing required field 'invitees'") + return None - @invitees.setter - def invitees(self, val): - val = self._invitees_validator.validate(val) - self._invitees_value = val - self._invitees_present = True + @shared_link_owner.setter + def shared_link_owner(self, val): + if val is None: + del self.shared_link_owner + return + self._shared_link_owner_validator.validate_type_only(val) + self._shared_link_owner_value = val + self._shared_link_owner_present = True - @invitees.deleter - def invitees(self): - self._invitees_value = None - self._invitees_present = False + @shared_link_owner.deleter + def shared_link_owner(self): + self._shared_link_owner_value = None + self._shared_link_owner_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRemoveInviteesDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkCopyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRemoveInviteesDetails(invitees={!r})'.format( - self._invitees_value, + return 'SharedLinkCopyDetails(shared_link_owner={!r})'.format( + self._shared_link_owner_value, ) -SharedContentRemoveInviteesDetails_validator = bv.Struct(SharedContentRemoveInviteesDetails) +SharedLinkCopyDetails_validator = bv.Struct(SharedLinkCopyDetails) -class SharedContentRemoveInviteesType(bb.Struct): +class SharedLinkCopyType(bb.Struct): __slots__ = [ '_description_value', @@ -49880,77 +57589,76 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRemoveInviteesType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkCopyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRemoveInviteesType(description={!r})'.format( + return 'SharedLinkCopyType(description={!r})'.format( self._description_value, ) -SharedContentRemoveInviteesType_validator = bv.Struct(SharedContentRemoveInviteesType) +SharedLinkCopyType_validator = bv.Struct(SharedLinkCopyType) -class SharedContentRemoveLinkExpiryDetails(bb.Struct): +class SharedLinkCreateDetails(bb.Struct): """ - Removed link expiration date of shared file/folder. + Created shared link. - :ivar team_log.SharedContentRemoveLinkExpiryDetails.previous_value: Previous - shared content link expiration date. Might be missing due to historical - data gap. + :ivar team_log.SharedLinkCreateDetails.shared_link_access_level: Defines who + can access the shared link. Might be missing due to historical data gap. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', + '_shared_link_access_level_value', + '_shared_link_access_level_present', ] _has_required_fields = False def __init__(self, - previous_value=None): - self._previous_value_value = None - self._previous_value_present = False - if previous_value is not None: - self.previous_value = previous_value + shared_link_access_level=None): + self._shared_link_access_level_value = None + self._shared_link_access_level_present = False + if shared_link_access_level is not None: + self.shared_link_access_level = shared_link_access_level @property - def previous_value(self): + def shared_link_access_level(self): """ - Previous shared content link expiration date. Might be missing due to + Defines who can access the shared link. Might be missing due to historical data gap. - :rtype: datetime.datetime + :rtype: SharedLinkAccessLevel """ - if self._previous_value_present: - return self._previous_value_value + if self._shared_link_access_level_present: + return self._shared_link_access_level_value else: return None - @previous_value.setter - def previous_value(self, val): + @shared_link_access_level.setter + def shared_link_access_level(self, val): if val is None: - del self.previous_value + del self.shared_link_access_level return - val = self._previous_value_validator.validate(val) - self._previous_value_value = val - self._previous_value_present = True + self._shared_link_access_level_validator.validate_type_only(val) + self._shared_link_access_level_value = val + self._shared_link_access_level_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @shared_link_access_level.deleter + def shared_link_access_level(self): + self._shared_link_access_level_value = None + self._shared_link_access_level_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRemoveLinkExpiryDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkCreateDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRemoveLinkExpiryDetails(previous_value={!r})'.format( - self._previous_value_value, + return 'SharedLinkCreateDetails(shared_link_access_level={!r})'.format( + self._shared_link_access_level_value, ) -SharedContentRemoveLinkExpiryDetails_validator = bv.Struct(SharedContentRemoveLinkExpiryDetails) +SharedLinkCreateDetails_validator = bv.Struct(SharedLinkCreateDetails) -class SharedContentRemoveLinkExpiryType(bb.Struct): +class SharedLinkCreateType(bb.Struct): __slots__ = [ '_description_value', @@ -49987,38 +57695,75 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRemoveLinkExpiryType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkCreateType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRemoveLinkExpiryType(description={!r})'.format( + return 'SharedLinkCreateType(description={!r})'.format( self._description_value, ) -SharedContentRemoveLinkExpiryType_validator = bv.Struct(SharedContentRemoveLinkExpiryType) +SharedLinkCreateType_validator = bv.Struct(SharedLinkCreateType) -class SharedContentRemoveLinkPasswordDetails(bb.Struct): +class SharedLinkDisableDetails(bb.Struct): """ - Removed link password of shared file/folder. + Removed shared link. + + :ivar team_log.SharedLinkDisableDetails.shared_link_owner: Shared link owner + details. Might be missing due to historical data gap. """ __slots__ = [ + '_shared_link_owner_value', + '_shared_link_owner_present', ] _has_required_fields = False - def __init__(self): - pass + def __init__(self, + shared_link_owner=None): + self._shared_link_owner_value = None + self._shared_link_owner_present = False + if shared_link_owner is not None: + self.shared_link_owner = shared_link_owner + + @property + def shared_link_owner(self): + """ + Shared link owner details. Might be missing due to historical data gap. + + :rtype: UserLogInfo + """ + if self._shared_link_owner_present: + return self._shared_link_owner_value + else: + return None + + @shared_link_owner.setter + def shared_link_owner(self, val): + if val is None: + del self.shared_link_owner + return + self._shared_link_owner_validator.validate_type_only(val) + self._shared_link_owner_value = val + self._shared_link_owner_present = True + + @shared_link_owner.deleter + def shared_link_owner(self): + self._shared_link_owner_value = None + self._shared_link_owner_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRemoveLinkPasswordDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkDisableDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRemoveLinkPasswordDetails()' + return 'SharedLinkDisableDetails(shared_link_owner={!r})'.format( + self._shared_link_owner_value, + ) -SharedContentRemoveLinkPasswordDetails_validator = bv.Struct(SharedContentRemoveLinkPasswordDetails) +SharedLinkDisableDetails_validator = bv.Struct(SharedLinkDisableDetails) -class SharedContentRemoveLinkPasswordType(bb.Struct): +class SharedLinkDisableType(bb.Struct): __slots__ = [ '_description_value', @@ -50055,75 +57800,75 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRemoveLinkPasswordType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkDisableType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRemoveLinkPasswordType(description={!r})'.format( + return 'SharedLinkDisableType(description={!r})'.format( self._description_value, ) -SharedContentRemoveLinkPasswordType_validator = bv.Struct(SharedContentRemoveLinkPasswordType) +SharedLinkDisableType_validator = bv.Struct(SharedLinkDisableType) -class SharedContentRemoveMemberDetails(bb.Struct): +class SharedLinkDownloadDetails(bb.Struct): """ - Removed user/group from shared file/folder. + Downloaded file/folder from shared link. - :ivar team_log.SharedContentRemoveMemberDetails.shared_content_access_level: - Shared content access level. + :ivar team_log.SharedLinkDownloadDetails.shared_link_owner: Shared link + owner details. Might be missing due to historical data gap. """ __slots__ = [ - '_shared_content_access_level_value', - '_shared_content_access_level_present', + '_shared_link_owner_value', + '_shared_link_owner_present', ] _has_required_fields = False def __init__(self, - shared_content_access_level=None): - self._shared_content_access_level_value = None - self._shared_content_access_level_present = False - if shared_content_access_level is not None: - self.shared_content_access_level = shared_content_access_level + shared_link_owner=None): + self._shared_link_owner_value = None + self._shared_link_owner_present = False + if shared_link_owner is not None: + self.shared_link_owner = shared_link_owner @property - def shared_content_access_level(self): + def shared_link_owner(self): """ - Shared content access level. + Shared link owner details. Might be missing due to historical data gap. - :rtype: sharing.AccessLevel + :rtype: UserLogInfo """ - if self._shared_content_access_level_present: - return self._shared_content_access_level_value + if self._shared_link_owner_present: + return self._shared_link_owner_value else: return None - @shared_content_access_level.setter - def shared_content_access_level(self, val): + @shared_link_owner.setter + def shared_link_owner(self, val): if val is None: - del self.shared_content_access_level + del self.shared_link_owner return - self._shared_content_access_level_validator.validate_type_only(val) - self._shared_content_access_level_value = val - self._shared_content_access_level_present = True + self._shared_link_owner_validator.validate_type_only(val) + self._shared_link_owner_value = val + self._shared_link_owner_present = True - @shared_content_access_level.deleter - def shared_content_access_level(self): - self._shared_content_access_level_value = None - self._shared_content_access_level_present = False + @shared_link_owner.deleter + def shared_link_owner(self): + self._shared_link_owner_value = None + self._shared_link_owner_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRemoveMemberDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkDownloadDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRemoveMemberDetails(shared_content_access_level={!r})'.format( - self._shared_content_access_level_value, + return 'SharedLinkDownloadDetails(shared_link_owner={!r})'.format( + self._shared_link_owner_value, ) -SharedContentRemoveMemberDetails_validator = bv.Struct(SharedContentRemoveMemberDetails) +SharedLinkDownloadDetails_validator = bv.Struct(SharedLinkDownloadDetails) -class SharedContentRemoveMemberType(bb.Struct): +class SharedLinkDownloadType(bb.Struct): __slots__ = [ '_description_value', @@ -50160,75 +57905,76 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRemoveMemberType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkDownloadType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRemoveMemberType(description={!r})'.format( + return 'SharedLinkDownloadType(description={!r})'.format( self._description_value, ) -SharedContentRemoveMemberType_validator = bv.Struct(SharedContentRemoveMemberType) +SharedLinkDownloadType_validator = bv.Struct(SharedLinkDownloadType) -class SharedContentRequestAccessDetails(bb.Struct): +class SharedLinkRemoveExpiryDetails(bb.Struct): """ - Requested access to shared file/folder. + Removed shared link expiration date. - :ivar team_log.SharedContentRequestAccessDetails.shared_content_link: Shared - content link. + :ivar team_log.SharedLinkRemoveExpiryDetails.previous_value: Previous shared + link expiration date. Might be missing due to historical data gap. """ __slots__ = [ - '_shared_content_link_value', - '_shared_content_link_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = False def __init__(self, - shared_content_link=None): - self._shared_content_link_value = None - self._shared_content_link_present = False - if shared_content_link is not None: - self.shared_content_link = shared_content_link + previous_value=None): + self._previous_value_value = None + self._previous_value_present = False + if previous_value is not None: + self.previous_value = previous_value @property - def shared_content_link(self): + def previous_value(self): """ - Shared content link. + Previous shared link expiration date. Might be missing due to historical + data gap. - :rtype: str + :rtype: datetime.datetime """ - if self._shared_content_link_present: - return self._shared_content_link_value + if self._previous_value_present: + return self._previous_value_value else: return None - @shared_content_link.setter - def shared_content_link(self, val): + @previous_value.setter + def previous_value(self, val): if val is None: - del self.shared_content_link + del self.previous_value return - val = self._shared_content_link_validator.validate(val) - self._shared_content_link_value = val - self._shared_content_link_present = True + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True - @shared_content_link.deleter - def shared_content_link(self): - self._shared_content_link_value = None - self._shared_content_link_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRequestAccessDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkRemoveExpiryDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRequestAccessDetails(shared_content_link={!r})'.format( - self._shared_content_link_value, + return 'SharedLinkRemoveExpiryDetails(previous_value={!r})'.format( + self._previous_value_value, ) -SharedContentRequestAccessDetails_validator = bv.Struct(SharedContentRequestAccessDetails) +SharedLinkRemoveExpiryDetails_validator = bv.Struct(SharedLinkRemoveExpiryDetails) -class SharedContentRequestAccessType(bb.Struct): +class SharedLinkRemoveExpiryType(bb.Struct): __slots__ = [ '_description_value', @@ -50265,38 +58011,111 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentRequestAccessType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkRemoveExpiryType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentRequestAccessType(description={!r})'.format( + return 'SharedLinkRemoveExpiryType(description={!r})'.format( self._description_value, ) -SharedContentRequestAccessType_validator = bv.Struct(SharedContentRequestAccessType) +SharedLinkRemoveExpiryType_validator = bv.Struct(SharedLinkRemoveExpiryType) + +class SharedLinkShareDetails(bb.Struct): + """ + Added members as audience of shared link. + + :ivar team_log.SharedLinkShareDetails.shared_link_owner: Shared link owner + details. Might be missing due to historical data gap. + :ivar team_log.SharedLinkShareDetails.external_users: Users without a + Dropbox account that were added as shared link audience. + """ + + __slots__ = [ + '_shared_link_owner_value', + '_shared_link_owner_present', + '_external_users_value', + '_external_users_present', + ] + + _has_required_fields = False + + def __init__(self, + shared_link_owner=None, + external_users=None): + self._shared_link_owner_value = None + self._shared_link_owner_present = False + self._external_users_value = None + self._external_users_present = False + if shared_link_owner is not None: + self.shared_link_owner = shared_link_owner + if external_users is not None: + self.external_users = external_users + + @property + def shared_link_owner(self): + """ + Shared link owner details. Might be missing due to historical data gap. + + :rtype: UserLogInfo + """ + if self._shared_link_owner_present: + return self._shared_link_owner_value + else: + return None + + @shared_link_owner.setter + def shared_link_owner(self, val): + if val is None: + del self.shared_link_owner + return + self._shared_link_owner_validator.validate_type_only(val) + self._shared_link_owner_value = val + self._shared_link_owner_present = True + + @shared_link_owner.deleter + def shared_link_owner(self): + self._shared_link_owner_value = None + self._shared_link_owner_present = False -class SharedContentUnshareDetails(bb.Struct): - """ - Unshared file/folder by clearing membership and turning off link. - """ + @property + def external_users(self): + """ + Users without a Dropbox account that were added as shared link audience. - __slots__ = [ - ] + :rtype: list of [ExternalUserLogInfo] + """ + if self._external_users_present: + return self._external_users_value + else: + return None - _has_required_fields = False + @external_users.setter + def external_users(self, val): + if val is None: + del self.external_users + return + val = self._external_users_validator.validate(val) + self._external_users_value = val + self._external_users_present = True - def __init__(self): - pass + @external_users.deleter + def external_users(self): + self._external_users_value = None + self._external_users_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentUnshareDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkShareDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentUnshareDetails()' + return 'SharedLinkShareDetails(shared_link_owner={!r}, external_users={!r})'.format( + self._shared_link_owner_value, + self._external_users_value, + ) -SharedContentUnshareDetails_validator = bv.Struct(SharedContentUnshareDetails) +SharedLinkShareDetails_validator = bv.Struct(SharedLinkShareDetails) -class SharedContentUnshareType(bb.Struct): +class SharedLinkShareType(bb.Struct): __slots__ = [ '_description_value', @@ -50333,141 +58152,75 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentUnshareType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkShareType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentUnshareType(description={!r})'.format( + return 'SharedLinkShareType(description={!r})'.format( self._description_value, ) -SharedContentUnshareType_validator = bv.Struct(SharedContentUnshareType) +SharedLinkShareType_validator = bv.Struct(SharedLinkShareType) -class SharedContentViewDetails(bb.Struct): +class SharedLinkViewDetails(bb.Struct): """ - Previewed shared file/folder. + Opened shared link. - :ivar team_log.SharedContentViewDetails.shared_content_link: Shared content - link. - :ivar team_log.SharedContentViewDetails.shared_content_owner: The shared - content owner. - :ivar team_log.SharedContentViewDetails.shared_content_access_level: Shared - content access level. + :ivar team_log.SharedLinkViewDetails.shared_link_owner: Shared link owner + details. Might be missing due to historical data gap. """ __slots__ = [ - '_shared_content_link_value', - '_shared_content_link_present', - '_shared_content_owner_value', - '_shared_content_owner_present', - '_shared_content_access_level_value', - '_shared_content_access_level_present', + '_shared_link_owner_value', + '_shared_link_owner_present', ] - _has_required_fields = True + _has_required_fields = False def __init__(self, - shared_content_link=None, - shared_content_access_level=None, - shared_content_owner=None): - self._shared_content_link_value = None - self._shared_content_link_present = False - self._shared_content_owner_value = None - self._shared_content_owner_present = False - self._shared_content_access_level_value = None - self._shared_content_access_level_present = False - if shared_content_link is not None: - self.shared_content_link = shared_content_link - if shared_content_owner is not None: - self.shared_content_owner = shared_content_owner - if shared_content_access_level is not None: - self.shared_content_access_level = shared_content_access_level - - @property - def shared_content_link(self): - """ - Shared content link. - - :rtype: str - """ - if self._shared_content_link_present: - return self._shared_content_link_value - else: - raise AttributeError("missing required field 'shared_content_link'") - - @shared_content_link.setter - def shared_content_link(self, val): - val = self._shared_content_link_validator.validate(val) - self._shared_content_link_value = val - self._shared_content_link_present = True - - @shared_content_link.deleter - def shared_content_link(self): - self._shared_content_link_value = None - self._shared_content_link_present = False + shared_link_owner=None): + self._shared_link_owner_value = None + self._shared_link_owner_present = False + if shared_link_owner is not None: + self.shared_link_owner = shared_link_owner @property - def shared_content_owner(self): + def shared_link_owner(self): """ - The shared content owner. + Shared link owner details. Might be missing due to historical data gap. - :rtype: team_log.UserLogInfo + :rtype: UserLogInfo """ - if self._shared_content_owner_present: - return self._shared_content_owner_value + if self._shared_link_owner_present: + return self._shared_link_owner_value else: return None - @shared_content_owner.setter - def shared_content_owner(self, val): + @shared_link_owner.setter + def shared_link_owner(self, val): if val is None: - del self.shared_content_owner + del self.shared_link_owner return - self._shared_content_owner_validator.validate_type_only(val) - self._shared_content_owner_value = val - self._shared_content_owner_present = True - - @shared_content_owner.deleter - def shared_content_owner(self): - self._shared_content_owner_value = None - self._shared_content_owner_present = False - - @property - def shared_content_access_level(self): - """ - Shared content access level. - - :rtype: sharing.AccessLevel - """ - if self._shared_content_access_level_present: - return self._shared_content_access_level_value - else: - raise AttributeError("missing required field 'shared_content_access_level'") - - @shared_content_access_level.setter - def shared_content_access_level(self, val): - self._shared_content_access_level_validator.validate_type_only(val) - self._shared_content_access_level_value = val - self._shared_content_access_level_present = True + self._shared_link_owner_validator.validate_type_only(val) + self._shared_link_owner_value = val + self._shared_link_owner_present = True - @shared_content_access_level.deleter - def shared_content_access_level(self): - self._shared_content_access_level_value = None - self._shared_content_access_level_present = False + @shared_link_owner.deleter + def shared_link_owner(self): + self._shared_link_owner_value = None + self._shared_link_owner_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentViewDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkViewDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentViewDetails(shared_content_link={!r}, shared_content_access_level={!r}, shared_content_owner={!r})'.format( - self._shared_content_link_value, - self._shared_content_access_level_value, - self._shared_content_owner_value, + return 'SharedLinkViewDetails(shared_link_owner={!r})'.format( + self._shared_link_owner_value, ) -SharedContentViewDetails_validator = bv.Struct(SharedContentViewDetails) +SharedLinkViewDetails_validator = bv.Struct(SharedLinkViewDetails) -class SharedContentViewType(bb.Struct): +class SharedLinkViewType(bb.Struct): __slots__ = [ '_description_value', @@ -50504,109 +58257,97 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedContentViewType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkViewType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedContentViewType(description={!r})'.format( + return 'SharedLinkViewType(description={!r})'.format( self._description_value, ) -SharedContentViewType_validator = bv.Struct(SharedContentViewType) +SharedLinkViewType_validator = bv.Struct(SharedLinkViewType) -class SharedFolderChangeLinkPolicyDetails(bb.Struct): +class SharedLinkVisibility(bb.Union): """ - Changed who can access shared folder via link. + Defines who has access to a shared link. - :ivar team_log.SharedFolderChangeLinkPolicyDetails.new_value: New shared - folder link policy. - :ivar team_log.SharedFolderChangeLinkPolicyDetails.previous_value: Previous - shared folder link policy. Might be missing due to historical data gap. + 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. """ - __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', - ] + _catch_all = 'other' + # Attribute is overwritten below the class definition + password = None + # Attribute is overwritten below the class definition + public = None + # Attribute is overwritten below the class definition + team_only = None + # Attribute is overwritten below the class definition + other = None - _has_required_fields = True + def is_password(self): + """ + Check if the union tag is ``password``. - def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + :rtype: bool + """ + return self._tag == 'password' - @property - def new_value(self): + def is_public(self): """ - New shared folder link policy. + Check if the union tag is ``public``. - :rtype: sharing.SharedLinkPolicy + :rtype: bool """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") + return self._tag == 'public' - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + def is_team_only(self): + """ + Check if the union tag is ``team_only``. - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + :rtype: bool + """ + return self._tag == 'team_only' - @property - def previous_value(self): + def is_other(self): """ - Previous shared folder link policy. Might be missing due to historical - data gap. + Check if the union tag is ``other``. - :rtype: sharing.SharedLinkPolicy + :rtype: bool """ - if self._previous_value_present: - return self._previous_value_value - else: - return None + return self._tag == 'other' - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkVisibility, self)._process_custom_annotations(annotation_type, field_path, processor) - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + def __repr__(self): + return 'SharedLinkVisibility(%r, %r)' % (self._tag, self._value) + +SharedLinkVisibility_validator = bv.Union(SharedLinkVisibility) + +class SharedNoteOpenedDetails(bb.Struct): + """ + Opened shared Paper doc. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderChangeLinkPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedNoteOpenedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderChangeLinkPolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, - ) + return 'SharedNoteOpenedDetails()' -SharedFolderChangeLinkPolicyDetails_validator = bv.Struct(SharedFolderChangeLinkPolicyDetails) +SharedNoteOpenedDetails_validator = bv.Struct(SharedNoteOpenedDetails) -class SharedFolderChangeLinkPolicyType(bb.Struct): +class SharedNoteOpenedType(bb.Struct): __slots__ = [ '_description_value', @@ -50643,26 +58384,24 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderChangeLinkPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedNoteOpenedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderChangeLinkPolicyType(description={!r})'.format( + return 'SharedNoteOpenedType(description={!r})'.format( self._description_value, ) -SharedFolderChangeLinkPolicyType_validator = bv.Struct(SharedFolderChangeLinkPolicyType) +SharedNoteOpenedType_validator = bv.Struct(SharedNoteOpenedType) -class SharedFolderChangeMembersInheritancePolicyDetails(bb.Struct): +class SharingChangeFolderJoinPolicyDetails(bb.Struct): """ - Changed whether shared folder inherits members from parent folder. + Changed whether team members can join shared folders owned outside team. - :ivar team_log.SharedFolderChangeMembersInheritancePolicyDetails.new_value: - New member inheritance policy. - :ivar - team_log.SharedFolderChangeMembersInheritancePolicyDetails.previous_value: - Previous member inheritance policy. Might be missing due to historical - data gap. + :ivar team_log.SharingChangeFolderJoinPolicyDetails.new_value: New external + join policy. + :ivar team_log.SharingChangeFolderJoinPolicyDetails.previous_value: Previous + external join policy. Might be missing due to historical data gap. """ __slots__ = [ @@ -50689,9 +58428,9 @@ def __init__(self, @property def new_value(self): """ - New member inheritance policy. + New external join policy. - :rtype: team_log.SharedFolderMembersInheritancePolicy + :rtype: SharingFolderJoinPolicy """ if self._new_value_present: return self._new_value_value @@ -50712,10 +58451,10 @@ def new_value(self): @property def previous_value(self): """ - Previous member inheritance policy. Might be missing due to historical - data gap. + Previous external join policy. Might be missing due to historical data + gap. - :rtype: team_log.SharedFolderMembersInheritancePolicy + :rtype: SharingFolderJoinPolicy """ if self._previous_value_present: return self._previous_value_value @@ -50736,18 +58475,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderChangeMembersInheritancePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingChangeFolderJoinPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderChangeMembersInheritancePolicyDetails(new_value={!r}, previous_value={!r})'.format( + return 'SharingChangeFolderJoinPolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -SharedFolderChangeMembersInheritancePolicyDetails_validator = bv.Struct(SharedFolderChangeMembersInheritancePolicyDetails) +SharingChangeFolderJoinPolicyDetails_validator = bv.Struct(SharingChangeFolderJoinPolicyDetails) -class SharedFolderChangeMembersInheritancePolicyType(bb.Struct): +class SharingChangeFolderJoinPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -50784,25 +58523,25 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderChangeMembersInheritancePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingChangeFolderJoinPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderChangeMembersInheritancePolicyType(description={!r})'.format( + return 'SharingChangeFolderJoinPolicyType(description={!r})'.format( self._description_value, ) -SharedFolderChangeMembersInheritancePolicyType_validator = bv.Struct(SharedFolderChangeMembersInheritancePolicyType) +SharingChangeFolderJoinPolicyType_validator = bv.Struct(SharingChangeFolderJoinPolicyType) -class SharedFolderChangeMembersManagementPolicyDetails(bb.Struct): +class SharingChangeLinkPolicyDetails(bb.Struct): """ - Changed who can add/remove members of shared folder. + Changed whether members can share links outside team, and if links are + accessible only by team members or anyone by default. - :ivar team_log.SharedFolderChangeMembersManagementPolicyDetails.new_value: - New members management policy. - :ivar - team_log.SharedFolderChangeMembersManagementPolicyDetails.previous_value: - Previous members management policy. Might be missing due to historical + :ivar team_log.SharingChangeLinkPolicyDetails.new_value: New external link + accessibility policy. + :ivar team_log.SharingChangeLinkPolicyDetails.previous_value: Previous + external link accessibility policy. Might be missing due to historical data gap. """ @@ -50830,9 +58569,9 @@ def __init__(self, @property def new_value(self): """ - New members management policy. + New external link accessibility policy. - :rtype: sharing.AclUpdatePolicy + :rtype: SharingLinkPolicy """ if self._new_value_present: return self._new_value_value @@ -50853,10 +58592,10 @@ def new_value(self): @property def previous_value(self): """ - Previous members management policy. Might be missing due to historical - data gap. + Previous external link accessibility policy. Might be missing due to + historical data gap. - :rtype: sharing.AclUpdatePolicy + :rtype: SharingLinkPolicy """ if self._previous_value_present: return self._previous_value_value @@ -50877,18 +58616,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderChangeMembersManagementPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingChangeLinkPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderChangeMembersManagementPolicyDetails(new_value={!r}, previous_value={!r})'.format( + return 'SharingChangeLinkPolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -SharedFolderChangeMembersManagementPolicyDetails_validator = bv.Struct(SharedFolderChangeMembersManagementPolicyDetails) +SharingChangeLinkPolicyDetails_validator = bv.Struct(SharingChangeLinkPolicyDetails) -class SharedFolderChangeMembersManagementPolicyType(bb.Struct): +class SharingChangeLinkPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -50925,25 +58664,24 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderChangeMembersManagementPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingChangeLinkPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderChangeMembersManagementPolicyType(description={!r})'.format( + return 'SharingChangeLinkPolicyType(description={!r})'.format( self._description_value, ) -SharedFolderChangeMembersManagementPolicyType_validator = bv.Struct(SharedFolderChangeMembersManagementPolicyType) +SharingChangeLinkPolicyType_validator = bv.Struct(SharingChangeLinkPolicyType) -class SharedFolderChangeMembersPolicyDetails(bb.Struct): +class SharingChangeMemberPolicyDetails(bb.Struct): """ - Changed who can become member of shared folder. + Changed whether members can share files/folders outside team. - :ivar team_log.SharedFolderChangeMembersPolicyDetails.new_value: New - external invite policy. - :ivar team_log.SharedFolderChangeMembersPolicyDetails.previous_value: - Previous external invite policy. Might be missing due to historical data - gap. + :ivar team_log.SharingChangeMemberPolicyDetails.new_value: New external + invite policy. + :ivar team_log.SharingChangeMemberPolicyDetails.previous_value: Previous + external invite policy. Might be missing due to historical data gap. """ __slots__ = [ @@ -50972,7 +58710,7 @@ def new_value(self): """ New external invite policy. - :rtype: sharing.MemberPolicy + :rtype: SharingMemberPolicy """ if self._new_value_present: return self._new_value_value @@ -50996,7 +58734,7 @@ def previous_value(self): Previous external invite policy. Might be missing due to historical data gap. - :rtype: sharing.MemberPolicy + :rtype: SharingMemberPolicy """ if self._previous_value_present: return self._previous_value_value @@ -51017,18 +58755,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderChangeMembersPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingChangeMemberPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderChangeMembersPolicyDetails(new_value={!r}, previous_value={!r})'.format( + return 'SharingChangeMemberPolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -SharedFolderChangeMembersPolicyDetails_validator = bv.Struct(SharedFolderChangeMembersPolicyDetails) +SharingChangeMemberPolicyDetails_validator = bv.Struct(SharingChangeMemberPolicyDetails) -class SharedFolderChangeMembersPolicyType(bb.Struct): +class SharingChangeMemberPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -51065,192 +58803,128 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderChangeMembersPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingChangeMemberPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderChangeMembersPolicyType(description={!r})'.format( + return 'SharingChangeMemberPolicyType(description={!r})'.format( self._description_value, ) -SharedFolderChangeMembersPolicyType_validator = bv.Struct(SharedFolderChangeMembersPolicyType) +SharingChangeMemberPolicyType_validator = bv.Struct(SharingChangeMemberPolicyType) -class SharedFolderCreateDetails(bb.Struct): +class SharingFolderJoinPolicy(bb.Union): """ - Created shared folder. + Policy for controlling if team members can join shared folders owned by non + team members. - :ivar team_log.SharedFolderCreateDetails.target_ns_id: Target namespace ID. - Might be missing due to historical data gap. + 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. """ - __slots__ = [ - '_target_ns_id_value', - '_target_ns_id_present', - ] - - _has_required_fields = False - - def __init__(self, - target_ns_id=None): - self._target_ns_id_value = None - self._target_ns_id_present = False - if target_ns_id is not None: - self.target_ns_id = target_ns_id + _catch_all = 'other' + # Attribute is overwritten below the class definition + from_anyone = None + # Attribute is overwritten below the class definition + from_team_only = None + # Attribute is overwritten below the class definition + other = None - @property - def target_ns_id(self): + def is_from_anyone(self): """ - Target namespace ID. Might be missing due to historical data gap. + Check if the union tag is ``from_anyone``. - :rtype: str + :rtype: bool """ - if self._target_ns_id_present: - return self._target_ns_id_value - else: - return None - - @target_ns_id.setter - def target_ns_id(self, val): - if val is None: - del self.target_ns_id - return - val = self._target_ns_id_validator.validate(val) - self._target_ns_id_value = val - self._target_ns_id_present = True - - @target_ns_id.deleter - def target_ns_id(self): - self._target_ns_id_value = None - self._target_ns_id_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderCreateDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SharedFolderCreateDetails(target_ns_id={!r})'.format( - self._target_ns_id_value, - ) - -SharedFolderCreateDetails_validator = bv.Struct(SharedFolderCreateDetails) - -class SharedFolderCreateType(bb.Struct): - - __slots__ = [ - '_description_value', - '_description_present', - ] - - _has_required_fields = True - - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + return self._tag == 'from_anyone' - @property - def description(self): - """ - :rtype: str + def is_from_team_only(self): """ - if self._description_present: - return self._description_value - else: - raise AttributeError("missing required field 'description'") - - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True - - @description.deleter - def description(self): - self._description_value = None - self._description_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderCreateType, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SharedFolderCreateType(description={!r})'.format( - self._description_value, - ) - -SharedFolderCreateType_validator = bv.Struct(SharedFolderCreateType) - -class SharedFolderDeclineInvitationDetails(bb.Struct): - """ - Declined team member's invite to shared folder. - """ + Check if the union tag is ``from_team_only``. - __slots__ = [ - ] + :rtype: bool + """ + return self._tag == 'from_team_only' - _has_required_fields = False + def is_other(self): + """ + Check if the union tag is ``other``. - def __init__(self): - pass + :rtype: bool + """ + return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderDeclineInvitationDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingFolderJoinPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderDeclineInvitationDetails()' + return 'SharingFolderJoinPolicy(%r, %r)' % (self._tag, self._value) -SharedFolderDeclineInvitationDetails_validator = bv.Struct(SharedFolderDeclineInvitationDetails) +SharingFolderJoinPolicy_validator = bv.Union(SharingFolderJoinPolicy) -class SharedFolderDeclineInvitationType(bb.Struct): +class SharingLinkPolicy(bb.Union): + """ + Policy for controlling if team members can share links externally - __slots__ = [ - '_description_value', - '_description_present', - ] + 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. + """ - _has_required_fields = True + _catch_all = 'other' + # Attribute is overwritten below the class definition + default_private = None + # Attribute is overwritten below the class definition + default_public = None + # Attribute is overwritten below the class definition + only_private = None + # Attribute is overwritten below the class definition + other = None - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + def is_default_private(self): + """ + Check if the union tag is ``default_private``. - @property - def description(self): + :rtype: bool """ - :rtype: str + return self._tag == 'default_private' + + def is_default_public(self): """ - if self._description_present: - return self._description_value - else: - raise AttributeError("missing required field 'description'") + Check if the union tag is ``default_public``. - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + :rtype: bool + """ + return self._tag == 'default_public' - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + def is_only_private(self): + """ + Check if the union tag is ``only_private``. + + :rtype: bool + """ + return self._tag == 'only_private' + + def is_other(self): + """ + Check if the union tag is ``other``. - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderDeclineInvitationType, self)._process_custom_annotations(annotation_type, processor) + :rtype: bool + """ + return self._tag == 'other' + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingLinkPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderDeclineInvitationType(description={!r})'.format( - self._description_value, - ) + return 'SharingLinkPolicy(%r, %r)' % (self._tag, self._value) -SharedFolderDeclineInvitationType_validator = bv.Struct(SharedFolderDeclineInvitationType) +SharingLinkPolicy_validator = bv.Union(SharingLinkPolicy) -class SharedFolderMembersInheritancePolicy(bb.Union): +class SharingMemberPolicy(bb.Union): """ - Specifies if a shared folder inherits its members from the parent folder. + External sharing policy 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 @@ -51259,27 +58933,27 @@ class SharedFolderMembersInheritancePolicy(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - inherit_members = None + allow = None # Attribute is overwritten below the class definition - dont_inherit_members = None + forbid = None # Attribute is overwritten below the class definition other = None - def is_inherit_members(self): + def is_allow(self): """ - Check if the union tag is ``inherit_members``. + Check if the union tag is ``allow``. :rtype: bool """ - return self._tag == 'inherit_members' + return self._tag == 'allow' - def is_dont_inherit_members(self): + def is_forbid(self): """ - Check if the union tag is ``dont_inherit_members``. + Check if the union tag is ``forbid``. :rtype: bool """ - return self._tag == 'dont_inherit_members' + return self._tag == 'forbid' def is_other(self): """ @@ -51289,17 +58963,17 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderMembersInheritancePolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharingMemberPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderMembersInheritancePolicy(%r, %r)' % (self._tag, self._value) + return 'SharingMemberPolicy(%r, %r)' % (self._tag, self._value) -SharedFolderMembersInheritancePolicy_validator = bv.Union(SharedFolderMembersInheritancePolicy) +SharingMemberPolicy_validator = bv.Union(SharingMemberPolicy) -class SharedFolderMountDetails(bb.Struct): +class ShmodelGroupShareDetails(bb.Struct): """ - Added shared folder to own Dropbox. + Shared link with group. """ __slots__ = [ @@ -51310,15 +58984,15 @@ class SharedFolderMountDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderMountDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShmodelGroupShareDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderMountDetails()' + return 'ShmodelGroupShareDetails()' -SharedFolderMountDetails_validator = bv.Struct(SharedFolderMountDetails) +ShmodelGroupShareDetails_validator = bv.Struct(ShmodelGroupShareDetails) -class SharedFolderMountType(bb.Struct): +class ShmodelGroupShareType(bb.Struct): __slots__ = [ '_description_value', @@ -51355,184 +59029,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderMountType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShmodelGroupShareType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderMountType(description={!r})'.format( + return 'ShmodelGroupShareType(description={!r})'.format( self._description_value, ) -SharedFolderMountType_validator = bv.Struct(SharedFolderMountType) +ShmodelGroupShareType_validator = bv.Struct(ShmodelGroupShareType) -class SharedFolderNestDetails(bb.Struct): +class ShowcaseAccessGrantedDetails(bb.Struct): """ - Changed parent of shared folder. + Granted access to showcase. - :ivar team_log.SharedFolderNestDetails.previous_parent_ns_id: Previous - parent namespace ID. Might be missing due to historical data gap. - :ivar team_log.SharedFolderNestDetails.new_parent_ns_id: New parent - namespace ID. Might be missing due to historical data gap. - :ivar team_log.SharedFolderNestDetails.previous_ns_path: Previous namespace - path. Might be missing due to historical data gap. - :ivar team_log.SharedFolderNestDetails.new_ns_path: New namespace path. - Might be missing due to historical data gap. + :ivar team_log.ShowcaseAccessGrantedDetails.event_uuid: Event unique + identifier. """ __slots__ = [ - '_previous_parent_ns_id_value', - '_previous_parent_ns_id_present', - '_new_parent_ns_id_value', - '_new_parent_ns_id_present', - '_previous_ns_path_value', - '_previous_ns_path_present', - '_new_ns_path_value', - '_new_ns_path_present', + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - previous_parent_ns_id=None, - new_parent_ns_id=None, - previous_ns_path=None, - new_ns_path=None): - self._previous_parent_ns_id_value = None - self._previous_parent_ns_id_present = False - self._new_parent_ns_id_value = None - self._new_parent_ns_id_present = False - self._previous_ns_path_value = None - self._previous_ns_path_present = False - self._new_ns_path_value = None - self._new_ns_path_present = False - if previous_parent_ns_id is not None: - self.previous_parent_ns_id = previous_parent_ns_id - if new_parent_ns_id is not None: - self.new_parent_ns_id = new_parent_ns_id - if previous_ns_path is not None: - self.previous_ns_path = previous_ns_path - if new_ns_path is not None: - self.new_ns_path = new_ns_path - - @property - def previous_parent_ns_id(self): - """ - Previous parent namespace ID. Might be missing due to historical data - gap. - - :rtype: str - """ - if self._previous_parent_ns_id_present: - return self._previous_parent_ns_id_value - else: - return None - - @previous_parent_ns_id.setter - def previous_parent_ns_id(self, val): - if val is None: - del self.previous_parent_ns_id - return - val = self._previous_parent_ns_id_validator.validate(val) - self._previous_parent_ns_id_value = val - self._previous_parent_ns_id_present = True - - @previous_parent_ns_id.deleter - def previous_parent_ns_id(self): - self._previous_parent_ns_id_value = None - self._previous_parent_ns_id_present = False - - @property - def new_parent_ns_id(self): - """ - New parent namespace ID. Might be missing due to historical data gap. - - :rtype: str - """ - if self._new_parent_ns_id_present: - return self._new_parent_ns_id_value - else: - return None - - @new_parent_ns_id.setter - def new_parent_ns_id(self, val): - if val is None: - del self.new_parent_ns_id - return - val = self._new_parent_ns_id_validator.validate(val) - self._new_parent_ns_id_value = val - self._new_parent_ns_id_present = True - - @new_parent_ns_id.deleter - def new_parent_ns_id(self): - self._new_parent_ns_id_value = None - self._new_parent_ns_id_present = False - - @property - def previous_ns_path(self): - """ - Previous namespace path. Might be missing due to historical data gap. - - :rtype: str - """ - if self._previous_ns_path_present: - return self._previous_ns_path_value - else: - return None - - @previous_ns_path.setter - def previous_ns_path(self, val): - if val is None: - del self.previous_ns_path - return - val = self._previous_ns_path_validator.validate(val) - self._previous_ns_path_value = val - self._previous_ns_path_present = True - - @previous_ns_path.deleter - def previous_ns_path(self): - self._previous_ns_path_value = None - self._previous_ns_path_present = False + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def new_ns_path(self): + def event_uuid(self): """ - New namespace path. Might be missing due to historical data gap. + Event unique identifier. :rtype: str """ - if self._new_ns_path_present: - return self._new_ns_path_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @new_ns_path.setter - def new_ns_path(self, val): - if val is None: - del self.new_ns_path - return - val = self._new_ns_path_validator.validate(val) - self._new_ns_path_value = val - self._new_ns_path_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @new_ns_path.deleter - def new_ns_path(self): - self._new_ns_path_value = None - self._new_ns_path_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderNestDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseAccessGrantedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderNestDetails(previous_parent_ns_id={!r}, new_parent_ns_id={!r}, previous_ns_path={!r}, new_ns_path={!r})'.format( - self._previous_parent_ns_id_value, - self._new_parent_ns_id_value, - self._previous_ns_path_value, - self._new_ns_path_value, + return 'ShowcaseAccessGrantedDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -SharedFolderNestDetails_validator = bv.Struct(SharedFolderNestDetails) +ShowcaseAccessGrantedDetails_validator = bv.Struct(ShowcaseAccessGrantedDetails) -class SharedFolderNestType(bb.Struct): +class ShowcaseAccessGrantedType(bb.Struct): __slots__ = [ '_description_value', @@ -51569,108 +59131,71 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderNestType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseAccessGrantedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderNestType(description={!r})'.format( + return 'ShowcaseAccessGrantedType(description={!r})'.format( self._description_value, ) -SharedFolderNestType_validator = bv.Struct(SharedFolderNestType) +ShowcaseAccessGrantedType_validator = bv.Struct(ShowcaseAccessGrantedType) -class SharedFolderTransferOwnershipDetails(bb.Struct): +class ShowcaseAddMemberDetails(bb.Struct): """ - Transferred ownership of shared folder to another member. + Added member to showcase. - :ivar team_log.SharedFolderTransferOwnershipDetails.previous_owner_email: - The email address of the previous shared folder owner. - :ivar team_log.SharedFolderTransferOwnershipDetails.new_owner_email: The - email address of the new shared folder owner. + :ivar team_log.ShowcaseAddMemberDetails.event_uuid: Event unique identifier. """ __slots__ = [ - '_previous_owner_email_value', - '_previous_owner_email_present', - '_new_owner_email_value', - '_new_owner_email_present', + '_event_uuid_value', + '_event_uuid_present', ] _has_required_fields = True def __init__(self, - new_owner_email=None, - previous_owner_email=None): - self._previous_owner_email_value = None - self._previous_owner_email_present = False - self._new_owner_email_value = None - self._new_owner_email_present = False - if previous_owner_email is not None: - self.previous_owner_email = previous_owner_email - if new_owner_email is not None: - self.new_owner_email = new_owner_email - - @property - def previous_owner_email(self): - """ - The email address of the previous shared folder owner. - - :rtype: str - """ - if self._previous_owner_email_present: - return self._previous_owner_email_value - else: - return None - - @previous_owner_email.setter - def previous_owner_email(self, val): - if val is None: - del self.previous_owner_email - return - val = self._previous_owner_email_validator.validate(val) - self._previous_owner_email_value = val - self._previous_owner_email_present = True - - @previous_owner_email.deleter - def previous_owner_email(self): - self._previous_owner_email_value = None - self._previous_owner_email_present = False + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def new_owner_email(self): + def event_uuid(self): """ - The email address of the new shared folder owner. + Event unique identifier. :rtype: str """ - if self._new_owner_email_present: - return self._new_owner_email_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'new_owner_email'") + raise AttributeError("missing required field 'event_uuid'") - @new_owner_email.setter - def new_owner_email(self, val): - val = self._new_owner_email_validator.validate(val) - self._new_owner_email_value = val - self._new_owner_email_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @new_owner_email.deleter - def new_owner_email(self): - self._new_owner_email_value = None - self._new_owner_email_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderTransferOwnershipDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseAddMemberDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderTransferOwnershipDetails(new_owner_email={!r}, previous_owner_email={!r})'.format( - self._new_owner_email_value, - self._previous_owner_email_value, + return 'ShowcaseAddMemberDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -SharedFolderTransferOwnershipDetails_validator = bv.Struct(SharedFolderTransferOwnershipDetails) +ShowcaseAddMemberDetails_validator = bv.Struct(ShowcaseAddMemberDetails) -class SharedFolderTransferOwnershipType(bb.Struct): +class ShowcaseAddMemberType(bb.Struct): __slots__ = [ '_description_value', @@ -51707,38 +59232,71 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderTransferOwnershipType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseAddMemberType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderTransferOwnershipType(description={!r})'.format( + return 'ShowcaseAddMemberType(description={!r})'.format( self._description_value, ) -SharedFolderTransferOwnershipType_validator = bv.Struct(SharedFolderTransferOwnershipType) +ShowcaseAddMemberType_validator = bv.Struct(ShowcaseAddMemberType) -class SharedFolderUnmountDetails(bb.Struct): +class ShowcaseArchivedDetails(bb.Struct): """ - Deleted shared folder from Dropbox. + Archived showcase. + + :ivar team_log.ShowcaseArchivedDetails.event_uuid: Event unique identifier. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderUnmountDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseArchivedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedFolderUnmountDetails()' + return 'ShowcaseArchivedDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -SharedFolderUnmountDetails_validator = bv.Struct(SharedFolderUnmountDetails) +ShowcaseArchivedDetails_validator = bv.Struct(ShowcaseArchivedDetails) -class SharedFolderUnmountType(bb.Struct): +class ShowcaseArchivedType(bb.Struct): __slots__ = [ '_description_value', @@ -51764,114 +59322,64 @@ def description(self): else: raise AttributeError("missing required field 'description'") - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True - - @description.deleter - def description(self): - self._description_value = None - self._description_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderUnmountType, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SharedFolderUnmountType(description={!r})'.format( - self._description_value, - ) - -SharedFolderUnmountType_validator = bv.Struct(SharedFolderUnmountType) - -class SharedLinkAccessLevel(bb.Union): - """ - Shared link access level. - - 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 - none = None - # Attribute is overwritten below the class definition - reader = None - # Attribute is overwritten below the class definition - writer = None - # Attribute is overwritten below the class definition - other = None - - def is_none(self): - """ - Check if the union tag is ``none``. - - :rtype: bool - """ - return self._tag == 'none' - - def is_reader(self): - """ - Check if the union tag is ``reader``. - - :rtype: bool - """ - return self._tag == 'reader' - - def is_writer(self): - """ - Check if the union tag is ``writer``. - - :rtype: bool - """ - return self._tag == 'writer' - - def is_other(self): - """ - Check if the union tag is ``other``. + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - :rtype: bool - """ - return self._tag == 'other' + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkAccessLevel, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseArchivedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkAccessLevel(%r, %r)' % (self._tag, self._value) + return 'ShowcaseArchivedType(description={!r})'.format( + self._description_value, + ) -SharedLinkAccessLevel_validator = bv.Union(SharedLinkAccessLevel) +ShowcaseArchivedType_validator = bv.Struct(ShowcaseArchivedType) -class SharedLinkAddExpiryDetails(bb.Struct): +class ShowcaseChangeDownloadPolicyDetails(bb.Struct): """ - Added shared link expiration date. + Enabled/disabled downloading files from Dropbox Showcase for team. - :ivar team_log.SharedLinkAddExpiryDetails.new_value: New shared link - expiration date. + :ivar team_log.ShowcaseChangeDownloadPolicyDetails.new_value: New Dropbox + Showcase download policy. + :ivar team_log.ShowcaseChangeDownloadPolicyDetails.previous_value: Previous + Dropbox Showcase download policy. """ __slots__ = [ '_new_value_value', '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - new_value=None): + new_value=None, + previous_value=None): self._new_value_value = None self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False if new_value is not None: self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property def new_value(self): """ - New shared link expiration date. + New Dropbox Showcase download policy. - :rtype: datetime.datetime + :rtype: ShowcaseDownloadPolicy """ if self._new_value_present: return self._new_value_value @@ -51880,7 +59388,7 @@ def new_value(self): @new_value.setter def new_value(self, val): - val = self._new_value_validator.validate(val) + self._new_value_validator.validate_type_only(val) self._new_value_value = val self._new_value_present = True @@ -51889,17 +59397,41 @@ def new_value(self): self._new_value_value = None self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkAddExpiryDetails, self)._process_custom_annotations(annotation_type, processor) + @property + def previous_value(self): + """ + Previous Dropbox Showcase download policy. + + :rtype: ShowcaseDownloadPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") + + @previous_value.setter + def previous_value(self, val): + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseChangeDownloadPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkAddExpiryDetails(new_value={!r})'.format( + return 'ShowcaseChangeDownloadPolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, + self._previous_value_value, ) -SharedLinkAddExpiryDetails_validator = bv.Struct(SharedLinkAddExpiryDetails) +ShowcaseChangeDownloadPolicyDetails_validator = bv.Struct(ShowcaseChangeDownloadPolicyDetails) -class SharedLinkAddExpiryType(bb.Struct): +class ShowcaseChangeDownloadPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -51936,24 +59468,24 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkAddExpiryType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseChangeDownloadPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkAddExpiryType(description={!r})'.format( + return 'ShowcaseChangeDownloadPolicyType(description={!r})'.format( self._description_value, ) -SharedLinkAddExpiryType_validator = bv.Struct(SharedLinkAddExpiryType) +ShowcaseChangeDownloadPolicyType_validator = bv.Struct(ShowcaseChangeDownloadPolicyType) -class SharedLinkChangeExpiryDetails(bb.Struct): +class ShowcaseChangeEnabledPolicyDetails(bb.Struct): """ - Changed shared link expiration date. + Enabled/disabled Dropbox Showcase for team. - :ivar team_log.SharedLinkChangeExpiryDetails.new_value: New shared link - expiration date. Might be missing due to historical data gap. - :ivar team_log.SharedLinkChangeExpiryDetails.previous_value: Previous shared - link expiration date. Might be missing due to historical data gap. + :ivar team_log.ShowcaseChangeEnabledPolicyDetails.new_value: New Dropbox + Showcase policy. + :ivar team_log.ShowcaseChangeEnabledPolicyDetails.previous_value: Previous + Dropbox Showcase policy. """ __slots__ = [ @@ -51963,7 +59495,7 @@ class SharedLinkChangeExpiryDetails(bb.Struct): '_previous_value_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, new_value=None, @@ -51980,22 +59512,18 @@ def __init__(self, @property def new_value(self): """ - New shared link expiration date. Might be missing due to historical data - gap. + New Dropbox Showcase policy. - :rtype: datetime.datetime + :rtype: ShowcaseEnabledPolicy """ if self._new_value_present: return self._new_value_value else: - return None + raise AttributeError("missing required field 'new_value'") @new_value.setter def new_value(self, val): - if val is None: - del self.new_value - return - val = self._new_value_validator.validate(val) + self._new_value_validator.validate_type_only(val) self._new_value_value = val self._new_value_present = True @@ -52007,22 +59535,18 @@ def new_value(self): @property def previous_value(self): """ - Previous shared link expiration date. Might be missing due to historical - data gap. + Previous Dropbox Showcase policy. - :rtype: datetime.datetime + :rtype: ShowcaseEnabledPolicy """ if self._previous_value_present: return self._previous_value_value else: - return None + raise AttributeError("missing required field 'previous_value'") @previous_value.setter def previous_value(self, val): - if val is None: - del self.previous_value - return - val = self._previous_value_validator.validate(val) + self._previous_value_validator.validate_type_only(val) self._previous_value_value = val self._previous_value_present = True @@ -52031,18 +59555,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkChangeExpiryDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseChangeEnabledPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkChangeExpiryDetails(new_value={!r}, previous_value={!r})'.format( + return 'ShowcaseChangeEnabledPolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -SharedLinkChangeExpiryDetails_validator = bv.Struct(SharedLinkChangeExpiryDetails) +ShowcaseChangeEnabledPolicyDetails_validator = bv.Struct(ShowcaseChangeEnabledPolicyDetails) -class SharedLinkChangeExpiryType(bb.Struct): +class ShowcaseChangeEnabledPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -52079,24 +59603,24 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkChangeExpiryType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseChangeEnabledPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkChangeExpiryType(description={!r})'.format( + return 'ShowcaseChangeEnabledPolicyType(description={!r})'.format( self._description_value, ) -SharedLinkChangeExpiryType_validator = bv.Struct(SharedLinkChangeExpiryType) +ShowcaseChangeEnabledPolicyType_validator = bv.Struct(ShowcaseChangeEnabledPolicyType) -class SharedLinkChangeVisibilityDetails(bb.Struct): +class ShowcaseChangeExternalSharingPolicyDetails(bb.Struct): """ - Changed visibility of shared link. + Enabled/disabled sharing Dropbox Showcase externally for team. - :ivar team_log.SharedLinkChangeVisibilityDetails.new_value: New shared link - visibility. - :ivar team_log.SharedLinkChangeVisibilityDetails.previous_value: Previous - shared link visibility. Might be missing due to historical data gap. + :ivar team_log.ShowcaseChangeExternalSharingPolicyDetails.new_value: New + Dropbox Showcase external sharing policy. + :ivar team_log.ShowcaseChangeExternalSharingPolicyDetails.previous_value: + Previous Dropbox Showcase external sharing policy. """ __slots__ = [ @@ -52123,9 +59647,9 @@ def __init__(self, @property def new_value(self): """ - New shared link visibility. + New Dropbox Showcase external sharing policy. - :rtype: team_log.SharedLinkVisibility + :rtype: ShowcaseExternalSharingPolicy """ if self._new_value_present: return self._new_value_value @@ -52146,21 +59670,17 @@ def new_value(self): @property def previous_value(self): """ - Previous shared link visibility. Might be missing due to historical data - gap. + Previous Dropbox Showcase external sharing policy. - :rtype: team_log.SharedLinkVisibility + :rtype: ShowcaseExternalSharingPolicy """ if self._previous_value_present: return self._previous_value_value else: - return None + raise AttributeError("missing required field 'previous_value'") @previous_value.setter def previous_value(self, val): - if val is None: - del self.previous_value - return self._previous_value_validator.validate_type_only(val) self._previous_value_value = val self._previous_value_present = True @@ -52170,18 +59690,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkChangeVisibilityDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseChangeExternalSharingPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkChangeVisibilityDetails(new_value={!r}, previous_value={!r})'.format( + return 'ShowcaseChangeExternalSharingPolicyDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -SharedLinkChangeVisibilityDetails_validator = bv.Struct(SharedLinkChangeVisibilityDetails) +ShowcaseChangeExternalSharingPolicyDetails_validator = bv.Struct(ShowcaseChangeExternalSharingPolicyDetails) -class SharedLinkChangeVisibilityType(bb.Struct): +class ShowcaseChangeExternalSharingPolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -52218,75 +59738,208 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkChangeVisibilityType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseChangeExternalSharingPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkChangeVisibilityType(description={!r})'.format( + return 'ShowcaseChangeExternalSharingPolicyType(description={!r})'.format( self._description_value, ) -SharedLinkChangeVisibilityType_validator = bv.Struct(SharedLinkChangeVisibilityType) +ShowcaseChangeExternalSharingPolicyType_validator = bv.Struct(ShowcaseChangeExternalSharingPolicyType) -class SharedLinkCopyDetails(bb.Struct): +class ShowcaseCreatedDetails(bb.Struct): """ - Added file/folder to Dropbox from shared link. + Created showcase. - :ivar team_log.SharedLinkCopyDetails.shared_link_owner: Shared link owner - details. Might be missing due to historical data gap. + :ivar team_log.ShowcaseCreatedDetails.event_uuid: Event unique identifier. """ __slots__ = [ - '_shared_link_owner_value', - '_shared_link_owner_present', + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - shared_link_owner=None): - self._shared_link_owner_value = None - self._shared_link_owner_present = False - if shared_link_owner is not None: - self.shared_link_owner = shared_link_owner + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def shared_link_owner(self): + def event_uuid(self): """ - Shared link owner details. Might be missing due to historical data gap. + Event unique identifier. - :rtype: team_log.UserLogInfo + :rtype: str """ - if self._shared_link_owner_present: - return self._shared_link_owner_value + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseCreatedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ShowcaseCreatedDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) + +ShowcaseCreatedDetails_validator = bv.Struct(ShowcaseCreatedDetails) + +class ShowcaseCreatedType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + + @property + def description(self): + """ + :rtype: str + """ + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") + + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True + + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseCreatedType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ShowcaseCreatedType(description={!r})'.format( + self._description_value, + ) + +ShowcaseCreatedType_validator = bv.Struct(ShowcaseCreatedType) + +class ShowcaseDeleteCommentDetails(bb.Struct): + """ + Deleted showcase comment. + + :ivar team_log.ShowcaseDeleteCommentDetails.event_uuid: Event unique + identifier. + :ivar team_log.ShowcaseDeleteCommentDetails.comment_text: Comment text. + """ + + __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', + '_comment_text_value', + '_comment_text_present', + ] + + _has_required_fields = True + + def __init__(self, + event_uuid=None, + comment_text=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._comment_text_value = None + self._comment_text_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if comment_text is not None: + self.comment_text = comment_text + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False + + @property + def comment_text(self): + """ + Comment text. + + :rtype: str + """ + if self._comment_text_present: + return self._comment_text_value else: return None - @shared_link_owner.setter - def shared_link_owner(self, val): + @comment_text.setter + def comment_text(self, val): if val is None: - del self.shared_link_owner + del self.comment_text return - self._shared_link_owner_validator.validate_type_only(val) - self._shared_link_owner_value = val - self._shared_link_owner_present = True + val = self._comment_text_validator.validate(val) + self._comment_text_value = val + self._comment_text_present = True - @shared_link_owner.deleter - def shared_link_owner(self): - self._shared_link_owner_value = None - self._shared_link_owner_present = False + @comment_text.deleter + def comment_text(self): + self._comment_text_value = None + self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkCopyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseDeleteCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkCopyDetails(shared_link_owner={!r})'.format( - self._shared_link_owner_value, + return 'ShowcaseDeleteCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + self._event_uuid_value, + self._comment_text_value, ) -SharedLinkCopyDetails_validator = bv.Struct(SharedLinkCopyDetails) +ShowcaseDeleteCommentDetails_validator = bv.Struct(ShowcaseDeleteCommentDetails) -class SharedLinkCopyType(bb.Struct): +class ShowcaseDeleteCommentType(bb.Struct): __slots__ = [ '_description_value', @@ -52323,76 +59976,244 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkCopyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseDeleteCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkCopyType(description={!r})'.format( + return 'ShowcaseDeleteCommentType(description={!r})'.format( self._description_value, ) -SharedLinkCopyType_validator = bv.Struct(SharedLinkCopyType) +ShowcaseDeleteCommentType_validator = bv.Struct(ShowcaseDeleteCommentType) -class SharedLinkCreateDetails(bb.Struct): +class ShowcaseDocumentLogInfo(bb.Struct): """ - Created shared link. + Showcase document's logged information. + + :ivar team_log.ShowcaseDocumentLogInfo.showcase_id: Showcase document Id. + :ivar team_log.ShowcaseDocumentLogInfo.showcase_title: Showcase document + title. + """ + + __slots__ = [ + '_showcase_id_value', + '_showcase_id_present', + '_showcase_title_value', + '_showcase_title_present', + ] + + _has_required_fields = True + + def __init__(self, + showcase_id=None, + showcase_title=None): + self._showcase_id_value = None + self._showcase_id_present = False + self._showcase_title_value = None + self._showcase_title_present = False + if showcase_id is not None: + self.showcase_id = showcase_id + if showcase_title is not None: + self.showcase_title = showcase_title + + @property + def showcase_id(self): + """ + Showcase document Id. + + :rtype: str + """ + if self._showcase_id_present: + return self._showcase_id_value + else: + raise AttributeError("missing required field 'showcase_id'") + + @showcase_id.setter + def showcase_id(self, val): + val = self._showcase_id_validator.validate(val) + self._showcase_id_value = val + self._showcase_id_present = True + + @showcase_id.deleter + def showcase_id(self): + self._showcase_id_value = None + self._showcase_id_present = False + + @property + def showcase_title(self): + """ + Showcase document title. + + :rtype: str + """ + if self._showcase_title_present: + return self._showcase_title_value + else: + raise AttributeError("missing required field 'showcase_title'") + + @showcase_title.setter + def showcase_title(self, val): + val = self._showcase_title_validator.validate(val) + self._showcase_title_value = val + self._showcase_title_present = True + + @showcase_title.deleter + def showcase_title(self): + self._showcase_title_value = None + self._showcase_title_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseDocumentLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ShowcaseDocumentLogInfo(showcase_id={!r}, showcase_title={!r})'.format( + self._showcase_id_value, + self._showcase_title_value, + ) + +ShowcaseDocumentLogInfo_validator = bv.Struct(ShowcaseDocumentLogInfo) + +class ShowcaseDownloadPolicy(bb.Union): + """ + Policy for controlling if files can be downloaded from Showcases by team + members + + 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 + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None + + def is_disabled(self): + """ + Check if the union tag is ``disabled``. + + :rtype: bool + """ + return self._tag == 'disabled' + + def is_enabled(self): + """ + Check if the union tag is ``enabled``. + + :rtype: bool + """ + return self._tag == 'enabled' + + 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(ShowcaseDownloadPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ShowcaseDownloadPolicy(%r, %r)' % (self._tag, self._value) + +ShowcaseDownloadPolicy_validator = bv.Union(ShowcaseDownloadPolicy) + +class ShowcaseEditCommentDetails(bb.Struct): + """ + Edited showcase comment. + + :ivar team_log.ShowcaseEditCommentDetails.event_uuid: Event unique + identifier. + :ivar team_log.ShowcaseEditCommentDetails.comment_text: Comment text. + """ + + __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', + '_comment_text_value', + '_comment_text_present', + ] + + _has_required_fields = True + + def __init__(self, + event_uuid=None, + comment_text=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._comment_text_value = None + self._comment_text_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if comment_text is not None: + self.comment_text = comment_text - :ivar team_log.SharedLinkCreateDetails.shared_link_access_level: Defines who - can access the shared link. Might be missing due to historical data gap. - """ + @property + def event_uuid(self): + """ + Event unique identifier. - __slots__ = [ - '_shared_link_access_level_value', - '_shared_link_access_level_present', - ] + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") - _has_required_fields = False + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - def __init__(self, - shared_link_access_level=None): - self._shared_link_access_level_value = None - self._shared_link_access_level_present = False - if shared_link_access_level is not None: - self.shared_link_access_level = shared_link_access_level + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False @property - def shared_link_access_level(self): + def comment_text(self): """ - Defines who can access the shared link. Might be missing due to - historical data gap. + Comment text. - :rtype: team_log.SharedLinkAccessLevel + :rtype: str """ - if self._shared_link_access_level_present: - return self._shared_link_access_level_value + if self._comment_text_present: + return self._comment_text_value else: return None - @shared_link_access_level.setter - def shared_link_access_level(self, val): + @comment_text.setter + def comment_text(self, val): if val is None: - del self.shared_link_access_level + del self.comment_text return - self._shared_link_access_level_validator.validate_type_only(val) - self._shared_link_access_level_value = val - self._shared_link_access_level_present = True + val = self._comment_text_validator.validate(val) + self._comment_text_value = val + self._comment_text_present = True - @shared_link_access_level.deleter - def shared_link_access_level(self): - self._shared_link_access_level_value = None - self._shared_link_access_level_present = False + @comment_text.deleter + def comment_text(self): + self._comment_text_value = None + self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkCreateDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseEditCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkCreateDetails(shared_link_access_level={!r})'.format( - self._shared_link_access_level_value, + return 'ShowcaseEditCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + self._event_uuid_value, + self._comment_text_value, ) -SharedLinkCreateDetails_validator = bv.Struct(SharedLinkCreateDetails) +ShowcaseEditCommentDetails_validator = bv.Struct(ShowcaseEditCommentDetails) -class SharedLinkCreateType(bb.Struct): +class ShowcaseEditCommentType(bb.Struct): __slots__ = [ '_description_value', @@ -52429,75 +60250,71 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkCreateType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseEditCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkCreateType(description={!r})'.format( + return 'ShowcaseEditCommentType(description={!r})'.format( self._description_value, ) -SharedLinkCreateType_validator = bv.Struct(SharedLinkCreateType) +ShowcaseEditCommentType_validator = bv.Struct(ShowcaseEditCommentType) -class SharedLinkDisableDetails(bb.Struct): +class ShowcaseEditedDetails(bb.Struct): """ - Removed shared link. + Edited showcase. - :ivar team_log.SharedLinkDisableDetails.shared_link_owner: Shared link owner - details. Might be missing due to historical data gap. + :ivar team_log.ShowcaseEditedDetails.event_uuid: Event unique identifier. """ __slots__ = [ - '_shared_link_owner_value', - '_shared_link_owner_present', + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - shared_link_owner=None): - self._shared_link_owner_value = None - self._shared_link_owner_present = False - if shared_link_owner is not None: - self.shared_link_owner = shared_link_owner + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def shared_link_owner(self): + def event_uuid(self): """ - Shared link owner details. Might be missing due to historical data gap. + Event unique identifier. - :rtype: team_log.UserLogInfo + :rtype: str """ - if self._shared_link_owner_present: - return self._shared_link_owner_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @shared_link_owner.setter - def shared_link_owner(self, val): - if val is None: - del self.shared_link_owner - return - self._shared_link_owner_validator.validate_type_only(val) - self._shared_link_owner_value = val - self._shared_link_owner_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @shared_link_owner.deleter - def shared_link_owner(self): - self._shared_link_owner_value = None - self._shared_link_owner_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkDisableDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseEditedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkDisableDetails(shared_link_owner={!r})'.format( - self._shared_link_owner_value, + return 'ShowcaseEditedDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -SharedLinkDisableDetails_validator = bv.Struct(SharedLinkDisableDetails) +ShowcaseEditedDetails_validator = bv.Struct(ShowcaseEditedDetails) -class SharedLinkDisableType(bb.Struct): +class ShowcaseEditedType(bb.Struct): __slots__ = [ '_description_value', @@ -52534,181 +60351,169 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkDisableType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseEditedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkDisableType(description={!r})'.format( + return 'ShowcaseEditedType(description={!r})'.format( self._description_value, ) -SharedLinkDisableType_validator = bv.Struct(SharedLinkDisableType) +ShowcaseEditedType_validator = bv.Struct(ShowcaseEditedType) -class SharedLinkDownloadDetails(bb.Struct): +class ShowcaseEnabledPolicy(bb.Union): """ - Downloaded file/folder from shared link. + Policy for controlling whether Showcase is enabled. - :ivar team_log.SharedLinkDownloadDetails.shared_link_owner: Shared link - owner details. Might be missing due to historical data gap. + 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. """ - __slots__ = [ - '_shared_link_owner_value', - '_shared_link_owner_present', - ] + _catch_all = 'other' + # Attribute is overwritten below the class definition + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None - _has_required_fields = False + def is_disabled(self): + """ + Check if the union tag is ``disabled``. - def __init__(self, - shared_link_owner=None): - self._shared_link_owner_value = None - self._shared_link_owner_present = False - if shared_link_owner is not None: - self.shared_link_owner = shared_link_owner + :rtype: bool + """ + return self._tag == 'disabled' - @property - def shared_link_owner(self): + def is_enabled(self): """ - Shared link owner details. Might be missing due to historical data gap. + Check if the union tag is ``enabled``. - :rtype: team_log.UserLogInfo + :rtype: bool """ - if self._shared_link_owner_present: - return self._shared_link_owner_value - else: - return None + return self._tag == 'enabled' - @shared_link_owner.setter - def shared_link_owner(self, val): - if val is None: - del self.shared_link_owner - return - self._shared_link_owner_validator.validate_type_only(val) - self._shared_link_owner_value = val - self._shared_link_owner_present = True + def is_other(self): + """ + Check if the union tag is ``other``. - @shared_link_owner.deleter - def shared_link_owner(self): - self._shared_link_owner_value = None - self._shared_link_owner_present = False + :rtype: bool + """ + return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkDownloadDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseEnabledPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkDownloadDetails(shared_link_owner={!r})'.format( - self._shared_link_owner_value, - ) + return 'ShowcaseEnabledPolicy(%r, %r)' % (self._tag, self._value) -SharedLinkDownloadDetails_validator = bv.Struct(SharedLinkDownloadDetails) +ShowcaseEnabledPolicy_validator = bv.Union(ShowcaseEnabledPolicy) -class SharedLinkDownloadType(bb.Struct): +class ShowcaseExternalSharingPolicy(bb.Union): + """ + Policy for controlling if team members can share Showcases externally. - __slots__ = [ - '_description_value', - '_description_present', - ] + 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. + """ - _has_required_fields = True + _catch_all = 'other' + # Attribute is overwritten below the class definition + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + def is_disabled(self): + """ + Check if the union tag is ``disabled``. - @property - def description(self): + :rtype: bool """ - :rtype: str + return self._tag == 'disabled' + + def is_enabled(self): """ - if self._description_present: - return self._description_value - else: - raise AttributeError("missing required field 'description'") + Check if the union tag is ``enabled``. - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + :rtype: bool + """ + return self._tag == 'enabled' - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkDownloadType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseExternalSharingPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkDownloadType(description={!r})'.format( - self._description_value, - ) + return 'ShowcaseExternalSharingPolicy(%r, %r)' % (self._tag, self._value) -SharedLinkDownloadType_validator = bv.Struct(SharedLinkDownloadType) +ShowcaseExternalSharingPolicy_validator = bv.Union(ShowcaseExternalSharingPolicy) -class SharedLinkRemoveExpiryDetails(bb.Struct): +class ShowcaseFileAddedDetails(bb.Struct): """ - Removed shared link expiration date. + Added file to showcase. - :ivar team_log.SharedLinkRemoveExpiryDetails.previous_value: Previous shared - link expiration date. Might be missing due to historical data gap. + :ivar team_log.ShowcaseFileAddedDetails.event_uuid: Event unique identifier. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - previous_value=None): - self._previous_value_value = None - self._previous_value_present = False - if previous_value is not None: - self.previous_value = previous_value + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def previous_value(self): + def event_uuid(self): """ - Previous shared link expiration date. Might be missing due to historical - data gap. + Event unique identifier. - :rtype: datetime.datetime + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - val = self._previous_value_validator.validate(val) - self._previous_value_value = val - self._previous_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkRemoveExpiryDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseFileAddedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkRemoveExpiryDetails(previous_value={!r})'.format( - self._previous_value_value, + return 'ShowcaseFileAddedDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -SharedLinkRemoveExpiryDetails_validator = bv.Struct(SharedLinkRemoveExpiryDetails) +ShowcaseFileAddedDetails_validator = bv.Struct(ShowcaseFileAddedDetails) -class SharedLinkRemoveExpiryType(bb.Struct): +class ShowcaseFileAddedType(bb.Struct): __slots__ = [ '_description_value', @@ -52745,111 +60550,105 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkRemoveExpiryType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseFileAddedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkRemoveExpiryType(description={!r})'.format( + return 'ShowcaseFileAddedType(description={!r})'.format( self._description_value, ) -SharedLinkRemoveExpiryType_validator = bv.Struct(SharedLinkRemoveExpiryType) +ShowcaseFileAddedType_validator = bv.Struct(ShowcaseFileAddedType) -class SharedLinkShareDetails(bb.Struct): +class ShowcaseFileDownloadDetails(bb.Struct): """ - Added members as audience of shared link. + Downloaded file from showcase. - :ivar team_log.SharedLinkShareDetails.shared_link_owner: Shared link owner - details. Might be missing due to historical data gap. - :ivar team_log.SharedLinkShareDetails.external_users: Users without a - Dropbox account that were added as shared link audience. + :ivar team_log.ShowcaseFileDownloadDetails.event_uuid: Event unique + identifier. + :ivar team_log.ShowcaseFileDownloadDetails.download_type: Showcase download + type. """ __slots__ = [ - '_shared_link_owner_value', - '_shared_link_owner_present', - '_external_users_value', - '_external_users_present', + '_event_uuid_value', + '_event_uuid_present', + '_download_type_value', + '_download_type_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - shared_link_owner=None, - external_users=None): - self._shared_link_owner_value = None - self._shared_link_owner_present = False - self._external_users_value = None - self._external_users_present = False - if shared_link_owner is not None: - self.shared_link_owner = shared_link_owner - if external_users is not None: - self.external_users = external_users + event_uuid=None, + download_type=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._download_type_value = None + self._download_type_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if download_type is not None: + self.download_type = download_type @property - def shared_link_owner(self): + def event_uuid(self): """ - Shared link owner details. Might be missing due to historical data gap. + Event unique identifier. - :rtype: team_log.UserLogInfo + :rtype: str """ - if self._shared_link_owner_present: - return self._shared_link_owner_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @shared_link_owner.setter - def shared_link_owner(self, val): - if val is None: - del self.shared_link_owner - return - self._shared_link_owner_validator.validate_type_only(val) - self._shared_link_owner_value = val - self._shared_link_owner_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @shared_link_owner.deleter - def shared_link_owner(self): - self._shared_link_owner_value = None - self._shared_link_owner_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False @property - def external_users(self): + def download_type(self): """ - Users without a Dropbox account that were added as shared link audience. + Showcase download type. - :rtype: list of [team_log.ExternalUserLogInfo] + :rtype: str """ - if self._external_users_present: - return self._external_users_value + if self._download_type_present: + return self._download_type_value else: - return None + raise AttributeError("missing required field 'download_type'") - @external_users.setter - def external_users(self, val): - if val is None: - del self.external_users - return - val = self._external_users_validator.validate(val) - self._external_users_value = val - self._external_users_present = True + @download_type.setter + def download_type(self, val): + val = self._download_type_validator.validate(val) + self._download_type_value = val + self._download_type_present = True - @external_users.deleter - def external_users(self): - self._external_users_value = None - self._external_users_present = False + @download_type.deleter + def download_type(self): + self._download_type_value = None + self._download_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkShareDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseFileDownloadDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkShareDetails(shared_link_owner={!r}, external_users={!r})'.format( - self._shared_link_owner_value, - self._external_users_value, + return 'ShowcaseFileDownloadDetails(event_uuid={!r}, download_type={!r})'.format( + self._event_uuid_value, + self._download_type_value, ) -SharedLinkShareDetails_validator = bv.Struct(SharedLinkShareDetails) +ShowcaseFileDownloadDetails_validator = bv.Struct(ShowcaseFileDownloadDetails) -class SharedLinkShareType(bb.Struct): +class ShowcaseFileDownloadType(bb.Struct): __slots__ = [ '_description_value', @@ -52886,75 +60685,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkShareType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseFileDownloadType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkShareType(description={!r})'.format( + return 'ShowcaseFileDownloadType(description={!r})'.format( self._description_value, ) -SharedLinkShareType_validator = bv.Struct(SharedLinkShareType) +ShowcaseFileDownloadType_validator = bv.Struct(ShowcaseFileDownloadType) -class SharedLinkViewDetails(bb.Struct): +class ShowcaseFileRemovedDetails(bb.Struct): """ - Opened shared link. + Removed file from showcase. - :ivar team_log.SharedLinkViewDetails.shared_link_owner: Shared link owner - details. Might be missing due to historical data gap. + :ivar team_log.ShowcaseFileRemovedDetails.event_uuid: Event unique + identifier. """ __slots__ = [ - '_shared_link_owner_value', - '_shared_link_owner_present', + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - shared_link_owner=None): - self._shared_link_owner_value = None - self._shared_link_owner_present = False - if shared_link_owner is not None: - self.shared_link_owner = shared_link_owner + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def shared_link_owner(self): + def event_uuid(self): """ - Shared link owner details. Might be missing due to historical data gap. + Event unique identifier. - :rtype: team_log.UserLogInfo + :rtype: str """ - if self._shared_link_owner_present: - return self._shared_link_owner_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @shared_link_owner.setter - def shared_link_owner(self, val): - if val is None: - del self.shared_link_owner - return - self._shared_link_owner_validator.validate_type_only(val) - self._shared_link_owner_value = val - self._shared_link_owner_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @shared_link_owner.deleter - def shared_link_owner(self): - self._shared_link_owner_value = None - self._shared_link_owner_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkViewDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseFileRemovedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkViewDetails(shared_link_owner={!r})'.format( - self._shared_link_owner_value, + return 'ShowcaseFileRemovedDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -SharedLinkViewDetails_validator = bv.Struct(SharedLinkViewDetails) +ShowcaseFileRemovedDetails_validator = bv.Struct(ShowcaseFileRemovedDetails) -class SharedLinkViewType(bb.Struct): +class ShowcaseFileRemovedType(bb.Struct): __slots__ = [ '_description_value', @@ -52991,97 +60787,71 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkViewType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseFileRemovedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedLinkViewType(description={!r})'.format( + return 'ShowcaseFileRemovedType(description={!r})'.format( self._description_value, ) -SharedLinkViewType_validator = bv.Struct(SharedLinkViewType) +ShowcaseFileRemovedType_validator = bv.Struct(ShowcaseFileRemovedType) -class SharedLinkVisibility(bb.Union): +class ShowcaseFileViewDetails(bb.Struct): """ - Defines who has access to a shared link. + Viewed file in showcase. - 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 team_log.ShowcaseFileViewDetails.event_uuid: Event unique identifier. """ - _catch_all = 'other' - # Attribute is overwritten below the class definition - password = None - # Attribute is overwritten below the class definition - public = None - # Attribute is overwritten below the class definition - team_only = None - # Attribute is overwritten below the class definition - other = None - - def is_password(self): - """ - Check if the union tag is ``password``. - - :rtype: bool - """ - return self._tag == 'password' - - def is_public(self): - """ - Check if the union tag is ``public``. - - :rtype: bool - """ - return self._tag == 'public' + __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', + ] - def is_team_only(self): - """ - Check if the union tag is ``team_only``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'team_only' + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid - def is_other(self): + @property + def event_uuid(self): """ - Check if the union tag is ``other``. + Event unique identifier. - :rtype: bool + :rtype: str """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkVisibility, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SharedLinkVisibility(%r, %r)' % (self._tag, self._value) - -SharedLinkVisibility_validator = bv.Union(SharedLinkVisibility) - -class SharedNoteOpenedDetails(bb.Struct): - """ - Opened shared Paper doc. - """ - - __slots__ = [ - ] + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") - _has_required_fields = False + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - def __init__(self): - pass + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedNoteOpenedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseFileViewDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedNoteOpenedDetails()' + return 'ShowcaseFileViewDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -SharedNoteOpenedDetails_validator = bv.Struct(SharedNoteOpenedDetails) +ShowcaseFileViewDetails_validator = bv.Struct(ShowcaseFileViewDetails) -class SharedNoteOpenedType(bb.Struct): +class ShowcaseFileViewType(bb.Struct): __slots__ = [ '_description_value', @@ -53118,109 +60888,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharedNoteOpenedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseFileViewType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharedNoteOpenedType(description={!r})'.format( + return 'ShowcaseFileViewType(description={!r})'.format( self._description_value, ) -SharedNoteOpenedType_validator = bv.Struct(SharedNoteOpenedType) +ShowcaseFileViewType_validator = bv.Struct(ShowcaseFileViewType) -class SharingChangeFolderJoinPolicyDetails(bb.Struct): +class ShowcasePermanentlyDeletedDetails(bb.Struct): """ - Changed whether team members can join shared folders owned outside team. + Permanently deleted showcase. - :ivar team_log.SharingChangeFolderJoinPolicyDetails.new_value: New external - join policy. - :ivar team_log.SharingChangeFolderJoinPolicyDetails.previous_value: Previous - external join policy. Might be missing due to historical data gap. + :ivar team_log.ShowcasePermanentlyDeletedDetails.event_uuid: Event unique + identifier. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value - - @property - def new_value(self): - """ - New external join policy. - - :rtype: team_log.SharingFolderJoinPolicy - """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") - - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True - - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def previous_value(self): + def event_uuid(self): """ - Previous external join policy. Might be missing due to historical data - gap. + Event unique identifier. - :rtype: team_log.SharingFolderJoinPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharingChangeFolderJoinPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcasePermanentlyDeletedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharingChangeFolderJoinPolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'ShowcasePermanentlyDeletedDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -SharingChangeFolderJoinPolicyDetails_validator = bv.Struct(SharingChangeFolderJoinPolicyDetails) +ShowcasePermanentlyDeletedDetails_validator = bv.Struct(ShowcasePermanentlyDeletedDetails) -class SharingChangeFolderJoinPolicyType(bb.Struct): +class ShowcasePermanentlyDeletedType(bb.Struct): __slots__ = [ '_description_value', @@ -53257,111 +60990,107 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharingChangeFolderJoinPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcasePermanentlyDeletedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharingChangeFolderJoinPolicyType(description={!r})'.format( + return 'ShowcasePermanentlyDeletedType(description={!r})'.format( self._description_value, ) -SharingChangeFolderJoinPolicyType_validator = bv.Struct(SharingChangeFolderJoinPolicyType) +ShowcasePermanentlyDeletedType_validator = bv.Struct(ShowcasePermanentlyDeletedType) -class SharingChangeLinkPolicyDetails(bb.Struct): +class ShowcasePostCommentDetails(bb.Struct): """ - Changed whether members can share links outside team, and if links are - accessible only by team members or anyone by default. + Added showcase comment. - :ivar team_log.SharingChangeLinkPolicyDetails.new_value: New external link - accessibility policy. - :ivar team_log.SharingChangeLinkPolicyDetails.previous_value: Previous - external link accessibility policy. Might be missing due to historical - data gap. + :ivar team_log.ShowcasePostCommentDetails.event_uuid: Event unique + identifier. + :ivar team_log.ShowcasePostCommentDetails.comment_text: Comment text. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', + '_comment_text_value', + '_comment_text_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + event_uuid=None, + comment_text=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._comment_text_value = None + self._comment_text_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if comment_text is not None: + self.comment_text = comment_text @property - def new_value(self): + def event_uuid(self): """ - New external link accessibility policy. + Event unique identifier. - :rtype: team_log.SharingLinkPolicy + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'event_uuid'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False @property - def previous_value(self): + def comment_text(self): """ - Previous external link accessibility policy. Might be missing due to - historical data gap. + Comment text. - :rtype: team_log.SharingLinkPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._comment_text_present: + return self._comment_text_value else: return None - @previous_value.setter - def previous_value(self, val): + @comment_text.setter + def comment_text(self, val): if val is None: - del self.previous_value + del self.comment_text return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + val = self._comment_text_validator.validate(val) + self._comment_text_value = val + self._comment_text_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @comment_text.deleter + def comment_text(self): + self._comment_text_value = None + self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharingChangeLinkPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcasePostCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharingChangeLinkPolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'ShowcasePostCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + self._event_uuid_value, + self._comment_text_value, ) -SharingChangeLinkPolicyDetails_validator = bv.Struct(SharingChangeLinkPolicyDetails) +ShowcasePostCommentDetails_validator = bv.Struct(ShowcasePostCommentDetails) -class SharingChangeLinkPolicyType(bb.Struct): +class ShowcasePostCommentType(bb.Struct): __slots__ = [ '_description_value', @@ -53398,109 +61127,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharingChangeLinkPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcasePostCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharingChangeLinkPolicyType(description={!r})'.format( + return 'ShowcasePostCommentType(description={!r})'.format( self._description_value, ) -SharingChangeLinkPolicyType_validator = bv.Struct(SharingChangeLinkPolicyType) +ShowcasePostCommentType_validator = bv.Struct(ShowcasePostCommentType) -class SharingChangeMemberPolicyDetails(bb.Struct): +class ShowcaseRemoveMemberDetails(bb.Struct): """ - Changed whether members can share files/folders outside team. + Removed member from showcase. - :ivar team_log.SharingChangeMemberPolicyDetails.new_value: New external - invite policy. - :ivar team_log.SharingChangeMemberPolicyDetails.previous_value: Previous - external invite policy. Might be missing due to historical data gap. + :ivar team_log.ShowcaseRemoveMemberDetails.event_uuid: Event unique + identifier. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value - - @property - def new_value(self): - """ - New external invite policy. - - :rtype: team_log.SharingMemberPolicy - """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") - - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True - - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def previous_value(self): + def event_uuid(self): """ - Previous external invite policy. Might be missing due to historical data - gap. + Event unique identifier. - :rtype: team_log.SharingMemberPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - return None + raise AttributeError("missing required field 'event_uuid'") - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharingChangeMemberPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseRemoveMemberDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharingChangeMemberPolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'ShowcaseRemoveMemberDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -SharingChangeMemberPolicyDetails_validator = bv.Struct(SharingChangeMemberPolicyDetails) +ShowcaseRemoveMemberDetails_validator = bv.Struct(ShowcaseRemoveMemberDetails) -class SharingChangeMemberPolicyType(bb.Struct): +class ShowcaseRemoveMemberType(bb.Struct): __slots__ = [ '_description_value', @@ -53537,196 +61229,173 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharingChangeMemberPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseRemoveMemberType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharingChangeMemberPolicyType(description={!r})'.format( + return 'ShowcaseRemoveMemberType(description={!r})'.format( self._description_value, ) -SharingChangeMemberPolicyType_validator = bv.Struct(SharingChangeMemberPolicyType) - -class SharingFolderJoinPolicy(bb.Union): - """ - Policy for controlling if team members can join shared folders owned by non - team members. - - 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 - from_anyone = None - # Attribute is overwritten below the class definition - from_team_only = None - # Attribute is overwritten below the class definition - other = None - - def is_from_anyone(self): - """ - Check if the union tag is ``from_anyone``. - - :rtype: bool - """ - return self._tag == 'from_anyone' - - def is_from_team_only(self): - """ - Check if the union tag is ``from_team_only``. - - :rtype: bool - """ - return self._tag == 'from_team_only' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(SharingFolderJoinPolicy, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SharingFolderJoinPolicy(%r, %r)' % (self._tag, self._value) - -SharingFolderJoinPolicy_validator = bv.Union(SharingFolderJoinPolicy) +ShowcaseRemoveMemberType_validator = bv.Struct(ShowcaseRemoveMemberType) -class SharingLinkPolicy(bb.Union): +class ShowcaseRenamedDetails(bb.Struct): """ - Policy for controlling if team members can share links externally + Renamed showcase. - 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 team_log.ShowcaseRenamedDetails.event_uuid: Event unique identifier. """ - _catch_all = 'other' - # Attribute is overwritten below the class definition - default_private = None - # Attribute is overwritten below the class definition - default_public = None - # Attribute is overwritten below the class definition - only_private = None - # Attribute is overwritten below the class definition - other = None - - def is_default_private(self): - """ - Check if the union tag is ``default_private``. - - :rtype: bool - """ - return self._tag == 'default_private' + __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', + ] - def is_default_public(self): - """ - Check if the union tag is ``default_public``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'default_public' + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid - def is_only_private(self): + @property + def event_uuid(self): """ - Check if the union tag is ``only_private``. + Event unique identifier. - :rtype: bool + :rtype: str """ - return self._tag == 'only_private' + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") - def is_other(self): - """ - Check if the union tag is ``other``. + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - :rtype: bool - """ - return self._tag == 'other' + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharingLinkPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseRenamedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharingLinkPolicy(%r, %r)' % (self._tag, self._value) - -SharingLinkPolicy_validator = bv.Union(SharingLinkPolicy) + return 'ShowcaseRenamedDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -class SharingMemberPolicy(bb.Union): - """ - External sharing policy +ShowcaseRenamedDetails_validator = bv.Struct(ShowcaseRenamedDetails) - 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. - """ +class ShowcaseRenamedType(bb.Struct): - _catch_all = 'other' - # Attribute is overwritten below the class definition - allow = None - # Attribute is overwritten below the class definition - forbid = None - # Attribute is overwritten below the class definition - other = None + __slots__ = [ + '_description_value', + '_description_present', + ] - def is_allow(self): - """ - Check if the union tag is ``allow``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'allow' + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description - def is_forbid(self): + @property + def description(self): """ - Check if the union tag is ``forbid``. - - :rtype: bool + :rtype: str """ - return self._tag == 'forbid' + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") - def is_other(self): - """ - Check if the union tag is ``other``. + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - :rtype: bool - """ - return self._tag == 'other' + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SharingMemberPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseRenamedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharingMemberPolicy(%r, %r)' % (self._tag, self._value) + return 'ShowcaseRenamedType(description={!r})'.format( + self._description_value, + ) -SharingMemberPolicy_validator = bv.Union(SharingMemberPolicy) +ShowcaseRenamedType_validator = bv.Struct(ShowcaseRenamedType) -class ShmodelGroupShareDetails(bb.Struct): +class ShowcaseRequestAccessDetails(bb.Struct): """ - Shared link with group. + Requested access to showcase. + + :ivar team_log.ShowcaseRequestAccessDetails.event_uuid: Event unique + identifier. """ __slots__ = [ + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + + @property + def event_uuid(self): + """ + Event unique identifier. + + :rtype: str + """ + if self._event_uuid_present: + return self._event_uuid_value + else: + raise AttributeError("missing required field 'event_uuid'") + + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True + + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShmodelGroupShareDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseRequestAccessDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShmodelGroupShareDetails()' + return 'ShowcaseRequestAccessDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) -ShmodelGroupShareDetails_validator = bv.Struct(ShmodelGroupShareDetails) +ShowcaseRequestAccessDetails_validator = bv.Struct(ShowcaseRequestAccessDetails) -class ShmodelGroupShareType(bb.Struct): +class ShowcaseRequestAccessType(bb.Struct): __slots__ = [ '_description_value', @@ -53763,37 +61432,45 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShmodelGroupShareType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseRequestAccessType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShmodelGroupShareType(description={!r})'.format( + return 'ShowcaseRequestAccessType(description={!r})'.format( self._description_value, ) -ShmodelGroupShareType_validator = bv.Struct(ShmodelGroupShareType) +ShowcaseRequestAccessType_validator = bv.Struct(ShowcaseRequestAccessType) -class ShowcaseAccessGrantedDetails(bb.Struct): +class ShowcaseResolveCommentDetails(bb.Struct): """ - Granted access to showcase. + Resolved showcase comment. - :ivar team_log.ShowcaseAccessGrantedDetails.event_uuid: Event unique + :ivar team_log.ShowcaseResolveCommentDetails.event_uuid: Event unique identifier. + :ivar team_log.ShowcaseResolveCommentDetails.comment_text: Comment text. """ __slots__ = [ '_event_uuid_value', '_event_uuid_present', + '_comment_text_value', + '_comment_text_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): + event_uuid=None, + comment_text=None): self._event_uuid_value = None self._event_uuid_present = False + self._comment_text_value = None + self._comment_text_present = False if event_uuid is not None: self.event_uuid = event_uuid + if comment_text is not None: + self.comment_text = comment_text @property def event_uuid(self): @@ -53818,17 +61495,44 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseAccessGrantedDetails, self)._process_custom_annotations(annotation_type, processor) + @property + def comment_text(self): + """ + Comment text. + + :rtype: str + """ + if self._comment_text_present: + return self._comment_text_value + else: + return None + + @comment_text.setter + def comment_text(self, val): + if val is None: + del self.comment_text + return + val = self._comment_text_validator.validate(val) + self._comment_text_value = val + self._comment_text_present = True + + @comment_text.deleter + def comment_text(self): + self._comment_text_value = None + self._comment_text_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseResolveCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseAccessGrantedDetails(event_uuid={!r})'.format( + return 'ShowcaseResolveCommentDetails(event_uuid={!r}, comment_text={!r})'.format( self._event_uuid_value, + self._comment_text_value, ) -ShowcaseAccessGrantedDetails_validator = bv.Struct(ShowcaseAccessGrantedDetails) +ShowcaseResolveCommentDetails_validator = bv.Struct(ShowcaseResolveCommentDetails) -class ShowcaseAccessGrantedType(bb.Struct): +class ShowcaseResolveCommentType(bb.Struct): __slots__ = [ '_description_value', @@ -53865,21 +61569,21 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseAccessGrantedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseResolveCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseAccessGrantedType(description={!r})'.format( + return 'ShowcaseResolveCommentType(description={!r})'.format( self._description_value, ) -ShowcaseAccessGrantedType_validator = bv.Struct(ShowcaseAccessGrantedType) +ShowcaseResolveCommentType_validator = bv.Struct(ShowcaseResolveCommentType) -class ShowcaseAddMemberDetails(bb.Struct): +class ShowcaseRestoredDetails(bb.Struct): """ - Added member to showcase. + Unarchived showcase. - :ivar team_log.ShowcaseAddMemberDetails.event_uuid: Event unique identifier. + :ivar team_log.ShowcaseRestoredDetails.event_uuid: Event unique identifier. """ __slots__ = [ @@ -53919,17 +61623,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseAddMemberDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseRestoredDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseAddMemberDetails(event_uuid={!r})'.format( + return 'ShowcaseRestoredDetails(event_uuid={!r})'.format( self._event_uuid_value, ) -ShowcaseAddMemberDetails_validator = bv.Struct(ShowcaseAddMemberDetails) +ShowcaseRestoredDetails_validator = bv.Struct(ShowcaseRestoredDetails) -class ShowcaseAddMemberType(bb.Struct): +class ShowcaseRestoredType(bb.Struct): __slots__ = [ '_description_value', @@ -53966,21 +61670,22 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseAddMemberType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseRestoredType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseAddMemberType(description={!r})'.format( + return 'ShowcaseRestoredType(description={!r})'.format( self._description_value, ) -ShowcaseAddMemberType_validator = bv.Struct(ShowcaseAddMemberType) +ShowcaseRestoredType_validator = bv.Struct(ShowcaseRestoredType) -class ShowcaseArchivedDetails(bb.Struct): +class ShowcaseTrashedDeprecatedDetails(bb.Struct): """ - Archived showcase. + Deleted showcase (old version). - :ivar team_log.ShowcaseArchivedDetails.event_uuid: Event unique identifier. + :ivar team_log.ShowcaseTrashedDeprecatedDetails.event_uuid: Event unique + identifier. """ __slots__ = [ @@ -54020,17 +61725,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseArchivedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseTrashedDeprecatedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseArchivedDetails(event_uuid={!r})'.format( + return 'ShowcaseTrashedDeprecatedDetails(event_uuid={!r})'.format( self._event_uuid_value, ) -ShowcaseArchivedDetails_validator = bv.Struct(ShowcaseArchivedDetails) +ShowcaseTrashedDeprecatedDetails_validator = bv.Struct(ShowcaseTrashedDeprecatedDetails) -class ShowcaseArchivedType(bb.Struct): +class ShowcaseTrashedDeprecatedType(bb.Struct): __slots__ = [ '_description_value', @@ -54067,105 +61772,71 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseArchivedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseTrashedDeprecatedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseArchivedType(description={!r})'.format( + return 'ShowcaseTrashedDeprecatedType(description={!r})'.format( self._description_value, ) -ShowcaseArchivedType_validator = bv.Struct(ShowcaseArchivedType) +ShowcaseTrashedDeprecatedType_validator = bv.Struct(ShowcaseTrashedDeprecatedType) -class ShowcaseChangeDownloadPolicyDetails(bb.Struct): +class ShowcaseTrashedDetails(bb.Struct): """ - Enabled/disabled downloading files from Dropbox Showcase for team. + Deleted showcase. - :ivar team_log.ShowcaseChangeDownloadPolicyDetails.new_value: New Dropbox - Showcase download policy. - :ivar team_log.ShowcaseChangeDownloadPolicyDetails.previous_value: Previous - Dropbox Showcase download policy. + :ivar team_log.ShowcaseTrashedDetails.event_uuid: Event unique identifier. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value - - @property - def new_value(self): - """ - New Dropbox Showcase download policy. - - :rtype: team_log.ShowcaseDownloadPolicy - """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") - - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True - - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid @property - def previous_value(self): + def event_uuid(self): """ - Previous Dropbox Showcase download policy. + Event unique identifier. - :rtype: team_log.ShowcaseDownloadPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'previous_value'") + raise AttributeError("missing required field 'event_uuid'") - @previous_value.setter - def previous_value(self, val): - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseChangeDownloadPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseTrashedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseChangeDownloadPolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'ShowcaseTrashedDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -ShowcaseChangeDownloadPolicyDetails_validator = bv.Struct(ShowcaseChangeDownloadPolicyDetails) +ShowcaseTrashedDetails_validator = bv.Struct(ShowcaseTrashedDetails) -class ShowcaseChangeDownloadPolicyType(bb.Struct): +class ShowcaseTrashedType(bb.Struct): __slots__ = [ '_description_value', @@ -54202,105 +61873,107 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseChangeDownloadPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseTrashedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseChangeDownloadPolicyType(description={!r})'.format( + return 'ShowcaseTrashedType(description={!r})'.format( self._description_value, ) -ShowcaseChangeDownloadPolicyType_validator = bv.Struct(ShowcaseChangeDownloadPolicyType) +ShowcaseTrashedType_validator = bv.Struct(ShowcaseTrashedType) -class ShowcaseChangeEnabledPolicyDetails(bb.Struct): +class ShowcaseUnresolveCommentDetails(bb.Struct): """ - Enabled/disabled Dropbox Showcase for team. + Unresolved showcase comment. - :ivar team_log.ShowcaseChangeEnabledPolicyDetails.new_value: New Dropbox - Showcase policy. - :ivar team_log.ShowcaseChangeEnabledPolicyDetails.previous_value: Previous - Dropbox Showcase policy. + :ivar team_log.ShowcaseUnresolveCommentDetails.event_uuid: Event unique + identifier. + :ivar team_log.ShowcaseUnresolveCommentDetails.comment_text: Comment text. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', + '_comment_text_value', + '_comment_text_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + event_uuid=None, + comment_text=None): + self._event_uuid_value = None + self._event_uuid_present = False + self._comment_text_value = None + self._comment_text_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + if comment_text is not None: + self.comment_text = comment_text @property - def new_value(self): + def event_uuid(self): """ - New Dropbox Showcase policy. + Event unique identifier. - :rtype: team_log.ShowcaseEnabledPolicy + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'event_uuid'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False @property - def previous_value(self): + def comment_text(self): """ - Previous Dropbox Showcase policy. + Comment text. - :rtype: team_log.ShowcaseEnabledPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._comment_text_present: + return self._comment_text_value else: - raise AttributeError("missing required field 'previous_value'") + return None - @previous_value.setter - def previous_value(self, val): - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + @comment_text.setter + def comment_text(self, val): + if val is None: + del self.comment_text + return + val = self._comment_text_validator.validate(val) + self._comment_text_value = val + self._comment_text_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @comment_text.deleter + def comment_text(self): + self._comment_text_value = None + self._comment_text_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseChangeEnabledPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseUnresolveCommentDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseChangeEnabledPolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'ShowcaseUnresolveCommentDetails(event_uuid={!r}, comment_text={!r})'.format( + self._event_uuid_value, + self._comment_text_value, ) -ShowcaseChangeEnabledPolicyDetails_validator = bv.Struct(ShowcaseChangeEnabledPolicyDetails) +ShowcaseUnresolveCommentDetails_validator = bv.Struct(ShowcaseUnresolveCommentDetails) -class ShowcaseChangeEnabledPolicyType(bb.Struct): +class ShowcaseUnresolveCommentType(bb.Struct): __slots__ = [ '_description_value', @@ -54337,105 +62010,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseChangeEnabledPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseUnresolveCommentType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseChangeEnabledPolicyType(description={!r})'.format( + return 'ShowcaseUnresolveCommentType(description={!r})'.format( self._description_value, ) -ShowcaseChangeEnabledPolicyType_validator = bv.Struct(ShowcaseChangeEnabledPolicyType) +ShowcaseUnresolveCommentType_validator = bv.Struct(ShowcaseUnresolveCommentType) -class ShowcaseChangeExternalSharingPolicyDetails(bb.Struct): +class ShowcaseUntrashedDeprecatedDetails(bb.Struct): """ - Enabled/disabled sharing Dropbox Showcase externally for team. + Restored showcase (old version). - :ivar team_log.ShowcaseChangeExternalSharingPolicyDetails.new_value: New - Dropbox Showcase external sharing policy. - :ivar team_log.ShowcaseChangeExternalSharingPolicyDetails.previous_value: - Previous Dropbox Showcase external sharing policy. + :ivar team_log.ShowcaseUntrashedDeprecatedDetails.event_uuid: Event unique + identifier. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_event_uuid_value', + '_event_uuid_present', ] - _has_required_fields = True - - def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value - - @property - def new_value(self): - """ - New Dropbox Showcase external sharing policy. - - :rtype: team_log.ShowcaseExternalSharingPolicy - """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") - - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True - - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False - + _has_required_fields = True + + def __init__(self, + event_uuid=None): + self._event_uuid_value = None + self._event_uuid_present = False + if event_uuid is not None: + self.event_uuid = event_uuid + @property - def previous_value(self): + def event_uuid(self): """ - Previous Dropbox Showcase external sharing policy. + Event unique identifier. - :rtype: team_log.ShowcaseExternalSharingPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._event_uuid_present: + return self._event_uuid_value else: - raise AttributeError("missing required field 'previous_value'") + raise AttributeError("missing required field 'event_uuid'") - @previous_value.setter - def previous_value(self, val): - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + @event_uuid.setter + def event_uuid(self, val): + val = self._event_uuid_validator.validate(val) + self._event_uuid_value = val + self._event_uuid_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @event_uuid.deleter + def event_uuid(self): + self._event_uuid_value = None + self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseChangeExternalSharingPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseUntrashedDeprecatedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseChangeExternalSharingPolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'ShowcaseUntrashedDeprecatedDetails(event_uuid={!r})'.format( + self._event_uuid_value, ) -ShowcaseChangeExternalSharingPolicyDetails_validator = bv.Struct(ShowcaseChangeExternalSharingPolicyDetails) +ShowcaseUntrashedDeprecatedDetails_validator = bv.Struct(ShowcaseUntrashedDeprecatedDetails) -class ShowcaseChangeExternalSharingPolicyType(bb.Struct): +class ShowcaseUntrashedDeprecatedType(bb.Struct): __slots__ = [ '_description_value', @@ -54472,21 +62112,21 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseChangeExternalSharingPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseUntrashedDeprecatedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseChangeExternalSharingPolicyType(description={!r})'.format( + return 'ShowcaseUntrashedDeprecatedType(description={!r})'.format( self._description_value, ) -ShowcaseChangeExternalSharingPolicyType_validator = bv.Struct(ShowcaseChangeExternalSharingPolicyType) +ShowcaseUntrashedDeprecatedType_validator = bv.Struct(ShowcaseUntrashedDeprecatedType) -class ShowcaseCreatedDetails(bb.Struct): +class ShowcaseUntrashedDetails(bb.Struct): """ - Created showcase. + Restored showcase. - :ivar team_log.ShowcaseCreatedDetails.event_uuid: Event unique identifier. + :ivar team_log.ShowcaseUntrashedDetails.event_uuid: Event unique identifier. """ __slots__ = [ @@ -54526,17 +62166,17 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseCreatedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseUntrashedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseCreatedDetails(event_uuid={!r})'.format( + return 'ShowcaseUntrashedDetails(event_uuid={!r})'.format( self._event_uuid_value, ) -ShowcaseCreatedDetails_validator = bv.Struct(ShowcaseCreatedDetails) +ShowcaseUntrashedDetails_validator = bv.Struct(ShowcaseUntrashedDetails) -class ShowcaseCreatedType(bb.Struct): +class ShowcaseUntrashedType(bb.Struct): __slots__ = [ '_description_value', @@ -54573,45 +62213,36 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseCreatedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseUntrashedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseCreatedType(description={!r})'.format( + return 'ShowcaseUntrashedType(description={!r})'.format( self._description_value, ) -ShowcaseCreatedType_validator = bv.Struct(ShowcaseCreatedType) +ShowcaseUntrashedType_validator = bv.Struct(ShowcaseUntrashedType) -class ShowcaseDeleteCommentDetails(bb.Struct): +class ShowcaseViewDetails(bb.Struct): """ - Deleted showcase comment. + Viewed showcase. - :ivar team_log.ShowcaseDeleteCommentDetails.event_uuid: Event unique - identifier. - :ivar team_log.ShowcaseDeleteCommentDetails.comment_text: Comment text. + :ivar team_log.ShowcaseViewDetails.event_uuid: Event unique identifier. """ __slots__ = [ '_event_uuid_value', '_event_uuid_present', - '_comment_text_value', - '_comment_text_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - comment_text=None): + event_uuid=None): self._event_uuid_value = None self._event_uuid_present = False - self._comment_text_value = None - self._comment_text_present = False if event_uuid is not None: self.event_uuid = event_uuid - if comment_text is not None: - self.comment_text = comment_text @property def event_uuid(self): @@ -54636,44 +62267,85 @@ def event_uuid(self): self._event_uuid_value = None self._event_uuid_present = False + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseViewDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ShowcaseViewDetails(event_uuid={!r})'.format( + self._event_uuid_value, + ) + +ShowcaseViewDetails_validator = bv.Struct(ShowcaseViewDetails) + +class ShowcaseViewType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description + @property - def comment_text(self): + def description(self): """ - Comment text. - :rtype: str """ - if self._comment_text_present: - return self._comment_text_value + if self._description_present: + return self._description_value else: - return None + raise AttributeError("missing required field 'description'") - @comment_text.setter - def comment_text(self, val): - if val is None: - del self.comment_text - return - val = self._comment_text_validator.validate(val) - self._comment_text_value = val - self._comment_text_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @comment_text.deleter - def comment_text(self): - self._comment_text_value = None - self._comment_text_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseDeleteCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseViewType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseDeleteCommentDetails(event_uuid={!r}, comment_text={!r})'.format( - self._event_uuid_value, - self._comment_text_value, + return 'ShowcaseViewType(description={!r})'.format( + self._description_value, ) -ShowcaseDeleteCommentDetails_validator = bv.Struct(ShowcaseDeleteCommentDetails) +ShowcaseViewType_validator = bv.Struct(ShowcaseViewType) -class ShowcaseDeleteCommentType(bb.Struct): +class SignInAsSessionEndDetails(bb.Struct): + """ + Ended admin sign-in-as session. + """ + + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SignInAsSessionEndDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SignInAsSessionEndDetails()' + +SignInAsSessionEndDetails_validator = bv.Struct(SignInAsSessionEndDetails) + +class SignInAsSessionEndType(bb.Struct): __slots__ = [ '_description_value', @@ -54710,244 +62382,247 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseDeleteCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SignInAsSessionEndType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseDeleteCommentType(description={!r})'.format( + return 'SignInAsSessionEndType(description={!r})'.format( self._description_value, ) -ShowcaseDeleteCommentType_validator = bv.Struct(ShowcaseDeleteCommentType) +SignInAsSessionEndType_validator = bv.Struct(SignInAsSessionEndType) -class ShowcaseDocumentLogInfo(bb.Struct): +class SignInAsSessionStartDetails(bb.Struct): """ - Showcase document's logged information. - - :ivar team_log.ShowcaseDocumentLogInfo.showcase_id: Showcase document Id. - :ivar team_log.ShowcaseDocumentLogInfo.showcase_title: Showcase document - title. + Started admin sign-in-as session. """ __slots__ = [ - '_showcase_id_value', - '_showcase_id_present', - '_showcase_title_value', - '_showcase_title_present', ] - _has_required_fields = True + _has_required_fields = False - def __init__(self, - showcase_id=None, - showcase_title=None): - self._showcase_id_value = None - self._showcase_id_present = False - self._showcase_title_value = None - self._showcase_title_present = False - if showcase_id is not None: - self.showcase_id = showcase_id - if showcase_title is not None: - self.showcase_title = showcase_title + def __init__(self): + pass - @property - def showcase_id(self): - """ - Showcase document Id. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SignInAsSessionStartDetails, self)._process_custom_annotations(annotation_type, field_path, processor) - :rtype: str - """ - if self._showcase_id_present: - return self._showcase_id_value - else: - raise AttributeError("missing required field 'showcase_id'") + def __repr__(self): + return 'SignInAsSessionStartDetails()' - @showcase_id.setter - def showcase_id(self, val): - val = self._showcase_id_validator.validate(val) - self._showcase_id_value = val - self._showcase_id_present = True +SignInAsSessionStartDetails_validator = bv.Struct(SignInAsSessionStartDetails) - @showcase_id.deleter - def showcase_id(self): - self._showcase_id_value = None - self._showcase_id_present = False +class SignInAsSessionStartType(bb.Struct): + + __slots__ = [ + '_description_value', + '_description_present', + ] + + _has_required_fields = True + + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def showcase_title(self): + def description(self): """ - Showcase document title. - :rtype: str """ - if self._showcase_title_present: - return self._showcase_title_value + if self._description_present: + return self._description_value else: - raise AttributeError("missing required field 'showcase_title'") + raise AttributeError("missing required field 'description'") - @showcase_title.setter - def showcase_title(self, val): - val = self._showcase_title_validator.validate(val) - self._showcase_title_value = val - self._showcase_title_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @showcase_title.deleter - def showcase_title(self): - self._showcase_title_value = None - self._showcase_title_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseDocumentLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SignInAsSessionStartType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseDocumentLogInfo(showcase_id={!r}, showcase_title={!r})'.format( - self._showcase_id_value, - self._showcase_title_value, + return 'SignInAsSessionStartType(description={!r})'.format( + self._description_value, ) -ShowcaseDocumentLogInfo_validator = bv.Struct(ShowcaseDocumentLogInfo) +SignInAsSessionStartType_validator = bv.Struct(SignInAsSessionStartType) -class ShowcaseDownloadPolicy(bb.Union): +class SmartSyncChangePolicyDetails(bb.Struct): """ - Policy for controlling if files can be downloaded from Showcases by team - members + Changed default Smart Sync setting for team members. - 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 team_log.SmartSyncChangePolicyDetails.new_value: New smart sync + policy. + :ivar team_log.SmartSyncChangePolicyDetails.previous_value: Previous smart + sync policy. """ - _catch_all = 'other' - # Attribute is overwritten below the class definition - disabled = None - # Attribute is overwritten below the class definition - enabled = None - # Attribute is overwritten below the class definition - other = None + __slots__ = [ + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', + ] - def is_disabled(self): - """ - Check if the union tag is ``disabled``. + _has_required_fields = False - :rtype: bool - """ - return self._tag == 'disabled' + def __init__(self, + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value - def is_enabled(self): + @property + def new_value(self): """ - Check if the union tag is ``enabled``. + New smart sync policy. - :rtype: bool + :rtype: team_policies.SmartSyncPolicy """ - return self._tag == 'enabled' + if self._new_value_present: + return self._new_value_value + else: + return None - def is_other(self): + @new_value.setter + def new_value(self, val): + if val is None: + del self.new_value + return + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): """ - Check if the union tag is ``other``. + Previous smart sync policy. - :rtype: bool + :rtype: team_policies.SmartSyncPolicy """ - return self._tag == 'other' + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseDownloadPolicy, self)._process_custom_annotations(annotation_type, processor) + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def __repr__(self): - return 'ShowcaseDownloadPolicy(%r, %r)' % (self._tag, self._value) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SmartSyncChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) -ShowcaseDownloadPolicy_validator = bv.Union(ShowcaseDownloadPolicy) + def __repr__(self): + return 'SmartSyncChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, + ) -class ShowcaseEditCommentDetails(bb.Struct): - """ - Edited showcase comment. +SmartSyncChangePolicyDetails_validator = bv.Struct(SmartSyncChangePolicyDetails) - :ivar team_log.ShowcaseEditCommentDetails.event_uuid: Event unique - identifier. - :ivar team_log.ShowcaseEditCommentDetails.comment_text: Comment text. - """ +class SmartSyncChangePolicyType(bb.Struct): __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_comment_text_value', - '_comment_text_present', + '_description_value', + '_description_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - comment_text=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._comment_text_value = None - self._comment_text_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if comment_text is not None: - self.comment_text = comment_text + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def event_uuid(self): + def description(self): """ - Event unique identifier. - :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._description_present: + return self._description_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'description'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - @property - def comment_text(self): - """ - Comment text. + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SmartSyncChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) - :rtype: str - """ - if self._comment_text_present: - return self._comment_text_value - else: - return None + def __repr__(self): + return 'SmartSyncChangePolicyType(description={!r})'.format( + self._description_value, + ) - @comment_text.setter - def comment_text(self, val): - if val is None: - del self.comment_text - return - val = self._comment_text_validator.validate(val) - self._comment_text_value = val - self._comment_text_present = True +SmartSyncChangePolicyType_validator = bv.Struct(SmartSyncChangePolicyType) - @comment_text.deleter - def comment_text(self): - self._comment_text_value = None - self._comment_text_present = False +class SmartSyncCreateAdminPrivilegeReportDetails(bb.Struct): + """ + Created Smart Sync non-admin devices report. + """ + + __slots__ = [ + ] - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseEditCommentDetails, self)._process_custom_annotations(annotation_type, processor) + _has_required_fields = False + + def __init__(self): + pass + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SmartSyncCreateAdminPrivilegeReportDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseEditCommentDetails(event_uuid={!r}, comment_text={!r})'.format( - self._event_uuid_value, - self._comment_text_value, - ) + return 'SmartSyncCreateAdminPrivilegeReportDetails()' -ShowcaseEditCommentDetails_validator = bv.Struct(ShowcaseEditCommentDetails) +SmartSyncCreateAdminPrivilegeReportDetails_validator = bv.Struct(SmartSyncCreateAdminPrivilegeReportDetails) -class ShowcaseEditCommentType(bb.Struct): +class SmartSyncCreateAdminPrivilegeReportType(bb.Struct): __slots__ = [ '_description_value', @@ -54984,71 +62659,105 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseEditCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SmartSyncCreateAdminPrivilegeReportType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseEditCommentType(description={!r})'.format( + return 'SmartSyncCreateAdminPrivilegeReportType(description={!r})'.format( self._description_value, ) -ShowcaseEditCommentType_validator = bv.Struct(ShowcaseEditCommentType) +SmartSyncCreateAdminPrivilegeReportType_validator = bv.Struct(SmartSyncCreateAdminPrivilegeReportType) -class ShowcaseEditedDetails(bb.Struct): +class SmartSyncNotOptOutDetails(bb.Struct): """ - Edited showcase. + Opted team into Smart Sync. - :ivar team_log.ShowcaseEditedDetails.event_uuid: Event unique identifier. + :ivar team_log.SmartSyncNotOptOutDetails.previous_value: Previous Smart Sync + opt out policy. + :ivar team_log.SmartSyncNotOptOutDetails.new_value: New Smart Sync opt out + policy. """ - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - ] + __slots__ = [ + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + previous_value=None, + new_value=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value + + @property + def previous_value(self): + """ + Previous Smart Sync opt out policy. - _has_required_fields = True + :rtype: SmartSyncOptOutPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + @previous_value.setter + def previous_value(self, val): + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False @property - def event_uuid(self): + def new_value(self): """ - Event unique identifier. + New Smart Sync opt out policy. - :rtype: str + :rtype: SmartSyncOptOutPolicy """ - if self._event_uuid_present: - return self._event_uuid_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'new_value'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseEditedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SmartSyncNotOptOutDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseEditedDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SmartSyncNotOptOutDetails(previous_value={!r}, new_value={!r})'.format( + self._previous_value_value, + self._new_value_value, ) -ShowcaseEditedDetails_validator = bv.Struct(ShowcaseEditedDetails) +SmartSyncNotOptOutDetails_validator = bv.Struct(SmartSyncNotOptOutDetails) -class ShowcaseEditedType(bb.Struct): +class SmartSyncNotOptOutType(bb.Struct): __slots__ = [ '_description_value', @@ -55085,69 +62794,106 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseEditedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SmartSyncNotOptOutType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseEditedType(description={!r})'.format( + return 'SmartSyncNotOptOutType(description={!r})'.format( self._description_value, ) -ShowcaseEditedType_validator = bv.Struct(ShowcaseEditedType) +SmartSyncNotOptOutType_validator = bv.Struct(SmartSyncNotOptOutType) -class ShowcaseEnabledPolicy(bb.Union): +class SmartSyncOptOutDetails(bb.Struct): """ - Policy for controlling whether Showcase is enabled. + Opted team out of Smart Sync. - 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 team_log.SmartSyncOptOutDetails.previous_value: Previous Smart Sync + opt out policy. + :ivar team_log.SmartSyncOptOutDetails.new_value: New Smart Sync opt out + policy. """ - _catch_all = 'other' - # Attribute is overwritten below the class definition - disabled = None - # Attribute is overwritten below the class definition - enabled = None - # Attribute is overwritten below the class definition - other = None + __slots__ = [ + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + ] - def is_disabled(self): - """ - Check if the union tag is ``disabled``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'disabled' + def __init__(self, + previous_value=None, + new_value=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value - def is_enabled(self): + @property + def previous_value(self): """ - Check if the union tag is ``enabled``. + Previous Smart Sync opt out policy. - :rtype: bool + :rtype: SmartSyncOptOutPolicy """ - return self._tag == 'enabled' + if self._previous_value_present: + return self._previous_value_value + else: + raise AttributeError("missing required field 'previous_value'") - def is_other(self): + @previous_value.setter + def previous_value(self, val): + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + @property + def new_value(self): """ - Check if the union tag is ``other``. + New Smart Sync opt out policy. - :rtype: bool + :rtype: SmartSyncOptOutPolicy """ - return self._tag == 'other' + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseEnabledPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SmartSyncOptOutDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseEnabledPolicy(%r, %r)' % (self._tag, self._value) + return 'SmartSyncOptOutDetails(previous_value={!r}, new_value={!r})'.format( + self._previous_value_value, + self._new_value_value, + ) -ShowcaseEnabledPolicy_validator = bv.Union(ShowcaseEnabledPolicy) +SmartSyncOptOutDetails_validator = bv.Struct(SmartSyncOptOutDetails) -class ShowcaseExternalSharingPolicy(bb.Union): +class SmartSyncOptOutPolicy(bb.Union): """ - Policy for controlling if team members can share Showcases externally. - 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. @@ -55155,27 +62901,27 @@ class ShowcaseExternalSharingPolicy(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - disabled = None + default = None # Attribute is overwritten below the class definition - enabled = None + opted_out = None # Attribute is overwritten below the class definition other = None - def is_disabled(self): + def is_default(self): """ - Check if the union tag is ``disabled``. + Check if the union tag is ``default``. :rtype: bool """ - return self._tag == 'disabled' + return self._tag == 'default' - def is_enabled(self): + def is_opted_out(self): """ - Check if the union tag is ``enabled``. + Check if the union tag is ``opted_out``. :rtype: bool """ - return self._tag == 'enabled' + return self._tag == 'opted_out' def is_other(self): """ @@ -55185,69 +62931,15 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseExternalSharingPolicy, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'ShowcaseExternalSharingPolicy(%r, %r)' % (self._tag, self._value) - -ShowcaseExternalSharingPolicy_validator = bv.Union(ShowcaseExternalSharingPolicy) - -class ShowcaseFileAddedDetails(bb.Struct): - """ - Added file to showcase. - - :ivar team_log.ShowcaseFileAddedDetails.event_uuid: Event unique identifier. - """ - - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - ] - - _has_required_fields = True - - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - - @property - def event_uuid(self): - """ - Event unique identifier. - - :rtype: str - """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") - - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True - - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseFileAddedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SmartSyncOptOutPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseFileAddedDetails(event_uuid={!r})'.format( - self._event_uuid_value, - ) + return 'SmartSyncOptOutPolicy(%r, %r)' % (self._tag, self._value) -ShowcaseFileAddedDetails_validator = bv.Struct(ShowcaseFileAddedDetails) +SmartSyncOptOutPolicy_validator = bv.Union(SmartSyncOptOutPolicy) -class ShowcaseFileAddedType(bb.Struct): +class SmartSyncOptOutType(bb.Struct): __slots__ = [ '_description_value', @@ -55284,207 +62976,188 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseFileAddedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SmartSyncOptOutType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseFileAddedType(description={!r})'.format( + return 'SmartSyncOptOutType(description={!r})'.format( self._description_value, ) -ShowcaseFileAddedType_validator = bv.Struct(ShowcaseFileAddedType) +SmartSyncOptOutType_validator = bv.Struct(SmartSyncOptOutType) -class ShowcaseFileDownloadDetails(bb.Struct): +class SpaceCapsType(bb.Union): """ - Downloaded file from showcase. + Space limit alert policy - :ivar team_log.ShowcaseFileDownloadDetails.event_uuid: Event unique - identifier. - :ivar team_log.ShowcaseFileDownloadDetails.download_type: Showcase download - type. + 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. """ - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_download_type_value', - '_download_type_present', - ] + _catch_all = 'other' + # Attribute is overwritten below the class definition + hard = None + # Attribute is overwritten below the class definition + off = None + # Attribute is overwritten below the class definition + soft = None + # Attribute is overwritten below the class definition + other = None - _has_required_fields = True + def is_hard(self): + """ + Check if the union tag is ``hard``. - def __init__(self, - event_uuid=None, - download_type=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._download_type_value = None - self._download_type_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if download_type is not None: - self.download_type = download_type + :rtype: bool + """ + return self._tag == 'hard' - @property - def event_uuid(self): + def is_off(self): """ - Event unique identifier. + Check if the union tag is ``off``. - :rtype: str + :rtype: bool """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") + return self._tag == 'off' - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + def is_soft(self): + """ + Check if the union tag is ``soft``. - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + :rtype: bool + """ + return self._tag == 'soft' - @property - def download_type(self): + def is_other(self): """ - Showcase download type. + Check if the union tag is ``other``. - :rtype: str + :rtype: bool """ - if self._download_type_present: - return self._download_type_value - else: - raise AttributeError("missing required field 'download_type'") + return self._tag == 'other' - @download_type.setter - def download_type(self, val): - val = self._download_type_validator.validate(val) - self._download_type_value = val - self._download_type_present = True + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SpaceCapsType, self)._process_custom_annotations(annotation_type, field_path, processor) - @download_type.deleter - def download_type(self): - self._download_type_value = None - self._download_type_present = False + def __repr__(self): + return 'SpaceCapsType(%r, %r)' % (self._tag, self._value) - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseFileDownloadDetails, self)._process_custom_annotations(annotation_type, processor) +SpaceCapsType_validator = bv.Union(SpaceCapsType) - def __repr__(self): - return 'ShowcaseFileDownloadDetails(event_uuid={!r}, download_type={!r})'.format( - self._event_uuid_value, - self._download_type_value, - ) +class SpaceLimitsStatus(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. + """ -ShowcaseFileDownloadDetails_validator = bv.Struct(ShowcaseFileDownloadDetails) + _catch_all = 'other' + # Attribute is overwritten below the class definition + within_quota = None + # Attribute is overwritten below the class definition + near_quota = None + # Attribute is overwritten below the class definition + over_quota = None + # Attribute is overwritten below the class definition + other = None -class ShowcaseFileDownloadType(bb.Struct): + def is_within_quota(self): + """ + Check if the union tag is ``within_quota``. - __slots__ = [ - '_description_value', - '_description_present', - ] + :rtype: bool + """ + return self._tag == 'within_quota' - _has_required_fields = True + def is_near_quota(self): + """ + Check if the union tag is ``near_quota``. - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + :rtype: bool + """ + return self._tag == 'near_quota' - @property - def description(self): + def is_over_quota(self): """ - :rtype: str + Check if the union tag is ``over_quota``. + + :rtype: bool """ - if self._description_present: - return self._description_value - else: - raise AttributeError("missing required field 'description'") + return self._tag == 'over_quota' - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + def is_other(self): + """ + Check if the union tag is ``other``. - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + :rtype: bool + """ + return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseFileDownloadType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SpaceLimitsStatus, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseFileDownloadType(description={!r})'.format( - self._description_value, - ) + return 'SpaceLimitsStatus(%r, %r)' % (self._tag, self._value) -ShowcaseFileDownloadType_validator = bv.Struct(ShowcaseFileDownloadType) +SpaceLimitsStatus_validator = bv.Union(SpaceLimitsStatus) -class ShowcaseFileRemovedDetails(bb.Struct): +class SsoAddCertDetails(bb.Struct): """ - Removed file from showcase. + Added X.509 certificate for SSO. - :ivar team_log.ShowcaseFileRemovedDetails.event_uuid: Event unique - identifier. + :ivar team_log.SsoAddCertDetails.certificate_details: SSO certificate + details. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_certificate_details_value', + '_certificate_details_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + certificate_details=None): + self._certificate_details_value = None + self._certificate_details_present = False + if certificate_details is not None: + self.certificate_details = certificate_details @property - def event_uuid(self): + def certificate_details(self): """ - Event unique identifier. + SSO certificate details. - :rtype: str + :rtype: Certificate """ - if self._event_uuid_present: - return self._event_uuid_value + if self._certificate_details_present: + return self._certificate_details_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'certificate_details'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @certificate_details.setter + def certificate_details(self, val): + self._certificate_details_validator.validate_type_only(val) + self._certificate_details_value = val + self._certificate_details_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @certificate_details.deleter + def certificate_details(self): + self._certificate_details_value = None + self._certificate_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseFileRemovedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoAddCertDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseFileRemovedDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SsoAddCertDetails(certificate_details={!r})'.format( + self._certificate_details_value, ) -ShowcaseFileRemovedDetails_validator = bv.Struct(ShowcaseFileRemovedDetails) +SsoAddCertDetails_validator = bv.Struct(SsoAddCertDetails) -class ShowcaseFileRemovedType(bb.Struct): +class SsoAddCertType(bb.Struct): __slots__ = [ '_description_value', @@ -55521,71 +63194,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseFileRemovedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoAddCertType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseFileRemovedType(description={!r})'.format( + return 'SsoAddCertType(description={!r})'.format( self._description_value, ) -ShowcaseFileRemovedType_validator = bv.Struct(ShowcaseFileRemovedType) +SsoAddCertType_validator = bv.Struct(SsoAddCertType) -class ShowcaseFileViewDetails(bb.Struct): +class SsoAddLoginUrlDetails(bb.Struct): """ - Viewed file in showcase. + Added sign-in URL for SSO. - :ivar team_log.ShowcaseFileViewDetails.event_uuid: Event unique identifier. + :ivar team_log.SsoAddLoginUrlDetails.new_value: New single sign-on login + URL. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_new_value_value', + '_new_value_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + new_value=None): + self._new_value_value = None + self._new_value_present = False + if new_value is not None: + self.new_value = new_value @property - def event_uuid(self): + def new_value(self): """ - Event unique identifier. + New single sign-on login URL. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'new_value'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @new_value.setter + def new_value(self, val): + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseFileViewDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoAddLoginUrlDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseFileViewDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SsoAddLoginUrlDetails(new_value={!r})'.format( + self._new_value_value, ) -ShowcaseFileViewDetails_validator = bv.Struct(ShowcaseFileViewDetails) +SsoAddLoginUrlDetails_validator = bv.Struct(SsoAddLoginUrlDetails) -class ShowcaseFileViewType(bb.Struct): +class SsoAddLoginUrlType(bb.Struct): __slots__ = [ '_description_value', @@ -55622,72 +63296,76 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseFileViewType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoAddLoginUrlType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseFileViewType(description={!r})'.format( + return 'SsoAddLoginUrlType(description={!r})'.format( self._description_value, ) -ShowcaseFileViewType_validator = bv.Struct(ShowcaseFileViewType) +SsoAddLoginUrlType_validator = bv.Struct(SsoAddLoginUrlType) -class ShowcasePermanentlyDeletedDetails(bb.Struct): +class SsoAddLogoutUrlDetails(bb.Struct): """ - Permanently deleted showcase. + Added sign-out URL for SSO. - :ivar team_log.ShowcasePermanentlyDeletedDetails.event_uuid: Event unique - identifier. + :ivar team_log.SsoAddLogoutUrlDetails.new_value: New single sign-on logout + URL. Might be missing due to historical data gap. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_new_value_value', + '_new_value_present', ] - _has_required_fields = True + _has_required_fields = False def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + new_value=None): + self._new_value_value = None + self._new_value_present = False + if new_value is not None: + self.new_value = new_value @property - def event_uuid(self): + def new_value(self): """ - Event unique identifier. + New single sign-on logout URL. Might be missing due to historical data + gap. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'event_uuid'") + return None - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @new_value.setter + def new_value(self, val): + if val is None: + del self.new_value + return + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcasePermanentlyDeletedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoAddLogoutUrlDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcasePermanentlyDeletedDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SsoAddLogoutUrlDetails(new_value={!r})'.format( + self._new_value_value, ) -ShowcasePermanentlyDeletedDetails_validator = bv.Struct(ShowcasePermanentlyDeletedDetails) +SsoAddLogoutUrlDetails_validator = bv.Struct(SsoAddLogoutUrlDetails) -class ShowcasePermanentlyDeletedType(bb.Struct): +class SsoAddLogoutUrlType(bb.Struct): __slots__ = [ '_description_value', @@ -55724,107 +63402,109 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcasePermanentlyDeletedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoAddLogoutUrlType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcasePermanentlyDeletedType(description={!r})'.format( + return 'SsoAddLogoutUrlType(description={!r})'.format( self._description_value, ) -ShowcasePermanentlyDeletedType_validator = bv.Struct(ShowcasePermanentlyDeletedType) +SsoAddLogoutUrlType_validator = bv.Struct(SsoAddLogoutUrlType) -class ShowcasePostCommentDetails(bb.Struct): +class SsoChangeCertDetails(bb.Struct): """ - Added showcase comment. + Changed X.509 certificate for SSO. - :ivar team_log.ShowcasePostCommentDetails.event_uuid: Event unique - identifier. - :ivar team_log.ShowcasePostCommentDetails.comment_text: Comment text. + :ivar team_log.SsoChangeCertDetails.previous_certificate_details: Previous + SSO certificate details. Might be missing due to historical data gap. + :ivar team_log.SsoChangeCertDetails.new_certificate_details: New SSO + certificate details. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_comment_text_value', - '_comment_text_present', + '_previous_certificate_details_value', + '_previous_certificate_details_present', + '_new_certificate_details_value', + '_new_certificate_details_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - comment_text=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._comment_text_value = None - self._comment_text_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if comment_text is not None: - self.comment_text = comment_text + new_certificate_details=None, + previous_certificate_details=None): + self._previous_certificate_details_value = None + self._previous_certificate_details_present = False + self._new_certificate_details_value = None + self._new_certificate_details_present = False + if previous_certificate_details is not None: + self.previous_certificate_details = previous_certificate_details + if new_certificate_details is not None: + self.new_certificate_details = new_certificate_details @property - def event_uuid(self): + def previous_certificate_details(self): """ - Event unique identifier. + Previous SSO certificate details. Might be missing due to historical + data gap. - :rtype: str + :rtype: Certificate """ - if self._event_uuid_present: - return self._event_uuid_value + if self._previous_certificate_details_present: + return self._previous_certificate_details_value else: - raise AttributeError("missing required field 'event_uuid'") + return None - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @previous_certificate_details.setter + def previous_certificate_details(self, val): + if val is None: + del self.previous_certificate_details + return + self._previous_certificate_details_validator.validate_type_only(val) + self._previous_certificate_details_value = val + self._previous_certificate_details_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @previous_certificate_details.deleter + def previous_certificate_details(self): + self._previous_certificate_details_value = None + self._previous_certificate_details_present = False @property - def comment_text(self): + def new_certificate_details(self): """ - Comment text. + New SSO certificate details. - :rtype: str + :rtype: Certificate """ - if self._comment_text_present: - return self._comment_text_value + if self._new_certificate_details_present: + return self._new_certificate_details_value else: - return None + raise AttributeError("missing required field 'new_certificate_details'") - @comment_text.setter - def comment_text(self, val): - if val is None: - del self.comment_text - return - val = self._comment_text_validator.validate(val) - self._comment_text_value = val - self._comment_text_present = True + @new_certificate_details.setter + def new_certificate_details(self, val): + self._new_certificate_details_validator.validate_type_only(val) + self._new_certificate_details_value = val + self._new_certificate_details_present = True - @comment_text.deleter - def comment_text(self): - self._comment_text_value = None - self._comment_text_present = False + @new_certificate_details.deleter + def new_certificate_details(self): + self._new_certificate_details_value = None + self._new_certificate_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcasePostCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoChangeCertDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcasePostCommentDetails(event_uuid={!r}, comment_text={!r})'.format( - self._event_uuid_value, - self._comment_text_value, + return 'SsoChangeCertDetails(new_certificate_details={!r}, previous_certificate_details={!r})'.format( + self._new_certificate_details_value, + self._previous_certificate_details_value, ) -ShowcasePostCommentDetails_validator = bv.Struct(ShowcasePostCommentDetails) +SsoChangeCertDetails_validator = bv.Struct(SsoChangeCertDetails) -class ShowcasePostCommentType(bb.Struct): +class SsoChangeCertType(bb.Struct): __slots__ = [ '_description_value', @@ -55861,72 +63541,105 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcasePostCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoChangeCertType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcasePostCommentType(description={!r})'.format( + return 'SsoChangeCertType(description={!r})'.format( self._description_value, ) -ShowcasePostCommentType_validator = bv.Struct(ShowcasePostCommentType) +SsoChangeCertType_validator = bv.Struct(SsoChangeCertType) -class ShowcaseRemoveMemberDetails(bb.Struct): +class SsoChangeLoginUrlDetails(bb.Struct): """ - Removed member from showcase. + Changed sign-in URL for SSO. - :ivar team_log.ShowcaseRemoveMemberDetails.event_uuid: Event unique - identifier. + :ivar team_log.SsoChangeLoginUrlDetails.previous_value: Previous single + sign-on login URL. + :ivar team_log.SsoChangeLoginUrlDetails.new_value: New single sign-on login + URL. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + previous_value=None, + new_value=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value @property - def event_uuid(self): + def previous_value(self): """ - Event unique identifier. + Previous single sign-on login URL. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._previous_value_present: + return self._previous_value_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'previous_value'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @previous_value.setter + def previous_value(self, val): + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + @property + def new_value(self): + """ + New single sign-on login URL. + + :rtype: str + """ + if self._new_value_present: + return self._new_value_value + else: + raise AttributeError("missing required field 'new_value'") + + @new_value.setter + def new_value(self, val): + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseRemoveMemberDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoChangeLoginUrlDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseRemoveMemberDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SsoChangeLoginUrlDetails(previous_value={!r}, new_value={!r})'.format( + self._previous_value_value, + self._new_value_value, ) -ShowcaseRemoveMemberDetails_validator = bv.Struct(ShowcaseRemoveMemberDetails) +SsoChangeLoginUrlDetails_validator = bv.Struct(SsoChangeLoginUrlDetails) -class ShowcaseRemoveMemberType(bb.Struct): +class SsoChangeLoginUrlType(bb.Struct): __slots__ = [ '_description_value', @@ -55963,71 +63676,113 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseRemoveMemberType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoChangeLoginUrlType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseRemoveMemberType(description={!r})'.format( + return 'SsoChangeLoginUrlType(description={!r})'.format( self._description_value, ) -ShowcaseRemoveMemberType_validator = bv.Struct(ShowcaseRemoveMemberType) +SsoChangeLoginUrlType_validator = bv.Struct(SsoChangeLoginUrlType) -class ShowcaseRenamedDetails(bb.Struct): +class SsoChangeLogoutUrlDetails(bb.Struct): """ - Renamed showcase. + Changed sign-out URL for SSO. - :ivar team_log.ShowcaseRenamedDetails.event_uuid: Event unique identifier. + :ivar team_log.SsoChangeLogoutUrlDetails.previous_value: Previous single + sign-on logout URL. Might be missing due to historical data gap. + :ivar team_log.SsoChangeLogoutUrlDetails.new_value: New single sign-on + logout URL. Might be missing due to historical data gap. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', ] - _has_required_fields = True + _has_required_fields = False def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + previous_value=None, + new_value=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value @property - def event_uuid(self): + def previous_value(self): """ - Event unique identifier. + Previous single sign-on logout URL. Might be missing due to historical + data gap. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._previous_value_present: + return self._previous_value_value else: - raise AttributeError("missing required field 'event_uuid'") + return None - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False + + @property + def new_value(self): + """ + New single sign-on logout URL. Might be missing due to historical data + gap. + + :rtype: str + """ + if self._new_value_present: + return self._new_value_value + else: + return None + + @new_value.setter + def new_value(self, val): + if val is None: + del self.new_value + return + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True + + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseRenamedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoChangeLogoutUrlDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseRenamedDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SsoChangeLogoutUrlDetails(previous_value={!r}, new_value={!r})'.format( + self._previous_value_value, + self._new_value_value, ) -ShowcaseRenamedDetails_validator = bv.Struct(ShowcaseRenamedDetails) +SsoChangeLogoutUrlDetails_validator = bv.Struct(SsoChangeLogoutUrlDetails) -class ShowcaseRenamedType(bb.Struct): +class SsoChangeLogoutUrlType(bb.Struct): __slots__ = [ '_description_value', @@ -56064,72 +63819,108 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseRenamedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoChangeLogoutUrlType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseRenamedType(description={!r})'.format( + return 'SsoChangeLogoutUrlType(description={!r})'.format( self._description_value, ) -ShowcaseRenamedType_validator = bv.Struct(ShowcaseRenamedType) +SsoChangeLogoutUrlType_validator = bv.Struct(SsoChangeLogoutUrlType) -class ShowcaseRequestAccessDetails(bb.Struct): +class SsoChangePolicyDetails(bb.Struct): """ - Requested access to showcase. + Changed single sign-on setting for team. - :ivar team_log.ShowcaseRequestAccessDetails.event_uuid: Event unique - identifier. + :ivar team_log.SsoChangePolicyDetails.new_value: New single sign-on policy. + :ivar team_log.SsoChangePolicyDetails.previous_value: Previous single + sign-on policy. Might be missing due to historical data gap. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def event_uuid(self): + def new_value(self): """ - Event unique identifier. + New single sign-on policy. - :rtype: str + :rtype: team_policies.SsoPolicy """ - if self._event_uuid_present: - return self._event_uuid_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'new_value'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False + + @property + def previous_value(self): + """ + Previous single sign-on policy. Might be missing due to historical data + gap. + + :rtype: team_policies.SsoPolicy + """ + if self._previous_value_present: + return self._previous_value_value + else: + return None + + @previous_value.setter + def previous_value(self, val): + if val is None: + del self.previous_value + return + self._previous_value_validator.validate_type_only(val) + self._previous_value_value = val + self._previous_value_present = True + + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseRequestAccessDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseRequestAccessDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SsoChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + self._new_value_value, + self._previous_value_value, ) -ShowcaseRequestAccessDetails_validator = bv.Struct(ShowcaseRequestAccessDetails) +SsoChangePolicyDetails_validator = bv.Struct(SsoChangePolicyDetails) -class ShowcaseRequestAccessType(bb.Struct): +class SsoChangePolicyType(bb.Struct): __slots__ = [ '_description_value', @@ -56166,107 +63957,105 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseRequestAccessType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseRequestAccessType(description={!r})'.format( + return 'SsoChangePolicyType(description={!r})'.format( self._description_value, ) -ShowcaseRequestAccessType_validator = bv.Struct(ShowcaseRequestAccessType) +SsoChangePolicyType_validator = bv.Struct(SsoChangePolicyType) -class ShowcaseResolveCommentDetails(bb.Struct): +class SsoChangeSamlIdentityModeDetails(bb.Struct): """ - Resolved showcase comment. + Changed SAML identity mode for SSO. - :ivar team_log.ShowcaseResolveCommentDetails.event_uuid: Event unique - identifier. - :ivar team_log.ShowcaseResolveCommentDetails.comment_text: Comment text. + :ivar team_log.SsoChangeSamlIdentityModeDetails.previous_value: Previous + single sign-on identity mode. + :ivar team_log.SsoChangeSamlIdentityModeDetails.new_value: New single + sign-on identity mode. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_comment_text_value', - '_comment_text_present', + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - comment_text=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._comment_text_value = None - self._comment_text_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if comment_text is not None: - self.comment_text = comment_text + previous_value=None, + new_value=None): + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value @property - def event_uuid(self): + def previous_value(self): """ - Event unique identifier. + Previous single sign-on identity mode. - :rtype: str + :rtype: int """ - if self._event_uuid_present: - return self._event_uuid_value + if self._previous_value_present: + return self._previous_value_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'previous_value'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @previous_value.setter + def previous_value(self, val): + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False @property - def comment_text(self): + def new_value(self): """ - Comment text. + New single sign-on identity mode. - :rtype: str + :rtype: int """ - if self._comment_text_present: - return self._comment_text_value + if self._new_value_present: + return self._new_value_value else: - return None + raise AttributeError("missing required field 'new_value'") - @comment_text.setter - def comment_text(self, val): - if val is None: - del self.comment_text - return - val = self._comment_text_validator.validate(val) - self._comment_text_value = val - self._comment_text_present = True + @new_value.setter + def new_value(self, val): + val = self._new_value_validator.validate(val) + self._new_value_value = val + self._new_value_present = True - @comment_text.deleter - def comment_text(self): - self._comment_text_value = None - self._comment_text_present = False + @new_value.deleter + def new_value(self): + self._new_value_value = None + self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseResolveCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoChangeSamlIdentityModeDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseResolveCommentDetails(event_uuid={!r}, comment_text={!r})'.format( - self._event_uuid_value, - self._comment_text_value, + return 'SsoChangeSamlIdentityModeDetails(previous_value={!r}, new_value={!r})'.format( + self._previous_value_value, + self._new_value_value, ) -ShowcaseResolveCommentDetails_validator = bv.Struct(ShowcaseResolveCommentDetails) +SsoChangeSamlIdentityModeDetails_validator = bv.Struct(SsoChangeSamlIdentityModeDetails) -class ShowcaseResolveCommentType(bb.Struct): +class SsoChangeSamlIdentityModeType(bb.Struct): __slots__ = [ '_description_value', @@ -56303,71 +64092,71 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseResolveCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoChangeSamlIdentityModeType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseResolveCommentType(description={!r})'.format( + return 'SsoChangeSamlIdentityModeType(description={!r})'.format( self._description_value, ) -ShowcaseResolveCommentType_validator = bv.Struct(ShowcaseResolveCommentType) +SsoChangeSamlIdentityModeType_validator = bv.Struct(SsoChangeSamlIdentityModeType) -class ShowcaseRestoredDetails(bb.Struct): +class SsoErrorDetails(bb.Struct): """ - Unarchived showcase. + Failed to sign in via SSO. - :ivar team_log.ShowcaseRestoredDetails.event_uuid: Event unique identifier. + :ivar team_log.SsoErrorDetails.error_details: Error details. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_error_details_value', + '_error_details_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + error_details=None): + self._error_details_value = None + self._error_details_present = False + if error_details is not None: + self.error_details = error_details @property - def event_uuid(self): + def error_details(self): """ - Event unique identifier. + Error details. - :rtype: str + :rtype: FailureDetailsLogInfo """ - if self._event_uuid_present: - return self._event_uuid_value + if self._error_details_present: + return self._error_details_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'error_details'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @error_details.setter + def error_details(self, val): + self._error_details_validator.validate_type_only(val) + self._error_details_value = val + self._error_details_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @error_details.deleter + def error_details(self): + self._error_details_value = None + self._error_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseRestoredDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoErrorDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseRestoredDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SsoErrorDetails(error_details={!r})'.format( + self._error_details_value, ) -ShowcaseRestoredDetails_validator = bv.Struct(ShowcaseRestoredDetails) +SsoErrorDetails_validator = bv.Struct(SsoErrorDetails) -class ShowcaseRestoredType(bb.Struct): +class SsoErrorType(bb.Struct): __slots__ = [ '_description_value', @@ -56404,72 +64193,38 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseRestoredType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoErrorType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseRestoredType(description={!r})'.format( + return 'SsoErrorType(description={!r})'.format( self._description_value, ) -ShowcaseRestoredType_validator = bv.Struct(ShowcaseRestoredType) +SsoErrorType_validator = bv.Struct(SsoErrorType) -class ShowcaseTrashedDeprecatedDetails(bb.Struct): +class SsoRemoveCertDetails(bb.Struct): """ - Deleted showcase (old version). - - :ivar team_log.ShowcaseTrashedDeprecatedDetails.event_uuid: Event unique - identifier. + Removed X.509 certificate for SSO. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', ] - _has_required_fields = True - - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - - @property - def event_uuid(self): - """ - Event unique identifier. - - :rtype: str - """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") - - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + _has_required_fields = False - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseTrashedDeprecatedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoRemoveCertDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseTrashedDeprecatedDetails(event_uuid={!r})'.format( - self._event_uuid_value, - ) + return 'SsoRemoveCertDetails()' -ShowcaseTrashedDeprecatedDetails_validator = bv.Struct(ShowcaseTrashedDeprecatedDetails) +SsoRemoveCertDetails_validator = bv.Struct(SsoRemoveCertDetails) -class ShowcaseTrashedDeprecatedType(bb.Struct): +class SsoRemoveCertType(bb.Struct): __slots__ = [ '_description_value', @@ -56506,71 +64261,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseTrashedDeprecatedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoRemoveCertType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseTrashedDeprecatedType(description={!r})'.format( + return 'SsoRemoveCertType(description={!r})'.format( self._description_value, ) -ShowcaseTrashedDeprecatedType_validator = bv.Struct(ShowcaseTrashedDeprecatedType) +SsoRemoveCertType_validator = bv.Struct(SsoRemoveCertType) -class ShowcaseTrashedDetails(bb.Struct): +class SsoRemoveLoginUrlDetails(bb.Struct): """ - Deleted showcase. + Removed sign-in URL for SSO. - :ivar team_log.ShowcaseTrashedDetails.event_uuid: Event unique identifier. + :ivar team_log.SsoRemoveLoginUrlDetails.previous_value: Previous single + sign-on login URL. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + previous_value=None): + self._previous_value_value = None + self._previous_value_present = False + if previous_value is not None: + self.previous_value = previous_value @property - def event_uuid(self): + def previous_value(self): """ - Event unique identifier. + Previous single sign-on login URL. :rtype: str """ - if self._event_uuid_present: - return self._event_uuid_value + if self._previous_value_present: + return self._previous_value_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'previous_value'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @previous_value.setter + def previous_value(self, val): + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseTrashedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoRemoveLoginUrlDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseTrashedDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'SsoRemoveLoginUrlDetails(previous_value={!r})'.format( + self._previous_value_value, ) -ShowcaseTrashedDetails_validator = bv.Struct(ShowcaseTrashedDetails) +SsoRemoveLoginUrlDetails_validator = bv.Struct(SsoRemoveLoginUrlDetails) -class ShowcaseTrashedType(bb.Struct): +class SsoRemoveLoginUrlType(bb.Struct): __slots__ = [ '_description_value', @@ -56607,107 +64363,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseTrashedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoRemoveLoginUrlType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseTrashedType(description={!r})'.format( + return 'SsoRemoveLoginUrlType(description={!r})'.format( self._description_value, ) -ShowcaseTrashedType_validator = bv.Struct(ShowcaseTrashedType) +SsoRemoveLoginUrlType_validator = bv.Struct(SsoRemoveLoginUrlType) -class ShowcaseUnresolveCommentDetails(bb.Struct): +class SsoRemoveLogoutUrlDetails(bb.Struct): """ - Unresolved showcase comment. + Removed sign-out URL for SSO. - :ivar team_log.ShowcaseUnresolveCommentDetails.event_uuid: Event unique - identifier. - :ivar team_log.ShowcaseUnresolveCommentDetails.comment_text: Comment text. + :ivar team_log.SsoRemoveLogoutUrlDetails.previous_value: Previous single + sign-on logout URL. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - '_comment_text_value', - '_comment_text_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - event_uuid=None, - comment_text=None): - self._event_uuid_value = None - self._event_uuid_present = False - self._comment_text_value = None - self._comment_text_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - if comment_text is not None: - self.comment_text = comment_text - - @property - def event_uuid(self): - """ - Event unique identifier. - - :rtype: str - """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") - - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True - - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + previous_value=None): + self._previous_value_value = None + self._previous_value_present = False + if previous_value is not None: + self.previous_value = previous_value @property - def comment_text(self): + def previous_value(self): """ - Comment text. + Previous single sign-on logout URL. :rtype: str """ - if self._comment_text_present: - return self._comment_text_value + if self._previous_value_present: + return self._previous_value_value else: - return None + raise AttributeError("missing required field 'previous_value'") - @comment_text.setter - def comment_text(self, val): - if val is None: - del self.comment_text - return - val = self._comment_text_validator.validate(val) - self._comment_text_value = val - self._comment_text_present = True + @previous_value.setter + def previous_value(self, val): + val = self._previous_value_validator.validate(val) + self._previous_value_value = val + self._previous_value_present = True - @comment_text.deleter - def comment_text(self): - self._comment_text_value = None - self._comment_text_present = False + @previous_value.deleter + def previous_value(self): + self._previous_value_value = None + self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseUnresolveCommentDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoRemoveLogoutUrlDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseUnresolveCommentDetails(event_uuid={!r}, comment_text={!r})'.format( - self._event_uuid_value, - self._comment_text_value, + return 'SsoRemoveLogoutUrlDetails(previous_value={!r})'.format( + self._previous_value_value, ) -ShowcaseUnresolveCommentDetails_validator = bv.Struct(ShowcaseUnresolveCommentDetails) +SsoRemoveLogoutUrlDetails_validator = bv.Struct(SsoRemoveLogoutUrlDetails) -class ShowcaseUnresolveCommentType(bb.Struct): +class SsoRemoveLogoutUrlType(bb.Struct): __slots__ = [ '_description_value', @@ -56744,173 +64465,159 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseUnresolveCommentType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoRemoveLogoutUrlType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseUnresolveCommentType(description={!r})'.format( + return 'SsoRemoveLogoutUrlType(description={!r})'.format( self._description_value, ) -ShowcaseUnresolveCommentType_validator = bv.Struct(ShowcaseUnresolveCommentType) +SsoRemoveLogoutUrlType_validator = bv.Struct(SsoRemoveLogoutUrlType) -class ShowcaseUntrashedDeprecatedDetails(bb.Struct): +class TeamActivityCreateReportDetails(bb.Struct): """ - Restored showcase (old version). + Created team activity report. - :ivar team_log.ShowcaseUntrashedDeprecatedDetails.event_uuid: Event unique - identifier. + :ivar team_log.TeamActivityCreateReportDetails.start_date: Report start + date. + :ivar team_log.TeamActivityCreateReportDetails.end_date: Report end date. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_start_date_value', + '_start_date_present', + '_end_date_value', + '_end_date_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + start_date=None, + end_date=None): + self._start_date_value = None + self._start_date_present = False + self._end_date_value = None + self._end_date_present = False + if start_date is not None: + self.start_date = start_date + if end_date is not None: + self.end_date = end_date @property - def event_uuid(self): + def start_date(self): """ - Event unique identifier. + Report start date. - :rtype: str + :rtype: datetime.datetime """ - if self._event_uuid_present: - return self._event_uuid_value + if self._start_date_present: + return self._start_date_value else: - raise AttributeError("missing required field 'event_uuid'") - - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True - - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseUntrashedDeprecatedDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'ShowcaseUntrashedDeprecatedDetails(event_uuid={!r})'.format( - self._event_uuid_value, - ) - -ShowcaseUntrashedDeprecatedDetails_validator = bv.Struct(ShowcaseUntrashedDeprecatedDetails) - -class ShowcaseUntrashedDeprecatedType(bb.Struct): - - __slots__ = [ - '_description_value', - '_description_present', - ] + raise AttributeError("missing required field 'start_date'") - _has_required_fields = True + @start_date.setter + def start_date(self, val): + val = self._start_date_validator.validate(val) + self._start_date_value = val + self._start_date_present = True - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + @start_date.deleter + def start_date(self): + self._start_date_value = None + self._start_date_present = False @property - def description(self): + def end_date(self): """ - :rtype: str + Report end date. + + :rtype: datetime.datetime """ - if self._description_present: - return self._description_value + if self._end_date_present: + return self._end_date_value else: - raise AttributeError("missing required field 'description'") + raise AttributeError("missing required field 'end_date'") - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @end_date.setter + def end_date(self, val): + val = self._end_date_validator.validate(val) + self._end_date_value = val + self._end_date_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @end_date.deleter + def end_date(self): + self._end_date_value = None + self._end_date_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseUntrashedDeprecatedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamActivityCreateReportDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseUntrashedDeprecatedType(description={!r})'.format( - self._description_value, + return 'TeamActivityCreateReportDetails(start_date={!r}, end_date={!r})'.format( + self._start_date_value, + self._end_date_value, ) -ShowcaseUntrashedDeprecatedType_validator = bv.Struct(ShowcaseUntrashedDeprecatedType) +TeamActivityCreateReportDetails_validator = bv.Struct(TeamActivityCreateReportDetails) -class ShowcaseUntrashedDetails(bb.Struct): +class TeamActivityCreateReportFailDetails(bb.Struct): """ - Restored showcase. + Couldn't generate team activity report. - :ivar team_log.ShowcaseUntrashedDetails.event_uuid: Event unique identifier. + :ivar team_log.TeamActivityCreateReportFailDetails.failure_reason: Failure + reason. """ __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', + '_failure_reason_value', + '_failure_reason_present', ] _has_required_fields = True def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid + failure_reason=None): + self._failure_reason_value = None + self._failure_reason_present = False + if failure_reason is not None: + self.failure_reason = failure_reason @property - def event_uuid(self): + def failure_reason(self): """ - Event unique identifier. + Failure reason. - :rtype: str + :rtype: team.TeamReportFailureReason """ - if self._event_uuid_present: - return self._event_uuid_value + if self._failure_reason_present: + return self._failure_reason_value else: - raise AttributeError("missing required field 'event_uuid'") + raise AttributeError("missing required field 'failure_reason'") - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True + @failure_reason.setter + def failure_reason(self, val): + self._failure_reason_validator.validate_type_only(val) + self._failure_reason_value = val + self._failure_reason_present = True - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False + @failure_reason.deleter + def failure_reason(self): + self._failure_reason_value = None + self._failure_reason_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseUntrashedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamActivityCreateReportFailDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseUntrashedDetails(event_uuid={!r})'.format( - self._event_uuid_value, + return 'TeamActivityCreateReportFailDetails(failure_reason={!r})'.format( + self._failure_reason_value, ) -ShowcaseUntrashedDetails_validator = bv.Struct(ShowcaseUntrashedDetails) +TeamActivityCreateReportFailDetails_validator = bv.Struct(TeamActivityCreateReportFailDetails) -class ShowcaseUntrashedType(bb.Struct): +class TeamActivityCreateReportFailType(bb.Struct): __slots__ = [ '_description_value', @@ -56947,71 +64654,17 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseUntrashedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamActivityCreateReportFailType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseUntrashedType(description={!r})'.format( + return 'TeamActivityCreateReportFailType(description={!r})'.format( self._description_value, ) -ShowcaseUntrashedType_validator = bv.Struct(ShowcaseUntrashedType) - -class ShowcaseViewDetails(bb.Struct): - """ - Viewed showcase. - - :ivar team_log.ShowcaseViewDetails.event_uuid: Event unique identifier. - """ - - __slots__ = [ - '_event_uuid_value', - '_event_uuid_present', - ] - - _has_required_fields = True - - def __init__(self, - event_uuid=None): - self._event_uuid_value = None - self._event_uuid_present = False - if event_uuid is not None: - self.event_uuid = event_uuid - - @property - def event_uuid(self): - """ - Event unique identifier. - - :rtype: str - """ - if self._event_uuid_present: - return self._event_uuid_value - else: - raise AttributeError("missing required field 'event_uuid'") - - @event_uuid.setter - def event_uuid(self, val): - val = self._event_uuid_validator.validate(val) - self._event_uuid_value = val - self._event_uuid_present = True - - @event_uuid.deleter - def event_uuid(self): - self._event_uuid_value = None - self._event_uuid_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseViewDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'ShowcaseViewDetails(event_uuid={!r})'.format( - self._event_uuid_value, - ) - -ShowcaseViewDetails_validator = bv.Struct(ShowcaseViewDetails) +TeamActivityCreateReportFailType_validator = bv.Struct(TeamActivityCreateReportFailType) -class ShowcaseViewType(bb.Struct): +class TeamActivityCreateReportType(bb.Struct): __slots__ = [ '_description_value', @@ -57048,160 +64701,459 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseViewType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamActivityCreateReportType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'ShowcaseViewType(description={!r})'.format( + return 'TeamActivityCreateReportType(description={!r})'.format( self._description_value, ) -ShowcaseViewType_validator = bv.Struct(ShowcaseViewType) +TeamActivityCreateReportType_validator = bv.Struct(TeamActivityCreateReportType) -class SignInAsSessionEndDetails(bb.Struct): +class TeamEvent(bb.Struct): """ - Ended admin sign-in-as session. + An audit log event. + + :ivar team_log.TeamEvent.timestamp: The Dropbox timestamp representing when + the action was taken. + :ivar team_log.TeamEvent.event_category: The category that this type of + action belongs to. + :ivar team_log.TeamEvent.actor: The entity who actually performed the + action. Might be missing due to historical data gap. + :ivar team_log.TeamEvent.origin: The origin from which the actor performed + the action including information about host, ip address, location, + session, etc. If the action was performed programmatically via the API + the origin represents the API client. + :ivar team_log.TeamEvent.involve_non_team_member: True if the action + involved a non team member either as the actor or as one of the affected + users. Might be missing due to historical data gap. + :ivar team_log.TeamEvent.context: The user or team on whose behalf the actor + performed the action. Might be missing due to historical data gap. + :ivar team_log.TeamEvent.participants: Zero or more users and/or groups that + are affected by the action. Note that this list doesn't include any + actors or users in context. + :ivar team_log.TeamEvent.assets: Zero or more content assets involved in the + action. Currently these include Dropbox files and folders but in the + future we might add other asset types such as Paper documents, folders, + projects, etc. + :ivar team_log.TeamEvent.event_type: The particular type of action taken. + :ivar team_log.TeamEvent.details: The variable event schema applicable to + this type of action, instantiated with respect to this particular + action. """ __slots__ = [ + '_timestamp_value', + '_timestamp_present', + '_event_category_value', + '_event_category_present', + '_actor_value', + '_actor_present', + '_origin_value', + '_origin_present', + '_involve_non_team_member_value', + '_involve_non_team_member_present', + '_context_value', + '_context_present', + '_participants_value', + '_participants_present', + '_assets_value', + '_assets_present', + '_event_type_value', + '_event_type_present', + '_details_value', + '_details_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + timestamp=None, + event_category=None, + event_type=None, + details=None, + actor=None, + origin=None, + involve_non_team_member=None, + context=None, + participants=None, + assets=None): + self._timestamp_value = None + self._timestamp_present = False + self._event_category_value = None + self._event_category_present = False + self._actor_value = None + self._actor_present = False + self._origin_value = None + self._origin_present = False + self._involve_non_team_member_value = None + self._involve_non_team_member_present = False + self._context_value = None + self._context_present = False + self._participants_value = None + self._participants_present = False + self._assets_value = None + self._assets_present = False + self._event_type_value = None + self._event_type_present = False + self._details_value = None + self._details_present = False + if timestamp is not None: + self.timestamp = timestamp + if event_category is not None: + self.event_category = event_category + if actor is not None: + self.actor = actor + if origin is not None: + self.origin = origin + if involve_non_team_member is not None: + self.involve_non_team_member = involve_non_team_member + if context is not None: + self.context = context + if participants is not None: + self.participants = participants + if assets is not None: + self.assets = assets + if event_type is not None: + self.event_type = event_type + if details is not None: + self.details = details - def _process_custom_annotations(self, annotation_type, processor): - super(SignInAsSessionEndDetails, self)._process_custom_annotations(annotation_type, processor) + @property + def timestamp(self): + """ + The Dropbox timestamp representing when the action was taken. - def __repr__(self): - return 'SignInAsSessionEndDetails()' + :rtype: datetime.datetime + """ + if self._timestamp_present: + return self._timestamp_value + else: + raise AttributeError("missing required field 'timestamp'") -SignInAsSessionEndDetails_validator = bv.Struct(SignInAsSessionEndDetails) + @timestamp.setter + def timestamp(self, val): + val = self._timestamp_validator.validate(val) + self._timestamp_value = val + self._timestamp_present = True -class SignInAsSessionEndType(bb.Struct): + @timestamp.deleter + def timestamp(self): + self._timestamp_value = None + self._timestamp_present = False - __slots__ = [ - '_description_value', - '_description_present', - ] + @property + def event_category(self): + """ + The category that this type of action belongs to. - _has_required_fields = True + :rtype: EventCategory + """ + if self._event_category_present: + return self._event_category_value + else: + raise AttributeError("missing required field 'event_category'") - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + @event_category.setter + def event_category(self, val): + self._event_category_validator.validate_type_only(val) + self._event_category_value = val + self._event_category_present = True + + @event_category.deleter + def event_category(self): + self._event_category_value = None + self._event_category_present = False @property - def description(self): + def actor(self): """ - :rtype: str + The entity who actually performed the action. Might be missing due to + historical data gap. + + :rtype: ActorLogInfo """ - if self._description_present: - return self._description_value + if self._actor_present: + return self._actor_value else: - raise AttributeError("missing required field 'description'") + return None - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + @actor.setter + def actor(self, val): + if val is None: + del self.actor + return + self._actor_validator.validate_type_only(val) + self._actor_value = val + self._actor_present = True - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + @actor.deleter + def actor(self): + self._actor_value = None + self._actor_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SignInAsSessionEndType, self)._process_custom_annotations(annotation_type, processor) + @property + def origin(self): + """ + The origin from which the actor performed the action including + information about host, ip address, location, session, etc. If the + action was performed programmatically via the API the origin represents + the API client. - def __repr__(self): - return 'SignInAsSessionEndType(description={!r})'.format( - self._description_value, - ) + :rtype: OriginLogInfo + """ + if self._origin_present: + return self._origin_value + else: + return None -SignInAsSessionEndType_validator = bv.Struct(SignInAsSessionEndType) + @origin.setter + def origin(self, val): + if val is None: + del self.origin + return + self._origin_validator.validate_type_only(val) + self._origin_value = val + self._origin_present = True -class SignInAsSessionStartDetails(bb.Struct): - """ - Started admin sign-in-as session. - """ + @origin.deleter + def origin(self): + self._origin_value = None + self._origin_present = False - __slots__ = [ - ] + @property + def involve_non_team_member(self): + """ + True if the action involved a non team member either as the actor or as + one of the affected users. Might be missing due to historical data gap. - _has_required_fields = False + :rtype: bool + """ + if self._involve_non_team_member_present: + return self._involve_non_team_member_value + else: + return None - def __init__(self): - pass + @involve_non_team_member.setter + def involve_non_team_member(self, val): + if val is None: + del self.involve_non_team_member + return + val = self._involve_non_team_member_validator.validate(val) + self._involve_non_team_member_value = val + self._involve_non_team_member_present = True + + @involve_non_team_member.deleter + def involve_non_team_member(self): + self._involve_non_team_member_value = None + self._involve_non_team_member_present = False + + @property + def context(self): + """ + The user or team on whose behalf the actor performed the action. Might + be missing due to historical data gap. + + :rtype: ContextLogInfo + """ + if self._context_present: + return self._context_value + else: + return None + + @context.setter + def context(self, val): + if val is None: + del self.context + return + self._context_validator.validate_type_only(val) + self._context_value = val + self._context_present = True + + @context.deleter + def context(self): + self._context_value = None + self._context_present = False + + @property + def participants(self): + """ + Zero or more users and/or groups that are affected by the action. Note + that this list doesn't include any actors or users in context. + + :rtype: list of [ParticipantLogInfo] + """ + if self._participants_present: + return self._participants_value + else: + return None - def _process_custom_annotations(self, annotation_type, processor): - super(SignInAsSessionStartDetails, self)._process_custom_annotations(annotation_type, processor) + @participants.setter + def participants(self, val): + if val is None: + del self.participants + return + val = self._participants_validator.validate(val) + self._participants_value = val + self._participants_present = True + + @participants.deleter + def participants(self): + self._participants_value = None + self._participants_present = False + + @property + def assets(self): + """ + Zero or more content assets involved in the action. Currently these + include Dropbox files and folders but in the future we might add other + asset types such as Paper documents, folders, projects, etc. + + :rtype: list of [AssetLogInfo] + """ + if self._assets_present: + return self._assets_value + else: + return None + + @assets.setter + def assets(self, val): + if val is None: + del self.assets + return + val = self._assets_validator.validate(val) + self._assets_value = val + self._assets_present = True + + @assets.deleter + def assets(self): + self._assets_value = None + self._assets_present = False + + @property + def event_type(self): + """ + The particular type of action taken. + + :rtype: EventType + """ + if self._event_type_present: + return self._event_type_value + else: + raise AttributeError("missing required field 'event_type'") + + @event_type.setter + def event_type(self, val): + self._event_type_validator.validate_type_only(val) + self._event_type_value = val + self._event_type_present = True + + @event_type.deleter + def event_type(self): + self._event_type_value = None + self._event_type_present = False + + @property + def details(self): + """ + The variable event schema applicable to this type of action, + instantiated with respect to this particular action. + + :rtype: EventDetails + """ + if self._details_present: + return self._details_value + else: + raise AttributeError("missing required field 'details'") + + @details.setter + def details(self, val): + self._details_validator.validate_type_only(val) + self._details_value = val + self._details_present = True + + @details.deleter + def details(self): + self._details_value = None + self._details_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamEvent, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SignInAsSessionStartDetails()' + return 'TeamEvent(timestamp={!r}, event_category={!r}, event_type={!r}, details={!r}, actor={!r}, origin={!r}, involve_non_team_member={!r}, context={!r}, participants={!r}, assets={!r})'.format( + self._timestamp_value, + self._event_category_value, + self._event_type_value, + self._details_value, + self._actor_value, + self._origin_value, + self._involve_non_team_member_value, + self._context_value, + self._participants_value, + self._assets_value, + ) -SignInAsSessionStartDetails_validator = bv.Struct(SignInAsSessionStartDetails) +TeamEvent_validator = bv.Struct(TeamEvent) -class SignInAsSessionStartType(bb.Struct): +class TeamExtensionsPolicy(bb.Union): + """ + Policy for controlling whether App Integrations are enabled for the team. - __slots__ = [ - '_description_value', - '_description_present', - ] + 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. + """ - _has_required_fields = True + _catch_all = 'other' + # Attribute is overwritten below the class definition + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + def is_disabled(self): + """ + Check if the union tag is ``disabled``. - @property - def description(self): + :rtype: bool """ - :rtype: str + return self._tag == 'disabled' + + def is_enabled(self): """ - if self._description_present: - return self._description_value - else: - raise AttributeError("missing required field 'description'") + Check if the union tag is ``enabled``. - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + :rtype: bool + """ + return self._tag == 'enabled' - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SignInAsSessionStartType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamExtensionsPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SignInAsSessionStartType(description={!r})'.format( - self._description_value, - ) + return 'TeamExtensionsPolicy(%r, %r)' % (self._tag, self._value) -SignInAsSessionStartType_validator = bv.Struct(SignInAsSessionStartType) +TeamExtensionsPolicy_validator = bv.Union(TeamExtensionsPolicy) -class SmartSyncChangePolicyDetails(bb.Struct): +class TeamExtensionsPolicyChangedDetails(bb.Struct): """ - Changed default Smart Sync setting for team members. + Changed App Integrations setting for team. - :ivar team_log.SmartSyncChangePolicyDetails.new_value: New smart sync + :ivar team_log.TeamExtensionsPolicyChangedDetails.new_value: New Extensions policy. - :ivar team_log.SmartSyncChangePolicyDetails.previous_value: Previous smart - sync policy. + :ivar team_log.TeamExtensionsPolicyChangedDetails.previous_value: Previous + Extensions policy. """ __slots__ = [ @@ -57211,7 +65163,7 @@ class SmartSyncChangePolicyDetails(bb.Struct): '_previous_value_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, new_value=None, @@ -57228,20 +65180,17 @@ def __init__(self, @property def new_value(self): """ - New smart sync policy. + New Extensions policy. - :rtype: team_policies.SmartSyncPolicy + :rtype: TeamExtensionsPolicy """ if self._new_value_present: return self._new_value_value else: - return None + raise AttributeError("missing required field 'new_value'") @new_value.setter def new_value(self, val): - if val is None: - del self.new_value - return self._new_value_validator.validate_type_only(val) self._new_value_value = val self._new_value_present = True @@ -57254,20 +65203,17 @@ def new_value(self): @property def previous_value(self): """ - Previous smart sync policy. + Previous Extensions policy. - :rtype: team_policies.SmartSyncPolicy + :rtype: TeamExtensionsPolicy """ if self._previous_value_present: return self._previous_value_value else: - return None + raise AttributeError("missing required field 'previous_value'") @previous_value.setter def previous_value(self, val): - if val is None: - del self.previous_value - return self._previous_value_validator.validate_type_only(val) self._previous_value_value = val self._previous_value_present = True @@ -57277,18 +65223,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SmartSyncChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamExtensionsPolicyChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SmartSyncChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( + return 'TeamExtensionsPolicyChangedDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, self._previous_value_value, ) -SmartSyncChangePolicyDetails_validator = bv.Struct(SmartSyncChangePolicyDetails) +TeamExtensionsPolicyChangedDetails_validator = bv.Struct(TeamExtensionsPolicyChangedDetails) -class SmartSyncChangePolicyType(bb.Struct): +class TeamExtensionsPolicyChangedType(bb.Struct): __slots__ = [ '_description_value', @@ -57325,129 +65271,88 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SmartSyncChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamExtensionsPolicyChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SmartSyncChangePolicyType(description={!r})'.format( + return 'TeamExtensionsPolicyChangedType(description={!r})'.format( self._description_value, ) -SmartSyncChangePolicyType_validator = bv.Struct(SmartSyncChangePolicyType) +TeamExtensionsPolicyChangedType_validator = bv.Struct(TeamExtensionsPolicyChangedType) -class SmartSyncCreateAdminPrivilegeReportDetails(bb.Struct): - """ - Created Smart Sync non-admin devices report. +class TeamFolderChangeStatusDetails(bb.Struct): """ + Changed archival status of team folder. - __slots__ = [ - ] - - _has_required_fields = False - - def __init__(self): - pass - - def _process_custom_annotations(self, annotation_type, processor): - super(SmartSyncCreateAdminPrivilegeReportDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SmartSyncCreateAdminPrivilegeReportDetails()' - -SmartSyncCreateAdminPrivilegeReportDetails_validator = bv.Struct(SmartSyncCreateAdminPrivilegeReportDetails) - -class SmartSyncCreateAdminPrivilegeReportType(bb.Struct): + :ivar team_log.TeamFolderChangeStatusDetails.new_value: New team folder + status. + :ivar team_log.TeamFolderChangeStatusDetails.previous_value: Previous team + folder status. Might be missing due to historical data gap. + """ __slots__ = [ - '_description_value', - '_description_present', + '_new_value_value', + '_new_value_present', + '_previous_value_value', + '_previous_value_present', ] _has_required_fields = True def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + new_value=None, + previous_value=None): + self._new_value_value = None + self._new_value_present = False + self._previous_value_value = None + self._previous_value_present = False + if new_value is not None: + self.new_value = new_value + if previous_value is not None: + self.previous_value = previous_value @property - def description(self): + def new_value(self): """ - :rtype: str + New team folder status. + + :rtype: team.TeamFolderStatus """ - if self._description_present: - return self._description_value + if self._new_value_present: + return self._new_value_value else: - raise AttributeError("missing required field 'description'") - - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True - - @description.deleter - def description(self): - self._description_value = None - self._description_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(SmartSyncCreateAdminPrivilegeReportType, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SmartSyncCreateAdminPrivilegeReportType(description={!r})'.format( - self._description_value, - ) - -SmartSyncCreateAdminPrivilegeReportType_validator = bv.Struct(SmartSyncCreateAdminPrivilegeReportType) - -class SmartSyncNotOptOutDetails(bb.Struct): - """ - Opted team into Smart Sync. - - :ivar team_log.SmartSyncNotOptOutDetails.previous_value: Previous Smart Sync - opt out policy. - :ivar team_log.SmartSyncNotOptOutDetails.new_value: New Smart Sync opt out - policy. - """ - - __slots__ = [ - '_previous_value_value', - '_previous_value_present', - '_new_value_value', - '_new_value_present', - ] + raise AttributeError("missing required field 'new_value'") - _has_required_fields = True + @new_value.setter + def new_value(self, val): + self._new_value_validator.validate_type_only(val) + self._new_value_value = val + self._new_value_present = True - def __init__(self, - previous_value=None, - new_value=None): - self._previous_value_value = None - self._previous_value_present = False + @new_value.deleter + def new_value(self): self._new_value_value = None self._new_value_present = False - if previous_value is not None: - self.previous_value = previous_value - if new_value is not None: - self.new_value = new_value @property def previous_value(self): """ - Previous Smart Sync opt out policy. + Previous team folder status. Might be missing due to historical data + gap. - :rtype: team_log.SmartSyncOptOutPolicy + :rtype: team.TeamFolderStatus """ if self._previous_value_present: return self._previous_value_value else: - raise AttributeError("missing required field 'previous_value'") + return None @previous_value.setter def previous_value(self, val): + if val is None: + del self.previous_value + return self._previous_value_validator.validate_type_only(val) self._previous_value_value = val self._previous_value_present = True @@ -57457,41 +65362,18 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - @property - def new_value(self): - """ - New Smart Sync opt out policy. - - :rtype: team_log.SmartSyncOptOutPolicy - """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") - - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True - - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(SmartSyncNotOptOutDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderChangeStatusDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SmartSyncNotOptOutDetails(previous_value={!r}, new_value={!r})'.format( - self._previous_value_value, + return 'TeamFolderChangeStatusDetails(new_value={!r}, previous_value={!r})'.format( self._new_value_value, + self._previous_value_value, ) -SmartSyncNotOptOutDetails_validator = bv.Struct(SmartSyncNotOptOutDetails) +TeamFolderChangeStatusDetails_validator = bv.Struct(TeamFolderChangeStatusDetails) -class SmartSyncNotOptOutType(bb.Struct): +class TeamFolderChangeStatusType(bb.Struct): __slots__ = [ '_description_value', @@ -57528,152 +65410,38 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SmartSyncNotOptOutType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderChangeStatusType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SmartSyncNotOptOutType(description={!r})'.format( + return 'TeamFolderChangeStatusType(description={!r})'.format( self._description_value, ) -SmartSyncNotOptOutType_validator = bv.Struct(SmartSyncNotOptOutType) +TeamFolderChangeStatusType_validator = bv.Struct(TeamFolderChangeStatusType) -class SmartSyncOptOutDetails(bb.Struct): +class TeamFolderCreateDetails(bb.Struct): """ - Opted team out of Smart Sync. - - :ivar team_log.SmartSyncOptOutDetails.previous_value: Previous Smart Sync - opt out policy. - :ivar team_log.SmartSyncOptOutDetails.new_value: New Smart Sync opt out - policy. + Created team folder in active status. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', - '_new_value_value', - '_new_value_present', ] - _has_required_fields = True - - def __init__(self, - previous_value=None, - new_value=None): - self._previous_value_value = None - self._previous_value_present = False - self._new_value_value = None - self._new_value_present = False - if previous_value is not None: - self.previous_value = previous_value - if new_value is not None: - self.new_value = new_value - - @property - def previous_value(self): - """ - Previous Smart Sync opt out policy. - - :rtype: team_log.SmartSyncOptOutPolicy - """ - if self._previous_value_present: - return self._previous_value_value - else: - raise AttributeError("missing required field 'previous_value'") - - @previous_value.setter - def previous_value(self, val): - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True - - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False - - @property - def new_value(self): - """ - New Smart Sync opt out policy. - - :rtype: team_log.SmartSyncOptOutPolicy - """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") - - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True - - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False - - def _process_custom_annotations(self, annotation_type, processor): - super(SmartSyncOptOutDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SmartSyncOptOutDetails(previous_value={!r}, new_value={!r})'.format( - self._previous_value_value, - self._new_value_value, - ) - -SmartSyncOptOutDetails_validator = bv.Struct(SmartSyncOptOutDetails) - -class SmartSyncOptOutPolicy(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 - default = None - # Attribute is overwritten below the class definition - opted_out = None - # Attribute is overwritten below the class definition - other = None - - def is_default(self): - """ - Check if the union tag is ``default``. - - :rtype: bool - """ - return self._tag == 'default' - - def is_opted_out(self): - """ - Check if the union tag is ``opted_out``. - - :rtype: bool - """ - return self._tag == 'opted_out' - - def is_other(self): - """ - Check if the union tag is ``other``. + _has_required_fields = False - :rtype: bool - """ - return self._tag == 'other' + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(SmartSyncOptOutPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderCreateDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SmartSyncOptOutPolicy(%r, %r)' % (self._tag, self._value) + return 'TeamFolderCreateDetails()' -SmartSyncOptOutPolicy_validator = bv.Union(SmartSyncOptOutPolicy) +TeamFolderCreateDetails_validator = bv.Struct(TeamFolderCreateDetails) -class SmartSyncOptOutType(bb.Struct): +class TeamFolderCreateType(bb.Struct): __slots__ = [ '_description_value', @@ -57710,188 +65478,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SmartSyncOptOutType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderCreateType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SmartSyncOptOutType(description={!r})'.format( + return 'TeamFolderCreateType(description={!r})'.format( self._description_value, ) -SmartSyncOptOutType_validator = bv.Struct(SmartSyncOptOutType) - -class SpaceCapsType(bb.Union): - """ - Space limit alert policy - - 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 - hard = None - # Attribute is overwritten below the class definition - off = None - # Attribute is overwritten below the class definition - soft = None - # Attribute is overwritten below the class definition - other = None - - def is_hard(self): - """ - Check if the union tag is ``hard``. - - :rtype: bool - """ - return self._tag == 'hard' - - def is_off(self): - """ - Check if the union tag is ``off``. - - :rtype: bool - """ - return self._tag == 'off' - - def is_soft(self): - """ - Check if the union tag is ``soft``. - - :rtype: bool - """ - return self._tag == 'soft' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(SpaceCapsType, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SpaceCapsType(%r, %r)' % (self._tag, self._value) - -SpaceCapsType_validator = bv.Union(SpaceCapsType) - -class SpaceLimitsStatus(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 - within_quota = None - # Attribute is overwritten below the class definition - near_quota = None - # Attribute is overwritten below the class definition - over_quota = None - # Attribute is overwritten below the class definition - other = None - - def is_within_quota(self): - """ - Check if the union tag is ``within_quota``. - - :rtype: bool - """ - return self._tag == 'within_quota' - - def is_near_quota(self): - """ - Check if the union tag is ``near_quota``. - - :rtype: bool - """ - return self._tag == 'near_quota' - - def is_over_quota(self): - """ - Check if the union tag is ``over_quota``. - - :rtype: bool - """ - return self._tag == 'over_quota' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def _process_custom_annotations(self, annotation_type, processor): - super(SpaceLimitsStatus, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SpaceLimitsStatus(%r, %r)' % (self._tag, self._value) - -SpaceLimitsStatus_validator = bv.Union(SpaceLimitsStatus) +TeamFolderCreateType_validator = bv.Struct(TeamFolderCreateType) -class SsoAddCertDetails(bb.Struct): +class TeamFolderDowngradeDetails(bb.Struct): """ - Added X.509 certificate for SSO. + Downgraded team folder to regular shared folder. - :ivar team_log.SsoAddCertDetails.certificate_details: SSO certificate - details. + :ivar team_log.TeamFolderDowngradeDetails.target_asset_index: Target asset + position in the Assets list. """ __slots__ = [ - '_certificate_details_value', - '_certificate_details_present', + '_target_asset_index_value', + '_target_asset_index_present', ] _has_required_fields = True def __init__(self, - certificate_details=None): - self._certificate_details_value = None - self._certificate_details_present = False - if certificate_details is not None: - self.certificate_details = certificate_details + target_asset_index=None): + self._target_asset_index_value = None + self._target_asset_index_present = False + if target_asset_index is not None: + self.target_asset_index = target_asset_index @property - def certificate_details(self): + def target_asset_index(self): """ - SSO certificate details. + Target asset position in the Assets list. - :rtype: team_log.Certificate + :rtype: int """ - if self._certificate_details_present: - return self._certificate_details_value + if self._target_asset_index_present: + return self._target_asset_index_value else: - raise AttributeError("missing required field 'certificate_details'") + raise AttributeError("missing required field 'target_asset_index'") - @certificate_details.setter - def certificate_details(self, val): - self._certificate_details_validator.validate_type_only(val) - self._certificate_details_value = val - self._certificate_details_present = True + @target_asset_index.setter + def target_asset_index(self, val): + val = self._target_asset_index_validator.validate(val) + self._target_asset_index_value = val + self._target_asset_index_present = True - @certificate_details.deleter - def certificate_details(self): - self._certificate_details_value = None - self._certificate_details_present = False + @target_asset_index.deleter + def target_asset_index(self): + self._target_asset_index_value = None + self._target_asset_index_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoAddCertDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderDowngradeDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoAddCertDetails(certificate_details={!r})'.format( - self._certificate_details_value, + return 'TeamFolderDowngradeDetails(target_asset_index={!r})'.format( + self._target_asset_index_value, ) -SsoAddCertDetails_validator = bv.Struct(SsoAddCertDetails) +TeamFolderDowngradeDetails_validator = bv.Struct(TeamFolderDowngradeDetails) -class SsoAddCertType(bb.Struct): +class TeamFolderDowngradeType(bb.Struct): __slots__ = [ '_description_value', @@ -57928,72 +65580,38 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoAddCertType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderDowngradeType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoAddCertType(description={!r})'.format( + return 'TeamFolderDowngradeType(description={!r})'.format( self._description_value, ) -SsoAddCertType_validator = bv.Struct(SsoAddCertType) +TeamFolderDowngradeType_validator = bv.Struct(TeamFolderDowngradeType) -class SsoAddLoginUrlDetails(bb.Struct): +class TeamFolderPermanentlyDeleteDetails(bb.Struct): """ - Added sign-in URL for SSO. - - :ivar team_log.SsoAddLoginUrlDetails.new_value: New single sign-on login - URL. + Permanently deleted archived team folder. """ __slots__ = [ - '_new_value_value', - '_new_value_present', ] - _has_required_fields = True - - def __init__(self, - new_value=None): - self._new_value_value = None - self._new_value_present = False - if new_value is not None: - self.new_value = new_value - - @property - def new_value(self): - """ - New single sign-on login URL. - - :rtype: str - """ - if self._new_value_present: - return self._new_value_value - else: - raise AttributeError("missing required field 'new_value'") - - @new_value.setter - def new_value(self, val): - val = self._new_value_validator.validate(val) - self._new_value_value = val - self._new_value_present = True + _has_required_fields = False - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + def __init__(self): + pass - def _process_custom_annotations(self, annotation_type, processor): - super(SsoAddLoginUrlDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderPermanentlyDeleteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoAddLoginUrlDetails(new_value={!r})'.format( - self._new_value_value, - ) + return 'TeamFolderPermanentlyDeleteDetails()' -SsoAddLoginUrlDetails_validator = bv.Struct(SsoAddLoginUrlDetails) +TeamFolderPermanentlyDeleteDetails_validator = bv.Struct(TeamFolderPermanentlyDeleteDetails) -class SsoAddLoginUrlType(bb.Struct): +class TeamFolderPermanentlyDeleteType(bb.Struct): __slots__ = [ '_description_value', @@ -58030,76 +65648,104 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoAddLoginUrlType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderPermanentlyDeleteType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoAddLoginUrlType(description={!r})'.format( + return 'TeamFolderPermanentlyDeleteType(description={!r})'.format( self._description_value, ) -SsoAddLoginUrlType_validator = bv.Struct(SsoAddLoginUrlType) +TeamFolderPermanentlyDeleteType_validator = bv.Struct(TeamFolderPermanentlyDeleteType) -class SsoAddLogoutUrlDetails(bb.Struct): +class TeamFolderRenameDetails(bb.Struct): """ - Added sign-out URL for SSO. + Renamed active/archived team folder. - :ivar team_log.SsoAddLogoutUrlDetails.new_value: New single sign-on logout - URL. Might be missing due to historical data gap. + :ivar team_log.TeamFolderRenameDetails.previous_folder_name: Previous folder + name. + :ivar team_log.TeamFolderRenameDetails.new_folder_name: New folder name. """ __slots__ = [ - '_new_value_value', - '_new_value_present', + '_previous_folder_name_value', + '_previous_folder_name_present', + '_new_folder_name_value', + '_new_folder_name_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - new_value=None): - self._new_value_value = None - self._new_value_present = False - if new_value is not None: - self.new_value = new_value + previous_folder_name=None, + new_folder_name=None): + self._previous_folder_name_value = None + self._previous_folder_name_present = False + self._new_folder_name_value = None + self._new_folder_name_present = False + if previous_folder_name is not None: + self.previous_folder_name = previous_folder_name + if new_folder_name is not None: + self.new_folder_name = new_folder_name @property - def new_value(self): + def previous_folder_name(self): """ - New single sign-on logout URL. Might be missing due to historical data - gap. + Previous folder name. :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._previous_folder_name_present: + return self._previous_folder_name_value else: - return None + raise AttributeError("missing required field 'previous_folder_name'") - @new_value.setter - def new_value(self, val): - if val is None: - del self.new_value - return - val = self._new_value_validator.validate(val) - self._new_value_value = val - self._new_value_present = True + @previous_folder_name.setter + def previous_folder_name(self, val): + val = self._previous_folder_name_validator.validate(val) + self._previous_folder_name_value = val + self._previous_folder_name_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @previous_folder_name.deleter + def previous_folder_name(self): + self._previous_folder_name_value = None + self._previous_folder_name_present = False + + @property + def new_folder_name(self): + """ + New folder name. + + :rtype: str + """ + if self._new_folder_name_present: + return self._new_folder_name_value + else: + raise AttributeError("missing required field 'new_folder_name'") + + @new_folder_name.setter + def new_folder_name(self, val): + val = self._new_folder_name_validator.validate(val) + self._new_folder_name_value = val + self._new_folder_name_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(SsoAddLogoutUrlDetails, self)._process_custom_annotations(annotation_type, processor) + @new_folder_name.deleter + def new_folder_name(self): + self._new_folder_name_value = None + self._new_folder_name_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderRenameDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoAddLogoutUrlDetails(new_value={!r})'.format( - self._new_value_value, + return 'TeamFolderRenameDetails(previous_folder_name={!r}, new_folder_name={!r})'.format( + self._previous_folder_name_value, + self._new_folder_name_value, ) -SsoAddLogoutUrlDetails_validator = bv.Struct(SsoAddLogoutUrlDetails) +TeamFolderRenameDetails_validator = bv.Struct(TeamFolderRenameDetails) -class SsoAddLogoutUrlType(bb.Struct): +class TeamFolderRenameType(bb.Struct): __slots__ = [ '_description_value', @@ -58136,109 +65782,249 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoAddLogoutUrlType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamFolderRenameType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoAddLogoutUrlType(description={!r})'.format( + return 'TeamFolderRenameType(description={!r})'.format( self._description_value, ) -SsoAddLogoutUrlType_validator = bv.Struct(SsoAddLogoutUrlType) +TeamFolderRenameType_validator = bv.Struct(TeamFolderRenameType) -class SsoChangeCertDetails(bb.Struct): +class TeamLinkedAppLogInfo(AppLogInfo): + """ + Team linked app """ - Changed X.509 certificate for SSO. - :ivar team_log.SsoChangeCertDetails.previous_certificate_details: Previous - SSO certificate details. Might be missing due to historical data gap. - :ivar team_log.SsoChangeCertDetails.new_certificate_details: New SSO - certificate details. + __slots__ = [ + ] + + _has_required_fields = False + + def __init__(self, + app_id=None, + display_name=None): + super(TeamLinkedAppLogInfo, self).__init__(app_id, + display_name) + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamLinkedAppLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamLinkedAppLogInfo(app_id={!r}, display_name={!r})'.format( + self._app_id_value, + self._display_name_value, + ) + +TeamLinkedAppLogInfo_validator = bv.Struct(TeamLinkedAppLogInfo) + +class TeamMemberLogInfo(UserLogInfo): + """ + Team member's logged information. + + :ivar team_log.TeamMemberLogInfo.team_member_id: Team member ID. Might be + missing due to historical data gap. + :ivar team_log.TeamMemberLogInfo.member_external_id: Team member external + ID. """ __slots__ = [ - '_previous_certificate_details_value', - '_previous_certificate_details_present', - '_new_certificate_details_value', - '_new_certificate_details_present', + '_team_member_id_value', + '_team_member_id_present', + '_member_external_id_value', + '_member_external_id_present', ] - _has_required_fields = True + _has_required_fields = False def __init__(self, - new_certificate_details=None, - previous_certificate_details=None): - self._previous_certificate_details_value = None - self._previous_certificate_details_present = False - self._new_certificate_details_value = None - self._new_certificate_details_present = False - if previous_certificate_details is not None: - self.previous_certificate_details = previous_certificate_details - if new_certificate_details is not None: - self.new_certificate_details = new_certificate_details + account_id=None, + display_name=None, + email=None, + team_member_id=None, + member_external_id=None): + super(TeamMemberLogInfo, self).__init__(account_id, + display_name, + email) + self._team_member_id_value = None + self._team_member_id_present = False + self._member_external_id_value = None + self._member_external_id_present = False + if team_member_id is not None: + self.team_member_id = team_member_id + if member_external_id is not None: + self.member_external_id = member_external_id @property - def previous_certificate_details(self): + def team_member_id(self): """ - Previous SSO certificate details. Might be missing due to historical - data gap. + Team member ID. Might be missing due to historical data gap. - :rtype: team_log.Certificate + :rtype: str """ - if self._previous_certificate_details_present: - return self._previous_certificate_details_value + if self._team_member_id_present: + return self._team_member_id_value else: return None - @previous_certificate_details.setter - def previous_certificate_details(self, val): + @team_member_id.setter + def team_member_id(self, val): if val is None: - del self.previous_certificate_details + del self.team_member_id return - self._previous_certificate_details_validator.validate_type_only(val) - self._previous_certificate_details_value = val - self._previous_certificate_details_present = True + val = self._team_member_id_validator.validate(val) + self._team_member_id_value = val + self._team_member_id_present = True - @previous_certificate_details.deleter - def previous_certificate_details(self): - self._previous_certificate_details_value = None - self._previous_certificate_details_present = False + @team_member_id.deleter + def team_member_id(self): + self._team_member_id_value = None + self._team_member_id_present = False @property - def new_certificate_details(self): + def member_external_id(self): """ - New SSO certificate details. + Team member external ID. - :rtype: team_log.Certificate + :rtype: str """ - if self._new_certificate_details_present: - return self._new_certificate_details_value + if self._member_external_id_present: + return self._member_external_id_value else: - raise AttributeError("missing required field 'new_certificate_details'") + return None - @new_certificate_details.setter - def new_certificate_details(self, val): - self._new_certificate_details_validator.validate_type_only(val) - self._new_certificate_details_value = val - self._new_certificate_details_present = True + @member_external_id.setter + def member_external_id(self, val): + if val is None: + del self.member_external_id + return + val = self._member_external_id_validator.validate(val) + self._member_external_id_value = val + self._member_external_id_present = True - @new_certificate_details.deleter - def new_certificate_details(self): - self._new_certificate_details_value = None - self._new_certificate_details_present = False + @member_external_id.deleter + def member_external_id(self): + self._member_external_id_value = None + self._member_external_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoChangeCertDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMemberLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoChangeCertDetails(new_certificate_details={!r}, previous_certificate_details={!r})'.format( - self._new_certificate_details_value, - self._previous_certificate_details_value, + return 'TeamMemberLogInfo(account_id={!r}, display_name={!r}, email={!r}, team_member_id={!r}, member_external_id={!r})'.format( + self._account_id_value, + self._display_name_value, + self._email_value, + self._team_member_id_value, + self._member_external_id_value, ) -SsoChangeCertDetails_validator = bv.Struct(SsoChangeCertDetails) +TeamMemberLogInfo_validator = bv.Struct(TeamMemberLogInfo) -class SsoChangeCertType(bb.Struct): +class TeamMembershipType(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 + free = None + # Attribute is overwritten below the class definition + full = None + # Attribute is overwritten below the class definition + other = None + + def is_free(self): + """ + Check if the union tag is ``free``. + + :rtype: bool + """ + return self._tag == 'free' + + def is_full(self): + """ + Check if the union tag is ``full``. + + :rtype: bool + """ + return self._tag == 'full' + + 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(TeamMembershipType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamMembershipType(%r, %r)' % (self._tag, self._value) + +TeamMembershipType_validator = bv.Union(TeamMembershipType) + +class TeamMergeFromDetails(bb.Struct): + """ + Merged another team into this team. + + :ivar team_log.TeamMergeFromDetails.team_name: The name of the team that was + merged into this team. + """ + + __slots__ = [ + '_team_name_value', + '_team_name_present', + ] + + _has_required_fields = True + + def __init__(self, + team_name=None): + self._team_name_value = None + self._team_name_present = False + if team_name is not None: + self.team_name = team_name + + @property + def team_name(self): + """ + The name of the team that was merged into this team. + + :rtype: str + """ + if self._team_name_present: + return self._team_name_value + else: + raise AttributeError("missing required field 'team_name'") + + @team_name.setter + def team_name(self, val): + val = self._team_name_validator.validate(val) + self._team_name_value = val + self._team_name_present = True + + @team_name.deleter + def team_name(self): + self._team_name_value = None + self._team_name_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeFromDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamMergeFromDetails(team_name={!r})'.format( + self._team_name_value, + ) + +TeamMergeFromDetails_validator = bv.Struct(TeamMergeFromDetails) + +class TeamMergeFromType(bb.Struct): __slots__ = [ '_description_value', @@ -58275,105 +66061,259 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoChangeCertType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeFromType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoChangeCertType(description={!r})'.format( + return 'TeamMergeFromType(description={!r})'.format( self._description_value, ) -SsoChangeCertType_validator = bv.Struct(SsoChangeCertType) +TeamMergeFromType_validator = bv.Struct(TeamMergeFromType) -class SsoChangeLoginUrlDetails(bb.Struct): +class TeamMergeRequestAcceptedDetails(bb.Struct): """ - Changed sign-in URL for SSO. + Accepted a team merge request. - :ivar team_log.SsoChangeLoginUrlDetails.previous_value: Previous single - sign-on login URL. - :ivar team_log.SsoChangeLoginUrlDetails.new_value: New single sign-on login - URL. + :ivar team_log.TeamMergeRequestAcceptedDetails.request_accepted_details: + Team merge request acceptance details. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', - '_new_value_value', - '_new_value_present', + '_request_accepted_details_value', + '_request_accepted_details_present', ] _has_required_fields = True def __init__(self, - previous_value=None, - new_value=None): - self._previous_value_value = None - self._previous_value_present = False - self._new_value_value = None - self._new_value_present = False - if previous_value is not None: - self.previous_value = previous_value - if new_value is not None: - self.new_value = new_value + request_accepted_details=None): + self._request_accepted_details_value = None + self._request_accepted_details_present = False + if request_accepted_details is not None: + self.request_accepted_details = request_accepted_details + + @property + def request_accepted_details(self): + """ + Team merge request acceptance details. + + :rtype: TeamMergeRequestAcceptedExtraDetails + """ + if self._request_accepted_details_present: + return self._request_accepted_details_value + else: + raise AttributeError("missing required field 'request_accepted_details'") + + @request_accepted_details.setter + def request_accepted_details(self, val): + self._request_accepted_details_validator.validate_type_only(val) + self._request_accepted_details_value = val + self._request_accepted_details_present = True + + @request_accepted_details.deleter + def request_accepted_details(self): + self._request_accepted_details_value = None + self._request_accepted_details_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestAcceptedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamMergeRequestAcceptedDetails(request_accepted_details={!r})'.format( + self._request_accepted_details_value, + ) + +TeamMergeRequestAcceptedDetails_validator = bv.Struct(TeamMergeRequestAcceptedDetails) + +class TeamMergeRequestAcceptedExtraDetails(bb.Union): + """ + Team merge request acceptance details + + 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 PrimaryTeamRequestAcceptedDetails + TeamMergeRequestAcceptedExtraDetails.primary_team: Team merge request + accepted details shown to the primary team. + :ivar SecondaryTeamRequestAcceptedDetails + TeamMergeRequestAcceptedExtraDetails.secondary_team: Team merge request + accepted details shown to the secondary team. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + other = None + + @classmethod + def primary_team(cls, val): + """ + Create an instance of this class set to the ``primary_team`` tag with + value ``val``. + + :param PrimaryTeamRequestAcceptedDetails val: + :rtype: TeamMergeRequestAcceptedExtraDetails + """ + return cls('primary_team', val) + + @classmethod + def secondary_team(cls, val): + """ + Create an instance of this class set to the ``secondary_team`` tag with + value ``val``. + + :param SecondaryTeamRequestAcceptedDetails val: + :rtype: TeamMergeRequestAcceptedExtraDetails + """ + return cls('secondary_team', val) + + def is_primary_team(self): + """ + Check if the union tag is ``primary_team``. + + :rtype: bool + """ + return self._tag == 'primary_team' + + def is_secondary_team(self): + """ + Check if the union tag is ``secondary_team``. + + :rtype: bool + """ + return self._tag == 'secondary_team' + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == 'other' + + def get_primary_team(self): + """ + Team merge request accepted details shown to the primary team. + + Only call this if :meth:`is_primary_team` is true. + + :rtype: PrimaryTeamRequestAcceptedDetails + """ + if not self.is_primary_team(): + raise AttributeError("tag 'primary_team' not set") + return self._value + + def get_secondary_team(self): + """ + Team merge request accepted details shown to the secondary team. + + Only call this if :meth:`is_secondary_team` is true. + + :rtype: SecondaryTeamRequestAcceptedDetails + """ + if not self.is_secondary_team(): + raise AttributeError("tag 'secondary_team' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestAcceptedExtraDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamMergeRequestAcceptedExtraDetails(%r, %r)' % (self._tag, self._value) + +TeamMergeRequestAcceptedExtraDetails_validator = bv.Union(TeamMergeRequestAcceptedExtraDetails) + +class TeamMergeRequestAcceptedShownToPrimaryTeamDetails(bb.Struct): + """ + Accepted a team merge request. + + :ivar + team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails.secondary_team: + The secondary team name. + :ivar team_log.TeamMergeRequestAcceptedShownToPrimaryTeamDetails.sent_by: + The name of the secondary team admin who sent the request originally. + """ + + __slots__ = [ + '_secondary_team_value', + '_secondary_team_present', + '_sent_by_value', + '_sent_by_present', + ] + + _has_required_fields = True + + def __init__(self, + secondary_team=None, + sent_by=None): + self._secondary_team_value = None + self._secondary_team_present = False + self._sent_by_value = None + self._sent_by_present = False + if secondary_team is not None: + self.secondary_team = secondary_team + if sent_by is not None: + self.sent_by = sent_by @property - def previous_value(self): + def secondary_team(self): """ - Previous single sign-on login URL. + The secondary team name. :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._secondary_team_present: + return self._secondary_team_value else: - raise AttributeError("missing required field 'previous_value'") + raise AttributeError("missing required field 'secondary_team'") - @previous_value.setter - def previous_value(self, val): - val = self._previous_value_validator.validate(val) - self._previous_value_value = val - self._previous_value_present = True + @secondary_team.setter + def secondary_team(self, val): + val = self._secondary_team_validator.validate(val) + self._secondary_team_value = val + self._secondary_team_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @secondary_team.deleter + def secondary_team(self): + self._secondary_team_value = None + self._secondary_team_present = False @property - def new_value(self): + def sent_by(self): """ - New single sign-on login URL. + The name of the secondary team admin who sent the request originally. :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._sent_by_present: + return self._sent_by_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'sent_by'") - @new_value.setter - def new_value(self, val): - val = self._new_value_validator.validate(val) - self._new_value_value = val - self._new_value_present = True + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoChangeLoginUrlDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestAcceptedShownToPrimaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoChangeLoginUrlDetails(previous_value={!r}, new_value={!r})'.format( - self._previous_value_value, - self._new_value_value, + return 'TeamMergeRequestAcceptedShownToPrimaryTeamDetails(secondary_team={!r}, sent_by={!r})'.format( + self._secondary_team_value, + self._sent_by_value, ) -SsoChangeLoginUrlDetails_validator = bv.Struct(SsoChangeLoginUrlDetails) +TeamMergeRequestAcceptedShownToPrimaryTeamDetails_validator = bv.Struct(TeamMergeRequestAcceptedShownToPrimaryTeamDetails) -class SsoChangeLoginUrlType(bb.Struct): +class TeamMergeRequestAcceptedShownToPrimaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -58410,113 +66350,106 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoChangeLoginUrlType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestAcceptedShownToPrimaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoChangeLoginUrlType(description={!r})'.format( + return 'TeamMergeRequestAcceptedShownToPrimaryTeamType(description={!r})'.format( self._description_value, ) -SsoChangeLoginUrlType_validator = bv.Struct(SsoChangeLoginUrlType) +TeamMergeRequestAcceptedShownToPrimaryTeamType_validator = bv.Struct(TeamMergeRequestAcceptedShownToPrimaryTeamType) -class SsoChangeLogoutUrlDetails(bb.Struct): +class TeamMergeRequestAcceptedShownToSecondaryTeamDetails(bb.Struct): """ - Changed sign-out URL for SSO. + Accepted a team merge request. - :ivar team_log.SsoChangeLogoutUrlDetails.previous_value: Previous single - sign-on logout URL. Might be missing due to historical data gap. - :ivar team_log.SsoChangeLogoutUrlDetails.new_value: New single sign-on - logout URL. Might be missing due to historical data gap. + :ivar + team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails.primary_team: + The primary team name. + :ivar team_log.TeamMergeRequestAcceptedShownToSecondaryTeamDetails.sent_by: + The name of the secondary team admin who sent the request originally. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', - '_new_value_value', - '_new_value_present', + '_primary_team_value', + '_primary_team_present', + '_sent_by_value', + '_sent_by_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - previous_value=None, - new_value=None): - self._previous_value_value = None - self._previous_value_present = False - self._new_value_value = None - self._new_value_present = False - if previous_value is not None: - self.previous_value = previous_value - if new_value is not None: - self.new_value = new_value + primary_team=None, + sent_by=None): + self._primary_team_value = None + self._primary_team_present = False + self._sent_by_value = None + self._sent_by_present = False + if primary_team is not None: + self.primary_team = primary_team + if sent_by is not None: + self.sent_by = sent_by @property - def previous_value(self): + def primary_team(self): """ - Previous single sign-on logout URL. Might be missing due to historical - data gap. + The primary team name. :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._primary_team_present: + return self._primary_team_value else: - return None + raise AttributeError("missing required field 'primary_team'") - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - val = self._previous_value_validator.validate(val) - self._previous_value_value = val - self._previous_value_present = True + @primary_team.setter + def primary_team(self, val): + val = self._primary_team_validator.validate(val) + self._primary_team_value = val + self._primary_team_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @primary_team.deleter + def primary_team(self): + self._primary_team_value = None + self._primary_team_present = False @property - def new_value(self): + def sent_by(self): """ - New single sign-on logout URL. Might be missing due to historical data - gap. + The name of the secondary team admin who sent the request originally. :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._sent_by_present: + return self._sent_by_value else: - return None + raise AttributeError("missing required field 'sent_by'") - @new_value.setter - def new_value(self, val): - if val is None: - del self.new_value - return - val = self._new_value_validator.validate(val) - self._new_value_value = val - self._new_value_present = True + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoChangeLogoutUrlDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestAcceptedShownToSecondaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoChangeLogoutUrlDetails(previous_value={!r}, new_value={!r})'.format( - self._previous_value_value, - self._new_value_value, + return 'TeamMergeRequestAcceptedShownToSecondaryTeamDetails(primary_team={!r}, sent_by={!r})'.format( + self._primary_team_value, + self._sent_by_value, ) -SsoChangeLogoutUrlDetails_validator = bv.Struct(SsoChangeLogoutUrlDetails) +TeamMergeRequestAcceptedShownToSecondaryTeamDetails_validator = bv.Struct(TeamMergeRequestAcceptedShownToSecondaryTeamDetails) -class SsoChangeLogoutUrlType(bb.Struct): +class TeamMergeRequestAcceptedShownToSecondaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -58553,108 +66486,122 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoChangeLogoutUrlType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestAcceptedShownToSecondaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoChangeLogoutUrlType(description={!r})'.format( + return 'TeamMergeRequestAcceptedShownToSecondaryTeamType(description={!r})'.format( self._description_value, ) -SsoChangeLogoutUrlType_validator = bv.Struct(SsoChangeLogoutUrlType) - -class SsoChangePolicyDetails(bb.Struct): - """ - Changed single sign-on setting for team. +TeamMergeRequestAcceptedShownToSecondaryTeamType_validator = bv.Struct(TeamMergeRequestAcceptedShownToSecondaryTeamType) - :ivar team_log.SsoChangePolicyDetails.new_value: New single sign-on policy. - :ivar team_log.SsoChangePolicyDetails.previous_value: Previous single - sign-on policy. Might be missing due to historical data gap. - """ +class TeamMergeRequestAcceptedType(bb.Struct): __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_description_value', + '_description_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def new_value(self): + def description(self): """ - New single sign-on policy. - - :rtype: team_policies.SsoPolicy + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._description_present: + return self._description_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'description'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestAcceptedType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamMergeRequestAcceptedType(description={!r})'.format( + self._description_value, + ) + +TeamMergeRequestAcceptedType_validator = bv.Struct(TeamMergeRequestAcceptedType) + +class TeamMergeRequestAutoCanceledDetails(bb.Struct): + """ + Automatically canceled team merge request. + + :ivar team_log.TeamMergeRequestAutoCanceledDetails.details: The cancellation + reason. + """ + + __slots__ = [ + '_details_value', + '_details_present', + ] + + _has_required_fields = False + + def __init__(self, + details=None): + self._details_value = None + self._details_present = False + if details is not None: + self.details = details @property - def previous_value(self): + def details(self): """ - Previous single sign-on policy. Might be missing due to historical data - gap. + The cancellation reason. - :rtype: team_policies.SsoPolicy + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._details_present: + return self._details_value else: return None - @previous_value.setter - def previous_value(self, val): + @details.setter + def details(self, val): if val is None: - del self.previous_value + del self.details return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + val = self._details_validator.validate(val) + self._details_value = val + self._details_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @details.deleter + def details(self): + self._details_value = None + self._details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestAutoCanceledDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'TeamMergeRequestAutoCanceledDetails(details={!r})'.format( + self._details_value, ) -SsoChangePolicyDetails_validator = bv.Struct(SsoChangePolicyDetails) +TeamMergeRequestAutoCanceledDetails_validator = bv.Struct(TeamMergeRequestAutoCanceledDetails) -class SsoChangePolicyType(bb.Struct): +class TeamMergeRequestAutoCanceledType(bb.Struct): __slots__ = [ '_description_value', @@ -58691,105 +66638,259 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestAutoCanceledType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoChangePolicyType(description={!r})'.format( + return 'TeamMergeRequestAutoCanceledType(description={!r})'.format( self._description_value, ) -SsoChangePolicyType_validator = bv.Struct(SsoChangePolicyType) +TeamMergeRequestAutoCanceledType_validator = bv.Struct(TeamMergeRequestAutoCanceledType) -class SsoChangeSamlIdentityModeDetails(bb.Struct): +class TeamMergeRequestCanceledDetails(bb.Struct): """ - Changed SAML identity mode for SSO. + Canceled a team merge request. - :ivar team_log.SsoChangeSamlIdentityModeDetails.previous_value: Previous - single sign-on identity mode. - :ivar team_log.SsoChangeSamlIdentityModeDetails.new_value: New single - sign-on identity mode. + :ivar team_log.TeamMergeRequestCanceledDetails.request_canceled_details: + Team merge request cancellation details. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', - '_new_value_value', - '_new_value_present', + '_request_canceled_details_value', + '_request_canceled_details_present', ] _has_required_fields = True def __init__(self, - previous_value=None, - new_value=None): - self._previous_value_value = None - self._previous_value_present = False - self._new_value_value = None - self._new_value_present = False - if previous_value is not None: - self.previous_value = previous_value - if new_value is not None: - self.new_value = new_value + request_canceled_details=None): + self._request_canceled_details_value = None + self._request_canceled_details_present = False + if request_canceled_details is not None: + self.request_canceled_details = request_canceled_details @property - def previous_value(self): + def request_canceled_details(self): """ - Previous single sign-on identity mode. + Team merge request cancellation details. - :rtype: int + :rtype: TeamMergeRequestCanceledExtraDetails """ - if self._previous_value_present: - return self._previous_value_value + if self._request_canceled_details_present: + return self._request_canceled_details_value else: - raise AttributeError("missing required field 'previous_value'") + raise AttributeError("missing required field 'request_canceled_details'") - @previous_value.setter - def previous_value(self, val): - val = self._previous_value_validator.validate(val) - self._previous_value_value = val - self._previous_value_present = True + @request_canceled_details.setter + def request_canceled_details(self, val): + self._request_canceled_details_validator.validate_type_only(val) + self._request_canceled_details_value = val + self._request_canceled_details_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @request_canceled_details.deleter + def request_canceled_details(self): + self._request_canceled_details_value = None + self._request_canceled_details_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestCanceledDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamMergeRequestCanceledDetails(request_canceled_details={!r})'.format( + self._request_canceled_details_value, + ) + +TeamMergeRequestCanceledDetails_validator = bv.Struct(TeamMergeRequestCanceledDetails) + +class TeamMergeRequestCanceledExtraDetails(bb.Union): + """ + Team merge request cancellation details + + 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 PrimaryTeamRequestCanceledDetails + TeamMergeRequestCanceledExtraDetails.primary_team: Team merge request + cancellation details shown to the primary team. + :ivar SecondaryTeamRequestCanceledDetails + TeamMergeRequestCanceledExtraDetails.secondary_team: Team merge request + cancellation details shown to the secondary team. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + other = None + + @classmethod + def primary_team(cls, val): + """ + Create an instance of this class set to the ``primary_team`` tag with + value ``val``. + + :param PrimaryTeamRequestCanceledDetails val: + :rtype: TeamMergeRequestCanceledExtraDetails + """ + return cls('primary_team', val) + + @classmethod + def secondary_team(cls, val): + """ + Create an instance of this class set to the ``secondary_team`` tag with + value ``val``. + + :param SecondaryTeamRequestCanceledDetails val: + :rtype: TeamMergeRequestCanceledExtraDetails + """ + return cls('secondary_team', val) + + def is_primary_team(self): + """ + Check if the union tag is ``primary_team``. + + :rtype: bool + """ + return self._tag == 'primary_team' + + def is_secondary_team(self): + """ + Check if the union tag is ``secondary_team``. + + :rtype: bool + """ + return self._tag == 'secondary_team' + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == 'other' + + def get_primary_team(self): + """ + Team merge request cancellation details shown to the primary team. + + Only call this if :meth:`is_primary_team` is true. + + :rtype: PrimaryTeamRequestCanceledDetails + """ + if not self.is_primary_team(): + raise AttributeError("tag 'primary_team' not set") + return self._value + + def get_secondary_team(self): + """ + Team merge request cancellation details shown to the secondary team. + + Only call this if :meth:`is_secondary_team` is true. + + :rtype: SecondaryTeamRequestCanceledDetails + """ + if not self.is_secondary_team(): + raise AttributeError("tag 'secondary_team' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestCanceledExtraDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamMergeRequestCanceledExtraDetails(%r, %r)' % (self._tag, self._value) + +TeamMergeRequestCanceledExtraDetails_validator = bv.Union(TeamMergeRequestCanceledExtraDetails) + +class TeamMergeRequestCanceledShownToPrimaryTeamDetails(bb.Struct): + """ + Canceled a team merge request. + + :ivar + team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails.secondary_team: + The secondary team name. + :ivar team_log.TeamMergeRequestCanceledShownToPrimaryTeamDetails.sent_by: + The name of the secondary team admin who sent the request originally. + """ + + __slots__ = [ + '_secondary_team_value', + '_secondary_team_present', + '_sent_by_value', + '_sent_by_present', + ] + + _has_required_fields = True + + def __init__(self, + secondary_team=None, + sent_by=None): + self._secondary_team_value = None + self._secondary_team_present = False + self._sent_by_value = None + self._sent_by_present = False + if secondary_team is not None: + self.secondary_team = secondary_team + if sent_by is not None: + self.sent_by = sent_by @property - def new_value(self): + def secondary_team(self): """ - New single sign-on identity mode. + The secondary team name. - :rtype: int + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._secondary_team_present: + return self._secondary_team_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'secondary_team'") - @new_value.setter - def new_value(self, val): - val = self._new_value_validator.validate(val) - self._new_value_value = val - self._new_value_present = True + @secondary_team.setter + def secondary_team(self, val): + val = self._secondary_team_validator.validate(val) + self._secondary_team_value = val + self._secondary_team_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @secondary_team.deleter + def secondary_team(self): + self._secondary_team_value = None + self._secondary_team_present = False + + @property + def sent_by(self): + """ + The name of the secondary team admin who sent the request originally. + + :rtype: str + """ + if self._sent_by_present: + return self._sent_by_value + else: + raise AttributeError("missing required field 'sent_by'") + + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(SsoChangeSamlIdentityModeDetails, self)._process_custom_annotations(annotation_type, processor) + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestCanceledShownToPrimaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoChangeSamlIdentityModeDetails(previous_value={!r}, new_value={!r})'.format( - self._previous_value_value, - self._new_value_value, + return 'TeamMergeRequestCanceledShownToPrimaryTeamDetails(secondary_team={!r}, sent_by={!r})'.format( + self._secondary_team_value, + self._sent_by_value, ) -SsoChangeSamlIdentityModeDetails_validator = bv.Struct(SsoChangeSamlIdentityModeDetails) +TeamMergeRequestCanceledShownToPrimaryTeamDetails_validator = bv.Struct(TeamMergeRequestCanceledShownToPrimaryTeamDetails) -class SsoChangeSamlIdentityModeType(bb.Struct): +class TeamMergeRequestCanceledShownToPrimaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -58826,71 +66927,105 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoChangeSamlIdentityModeType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestCanceledShownToPrimaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoChangeSamlIdentityModeType(description={!r})'.format( + return 'TeamMergeRequestCanceledShownToPrimaryTeamType(description={!r})'.format( self._description_value, ) -SsoChangeSamlIdentityModeType_validator = bv.Struct(SsoChangeSamlIdentityModeType) +TeamMergeRequestCanceledShownToPrimaryTeamType_validator = bv.Struct(TeamMergeRequestCanceledShownToPrimaryTeamType) -class SsoErrorDetails(bb.Struct): +class TeamMergeRequestCanceledShownToSecondaryTeamDetails(bb.Struct): """ - Failed to sign in via SSO. + Canceled a team merge request. - :ivar team_log.SsoErrorDetails.error_details: Error details. + :ivar team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails.sent_to: + The email of the primary team admin that the request was sent to. + :ivar team_log.TeamMergeRequestCanceledShownToSecondaryTeamDetails.sent_by: + The name of the secondary team admin who sent the request originally. """ __slots__ = [ - '_error_details_value', - '_error_details_present', + '_sent_to_value', + '_sent_to_present', + '_sent_by_value', + '_sent_by_present', ] _has_required_fields = True def __init__(self, - error_details=None): - self._error_details_value = None - self._error_details_present = False - if error_details is not None: - self.error_details = error_details + sent_to=None, + sent_by=None): + self._sent_to_value = None + self._sent_to_present = False + self._sent_by_value = None + self._sent_by_present = False + if sent_to is not None: + self.sent_to = sent_to + if sent_by is not None: + self.sent_by = sent_by @property - def error_details(self): + def sent_to(self): """ - Error details. + The email of the primary team admin that the request was sent to. - :rtype: team_log.FailureDetailsLogInfo + :rtype: str """ - if self._error_details_present: - return self._error_details_value + if self._sent_to_present: + return self._sent_to_value else: - raise AttributeError("missing required field 'error_details'") + raise AttributeError("missing required field 'sent_to'") - @error_details.setter - def error_details(self, val): - self._error_details_validator.validate_type_only(val) - self._error_details_value = val - self._error_details_present = True + @sent_to.setter + def sent_to(self, val): + val = self._sent_to_validator.validate(val) + self._sent_to_value = val + self._sent_to_present = True - @error_details.deleter - def error_details(self): - self._error_details_value = None - self._error_details_present = False + @sent_to.deleter + def sent_to(self): + self._sent_to_value = None + self._sent_to_present = False + + @property + def sent_by(self): + """ + The name of the secondary team admin who sent the request originally. - def _process_custom_annotations(self, annotation_type, processor): - super(SsoErrorDetails, self)._process_custom_annotations(annotation_type, processor) + :rtype: str + """ + if self._sent_by_present: + return self._sent_by_value + else: + raise AttributeError("missing required field 'sent_by'") + + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True + + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestCanceledShownToSecondaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoErrorDetails(error_details={!r})'.format( - self._error_details_value, + return 'TeamMergeRequestCanceledShownToSecondaryTeamDetails(sent_to={!r}, sent_by={!r})'.format( + self._sent_to_value, + self._sent_by_value, ) -SsoErrorDetails_validator = bv.Struct(SsoErrorDetails) +TeamMergeRequestCanceledShownToSecondaryTeamDetails_validator = bv.Struct(TeamMergeRequestCanceledShownToSecondaryTeamDetails) -class SsoErrorType(bb.Struct): +class TeamMergeRequestCanceledShownToSecondaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -58927,38 +67062,17 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoErrorType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestCanceledShownToSecondaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoErrorType(description={!r})'.format( + return 'TeamMergeRequestCanceledShownToSecondaryTeamType(description={!r})'.format( self._description_value, ) -SsoErrorType_validator = bv.Struct(SsoErrorType) - -class SsoRemoveCertDetails(bb.Struct): - """ - Removed X.509 certificate for SSO. - """ - - __slots__ = [ - ] - - _has_required_fields = False - - def __init__(self): - pass - - def _process_custom_annotations(self, annotation_type, processor): - super(SsoRemoveCertDetails, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'SsoRemoveCertDetails()' - -SsoRemoveCertDetails_validator = bv.Struct(SsoRemoveCertDetails) +TeamMergeRequestCanceledShownToSecondaryTeamType_validator = bv.Struct(TeamMergeRequestCanceledShownToSecondaryTeamType) -class SsoRemoveCertType(bb.Struct): +class TeamMergeRequestCanceledType(bb.Struct): __slots__ = [ '_description_value', @@ -58995,174 +67109,259 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoRemoveCertType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestCanceledType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoRemoveCertType(description={!r})'.format( + return 'TeamMergeRequestCanceledType(description={!r})'.format( self._description_value, ) -SsoRemoveCertType_validator = bv.Struct(SsoRemoveCertType) +TeamMergeRequestCanceledType_validator = bv.Struct(TeamMergeRequestCanceledType) -class SsoRemoveLoginUrlDetails(bb.Struct): +class TeamMergeRequestExpiredDetails(bb.Struct): """ - Removed sign-in URL for SSO. + Team merge request expired. - :ivar team_log.SsoRemoveLoginUrlDetails.previous_value: Previous single - sign-on login URL. + :ivar team_log.TeamMergeRequestExpiredDetails.request_expired_details: Team + merge request expiration details. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', + '_request_expired_details_value', + '_request_expired_details_present', ] _has_required_fields = True def __init__(self, - previous_value=None): - self._previous_value_value = None - self._previous_value_present = False - if previous_value is not None: - self.previous_value = previous_value + request_expired_details=None): + self._request_expired_details_value = None + self._request_expired_details_present = False + if request_expired_details is not None: + self.request_expired_details = request_expired_details @property - def previous_value(self): + def request_expired_details(self): """ - Previous single sign-on login URL. + Team merge request expiration details. - :rtype: str + :rtype: TeamMergeRequestExpiredExtraDetails """ - if self._previous_value_present: - return self._previous_value_value + if self._request_expired_details_present: + return self._request_expired_details_value else: - raise AttributeError("missing required field 'previous_value'") + raise AttributeError("missing required field 'request_expired_details'") - @previous_value.setter - def previous_value(self, val): - val = self._previous_value_validator.validate(val) - self._previous_value_value = val - self._previous_value_present = True + @request_expired_details.setter + def request_expired_details(self, val): + self._request_expired_details_validator.validate_type_only(val) + self._request_expired_details_value = val + self._request_expired_details_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @request_expired_details.deleter + def request_expired_details(self): + self._request_expired_details_value = None + self._request_expired_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoRemoveLoginUrlDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestExpiredDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoRemoveLoginUrlDetails(previous_value={!r})'.format( - self._previous_value_value, + return 'TeamMergeRequestExpiredDetails(request_expired_details={!r})'.format( + self._request_expired_details_value, ) -SsoRemoveLoginUrlDetails_validator = bv.Struct(SsoRemoveLoginUrlDetails) +TeamMergeRequestExpiredDetails_validator = bv.Struct(TeamMergeRequestExpiredDetails) -class SsoRemoveLoginUrlType(bb.Struct): +class TeamMergeRequestExpiredExtraDetails(bb.Union): + """ + Team merge request expiration details - __slots__ = [ - '_description_value', - '_description_present', - ] + 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. - _has_required_fields = True + :ivar PrimaryTeamRequestExpiredDetails + TeamMergeRequestExpiredExtraDetails.primary_team: Team merge request + canceled details shown to the primary team. + :ivar SecondaryTeamRequestExpiredDetails + TeamMergeRequestExpiredExtraDetails.secondary_team: Team merge request + canceled details shown to the secondary team. + """ - def __init__(self, - description=None): - self._description_value = None - self._description_present = False - if description is not None: - self.description = description + _catch_all = 'other' + # Attribute is overwritten below the class definition + other = None - @property - def description(self): + @classmethod + def primary_team(cls, val): """ - :rtype: str + Create an instance of this class set to the ``primary_team`` tag with + value ``val``. + + :param PrimaryTeamRequestExpiredDetails val: + :rtype: TeamMergeRequestExpiredExtraDetails + """ + return cls('primary_team', val) + + @classmethod + def secondary_team(cls, val): + """ + Create an instance of this class set to the ``secondary_team`` tag with + value ``val``. + + :param SecondaryTeamRequestExpiredDetails val: + :rtype: TeamMergeRequestExpiredExtraDetails + """ + return cls('secondary_team', val) + + def is_primary_team(self): + """ + Check if the union tag is ``primary_team``. + + :rtype: bool + """ + return self._tag == 'primary_team' + + def is_secondary_team(self): + """ + Check if the union tag is ``secondary_team``. + + :rtype: bool + """ + return self._tag == 'secondary_team' + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == 'other' + + def get_primary_team(self): + """ + Team merge request canceled details shown to the primary team. + + Only call this if :meth:`is_primary_team` is true. + + :rtype: PrimaryTeamRequestExpiredDetails + """ + if not self.is_primary_team(): + raise AttributeError("tag 'primary_team' not set") + return self._value + + def get_secondary_team(self): """ - if self._description_present: - return self._description_value - else: - raise AttributeError("missing required field 'description'") + Team merge request canceled details shown to the secondary team. - @description.setter - def description(self, val): - val = self._description_validator.validate(val) - self._description_value = val - self._description_present = True + Only call this if :meth:`is_secondary_team` is true. - @description.deleter - def description(self): - self._description_value = None - self._description_present = False + :rtype: SecondaryTeamRequestExpiredDetails + """ + if not self.is_secondary_team(): + raise AttributeError("tag 'secondary_team' not set") + return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SsoRemoveLoginUrlType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestExpiredExtraDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoRemoveLoginUrlType(description={!r})'.format( - self._description_value, - ) + return 'TeamMergeRequestExpiredExtraDetails(%r, %r)' % (self._tag, self._value) -SsoRemoveLoginUrlType_validator = bv.Struct(SsoRemoveLoginUrlType) +TeamMergeRequestExpiredExtraDetails_validator = bv.Union(TeamMergeRequestExpiredExtraDetails) -class SsoRemoveLogoutUrlDetails(bb.Struct): +class TeamMergeRequestExpiredShownToPrimaryTeamDetails(bb.Struct): """ - Removed sign-out URL for SSO. + Team merge request expired. - :ivar team_log.SsoRemoveLogoutUrlDetails.previous_value: Previous single - sign-on logout URL. + :ivar + team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails.secondary_team: + The secondary team name. + :ivar team_log.TeamMergeRequestExpiredShownToPrimaryTeamDetails.sent_by: The + name of the secondary team admin who sent the request originally. """ __slots__ = [ - '_previous_value_value', - '_previous_value_present', + '_secondary_team_value', + '_secondary_team_present', + '_sent_by_value', + '_sent_by_present', ] _has_required_fields = True def __init__(self, - previous_value=None): - self._previous_value_value = None - self._previous_value_present = False - if previous_value is not None: - self.previous_value = previous_value + secondary_team=None, + sent_by=None): + self._secondary_team_value = None + self._secondary_team_present = False + self._sent_by_value = None + self._sent_by_present = False + if secondary_team is not None: + self.secondary_team = secondary_team + if sent_by is not None: + self.sent_by = sent_by @property - def previous_value(self): + def secondary_team(self): """ - Previous single sign-on logout URL. + The secondary team name. :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._secondary_team_present: + return self._secondary_team_value else: - raise AttributeError("missing required field 'previous_value'") + raise AttributeError("missing required field 'secondary_team'") - @previous_value.setter - def previous_value(self, val): - val = self._previous_value_validator.validate(val) - self._previous_value_value = val - self._previous_value_present = True + @secondary_team.setter + def secondary_team(self, val): + val = self._secondary_team_validator.validate(val) + self._secondary_team_value = val + self._secondary_team_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @secondary_team.deleter + def secondary_team(self): + self._secondary_team_value = None + self._secondary_team_present = False + + @property + def sent_by(self): + """ + The name of the secondary team admin who sent the request originally. + + :rtype: str + """ + if self._sent_by_present: + return self._sent_by_value + else: + raise AttributeError("missing required field 'sent_by'") + + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(SsoRemoveLogoutUrlDetails, self)._process_custom_annotations(annotation_type, processor) + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestExpiredShownToPrimaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoRemoveLogoutUrlDetails(previous_value={!r})'.format( - self._previous_value_value, + return 'TeamMergeRequestExpiredShownToPrimaryTeamDetails(secondary_team={!r}, sent_by={!r})'.format( + self._secondary_team_value, + self._sent_by_value, ) -SsoRemoveLogoutUrlDetails_validator = bv.Struct(SsoRemoveLogoutUrlDetails) +TeamMergeRequestExpiredShownToPrimaryTeamDetails_validator = bv.Struct(TeamMergeRequestExpiredShownToPrimaryTeamDetails) -class SsoRemoveLogoutUrlType(bb.Struct): +class TeamMergeRequestExpiredShownToPrimaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -59199,104 +67398,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SsoRemoveLogoutUrlType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestExpiredShownToPrimaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SsoRemoveLogoutUrlType(description={!r})'.format( + return 'TeamMergeRequestExpiredShownToPrimaryTeamType(description={!r})'.format( self._description_value, ) -SsoRemoveLogoutUrlType_validator = bv.Struct(SsoRemoveLogoutUrlType) +TeamMergeRequestExpiredShownToPrimaryTeamType_validator = bv.Struct(TeamMergeRequestExpiredShownToPrimaryTeamType) -class TeamActivityCreateReportDetails(bb.Struct): +class TeamMergeRequestExpiredShownToSecondaryTeamDetails(bb.Struct): """ - Created team activity report. + Team merge request expired. - :ivar team_log.TeamActivityCreateReportDetails.start_date: Report start - date. - :ivar team_log.TeamActivityCreateReportDetails.end_date: Report end date. + :ivar team_log.TeamMergeRequestExpiredShownToSecondaryTeamDetails.sent_to: + The email of the primary team admin the request was sent to. """ __slots__ = [ - '_start_date_value', - '_start_date_present', - '_end_date_value', - '_end_date_present', + '_sent_to_value', + '_sent_to_present', ] _has_required_fields = True def __init__(self, - start_date=None, - end_date=None): - self._start_date_value = None - self._start_date_present = False - self._end_date_value = None - self._end_date_present = False - if start_date is not None: - self.start_date = start_date - if end_date is not None: - self.end_date = end_date - - @property - def start_date(self): - """ - Report start date. - - :rtype: datetime.datetime - """ - if self._start_date_present: - return self._start_date_value - else: - raise AttributeError("missing required field 'start_date'") - - @start_date.setter - def start_date(self, val): - val = self._start_date_validator.validate(val) - self._start_date_value = val - self._start_date_present = True - - @start_date.deleter - def start_date(self): - self._start_date_value = None - self._start_date_present = False + sent_to=None): + self._sent_to_value = None + self._sent_to_present = False + if sent_to is not None: + self.sent_to = sent_to @property - def end_date(self): + def sent_to(self): """ - Report end date. + The email of the primary team admin the request was sent to. - :rtype: datetime.datetime + :rtype: str """ - if self._end_date_present: - return self._end_date_value + if self._sent_to_present: + return self._sent_to_value else: - raise AttributeError("missing required field 'end_date'") + raise AttributeError("missing required field 'sent_to'") - @end_date.setter - def end_date(self, val): - val = self._end_date_validator.validate(val) - self._end_date_value = val - self._end_date_present = True + @sent_to.setter + def sent_to(self, val): + val = self._sent_to_validator.validate(val) + self._sent_to_value = val + self._sent_to_present = True - @end_date.deleter - def end_date(self): - self._end_date_value = None - self._end_date_present = False + @sent_to.deleter + def sent_to(self): + self._sent_to_value = None + self._sent_to_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamActivityCreateReportDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestExpiredShownToSecondaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamActivityCreateReportDetails(start_date={!r}, end_date={!r})'.format( - self._start_date_value, - self._end_date_value, + return 'TeamMergeRequestExpiredShownToSecondaryTeamDetails(sent_to={!r})'.format( + self._sent_to_value, ) -TeamActivityCreateReportDetails_validator = bv.Struct(TeamActivityCreateReportDetails) +TeamMergeRequestExpiredShownToSecondaryTeamDetails_validator = bv.Struct(TeamMergeRequestExpiredShownToSecondaryTeamDetails) -class TeamActivityCreateReportType(bb.Struct): +class TeamMergeRequestExpiredShownToSecondaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -59333,495 +67500,153 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamActivityCreateReportType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestExpiredShownToSecondaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamActivityCreateReportType(description={!r})'.format( + return 'TeamMergeRequestExpiredShownToSecondaryTeamType(description={!r})'.format( self._description_value, ) -TeamActivityCreateReportType_validator = bv.Struct(TeamActivityCreateReportType) - -class TeamEvent(bb.Struct): - """ - An audit log event. +TeamMergeRequestExpiredShownToSecondaryTeamType_validator = bv.Struct(TeamMergeRequestExpiredShownToSecondaryTeamType) - :ivar team_log.TeamEvent.timestamp: The Dropbox timestamp representing when - the action was taken. - :ivar team_log.TeamEvent.event_category: The category that this type of - action belongs to. - :ivar team_log.TeamEvent.actor: The entity who actually performed the - action. Might be missing due to historical data gap. - :ivar team_log.TeamEvent.origin: The origin from which the actor performed - the action including information about host, ip address, location, - session, etc. If the action was performed programmatically via the API - the origin represents the API client. - :ivar team_log.TeamEvent.involve_non_team_member: True if the action - involved a non team member either as the actor or as one of the affected - users. Might be missing due to historical data gap. - :ivar team_log.TeamEvent.context: The user or team on whose behalf the actor - performed the action. Might be missing due to historical data gap. - :ivar team_log.TeamEvent.participants: Zero or more users and/or groups that - are affected by the action. Note that this list doesn't include any - actors or users in context. - :ivar team_log.TeamEvent.assets: Zero or more content assets involved in the - action. Currently these include Dropbox files and folders but in the - future we might add other asset types such as Paper documents, folders, - projects, etc. - :ivar team_log.TeamEvent.event_type: The particular type of action taken. - :ivar team_log.TeamEvent.details: The variable event schema applicable to - this type of action, instantiated with respect to this particular - action. - """ +class TeamMergeRequestExpiredType(bb.Struct): __slots__ = [ - '_timestamp_value', - '_timestamp_present', - '_event_category_value', - '_event_category_present', - '_actor_value', - '_actor_present', - '_origin_value', - '_origin_present', - '_involve_non_team_member_value', - '_involve_non_team_member_present', - '_context_value', - '_context_present', - '_participants_value', - '_participants_present', - '_assets_value', - '_assets_present', - '_event_type_value', - '_event_type_present', - '_details_value', - '_details_present', + '_description_value', + '_description_present', ] _has_required_fields = True def __init__(self, - timestamp=None, - event_category=None, - event_type=None, - details=None, - actor=None, - origin=None, - involve_non_team_member=None, - context=None, - participants=None, - assets=None): - self._timestamp_value = None - self._timestamp_present = False - self._event_category_value = None - self._event_category_present = False - self._actor_value = None - self._actor_present = False - self._origin_value = None - self._origin_present = False - self._involve_non_team_member_value = None - self._involve_non_team_member_present = False - self._context_value = None - self._context_present = False - self._participants_value = None - self._participants_present = False - self._assets_value = None - self._assets_present = False - self._event_type_value = None - self._event_type_present = False - self._details_value = None - self._details_present = False - if timestamp is not None: - self.timestamp = timestamp - if event_category is not None: - self.event_category = event_category - if actor is not None: - self.actor = actor - if origin is not None: - self.origin = origin - if involve_non_team_member is not None: - self.involve_non_team_member = involve_non_team_member - if context is not None: - self.context = context - if participants is not None: - self.participants = participants - if assets is not None: - self.assets = assets - if event_type is not None: - self.event_type = event_type - if details is not None: - self.details = details - - @property - def timestamp(self): - """ - The Dropbox timestamp representing when the action was taken. - - :rtype: datetime.datetime - """ - if self._timestamp_present: - return self._timestamp_value - else: - raise AttributeError("missing required field 'timestamp'") - - @timestamp.setter - def timestamp(self, val): - val = self._timestamp_validator.validate(val) - self._timestamp_value = val - self._timestamp_present = True - - @timestamp.deleter - def timestamp(self): - self._timestamp_value = None - self._timestamp_present = False - - @property - def event_category(self): - """ - The category that this type of action belongs to. - - :rtype: team_log.EventCategory - """ - if self._event_category_present: - return self._event_category_value - else: - raise AttributeError("missing required field 'event_category'") - - @event_category.setter - def event_category(self, val): - self._event_category_validator.validate_type_only(val) - self._event_category_value = val - self._event_category_present = True - - @event_category.deleter - def event_category(self): - self._event_category_value = None - self._event_category_present = False - - @property - def actor(self): - """ - The entity who actually performed the action. Might be missing due to - historical data gap. - - :rtype: team_log.ActorLogInfo - """ - if self._actor_present: - return self._actor_value - else: - return None - - @actor.setter - def actor(self, val): - if val is None: - del self.actor - return - self._actor_validator.validate_type_only(val) - self._actor_value = val - self._actor_present = True - - @actor.deleter - def actor(self): - self._actor_value = None - self._actor_present = False - - @property - def origin(self): - """ - The origin from which the actor performed the action including - information about host, ip address, location, session, etc. If the - action was performed programmatically via the API the origin represents - the API client. - - :rtype: team_log.OriginLogInfo - """ - if self._origin_present: - return self._origin_value - else: - return None - - @origin.setter - def origin(self, val): - if val is None: - del self.origin - return - self._origin_validator.validate_type_only(val) - self._origin_value = val - self._origin_present = True - - @origin.deleter - def origin(self): - self._origin_value = None - self._origin_present = False - - @property - def involve_non_team_member(self): - """ - True if the action involved a non team member either as the actor or as - one of the affected users. Might be missing due to historical data gap. - - :rtype: bool - """ - if self._involve_non_team_member_present: - return self._involve_non_team_member_value - else: - return None - - @involve_non_team_member.setter - def involve_non_team_member(self, val): - if val is None: - del self.involve_non_team_member - return - val = self._involve_non_team_member_validator.validate(val) - self._involve_non_team_member_value = val - self._involve_non_team_member_present = True - - @involve_non_team_member.deleter - def involve_non_team_member(self): - self._involve_non_team_member_value = None - self._involve_non_team_member_present = False - - @property - def context(self): - """ - The user or team on whose behalf the actor performed the action. Might - be missing due to historical data gap. - - :rtype: team_log.ContextLogInfo - """ - if self._context_present: - return self._context_value - else: - return None - - @context.setter - def context(self, val): - if val is None: - del self.context - return - self._context_validator.validate_type_only(val) - self._context_value = val - self._context_present = True - - @context.deleter - def context(self): - self._context_value = None - self._context_present = False - - @property - def participants(self): - """ - Zero or more users and/or groups that are affected by the action. Note - that this list doesn't include any actors or users in context. - - :rtype: list of [team_log.ParticipantLogInfo] - """ - if self._participants_present: - return self._participants_value - else: - return None - - @participants.setter - def participants(self, val): - if val is None: - del self.participants - return - val = self._participants_validator.validate(val) - self._participants_value = val - self._participants_present = True - - @participants.deleter - def participants(self): - self._participants_value = None - self._participants_present = False - - @property - def assets(self): - """ - Zero or more content assets involved in the action. Currently these - include Dropbox files and folders but in the future we might add other - asset types such as Paper documents, folders, projects, etc. - - :rtype: list of [team_log.AssetLogInfo] - """ - if self._assets_present: - return self._assets_value - else: - return None - - @assets.setter - def assets(self, val): - if val is None: - del self.assets - return - val = self._assets_validator.validate(val) - self._assets_value = val - self._assets_present = True - - @assets.deleter - def assets(self): - self._assets_value = None - self._assets_present = False - - @property - def event_type(self): - """ - The particular type of action taken. - - :rtype: team_log.EventType - """ - if self._event_type_present: - return self._event_type_value - else: - raise AttributeError("missing required field 'event_type'") - - @event_type.setter - def event_type(self, val): - self._event_type_validator.validate_type_only(val) - self._event_type_value = val - self._event_type_present = True - - @event_type.deleter - def event_type(self): - self._event_type_value = None - self._event_type_present = False + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def details(self): + def description(self): """ - The variable event schema applicable to this type of action, - instantiated with respect to this particular action. - - :rtype: team_log.EventDetails + :rtype: str """ - if self._details_present: - return self._details_value + if self._description_present: + return self._description_value else: - raise AttributeError("missing required field 'details'") + raise AttributeError("missing required field 'description'") - @details.setter - def details(self, val): - self._details_validator.validate_type_only(val) - self._details_value = val - self._details_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @details.deleter - def details(self): - self._details_value = None - self._details_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamEvent, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestExpiredType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamEvent(timestamp={!r}, event_category={!r}, event_type={!r}, details={!r}, actor={!r}, origin={!r}, involve_non_team_member={!r}, context={!r}, participants={!r}, assets={!r})'.format( - self._timestamp_value, - self._event_category_value, - self._event_type_value, - self._details_value, - self._actor_value, - self._origin_value, - self._involve_non_team_member_value, - self._context_value, - self._participants_value, - self._assets_value, + return 'TeamMergeRequestExpiredType(description={!r})'.format( + self._description_value, ) -TeamEvent_validator = bv.Struct(TeamEvent) - -class TeamFolderChangeStatusDetails(bb.Struct): - """ - Changed archival status of team folder. +TeamMergeRequestExpiredType_validator = bv.Struct(TeamMergeRequestExpiredType) - :ivar team_log.TeamFolderChangeStatusDetails.new_value: New team folder - status. - :ivar team_log.TeamFolderChangeStatusDetails.previous_value: Previous team - folder status. Might be missing due to historical data gap. +class TeamMergeRequestRejectedShownToPrimaryTeamDetails(bb.Struct): + """ + Rejected a team merge request. + + :ivar + team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails.secondary_team: + The secondary team name. + :ivar team_log.TeamMergeRequestRejectedShownToPrimaryTeamDetails.sent_by: + The name of the secondary team admin who sent the request originally. """ __slots__ = [ - '_new_value_value', - '_new_value_present', - '_previous_value_value', - '_previous_value_present', + '_secondary_team_value', + '_secondary_team_present', + '_sent_by_value', + '_sent_by_present', ] _has_required_fields = True def __init__(self, - new_value=None, - previous_value=None): - self._new_value_value = None - self._new_value_present = False - self._previous_value_value = None - self._previous_value_present = False - if new_value is not None: - self.new_value = new_value - if previous_value is not None: - self.previous_value = previous_value + secondary_team=None, + sent_by=None): + self._secondary_team_value = None + self._secondary_team_present = False + self._sent_by_value = None + self._sent_by_present = False + if secondary_team is not None: + self.secondary_team = secondary_team + if sent_by is not None: + self.sent_by = sent_by @property - def new_value(self): + def secondary_team(self): """ - New team folder status. + The secondary team name. - :rtype: team.TeamFolderStatus + :rtype: str """ - if self._new_value_present: - return self._new_value_value + if self._secondary_team_present: + return self._secondary_team_value else: - raise AttributeError("missing required field 'new_value'") + raise AttributeError("missing required field 'secondary_team'") - @new_value.setter - def new_value(self, val): - self._new_value_validator.validate_type_only(val) - self._new_value_value = val - self._new_value_present = True + @secondary_team.setter + def secondary_team(self, val): + val = self._secondary_team_validator.validate(val) + self._secondary_team_value = val + self._secondary_team_present = True - @new_value.deleter - def new_value(self): - self._new_value_value = None - self._new_value_present = False + @secondary_team.deleter + def secondary_team(self): + self._secondary_team_value = None + self._secondary_team_present = False @property - def previous_value(self): + def sent_by(self): """ - Previous team folder status. Might be missing due to historical data - gap. + The name of the secondary team admin who sent the request originally. - :rtype: team.TeamFolderStatus + :rtype: str """ - if self._previous_value_present: - return self._previous_value_value + if self._sent_by_present: + return self._sent_by_value else: - return None + raise AttributeError("missing required field 'sent_by'") - @previous_value.setter - def previous_value(self, val): - if val is None: - del self.previous_value - return - self._previous_value_validator.validate_type_only(val) - self._previous_value_value = val - self._previous_value_present = True + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True - @previous_value.deleter - def previous_value(self): - self._previous_value_value = None - self._previous_value_present = False + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderChangeStatusDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestRejectedShownToPrimaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamFolderChangeStatusDetails(new_value={!r}, previous_value={!r})'.format( - self._new_value_value, - self._previous_value_value, + return 'TeamMergeRequestRejectedShownToPrimaryTeamDetails(secondary_team={!r}, sent_by={!r})'.format( + self._secondary_team_value, + self._sent_by_value, ) -TeamFolderChangeStatusDetails_validator = bv.Struct(TeamFolderChangeStatusDetails) +TeamMergeRequestRejectedShownToPrimaryTeamDetails_validator = bv.Struct(TeamMergeRequestRejectedShownToPrimaryTeamDetails) -class TeamFolderChangeStatusType(bb.Struct): +class TeamMergeRequestRejectedShownToPrimaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -59858,38 +67683,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderChangeStatusType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestRejectedShownToPrimaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamFolderChangeStatusType(description={!r})'.format( + return 'TeamMergeRequestRejectedShownToPrimaryTeamType(description={!r})'.format( self._description_value, ) -TeamFolderChangeStatusType_validator = bv.Struct(TeamFolderChangeStatusType) +TeamMergeRequestRejectedShownToPrimaryTeamType_validator = bv.Struct(TeamMergeRequestRejectedShownToPrimaryTeamType) -class TeamFolderCreateDetails(bb.Struct): +class TeamMergeRequestRejectedShownToSecondaryTeamDetails(bb.Struct): """ - Created team folder in active status. + Rejected a team merge request. + + :ivar team_log.TeamMergeRequestRejectedShownToSecondaryTeamDetails.sent_by: + The name of the secondary team admin who sent the request originally. """ __slots__ = [ + '_sent_by_value', + '_sent_by_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + sent_by=None): + self._sent_by_value = None + self._sent_by_present = False + if sent_by is not None: + self.sent_by = sent_by + + @property + def sent_by(self): + """ + The name of the secondary team admin who sent the request originally. + + :rtype: str + """ + if self._sent_by_present: + return self._sent_by_value + else: + raise AttributeError("missing required field 'sent_by'") + + @sent_by.setter + def sent_by(self, val): + val = self._sent_by_validator.validate(val) + self._sent_by_value = val + self._sent_by_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderCreateDetails, self)._process_custom_annotations(annotation_type, processor) + @sent_by.deleter + def sent_by(self): + self._sent_by_value = None + self._sent_by_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestRejectedShownToSecondaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamFolderCreateDetails()' + return 'TeamMergeRequestRejectedShownToSecondaryTeamDetails(sent_by={!r})'.format( + self._sent_by_value, + ) -TeamFolderCreateDetails_validator = bv.Struct(TeamFolderCreateDetails) +TeamMergeRequestRejectedShownToSecondaryTeamDetails_validator = bv.Struct(TeamMergeRequestRejectedShownToSecondaryTeamDetails) -class TeamFolderCreateType(bb.Struct): +class TeamMergeRequestRejectedShownToSecondaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -59926,72 +67785,259 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderCreateType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestRejectedShownToSecondaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamFolderCreateType(description={!r})'.format( + return 'TeamMergeRequestRejectedShownToSecondaryTeamType(description={!r})'.format( self._description_value, ) -TeamFolderCreateType_validator = bv.Struct(TeamFolderCreateType) +TeamMergeRequestRejectedShownToSecondaryTeamType_validator = bv.Struct(TeamMergeRequestRejectedShownToSecondaryTeamType) -class TeamFolderDowngradeDetails(bb.Struct): +class TeamMergeRequestReminderDetails(bb.Struct): """ - Downgraded team folder to regular shared folder. + Sent a team merge request reminder. - :ivar team_log.TeamFolderDowngradeDetails.target_asset_index: Target asset - position in the Assets list. + :ivar team_log.TeamMergeRequestReminderDetails.request_reminder_details: + Team merge request reminder details. """ __slots__ = [ - '_target_asset_index_value', - '_target_asset_index_present', + '_request_reminder_details_value', + '_request_reminder_details_present', ] _has_required_fields = True def __init__(self, - target_asset_index=None): - self._target_asset_index_value = None - self._target_asset_index_present = False - if target_asset_index is not None: - self.target_asset_index = target_asset_index + request_reminder_details=None): + self._request_reminder_details_value = None + self._request_reminder_details_present = False + if request_reminder_details is not None: + self.request_reminder_details = request_reminder_details @property - def target_asset_index(self): + def request_reminder_details(self): """ - Target asset position in the Assets list. + Team merge request reminder details. - :rtype: int + :rtype: TeamMergeRequestReminderExtraDetails """ - if self._target_asset_index_present: - return self._target_asset_index_value + if self._request_reminder_details_present: + return self._request_reminder_details_value else: - raise AttributeError("missing required field 'target_asset_index'") + raise AttributeError("missing required field 'request_reminder_details'") - @target_asset_index.setter - def target_asset_index(self, val): - val = self._target_asset_index_validator.validate(val) - self._target_asset_index_value = val - self._target_asset_index_present = True + @request_reminder_details.setter + def request_reminder_details(self, val): + self._request_reminder_details_validator.validate_type_only(val) + self._request_reminder_details_value = val + self._request_reminder_details_present = True - @target_asset_index.deleter - def target_asset_index(self): - self._target_asset_index_value = None - self._target_asset_index_present = False + @request_reminder_details.deleter + def request_reminder_details(self): + self._request_reminder_details_value = None + self._request_reminder_details_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderDowngradeDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestReminderDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamFolderDowngradeDetails(target_asset_index={!r})'.format( - self._target_asset_index_value, + return 'TeamMergeRequestReminderDetails(request_reminder_details={!r})'.format( + self._request_reminder_details_value, ) -TeamFolderDowngradeDetails_validator = bv.Struct(TeamFolderDowngradeDetails) +TeamMergeRequestReminderDetails_validator = bv.Struct(TeamMergeRequestReminderDetails) -class TeamFolderDowngradeType(bb.Struct): +class TeamMergeRequestReminderExtraDetails(bb.Union): + """ + Team merge request reminder details + + 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 PrimaryTeamRequestReminderDetails + TeamMergeRequestReminderExtraDetails.primary_team: Team merge request + reminder details shown to the primary team. + :ivar SecondaryTeamRequestReminderDetails + TeamMergeRequestReminderExtraDetails.secondary_team: Team merge request + reminder details shown to the secondary team. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + other = None + + @classmethod + def primary_team(cls, val): + """ + Create an instance of this class set to the ``primary_team`` tag with + value ``val``. + + :param PrimaryTeamRequestReminderDetails val: + :rtype: TeamMergeRequestReminderExtraDetails + """ + return cls('primary_team', val) + + @classmethod + def secondary_team(cls, val): + """ + Create an instance of this class set to the ``secondary_team`` tag with + value ``val``. + + :param SecondaryTeamRequestReminderDetails val: + :rtype: TeamMergeRequestReminderExtraDetails + """ + return cls('secondary_team', val) + + def is_primary_team(self): + """ + Check if the union tag is ``primary_team``. + + :rtype: bool + """ + return self._tag == 'primary_team' + + def is_secondary_team(self): + """ + Check if the union tag is ``secondary_team``. + + :rtype: bool + """ + return self._tag == 'secondary_team' + + def is_other(self): + """ + Check if the union tag is ``other``. + + :rtype: bool + """ + return self._tag == 'other' + + def get_primary_team(self): + """ + Team merge request reminder details shown to the primary team. + + Only call this if :meth:`is_primary_team` is true. + + :rtype: PrimaryTeamRequestReminderDetails + """ + if not self.is_primary_team(): + raise AttributeError("tag 'primary_team' not set") + return self._value + + def get_secondary_team(self): + """ + Team merge request reminder details shown to the secondary team. + + Only call this if :meth:`is_secondary_team` is true. + + :rtype: SecondaryTeamRequestReminderDetails + """ + if not self.is_secondary_team(): + raise AttributeError("tag 'secondary_team' not set") + return self._value + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestReminderExtraDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamMergeRequestReminderExtraDetails(%r, %r)' % (self._tag, self._value) + +TeamMergeRequestReminderExtraDetails_validator = bv.Union(TeamMergeRequestReminderExtraDetails) + +class TeamMergeRequestReminderShownToPrimaryTeamDetails(bb.Struct): + """ + Sent a team merge request reminder. + + :ivar + team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails.secondary_team: + The secondary team name. + :ivar team_log.TeamMergeRequestReminderShownToPrimaryTeamDetails.sent_to: + The name of the primary team admin the request was sent to. + """ + + __slots__ = [ + '_secondary_team_value', + '_secondary_team_present', + '_sent_to_value', + '_sent_to_present', + ] + + _has_required_fields = True + + def __init__(self, + secondary_team=None, + sent_to=None): + self._secondary_team_value = None + self._secondary_team_present = False + self._sent_to_value = None + self._sent_to_present = False + if secondary_team is not None: + self.secondary_team = secondary_team + if sent_to is not None: + self.sent_to = sent_to + + @property + def secondary_team(self): + """ + The secondary team name. + + :rtype: str + """ + if self._secondary_team_present: + return self._secondary_team_value + else: + raise AttributeError("missing required field 'secondary_team'") + + @secondary_team.setter + def secondary_team(self, val): + val = self._secondary_team_validator.validate(val) + self._secondary_team_value = val + self._secondary_team_present = True + + @secondary_team.deleter + def secondary_team(self): + self._secondary_team_value = None + self._secondary_team_present = False + + @property + def sent_to(self): + """ + The name of the primary team admin the request was sent to. + + :rtype: str + """ + if self._sent_to_present: + return self._sent_to_value + else: + raise AttributeError("missing required field 'sent_to'") + + @sent_to.setter + def sent_to(self, val): + val = self._sent_to_validator.validate(val) + self._sent_to_value = val + self._sent_to_present = True + + @sent_to.deleter + def sent_to(self): + self._sent_to_value = None + self._sent_to_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestReminderShownToPrimaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamMergeRequestReminderShownToPrimaryTeamDetails(secondary_team={!r}, sent_to={!r})'.format( + self._secondary_team_value, + self._sent_to_value, + ) + +TeamMergeRequestReminderShownToPrimaryTeamDetails_validator = bv.Struct(TeamMergeRequestReminderShownToPrimaryTeamDetails) + +class TeamMergeRequestReminderShownToPrimaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -60028,38 +68074,72 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderDowngradeType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestReminderShownToPrimaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamFolderDowngradeType(description={!r})'.format( + return 'TeamMergeRequestReminderShownToPrimaryTeamType(description={!r})'.format( self._description_value, ) -TeamFolderDowngradeType_validator = bv.Struct(TeamFolderDowngradeType) +TeamMergeRequestReminderShownToPrimaryTeamType_validator = bv.Struct(TeamMergeRequestReminderShownToPrimaryTeamType) -class TeamFolderPermanentlyDeleteDetails(bb.Struct): +class TeamMergeRequestReminderShownToSecondaryTeamDetails(bb.Struct): """ - Permanently deleted archived team folder. + Sent a team merge request reminder. + + :ivar team_log.TeamMergeRequestReminderShownToSecondaryTeamDetails.sent_to: + The email of the primary team admin the request was sent to. """ __slots__ = [ + '_sent_to_value', + '_sent_to_present', ] - _has_required_fields = False + _has_required_fields = True - def __init__(self): - pass + def __init__(self, + sent_to=None): + self._sent_to_value = None + self._sent_to_present = False + if sent_to is not None: + self.sent_to = sent_to + + @property + def sent_to(self): + """ + The email of the primary team admin the request was sent to. + + :rtype: str + """ + if self._sent_to_present: + return self._sent_to_value + else: + raise AttributeError("missing required field 'sent_to'") + + @sent_to.setter + def sent_to(self, val): + val = self._sent_to_validator.validate(val) + self._sent_to_value = val + self._sent_to_present = True - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderPermanentlyDeleteDetails, self)._process_custom_annotations(annotation_type, processor) + @sent_to.deleter + def sent_to(self): + self._sent_to_value = None + self._sent_to_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestReminderShownToSecondaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamFolderPermanentlyDeleteDetails()' + return 'TeamMergeRequestReminderShownToSecondaryTeamDetails(sent_to={!r})'.format( + self._sent_to_value, + ) -TeamFolderPermanentlyDeleteDetails_validator = bv.Struct(TeamFolderPermanentlyDeleteDetails) +TeamMergeRequestReminderShownToSecondaryTeamDetails_validator = bv.Struct(TeamMergeRequestReminderShownToSecondaryTeamDetails) -class TeamFolderPermanentlyDeleteType(bb.Struct): +class TeamMergeRequestReminderShownToSecondaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -60096,104 +68176,119 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderPermanentlyDeleteType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestReminderShownToSecondaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamFolderPermanentlyDeleteType(description={!r})'.format( + return 'TeamMergeRequestReminderShownToSecondaryTeamType(description={!r})'.format( self._description_value, ) -TeamFolderPermanentlyDeleteType_validator = bv.Struct(TeamFolderPermanentlyDeleteType) - -class TeamFolderRenameDetails(bb.Struct): - """ - Renamed active/archived team folder. +TeamMergeRequestReminderShownToSecondaryTeamType_validator = bv.Struct(TeamMergeRequestReminderShownToSecondaryTeamType) - :ivar team_log.TeamFolderRenameDetails.previous_folder_name: Previous folder - name. - :ivar team_log.TeamFolderRenameDetails.new_folder_name: New folder name. - """ +class TeamMergeRequestReminderType(bb.Struct): __slots__ = [ - '_previous_folder_name_value', - '_previous_folder_name_present', - '_new_folder_name_value', - '_new_folder_name_present', + '_description_value', + '_description_present', ] _has_required_fields = True def __init__(self, - previous_folder_name=None, - new_folder_name=None): - self._previous_folder_name_value = None - self._previous_folder_name_present = False - self._new_folder_name_value = None - self._new_folder_name_present = False - if previous_folder_name is not None: - self.previous_folder_name = previous_folder_name - if new_folder_name is not None: - self.new_folder_name = new_folder_name + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description @property - def previous_folder_name(self): + def description(self): """ - Previous folder name. - :rtype: str """ - if self._previous_folder_name_present: - return self._previous_folder_name_value + if self._description_present: + return self._description_value else: - raise AttributeError("missing required field 'previous_folder_name'") + raise AttributeError("missing required field 'description'") - @previous_folder_name.setter - def previous_folder_name(self, val): - val = self._previous_folder_name_validator.validate(val) - self._previous_folder_name_value = val - self._previous_folder_name_present = True + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - @previous_folder_name.deleter - def previous_folder_name(self): - self._previous_folder_name_value = None - self._previous_folder_name_present = False + @description.deleter + def description(self): + self._description_value = None + self._description_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestReminderType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TeamMergeRequestReminderType(description={!r})'.format( + self._description_value, + ) + +TeamMergeRequestReminderType_validator = bv.Struct(TeamMergeRequestReminderType) + +class TeamMergeRequestRevokedDetails(bb.Struct): + """ + Canceled the team merge. + + :ivar team_log.TeamMergeRequestRevokedDetails.team: The name of the other + team. + """ + + __slots__ = [ + '_team_value', + '_team_present', + ] + + _has_required_fields = True + + def __init__(self, + team=None): + self._team_value = None + self._team_present = False + if team is not None: + self.team = team @property - def new_folder_name(self): + def team(self): """ - New folder name. + The name of the other team. :rtype: str """ - if self._new_folder_name_present: - return self._new_folder_name_value + if self._team_present: + return self._team_value else: - raise AttributeError("missing required field 'new_folder_name'") + raise AttributeError("missing required field 'team'") - @new_folder_name.setter - def new_folder_name(self, val): - val = self._new_folder_name_validator.validate(val) - self._new_folder_name_value = val - self._new_folder_name_present = True + @team.setter + def team(self, val): + val = self._team_validator.validate(val) + self._team_value = val + self._team_present = True - @new_folder_name.deleter - def new_folder_name(self): - self._new_folder_name_value = None - self._new_folder_name_present = False + @team.deleter + def team(self): + self._team_value = None + self._team_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderRenameDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestRevokedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamFolderRenameDetails(previous_folder_name={!r}, new_folder_name={!r})'.format( - self._previous_folder_name_value, - self._new_folder_name_value, + return 'TeamMergeRequestRevokedDetails(team={!r})'.format( + self._team_value, ) -TeamFolderRenameDetails_validator = bv.Struct(TeamFolderRenameDetails) +TeamMergeRequestRevokedDetails_validator = bv.Struct(TeamMergeRequestRevokedDetails) -class TeamFolderRenameType(bb.Struct): +class TeamMergeRequestRevokedType(bb.Struct): __slots__ = [ '_description_value', @@ -60230,249 +68325,207 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamFolderRenameType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestRevokedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamFolderRenameType(description={!r})'.format( + return 'TeamMergeRequestRevokedType(description={!r})'.format( self._description_value, ) -TeamFolderRenameType_validator = bv.Struct(TeamFolderRenameType) - -class TeamLinkedAppLogInfo(AppLogInfo): - """ - Team linked app - """ - - __slots__ = [ - ] - - _has_required_fields = False - - def __init__(self, - app_id=None, - display_name=None): - super(TeamLinkedAppLogInfo, self).__init__(app_id, - display_name) - - def _process_custom_annotations(self, annotation_type, processor): - super(TeamLinkedAppLogInfo, self)._process_custom_annotations(annotation_type, processor) - - def __repr__(self): - return 'TeamLinkedAppLogInfo(app_id={!r}, display_name={!r})'.format( - self._app_id_value, - self._display_name_value, - ) - -TeamLinkedAppLogInfo_validator = bv.Struct(TeamLinkedAppLogInfo) +TeamMergeRequestRevokedType_validator = bv.Struct(TeamMergeRequestRevokedType) -class TeamMemberLogInfo(UserLogInfo): +class TeamMergeRequestSentShownToPrimaryTeamDetails(bb.Struct): """ - Team member's logged information. + Requested to merge their Dropbox team into yours. - :ivar team_log.TeamMemberLogInfo.team_member_id: Team member ID. Might be - missing due to historical data gap. - :ivar team_log.TeamMemberLogInfo.member_external_id: Team member external - ID. + :ivar team_log.TeamMergeRequestSentShownToPrimaryTeamDetails.secondary_team: + The secondary team name. + :ivar team_log.TeamMergeRequestSentShownToPrimaryTeamDetails.sent_to: The + name of the primary team admin the request was sent to. """ __slots__ = [ - '_team_member_id_value', - '_team_member_id_present', - '_member_external_id_value', - '_member_external_id_present', + '_secondary_team_value', + '_secondary_team_present', + '_sent_to_value', + '_sent_to_present', ] - _has_required_fields = False + _has_required_fields = True def __init__(self, - account_id=None, - display_name=None, - email=None, - team_member_id=None, - member_external_id=None): - super(TeamMemberLogInfo, self).__init__(account_id, - display_name, - email) - self._team_member_id_value = None - self._team_member_id_present = False - self._member_external_id_value = None - self._member_external_id_present = False - if team_member_id is not None: - self.team_member_id = team_member_id - if member_external_id is not None: - self.member_external_id = member_external_id + secondary_team=None, + sent_to=None): + self._secondary_team_value = None + self._secondary_team_present = False + self._sent_to_value = None + self._sent_to_present = False + if secondary_team is not None: + self.secondary_team = secondary_team + if sent_to is not None: + self.sent_to = sent_to @property - def team_member_id(self): + def secondary_team(self): """ - Team member ID. Might be missing due to historical data gap. + The secondary team name. :rtype: str """ - if self._team_member_id_present: - return self._team_member_id_value + if self._secondary_team_present: + return self._secondary_team_value else: - return None + raise AttributeError("missing required field 'secondary_team'") - @team_member_id.setter - def team_member_id(self, val): - if val is None: - del self.team_member_id - return - val = self._team_member_id_validator.validate(val) - self._team_member_id_value = val - self._team_member_id_present = True + @secondary_team.setter + def secondary_team(self, val): + val = self._secondary_team_validator.validate(val) + self._secondary_team_value = val + self._secondary_team_present = True - @team_member_id.deleter - def team_member_id(self): - self._team_member_id_value = None - self._team_member_id_present = False + @secondary_team.deleter + def secondary_team(self): + self._secondary_team_value = None + self._secondary_team_present = False @property - def member_external_id(self): + def sent_to(self): """ - Team member external ID. + The name of the primary team admin the request was sent to. :rtype: str """ - if self._member_external_id_present: - return self._member_external_id_value + if self._sent_to_present: + return self._sent_to_value else: - return None + raise AttributeError("missing required field 'sent_to'") - @member_external_id.setter - def member_external_id(self, val): - if val is None: - del self.member_external_id - return - val = self._member_external_id_validator.validate(val) - self._member_external_id_value = val - self._member_external_id_present = True + @sent_to.setter + def sent_to(self, val): + val = self._sent_to_validator.validate(val) + self._sent_to_value = val + self._sent_to_present = True - @member_external_id.deleter - def member_external_id(self): - self._member_external_id_value = None - self._member_external_id_present = False + @sent_to.deleter + def sent_to(self): + self._sent_to_value = None + self._sent_to_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMemberLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestSentShownToPrimaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamMemberLogInfo(account_id={!r}, display_name={!r}, email={!r}, team_member_id={!r}, member_external_id={!r})'.format( - self._account_id_value, - self._display_name_value, - self._email_value, - self._team_member_id_value, - self._member_external_id_value, + return 'TeamMergeRequestSentShownToPrimaryTeamDetails(secondary_team={!r}, sent_to={!r})'.format( + self._secondary_team_value, + self._sent_to_value, ) -TeamMemberLogInfo_validator = bv.Struct(TeamMemberLogInfo) +TeamMergeRequestSentShownToPrimaryTeamDetails_validator = bv.Struct(TeamMergeRequestSentShownToPrimaryTeamDetails) -class TeamMembershipType(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. - """ +class TeamMergeRequestSentShownToPrimaryTeamType(bb.Struct): - _catch_all = 'other' - # Attribute is overwritten below the class definition - free = None - # Attribute is overwritten below the class definition - full = None - # Attribute is overwritten below the class definition - other = None + __slots__ = [ + '_description_value', + '_description_present', + ] - def is_free(self): - """ - Check if the union tag is ``free``. + _has_required_fields = True - :rtype: bool - """ - return self._tag == 'free' + def __init__(self, + description=None): + self._description_value = None + self._description_present = False + if description is not None: + self.description = description - def is_full(self): + @property + def description(self): """ - Check if the union tag is ``full``. - - :rtype: bool + :rtype: str """ - return self._tag == 'full' + if self._description_present: + return self._description_value + else: + raise AttributeError("missing required field 'description'") - def is_other(self): - """ - Check if the union tag is ``other``. + @description.setter + def description(self, val): + val = self._description_validator.validate(val) + self._description_value = val + self._description_present = True - :rtype: bool - """ - return self._tag == 'other' + @description.deleter + def description(self): + self._description_value = None + self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMembershipType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestSentShownToPrimaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamMembershipType(%r, %r)' % (self._tag, self._value) + return 'TeamMergeRequestSentShownToPrimaryTeamType(description={!r})'.format( + self._description_value, + ) -TeamMembershipType_validator = bv.Union(TeamMembershipType) +TeamMergeRequestSentShownToPrimaryTeamType_validator = bv.Struct(TeamMergeRequestSentShownToPrimaryTeamType) -class TeamMergeFromDetails(bb.Struct): +class TeamMergeRequestSentShownToSecondaryTeamDetails(bb.Struct): """ - Merged another team into this team. + Requested to merge your team into another Dropbox team. - :ivar team_log.TeamMergeFromDetails.team_name: The name of the team that was - merged into this team. + :ivar team_log.TeamMergeRequestSentShownToSecondaryTeamDetails.sent_to: The + email of the primary team admin the request was sent to. """ __slots__ = [ - '_team_name_value', - '_team_name_present', + '_sent_to_value', + '_sent_to_present', ] _has_required_fields = True def __init__(self, - team_name=None): - self._team_name_value = None - self._team_name_present = False - if team_name is not None: - self.team_name = team_name + sent_to=None): + self._sent_to_value = None + self._sent_to_present = False + if sent_to is not None: + self.sent_to = sent_to @property - def team_name(self): + def sent_to(self): """ - The name of the team that was merged into this team. + The email of the primary team admin the request was sent to. :rtype: str """ - if self._team_name_present: - return self._team_name_value + if self._sent_to_present: + return self._sent_to_value else: - raise AttributeError("missing required field 'team_name'") + raise AttributeError("missing required field 'sent_to'") - @team_name.setter - def team_name(self, val): - val = self._team_name_validator.validate(val) - self._team_name_value = val - self._team_name_present = True + @sent_to.setter + def sent_to(self, val): + val = self._sent_to_validator.validate(val) + self._sent_to_value = val + self._sent_to_present = True - @team_name.deleter - def team_name(self): - self._team_name_value = None - self._team_name_present = False + @sent_to.deleter + def sent_to(self): + self._sent_to_value = None + self._sent_to_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMergeFromDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestSentShownToSecondaryTeamDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamMergeFromDetails(team_name={!r})'.format( - self._team_name_value, + return 'TeamMergeRequestSentShownToSecondaryTeamDetails(sent_to={!r})'.format( + self._sent_to_value, ) -TeamMergeFromDetails_validator = bv.Struct(TeamMergeFromDetails) +TeamMergeRequestSentShownToSecondaryTeamDetails_validator = bv.Struct(TeamMergeRequestSentShownToSecondaryTeamDetails) -class TeamMergeFromType(bb.Struct): +class TeamMergeRequestSentShownToSecondaryTeamType(bb.Struct): __slots__ = [ '_description_value', @@ -60509,15 +68562,15 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMergeFromType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeRequestSentShownToSecondaryTeamType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamMergeFromType(description={!r})'.format( + return 'TeamMergeRequestSentShownToSecondaryTeamType(description={!r})'.format( self._description_value, ) -TeamMergeFromType_validator = bv.Struct(TeamMergeFromType) +TeamMergeRequestSentShownToSecondaryTeamType_validator = bv.Struct(TeamMergeRequestSentShownToSecondaryTeamType) class TeamMergeToDetails(bb.Struct): """ @@ -60564,8 +68617,8 @@ def team_name(self): self._team_name_value = None self._team_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMergeToDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeToDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamMergeToDetails(team_name={!r})'.format( @@ -60611,8 +68664,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMergeToType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMergeToType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamMergeToType(description={!r})'.format( @@ -60696,8 +68749,8 @@ def team_legal_name(self): self._team_legal_name_value = None self._team_legal_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamName, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamName, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamName(team_display_name={!r}, team_legal_name={!r})'.format( @@ -60720,8 +68773,8 @@ class TeamProfileAddLogoDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(TeamProfileAddLogoDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamProfileAddLogoDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamProfileAddLogoDetails()' @@ -60765,8 +68818,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamProfileAddLogoType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamProfileAddLogoType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamProfileAddLogoType(description={!r})'.format( @@ -60852,8 +68905,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamProfileChangeDefaultLanguageDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamProfileChangeDefaultLanguageDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamProfileChangeDefaultLanguageDetails(new_value={!r}, previous_value={!r})'.format( @@ -60900,8 +68953,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamProfileChangeDefaultLanguageType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamProfileChangeDefaultLanguageType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamProfileChangeDefaultLanguageType(description={!r})'.format( @@ -60923,8 +68976,8 @@ class TeamProfileChangeLogoDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(TeamProfileChangeLogoDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamProfileChangeLogoDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamProfileChangeLogoDetails()' @@ -60968,8 +69021,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamProfileChangeLogoType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamProfileChangeLogoType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamProfileChangeLogoType(description={!r})'.format( @@ -61013,7 +69066,7 @@ def previous_value(self): """ Previous teams name. Might be missing due to historical data gap. - :rtype: team_log.TeamName + :rtype: TeamName """ if self._previous_value_present: return self._previous_value_value @@ -61039,7 +69092,7 @@ def new_value(self): """ New team name. - :rtype: team_log.TeamName + :rtype: TeamName """ if self._new_value_present: return self._new_value_value @@ -61057,8 +69110,8 @@ def new_value(self): self._new_value_value = None self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamProfileChangeNameDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamProfileChangeNameDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamProfileChangeNameDetails(new_value={!r}, previous_value={!r})'.format( @@ -61105,8 +69158,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamProfileChangeNameType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamProfileChangeNameType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamProfileChangeNameType(description={!r})'.format( @@ -61128,8 +69181,8 @@ class TeamProfileRemoveLogoDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(TeamProfileRemoveLogoDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamProfileRemoveLogoDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamProfileRemoveLogoDetails()' @@ -61173,8 +69226,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamProfileRemoveLogoType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamProfileRemoveLogoType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamProfileRemoveLogoType(description={!r})'.format( @@ -61224,8 +69277,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TeamSelectiveSyncPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamSelectiveSyncPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamSelectiveSyncPolicy(%r, %r)' % (self._tag, self._value) @@ -61268,7 +69321,7 @@ def new_value(self): """ New Team Selective Sync policy. - :rtype: team_log.TeamSelectiveSyncPolicy + :rtype: TeamSelectiveSyncPolicy """ if self._new_value_present: return self._new_value_value @@ -61291,7 +69344,7 @@ def previous_value(self): """ Previous Team Selective Sync policy. - :rtype: team_log.TeamSelectiveSyncPolicy + :rtype: TeamSelectiveSyncPolicy """ if self._previous_value_present: return self._previous_value_value @@ -61309,8 +69362,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamSelectiveSyncPolicyChangedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamSelectiveSyncPolicyChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamSelectiveSyncPolicyChangedDetails(new_value={!r}, previous_value={!r})'.format( @@ -61357,8 +69410,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamSelectiveSyncPolicyChangedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamSelectiveSyncPolicyChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamSelectiveSyncPolicyChangedType(description={!r})'.format( @@ -61443,8 +69496,8 @@ def new_value(self): self._new_value_value = None self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamSelectiveSyncSettingsChangedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamSelectiveSyncSettingsChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamSelectiveSyncSettingsChangedDetails(previous_value={!r}, new_value={!r})'.format( @@ -61491,8 +69544,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamSelectiveSyncSettingsChangedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamSelectiveSyncSettingsChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamSelectiveSyncSettingsChangedType(description={!r})'.format( @@ -61514,8 +69567,8 @@ class TfaAddBackupPhoneDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(TfaAddBackupPhoneDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaAddBackupPhoneDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaAddBackupPhoneDetails()' @@ -61559,8 +69612,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TfaAddBackupPhoneType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaAddBackupPhoneType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaAddBackupPhoneType(description={!r})'.format( @@ -61582,8 +69635,8 @@ class TfaAddSecurityKeyDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(TfaAddSecurityKeyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaAddSecurityKeyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaAddSecurityKeyDetails()' @@ -61627,8 +69680,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TfaAddSecurityKeyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaAddSecurityKeyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaAddSecurityKeyType(description={!r})'.format( @@ -61650,8 +69703,8 @@ class TfaChangeBackupPhoneDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(TfaChangeBackupPhoneDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaChangeBackupPhoneDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaChangeBackupPhoneDetails()' @@ -61695,8 +69748,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TfaChangeBackupPhoneType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaChangeBackupPhoneType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaChangeBackupPhoneType(description={!r})'.format( @@ -61784,8 +69837,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TfaChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -61832,8 +69885,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TfaChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaChangePolicyType(description={!r})'.format( @@ -61889,7 +69942,7 @@ def new_value(self): """ The new two factor authentication configuration. - :rtype: team_log.TfaConfiguration + :rtype: TfaConfiguration """ if self._new_value_present: return self._new_value_value @@ -61913,7 +69966,7 @@ def previous_value(self): The previous two factor authentication configuration. Might be missing due to historical data gap. - :rtype: team_log.TfaConfiguration + :rtype: TfaConfiguration """ if self._previous_value_present: return self._previous_value_value @@ -61961,8 +70014,8 @@ def used_rescue_code(self): self._used_rescue_code_value = None self._used_rescue_code_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TfaChangeStatusDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaChangeStatusDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaChangeStatusDetails(new_value={!r}, previous_value={!r}, used_rescue_code={!r})'.format( @@ -62010,8 +70063,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TfaChangeStatusType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaChangeStatusType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaChangeStatusType(description={!r})'.format( @@ -62082,8 +70135,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TfaConfiguration, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaConfiguration, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaConfiguration(%r, %r)' % (self._tag, self._value) @@ -62103,8 +70156,8 @@ class TfaRemoveBackupPhoneDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(TfaRemoveBackupPhoneDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaRemoveBackupPhoneDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaRemoveBackupPhoneDetails()' @@ -62148,8 +70201,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TfaRemoveBackupPhoneType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaRemoveBackupPhoneType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaRemoveBackupPhoneType(description={!r})'.format( @@ -62171,8 +70224,8 @@ class TfaRemoveSecurityKeyDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(TfaRemoveSecurityKeyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaRemoveSecurityKeyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaRemoveSecurityKeyDetails()' @@ -62216,8 +70269,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TfaRemoveSecurityKeyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaRemoveSecurityKeyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaRemoveSecurityKeyType(description={!r})'.format( @@ -62239,8 +70292,8 @@ class TfaResetDetails(bb.Struct): def __init__(self): pass - def _process_custom_annotations(self, annotation_type, processor): - super(TfaResetDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaResetDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaResetDetails()' @@ -62284,8 +70337,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TfaResetType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TfaResetType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TfaResetType(description={!r})'.format( @@ -62393,8 +70446,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TimeUnit, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TimeUnit, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TimeUnit(%r, %r)' % (self._tag, self._value) @@ -62434,7 +70487,7 @@ def trusted_non_team_member_type(self): """ Indicates the type of the trusted non team member user. - :rtype: team_log.TrustedNonTeamMemberType + :rtype: TrustedNonTeamMemberType """ if self._trusted_non_team_member_type_present: return self._trusted_non_team_member_type_value @@ -62452,8 +70505,8 @@ def trusted_non_team_member_type(self): self._trusted_non_team_member_type_value = None self._trusted_non_team_member_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TrustedNonTeamMemberLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TrustedNonTeamMemberLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TrustedNonTeamMemberLogInfo(trusted_non_team_member_type={!r}, account_id={!r}, display_name={!r}, email={!r})'.format( @@ -62494,14 +70547,148 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TrustedNonTeamMemberType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TrustedNonTeamMemberType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TrustedNonTeamMemberType(%r, %r)' % (self._tag, self._value) TrustedNonTeamMemberType_validator = bv.Union(TrustedNonTeamMemberType) +class TrustedTeamsRequestAction(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 + invited = None + # Attribute is overwritten below the class definition + expired = None + # Attribute is overwritten below the class definition + revoked = None + # Attribute is overwritten below the class definition + accepted = None + # Attribute is overwritten below the class definition + declined = None + # Attribute is overwritten below the class definition + other = None + + def is_invited(self): + """ + Check if the union tag is ``invited``. + + :rtype: bool + """ + return self._tag == 'invited' + + def is_expired(self): + """ + Check if the union tag is ``expired``. + + :rtype: bool + """ + return self._tag == 'expired' + + def is_revoked(self): + """ + Check if the union tag is ``revoked``. + + :rtype: bool + """ + return self._tag == 'revoked' + + def is_accepted(self): + """ + Check if the union tag is ``accepted``. + + :rtype: bool + """ + return self._tag == 'accepted' + + def is_declined(self): + """ + Check if the union tag is ``declined``. + + :rtype: bool + """ + return self._tag == 'declined' + + 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(TrustedTeamsRequestAction, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TrustedTeamsRequestAction(%r, %r)' % (self._tag, self._value) + +TrustedTeamsRequestAction_validator = bv.Union(TrustedTeamsRequestAction) + +class TrustedTeamsRequestState(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 + invited = None + # Attribute is overwritten below the class definition + linked = None + # Attribute is overwritten below the class definition + unlinked = None + # Attribute is overwritten below the class definition + other = None + + def is_invited(self): + """ + Check if the union tag is ``invited``. + + :rtype: bool + """ + return self._tag == 'invited' + + def is_linked(self): + """ + Check if the union tag is ``linked``. + + :rtype: bool + """ + return self._tag == 'linked' + + def is_unlinked(self): + """ + Check if the union tag is ``unlinked``. + + :rtype: bool + """ + return self._tag == 'unlinked' + + 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(TrustedTeamsRequestState, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TrustedTeamsRequestState(%r, %r)' % (self._tag, self._value) + +TrustedTeamsRequestState_validator = bv.Union(TrustedTeamsRequestState) + class TwoAccountChangePolicyDetails(bb.Struct): """ Enabled/disabled option for members to link personal Dropbox account and @@ -62539,7 +70726,7 @@ def new_value(self): """ New two account policy. - :rtype: team_log.TwoAccountPolicy + :rtype: TwoAccountPolicy """ if self._new_value_present: return self._new_value_value @@ -62563,7 +70750,7 @@ def previous_value(self): Previous two account policy. Might be missing due to historical data gap. - :rtype: team_log.TwoAccountPolicy + :rtype: TwoAccountPolicy """ if self._previous_value_present: return self._previous_value_value @@ -62584,8 +70771,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TwoAccountChangePolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TwoAccountChangePolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TwoAccountChangePolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -62632,8 +70819,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TwoAccountChangePolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TwoAccountChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TwoAccountChangePolicyType(description={!r})'.format( @@ -62683,8 +70870,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TwoAccountPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TwoAccountPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TwoAccountPolicy(%r, %r)' % (self._tag, self._value) @@ -62707,8 +70894,8 @@ def __init__(self, super(UserLinkedAppLogInfo, self).__init__(app_id, display_name) - def _process_custom_annotations(self, annotation_type, processor): - super(UserLinkedAppLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserLinkedAppLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserLinkedAppLogInfo(app_id={!r}, display_name={!r})'.format( @@ -62828,8 +71015,8 @@ def locale(self): self._locale_value = None self._locale_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(UserNameLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserNameLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserNameLogInfo(given_name={!r}, surname={!r}, locale={!r})'.format( @@ -62857,8 +71044,8 @@ def __init__(self, super(UserOrTeamLinkedAppLogInfo, self).__init__(app_id, display_name) - def _process_custom_annotations(self, annotation_type, processor): - super(UserOrTeamLinkedAppLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(UserOrTeamLinkedAppLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'UserOrTeamLinkedAppLogInfo(app_id={!r}, display_name={!r})'.format( @@ -62904,7 +71091,7 @@ def previous_value(self): """ Previous Viewer Info policy. - :rtype: team_log.PassPolicy + :rtype: PassPolicy """ if self._previous_value_present: return self._previous_value_value @@ -62927,7 +71114,7 @@ def new_value(self): """ New Viewer Info policy. - :rtype: team_log.PassPolicy + :rtype: PassPolicy """ if self._new_value_present: return self._new_value_value @@ -62945,8 +71132,8 @@ def new_value(self): self._new_value_value = None self._new_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ViewerInfoPolicyChangedDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ViewerInfoPolicyChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ViewerInfoPolicyChangedDetails(previous_value={!r}, new_value={!r})'.format( @@ -62993,8 +71180,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(ViewerInfoPolicyChangedType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ViewerInfoPolicyChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ViewerInfoPolicyChangedType(description={!r})'.format( @@ -63063,7 +71250,7 @@ def session_info(self): """ Web session unique id. Might be missing due to historical data gap. - :rtype: team_log.WebSessionLogInfo + :rtype: WebSessionLogInfo """ if self._session_info_present: return self._session_info_value @@ -63153,8 +71340,8 @@ def browser(self): self._browser_value = None self._browser_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(WebDeviceSessionLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WebDeviceSessionLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WebDeviceSessionLogInfo(user_agent={!r}, os={!r}, browser={!r}, ip_address={!r}, created={!r}, updated={!r}, session_info={!r})'.format( @@ -63183,8 +71370,8 @@ def __init__(self, session_id=None): super(WebSessionLogInfo, self).__init__(session_id) - def _process_custom_annotations(self, annotation_type, processor): - super(WebSessionLogInfo, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WebSessionLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WebSessionLogInfo(session_id={!r})'.format( @@ -63230,7 +71417,7 @@ def new_value(self): """ New session length policy. Might be missing due to historical data gap. - :rtype: team_log.WebSessionsFixedLengthPolicy + :rtype: WebSessionsFixedLengthPolicy """ if self._new_value_present: return self._new_value_value @@ -63257,7 +71444,7 @@ def previous_value(self): Previous session length policy. Might be missing due to historical data gap. - :rtype: team_log.WebSessionsFixedLengthPolicy + :rtype: WebSessionsFixedLengthPolicy """ if self._previous_value_present: return self._previous_value_value @@ -63278,8 +71465,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(WebSessionsChangeFixedLengthPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WebSessionsChangeFixedLengthPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WebSessionsChangeFixedLengthPolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -63326,8 +71513,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(WebSessionsChangeFixedLengthPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WebSessionsChangeFixedLengthPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WebSessionsChangeFixedLengthPolicyType(description={!r})'.format( @@ -63373,7 +71560,7 @@ def new_value(self): """ New idle length policy. Might be missing due to historical data gap. - :rtype: team_log.WebSessionsIdleLengthPolicy + :rtype: WebSessionsIdleLengthPolicy """ if self._new_value_present: return self._new_value_value @@ -63400,7 +71587,7 @@ def previous_value(self): Previous idle length policy. Might be missing due to historical data gap. - :rtype: team_log.WebSessionsIdleLengthPolicy + :rtype: WebSessionsIdleLengthPolicy """ if self._previous_value_present: return self._previous_value_value @@ -63421,8 +71608,8 @@ def previous_value(self): self._previous_value_value = None self._previous_value_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(WebSessionsChangeIdleLengthPolicyDetails, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WebSessionsChangeIdleLengthPolicyDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WebSessionsChangeIdleLengthPolicyDetails(new_value={!r}, previous_value={!r})'.format( @@ -63469,8 +71656,8 @@ def description(self): self._description_value = None self._description_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(WebSessionsChangeIdleLengthPolicyType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WebSessionsChangeIdleLengthPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WebSessionsChangeIdleLengthPolicyType(description={!r})'.format( @@ -63487,8 +71674,8 @@ class WebSessionsFixedLengthPolicy(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar DurationLogInfo team_log.WebSessionsFixedLengthPolicy.defined: Defined - fixed session length. + :ivar DurationLogInfo WebSessionsFixedLengthPolicy.defined: Defined fixed + session length. :ivar team_log.WebSessionsFixedLengthPolicy.undefined: Undefined fixed session length. """ @@ -63505,8 +71692,8 @@ def defined(cls, val): Create an instance of this class set to the ``defined`` tag with value ``val``. - :param team_log.DurationLogInfo val: - :rtype: team_log.WebSessionsFixedLengthPolicy + :param DurationLogInfo val: + :rtype: WebSessionsFixedLengthPolicy """ return cls('defined', val) @@ -63540,14 +71727,14 @@ def get_defined(self): Only call this if :meth:`is_defined` is true. - :rtype: team_log.DurationLogInfo + :rtype: DurationLogInfo """ if not self.is_defined(): raise AttributeError("tag 'defined' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(WebSessionsFixedLengthPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WebSessionsFixedLengthPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WebSessionsFixedLengthPolicy(%r, %r)' % (self._tag, self._value) @@ -63562,8 +71749,8 @@ class WebSessionsIdleLengthPolicy(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar DurationLogInfo team_log.WebSessionsIdleLengthPolicy.defined: Defined - idle session length. + :ivar DurationLogInfo WebSessionsIdleLengthPolicy.defined: Defined idle + session length. :ivar team_log.WebSessionsIdleLengthPolicy.undefined: Undefined idle session length. """ @@ -63580,8 +71767,8 @@ def defined(cls, val): Create an instance of this class set to the ``defined`` tag with value ``val``. - :param team_log.DurationLogInfo val: - :rtype: team_log.WebSessionsIdleLengthPolicy + :param DurationLogInfo val: + :rtype: WebSessionsIdleLengthPolicy """ return cls('defined', val) @@ -63615,14 +71802,14 @@ def get_defined(self): Only call this if :meth:`is_defined` is true. - :rtype: team_log.DurationLogInfo + :rtype: DurationLogInfo """ if not self.is_defined(): raise AttributeError("tag 'defined' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(WebSessionsIdleLengthPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(WebSessionsIdleLengthPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'WebSessionsIdleLengthPolicy(%r, %r)' % (self._tag, self._value) @@ -64512,6 +72699,7 @@ def __repr__(self): EventCategory._team_policies_validator = bv.Void() EventCategory._team_profile_validator = bv.Void() EventCategory._tfa_validator = bv.Void() +EventCategory._trusted_teams_validator = bv.Void() EventCategory._other_validator = bv.Void() EventCategory._tagmap = { 'apps': EventCategory._apps_validator, @@ -64533,6 +72721,7 @@ def __repr__(self): 'team_policies': EventCategory._team_policies_validator, 'team_profile': EventCategory._team_profile_validator, 'tfa': EventCategory._tfa_validator, + 'trusted_teams': EventCategory._trusted_teams_validator, 'other': EventCategory._other_validator, } @@ -64555,12 +72744,15 @@ def __repr__(self): EventCategory.team_policies = EventCategory('team_policies') EventCategory.team_profile = EventCategory('team_profile') EventCategory.tfa = EventCategory('tfa') +EventCategory.trusted_teams = EventCategory('trusted_teams') EventCategory.other = EventCategory('other') EventDetails._app_link_team_details_validator = AppLinkTeamDetails_validator EventDetails._app_link_user_details_validator = AppLinkUserDetails_validator EventDetails._app_unlink_team_details_validator = AppUnlinkTeamDetails_validator EventDetails._app_unlink_user_details_validator = AppUnlinkUserDetails_validator +EventDetails._integration_connected_details_validator = IntegrationConnectedDetails_validator +EventDetails._integration_disconnected_details_validator = IntegrationDisconnectedDetails_validator EventDetails._file_add_comment_details_validator = FileAddCommentDetails_validator EventDetails._file_change_comment_subscription_details_validator = FileChangeCommentSubscriptionDetails_validator EventDetails._file_delete_comment_details_validator = FileDeleteCommentDetails_validator @@ -64613,6 +72805,7 @@ def __repr__(self): EventDetails._file_request_change_details_validator = FileRequestChangeDetails_validator EventDetails._file_request_close_details_validator = FileRequestCloseDetails_validator EventDetails._file_request_create_details_validator = FileRequestCreateDetails_validator +EventDetails._file_request_delete_details_validator = FileRequestDeleteDetails_validator EventDetails._file_request_receive_file_details_validator = FileRequestReceiveFileDetails_validator EventDetails._group_add_external_id_details_validator = GroupAddExternalIdDetails_validator EventDetails._group_add_member_details_validator = GroupAddMemberDetails_validator @@ -64628,6 +72821,8 @@ def __repr__(self): EventDetails._group_remove_member_details_validator = GroupRemoveMemberDetails_validator EventDetails._group_rename_details_validator = GroupRenameDetails_validator EventDetails._emm_error_details_validator = EmmErrorDetails_validator +EventDetails._guest_admin_signed_in_via_trusted_teams_details_validator = GuestAdminSignedInViaTrustedTeamsDetails_validator +EventDetails._guest_admin_signed_out_via_trusted_teams_details_validator = GuestAdminSignedOutViaTrustedTeamsDetails_validator EventDetails._login_fail_details_validator = LoginFailDetails_validator EventDetails._login_success_details_validator = LoginSuccessDetails_validator EventDetails._logout_details_validator = LogoutDetails_validator @@ -64636,14 +72831,17 @@ def __repr__(self): EventDetails._sign_in_as_session_end_details_validator = SignInAsSessionEndDetails_validator EventDetails._sign_in_as_session_start_details_validator = SignInAsSessionStartDetails_validator EventDetails._sso_error_details_validator = SsoErrorDetails_validator +EventDetails._member_add_external_id_details_validator = MemberAddExternalIdDetails_validator EventDetails._member_add_name_details_validator = MemberAddNameDetails_validator EventDetails._member_change_admin_role_details_validator = MemberChangeAdminRoleDetails_validator EventDetails._member_change_email_details_validator = MemberChangeEmailDetails_validator +EventDetails._member_change_external_id_details_validator = MemberChangeExternalIdDetails_validator EventDetails._member_change_membership_type_details_validator = MemberChangeMembershipTypeDetails_validator EventDetails._member_change_name_details_validator = MemberChangeNameDetails_validator EventDetails._member_change_status_details_validator = MemberChangeStatusDetails_validator EventDetails._member_delete_manual_contacts_details_validator = MemberDeleteManualContactsDetails_validator EventDetails._member_permanently_delete_account_contents_details_validator = MemberPermanentlyDeleteAccountContentsDetails_validator +EventDetails._member_remove_external_id_details_validator = MemberRemoveExternalIdDetails_validator EventDetails._member_space_limits_add_custom_quota_details_validator = MemberSpaceLimitsAddCustomQuotaDetails_validator EventDetails._member_space_limits_change_custom_quota_details_validator = MemberSpaceLimitsChangeCustomQuotaDetails_validator EventDetails._member_space_limits_change_status_details_validator = MemberSpaceLimitsChangeStatusDetails_validator @@ -64688,6 +72886,9 @@ def __repr__(self): EventDetails._paper_folder_deleted_details_validator = PaperFolderDeletedDetails_validator EventDetails._paper_folder_followed_details_validator = PaperFolderFollowedDetails_validator EventDetails._paper_folder_team_invite_details_validator = PaperFolderTeamInviteDetails_validator +EventDetails._paper_published_link_create_details_validator = PaperPublishedLinkCreateDetails_validator +EventDetails._paper_published_link_disabled_details_validator = PaperPublishedLinkDisabledDetails_validator +EventDetails._paper_published_link_view_details_validator = PaperPublishedLinkViewDetails_validator EventDetails._password_change_details_validator = PasswordChangeDetails_validator EventDetails._password_reset_details_validator = PasswordResetDetails_validator EventDetails._password_reset_all_details_validator = PasswordResetAllDetails_validator @@ -64697,6 +72898,7 @@ def __repr__(self): EventDetails._paper_admin_export_start_details_validator = PaperAdminExportStartDetails_validator EventDetails._smart_sync_create_admin_privilege_report_details_validator = SmartSyncCreateAdminPrivilegeReportDetails_validator EventDetails._team_activity_create_report_details_validator = TeamActivityCreateReportDetails_validator +EventDetails._team_activity_create_report_fail_details_validator = TeamActivityCreateReportFailDetails_validator EventDetails._collection_share_details_validator = CollectionShareDetails_validator EventDetails._note_acl_invite_only_details_validator = NoteAclInviteOnlyDetails_validator EventDetails._note_acl_link_details_validator = NoteAclLinkDetails_validator @@ -64823,6 +73025,7 @@ def __repr__(self): EventDetails._file_requests_emails_restricted_to_team_only_details_validator = FileRequestsEmailsRestrictedToTeamOnlyDetails_validator EventDetails._google_sso_change_policy_details_validator = GoogleSsoChangePolicyDetails_validator EventDetails._group_user_management_change_policy_details_validator = GroupUserManagementChangePolicyDetails_validator +EventDetails._integration_policy_changed_details_validator = IntegrationPolicyChangedDetails_validator EventDetails._member_requests_change_policy_details_validator = MemberRequestsChangePolicyDetails_validator EventDetails._member_space_limits_add_exception_details_validator = MemberSpaceLimitsAddExceptionDetails_validator EventDetails._member_space_limits_change_caps_type_policy_details_validator = MemberSpaceLimitsChangeCapsTypePolicyDetails_validator @@ -64835,9 +73038,12 @@ def __repr__(self): EventDetails._paper_change_member_link_policy_details_validator = PaperChangeMemberLinkPolicyDetails_validator EventDetails._paper_change_member_policy_details_validator = PaperChangeMemberPolicyDetails_validator EventDetails._paper_change_policy_details_validator = PaperChangePolicyDetails_validator +EventDetails._paper_default_folder_policy_changed_details_validator = PaperDefaultFolderPolicyChangedDetails_validator +EventDetails._paper_desktop_policy_changed_details_validator = PaperDesktopPolicyChangedDetails_validator EventDetails._paper_enabled_users_group_addition_details_validator = PaperEnabledUsersGroupAdditionDetails_validator EventDetails._paper_enabled_users_group_removal_details_validator = PaperEnabledUsersGroupRemovalDetails_validator EventDetails._permanent_delete_change_policy_details_validator = PermanentDeleteChangePolicyDetails_validator +EventDetails._reseller_support_change_policy_details_validator = ResellerSupportChangePolicyDetails_validator EventDetails._sharing_change_folder_join_policy_details_validator = SharingChangeFolderJoinPolicyDetails_validator EventDetails._sharing_change_link_policy_details_validator = SharingChangeLinkPolicyDetails_validator EventDetails._sharing_change_member_policy_details_validator = SharingChangeMemberPolicyDetails_validator @@ -64848,6 +73054,7 @@ def __repr__(self): EventDetails._smart_sync_not_opt_out_details_validator = SmartSyncNotOptOutDetails_validator EventDetails._smart_sync_opt_out_details_validator = SmartSyncOptOutDetails_validator EventDetails._sso_change_policy_details_validator = SsoChangePolicyDetails_validator +EventDetails._team_extensions_policy_changed_details_validator = TeamExtensionsPolicyChangedDetails_validator EventDetails._team_selective_sync_policy_changed_details_validator = TeamSelectiveSyncPolicyChangedDetails_validator EventDetails._tfa_change_policy_details_validator = TfaChangePolicyDetails_validator EventDetails._two_account_change_policy_details_validator = TwoAccountChangePolicyDetails_validator @@ -64868,6 +73075,25 @@ def __repr__(self): EventDetails._tfa_remove_backup_phone_details_validator = TfaRemoveBackupPhoneDetails_validator EventDetails._tfa_remove_security_key_details_validator = TfaRemoveSecurityKeyDetails_validator EventDetails._tfa_reset_details_validator = TfaResetDetails_validator +EventDetails._guest_admin_change_status_details_validator = GuestAdminChangeStatusDetails_validator +EventDetails._team_merge_request_accepted_details_validator = TeamMergeRequestAcceptedDetails_validator +EventDetails._team_merge_request_accepted_shown_to_primary_team_details_validator = TeamMergeRequestAcceptedShownToPrimaryTeamDetails_validator +EventDetails._team_merge_request_accepted_shown_to_secondary_team_details_validator = TeamMergeRequestAcceptedShownToSecondaryTeamDetails_validator +EventDetails._team_merge_request_auto_canceled_details_validator = TeamMergeRequestAutoCanceledDetails_validator +EventDetails._team_merge_request_canceled_details_validator = TeamMergeRequestCanceledDetails_validator +EventDetails._team_merge_request_canceled_shown_to_primary_team_details_validator = TeamMergeRequestCanceledShownToPrimaryTeamDetails_validator +EventDetails._team_merge_request_canceled_shown_to_secondary_team_details_validator = TeamMergeRequestCanceledShownToSecondaryTeamDetails_validator +EventDetails._team_merge_request_expired_details_validator = TeamMergeRequestExpiredDetails_validator +EventDetails._team_merge_request_expired_shown_to_primary_team_details_validator = TeamMergeRequestExpiredShownToPrimaryTeamDetails_validator +EventDetails._team_merge_request_expired_shown_to_secondary_team_details_validator = TeamMergeRequestExpiredShownToSecondaryTeamDetails_validator +EventDetails._team_merge_request_rejected_shown_to_primary_team_details_validator = TeamMergeRequestRejectedShownToPrimaryTeamDetails_validator +EventDetails._team_merge_request_rejected_shown_to_secondary_team_details_validator = TeamMergeRequestRejectedShownToSecondaryTeamDetails_validator +EventDetails._team_merge_request_reminder_details_validator = TeamMergeRequestReminderDetails_validator +EventDetails._team_merge_request_reminder_shown_to_primary_team_details_validator = TeamMergeRequestReminderShownToPrimaryTeamDetails_validator +EventDetails._team_merge_request_reminder_shown_to_secondary_team_details_validator = TeamMergeRequestReminderShownToSecondaryTeamDetails_validator +EventDetails._team_merge_request_revoked_details_validator = TeamMergeRequestRevokedDetails_validator +EventDetails._team_merge_request_sent_shown_to_primary_team_details_validator = TeamMergeRequestSentShownToPrimaryTeamDetails_validator +EventDetails._team_merge_request_sent_shown_to_secondary_team_details_validator = TeamMergeRequestSentShownToSecondaryTeamDetails_validator EventDetails._missing_details_validator = MissingDetails_validator EventDetails._other_validator = bv.Void() EventDetails._tagmap = { @@ -64875,6 +73101,8 @@ def __repr__(self): 'app_link_user_details': EventDetails._app_link_user_details_validator, 'app_unlink_team_details': EventDetails._app_unlink_team_details_validator, 'app_unlink_user_details': EventDetails._app_unlink_user_details_validator, + 'integration_connected_details': EventDetails._integration_connected_details_validator, + 'integration_disconnected_details': EventDetails._integration_disconnected_details_validator, 'file_add_comment_details': EventDetails._file_add_comment_details_validator, 'file_change_comment_subscription_details': EventDetails._file_change_comment_subscription_details_validator, 'file_delete_comment_details': EventDetails._file_delete_comment_details_validator, @@ -64927,6 +73155,7 @@ def __repr__(self): 'file_request_change_details': EventDetails._file_request_change_details_validator, 'file_request_close_details': EventDetails._file_request_close_details_validator, 'file_request_create_details': EventDetails._file_request_create_details_validator, + 'file_request_delete_details': EventDetails._file_request_delete_details_validator, 'file_request_receive_file_details': EventDetails._file_request_receive_file_details_validator, 'group_add_external_id_details': EventDetails._group_add_external_id_details_validator, 'group_add_member_details': EventDetails._group_add_member_details_validator, @@ -64942,6 +73171,8 @@ def __repr__(self): 'group_remove_member_details': EventDetails._group_remove_member_details_validator, 'group_rename_details': EventDetails._group_rename_details_validator, 'emm_error_details': EventDetails._emm_error_details_validator, + 'guest_admin_signed_in_via_trusted_teams_details': EventDetails._guest_admin_signed_in_via_trusted_teams_details_validator, + 'guest_admin_signed_out_via_trusted_teams_details': EventDetails._guest_admin_signed_out_via_trusted_teams_details_validator, 'login_fail_details': EventDetails._login_fail_details_validator, 'login_success_details': EventDetails._login_success_details_validator, 'logout_details': EventDetails._logout_details_validator, @@ -64950,14 +73181,17 @@ def __repr__(self): 'sign_in_as_session_end_details': EventDetails._sign_in_as_session_end_details_validator, 'sign_in_as_session_start_details': EventDetails._sign_in_as_session_start_details_validator, 'sso_error_details': EventDetails._sso_error_details_validator, + 'member_add_external_id_details': EventDetails._member_add_external_id_details_validator, 'member_add_name_details': EventDetails._member_add_name_details_validator, 'member_change_admin_role_details': EventDetails._member_change_admin_role_details_validator, 'member_change_email_details': EventDetails._member_change_email_details_validator, + 'member_change_external_id_details': EventDetails._member_change_external_id_details_validator, 'member_change_membership_type_details': EventDetails._member_change_membership_type_details_validator, 'member_change_name_details': EventDetails._member_change_name_details_validator, 'member_change_status_details': EventDetails._member_change_status_details_validator, 'member_delete_manual_contacts_details': EventDetails._member_delete_manual_contacts_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_space_limits_add_custom_quota_details': EventDetails._member_space_limits_add_custom_quota_details_validator, 'member_space_limits_change_custom_quota_details': EventDetails._member_space_limits_change_custom_quota_details_validator, 'member_space_limits_change_status_details': EventDetails._member_space_limits_change_status_details_validator, @@ -65002,6 +73236,9 @@ def __repr__(self): 'paper_folder_deleted_details': EventDetails._paper_folder_deleted_details_validator, 'paper_folder_followed_details': EventDetails._paper_folder_followed_details_validator, 'paper_folder_team_invite_details': EventDetails._paper_folder_team_invite_details_validator, + 'paper_published_link_create_details': EventDetails._paper_published_link_create_details_validator, + 'paper_published_link_disabled_details': EventDetails._paper_published_link_disabled_details_validator, + 'paper_published_link_view_details': EventDetails._paper_published_link_view_details_validator, '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, @@ -65011,6 +73248,7 @@ def __repr__(self): 'paper_admin_export_start_details': EventDetails._paper_admin_export_start_details_validator, 'smart_sync_create_admin_privilege_report_details': EventDetails._smart_sync_create_admin_privilege_report_details_validator, 'team_activity_create_report_details': EventDetails._team_activity_create_report_details_validator, + 'team_activity_create_report_fail_details': EventDetails._team_activity_create_report_fail_details_validator, 'collection_share_details': EventDetails._collection_share_details_validator, 'note_acl_invite_only_details': EventDetails._note_acl_invite_only_details_validator, 'note_acl_link_details': EventDetails._note_acl_link_details_validator, @@ -65137,6 +73375,7 @@ def __repr__(self): 'file_requests_emails_restricted_to_team_only_details': EventDetails._file_requests_emails_restricted_to_team_only_details_validator, 'google_sso_change_policy_details': EventDetails._google_sso_change_policy_details_validator, 'group_user_management_change_policy_details': EventDetails._group_user_management_change_policy_details_validator, + 'integration_policy_changed_details': EventDetails._integration_policy_changed_details_validator, 'member_requests_change_policy_details': EventDetails._member_requests_change_policy_details_validator, 'member_space_limits_add_exception_details': EventDetails._member_space_limits_add_exception_details_validator, 'member_space_limits_change_caps_type_policy_details': EventDetails._member_space_limits_change_caps_type_policy_details_validator, @@ -65149,9 +73388,12 @@ def __repr__(self): 'paper_change_member_link_policy_details': EventDetails._paper_change_member_link_policy_details_validator, 'paper_change_member_policy_details': EventDetails._paper_change_member_policy_details_validator, 'paper_change_policy_details': EventDetails._paper_change_policy_details_validator, + 'paper_default_folder_policy_changed_details': EventDetails._paper_default_folder_policy_changed_details_validator, + 'paper_desktop_policy_changed_details': EventDetails._paper_desktop_policy_changed_details_validator, 'paper_enabled_users_group_addition_details': EventDetails._paper_enabled_users_group_addition_details_validator, 'paper_enabled_users_group_removal_details': EventDetails._paper_enabled_users_group_removal_details_validator, 'permanent_delete_change_policy_details': EventDetails._permanent_delete_change_policy_details_validator, + 'reseller_support_change_policy_details': EventDetails._reseller_support_change_policy_details_validator, 'sharing_change_folder_join_policy_details': EventDetails._sharing_change_folder_join_policy_details_validator, 'sharing_change_link_policy_details': EventDetails._sharing_change_link_policy_details_validator, 'sharing_change_member_policy_details': EventDetails._sharing_change_member_policy_details_validator, @@ -65162,6 +73404,7 @@ def __repr__(self): 'smart_sync_not_opt_out_details': EventDetails._smart_sync_not_opt_out_details_validator, 'smart_sync_opt_out_details': EventDetails._smart_sync_opt_out_details_validator, 'sso_change_policy_details': EventDetails._sso_change_policy_details_validator, + 'team_extensions_policy_changed_details': EventDetails._team_extensions_policy_changed_details_validator, 'team_selective_sync_policy_changed_details': EventDetails._team_selective_sync_policy_changed_details_validator, 'tfa_change_policy_details': EventDetails._tfa_change_policy_details_validator, 'two_account_change_policy_details': EventDetails._two_account_change_policy_details_validator, @@ -65182,6 +73425,25 @@ def __repr__(self): 'tfa_remove_backup_phone_details': EventDetails._tfa_remove_backup_phone_details_validator, 'tfa_remove_security_key_details': EventDetails._tfa_remove_security_key_details_validator, 'tfa_reset_details': EventDetails._tfa_reset_details_validator, + 'guest_admin_change_status_details': EventDetails._guest_admin_change_status_details_validator, + 'team_merge_request_accepted_details': EventDetails._team_merge_request_accepted_details_validator, + 'team_merge_request_accepted_shown_to_primary_team_details': EventDetails._team_merge_request_accepted_shown_to_primary_team_details_validator, + 'team_merge_request_accepted_shown_to_secondary_team_details': EventDetails._team_merge_request_accepted_shown_to_secondary_team_details_validator, + 'team_merge_request_auto_canceled_details': EventDetails._team_merge_request_auto_canceled_details_validator, + 'team_merge_request_canceled_details': EventDetails._team_merge_request_canceled_details_validator, + 'team_merge_request_canceled_shown_to_primary_team_details': EventDetails._team_merge_request_canceled_shown_to_primary_team_details_validator, + 'team_merge_request_canceled_shown_to_secondary_team_details': EventDetails._team_merge_request_canceled_shown_to_secondary_team_details_validator, + 'team_merge_request_expired_details': EventDetails._team_merge_request_expired_details_validator, + 'team_merge_request_expired_shown_to_primary_team_details': EventDetails._team_merge_request_expired_shown_to_primary_team_details_validator, + 'team_merge_request_expired_shown_to_secondary_team_details': EventDetails._team_merge_request_expired_shown_to_secondary_team_details_validator, + 'team_merge_request_rejected_shown_to_primary_team_details': EventDetails._team_merge_request_rejected_shown_to_primary_team_details_validator, + 'team_merge_request_rejected_shown_to_secondary_team_details': EventDetails._team_merge_request_rejected_shown_to_secondary_team_details_validator, + 'team_merge_request_reminder_details': EventDetails._team_merge_request_reminder_details_validator, + 'team_merge_request_reminder_shown_to_primary_team_details': EventDetails._team_merge_request_reminder_shown_to_primary_team_details_validator, + 'team_merge_request_reminder_shown_to_secondary_team_details': EventDetails._team_merge_request_reminder_shown_to_secondary_team_details_validator, + 'team_merge_request_revoked_details': EventDetails._team_merge_request_revoked_details_validator, + 'team_merge_request_sent_shown_to_primary_team_details': EventDetails._team_merge_request_sent_shown_to_primary_team_details_validator, + 'team_merge_request_sent_shown_to_secondary_team_details': EventDetails._team_merge_request_sent_shown_to_secondary_team_details_validator, 'missing_details': EventDetails._missing_details_validator, 'other': EventDetails._other_validator, } @@ -65192,6 +73454,8 @@ def __repr__(self): EventType._app_link_user_validator = AppLinkUserType_validator EventType._app_unlink_team_validator = AppUnlinkTeamType_validator EventType._app_unlink_user_validator = AppUnlinkUserType_validator +EventType._integration_connected_validator = IntegrationConnectedType_validator +EventType._integration_disconnected_validator = IntegrationDisconnectedType_validator EventType._file_add_comment_validator = FileAddCommentType_validator EventType._file_change_comment_subscription_validator = FileChangeCommentSubscriptionType_validator EventType._file_delete_comment_validator = FileDeleteCommentType_validator @@ -65244,6 +73508,7 @@ def __repr__(self): EventType._file_request_change_validator = FileRequestChangeType_validator EventType._file_request_close_validator = FileRequestCloseType_validator EventType._file_request_create_validator = FileRequestCreateType_validator +EventType._file_request_delete_validator = FileRequestDeleteType_validator EventType._file_request_receive_file_validator = FileRequestReceiveFileType_validator EventType._group_add_external_id_validator = GroupAddExternalIdType_validator EventType._group_add_member_validator = GroupAddMemberType_validator @@ -65259,6 +73524,8 @@ def __repr__(self): EventType._group_remove_member_validator = GroupRemoveMemberType_validator EventType._group_rename_validator = GroupRenameType_validator EventType._emm_error_validator = EmmErrorType_validator +EventType._guest_admin_signed_in_via_trusted_teams_validator = GuestAdminSignedInViaTrustedTeamsType_validator +EventType._guest_admin_signed_out_via_trusted_teams_validator = GuestAdminSignedOutViaTrustedTeamsType_validator EventType._login_fail_validator = LoginFailType_validator EventType._login_success_validator = LoginSuccessType_validator EventType._logout_validator = LogoutType_validator @@ -65267,14 +73534,17 @@ def __repr__(self): EventType._sign_in_as_session_end_validator = SignInAsSessionEndType_validator EventType._sign_in_as_session_start_validator = SignInAsSessionStartType_validator EventType._sso_error_validator = SsoErrorType_validator +EventType._member_add_external_id_validator = MemberAddExternalIdType_validator EventType._member_add_name_validator = MemberAddNameType_validator EventType._member_change_admin_role_validator = MemberChangeAdminRoleType_validator EventType._member_change_email_validator = MemberChangeEmailType_validator +EventType._member_change_external_id_validator = MemberChangeExternalIdType_validator EventType._member_change_membership_type_validator = MemberChangeMembershipTypeType_validator EventType._member_change_name_validator = MemberChangeNameType_validator EventType._member_change_status_validator = MemberChangeStatusType_validator EventType._member_delete_manual_contacts_validator = MemberDeleteManualContactsType_validator EventType._member_permanently_delete_account_contents_validator = MemberPermanentlyDeleteAccountContentsType_validator +EventType._member_remove_external_id_validator = MemberRemoveExternalIdType_validator EventType._member_space_limits_add_custom_quota_validator = MemberSpaceLimitsAddCustomQuotaType_validator EventType._member_space_limits_change_custom_quota_validator = MemberSpaceLimitsChangeCustomQuotaType_validator EventType._member_space_limits_change_status_validator = MemberSpaceLimitsChangeStatusType_validator @@ -65319,6 +73589,9 @@ def __repr__(self): EventType._paper_folder_deleted_validator = PaperFolderDeletedType_validator EventType._paper_folder_followed_validator = PaperFolderFollowedType_validator EventType._paper_folder_team_invite_validator = PaperFolderTeamInviteType_validator +EventType._paper_published_link_create_validator = PaperPublishedLinkCreateType_validator +EventType._paper_published_link_disabled_validator = PaperPublishedLinkDisabledType_validator +EventType._paper_published_link_view_validator = PaperPublishedLinkViewType_validator EventType._password_change_validator = PasswordChangeType_validator EventType._password_reset_validator = PasswordResetType_validator EventType._password_reset_all_validator = PasswordResetAllType_validator @@ -65328,6 +73601,7 @@ def __repr__(self): EventType._paper_admin_export_start_validator = PaperAdminExportStartType_validator EventType._smart_sync_create_admin_privilege_report_validator = SmartSyncCreateAdminPrivilegeReportType_validator EventType._team_activity_create_report_validator = TeamActivityCreateReportType_validator +EventType._team_activity_create_report_fail_validator = TeamActivityCreateReportFailType_validator EventType._collection_share_validator = CollectionShareType_validator EventType._note_acl_invite_only_validator = NoteAclInviteOnlyType_validator EventType._note_acl_link_validator = NoteAclLinkType_validator @@ -65454,6 +73728,7 @@ def __repr__(self): EventType._file_requests_emails_restricted_to_team_only_validator = FileRequestsEmailsRestrictedToTeamOnlyType_validator EventType._google_sso_change_policy_validator = GoogleSsoChangePolicyType_validator EventType._group_user_management_change_policy_validator = GroupUserManagementChangePolicyType_validator +EventType._integration_policy_changed_validator = IntegrationPolicyChangedType_validator EventType._member_requests_change_policy_validator = MemberRequestsChangePolicyType_validator EventType._member_space_limits_add_exception_validator = MemberSpaceLimitsAddExceptionType_validator EventType._member_space_limits_change_caps_type_policy_validator = MemberSpaceLimitsChangeCapsTypePolicyType_validator @@ -65466,9 +73741,12 @@ def __repr__(self): EventType._paper_change_member_link_policy_validator = PaperChangeMemberLinkPolicyType_validator EventType._paper_change_member_policy_validator = PaperChangeMemberPolicyType_validator EventType._paper_change_policy_validator = PaperChangePolicyType_validator +EventType._paper_default_folder_policy_changed_validator = PaperDefaultFolderPolicyChangedType_validator +EventType._paper_desktop_policy_changed_validator = PaperDesktopPolicyChangedType_validator EventType._paper_enabled_users_group_addition_validator = PaperEnabledUsersGroupAdditionType_validator EventType._paper_enabled_users_group_removal_validator = PaperEnabledUsersGroupRemovalType_validator EventType._permanent_delete_change_policy_validator = PermanentDeleteChangePolicyType_validator +EventType._reseller_support_change_policy_validator = ResellerSupportChangePolicyType_validator EventType._sharing_change_folder_join_policy_validator = SharingChangeFolderJoinPolicyType_validator EventType._sharing_change_link_policy_validator = SharingChangeLinkPolicyType_validator EventType._sharing_change_member_policy_validator = SharingChangeMemberPolicyType_validator @@ -65479,6 +73757,7 @@ def __repr__(self): EventType._smart_sync_not_opt_out_validator = SmartSyncNotOptOutType_validator EventType._smart_sync_opt_out_validator = SmartSyncOptOutType_validator EventType._sso_change_policy_validator = SsoChangePolicyType_validator +EventType._team_extensions_policy_changed_validator = TeamExtensionsPolicyChangedType_validator EventType._team_selective_sync_policy_changed_validator = TeamSelectiveSyncPolicyChangedType_validator EventType._tfa_change_policy_validator = TfaChangePolicyType_validator EventType._two_account_change_policy_validator = TwoAccountChangePolicyType_validator @@ -65499,12 +73778,33 @@ def __repr__(self): EventType._tfa_remove_backup_phone_validator = TfaRemoveBackupPhoneType_validator EventType._tfa_remove_security_key_validator = TfaRemoveSecurityKeyType_validator EventType._tfa_reset_validator = TfaResetType_validator +EventType._guest_admin_change_status_validator = GuestAdminChangeStatusType_validator +EventType._team_merge_request_accepted_validator = TeamMergeRequestAcceptedType_validator +EventType._team_merge_request_accepted_shown_to_primary_team_validator = TeamMergeRequestAcceptedShownToPrimaryTeamType_validator +EventType._team_merge_request_accepted_shown_to_secondary_team_validator = TeamMergeRequestAcceptedShownToSecondaryTeamType_validator +EventType._team_merge_request_auto_canceled_validator = TeamMergeRequestAutoCanceledType_validator +EventType._team_merge_request_canceled_validator = TeamMergeRequestCanceledType_validator +EventType._team_merge_request_canceled_shown_to_primary_team_validator = TeamMergeRequestCanceledShownToPrimaryTeamType_validator +EventType._team_merge_request_canceled_shown_to_secondary_team_validator = TeamMergeRequestCanceledShownToSecondaryTeamType_validator +EventType._team_merge_request_expired_validator = TeamMergeRequestExpiredType_validator +EventType._team_merge_request_expired_shown_to_primary_team_validator = TeamMergeRequestExpiredShownToPrimaryTeamType_validator +EventType._team_merge_request_expired_shown_to_secondary_team_validator = TeamMergeRequestExpiredShownToSecondaryTeamType_validator +EventType._team_merge_request_rejected_shown_to_primary_team_validator = TeamMergeRequestRejectedShownToPrimaryTeamType_validator +EventType._team_merge_request_rejected_shown_to_secondary_team_validator = TeamMergeRequestRejectedShownToSecondaryTeamType_validator +EventType._team_merge_request_reminder_validator = TeamMergeRequestReminderType_validator +EventType._team_merge_request_reminder_shown_to_primary_team_validator = TeamMergeRequestReminderShownToPrimaryTeamType_validator +EventType._team_merge_request_reminder_shown_to_secondary_team_validator = TeamMergeRequestReminderShownToSecondaryTeamType_validator +EventType._team_merge_request_revoked_validator = TeamMergeRequestRevokedType_validator +EventType._team_merge_request_sent_shown_to_primary_team_validator = TeamMergeRequestSentShownToPrimaryTeamType_validator +EventType._team_merge_request_sent_shown_to_secondary_team_validator = TeamMergeRequestSentShownToSecondaryTeamType_validator EventType._other_validator = bv.Void() EventType._tagmap = { 'app_link_team': EventType._app_link_team_validator, 'app_link_user': EventType._app_link_user_validator, 'app_unlink_team': EventType._app_unlink_team_validator, 'app_unlink_user': EventType._app_unlink_user_validator, + 'integration_connected': EventType._integration_connected_validator, + 'integration_disconnected': EventType._integration_disconnected_validator, 'file_add_comment': EventType._file_add_comment_validator, 'file_change_comment_subscription': EventType._file_change_comment_subscription_validator, 'file_delete_comment': EventType._file_delete_comment_validator, @@ -65557,6 +73857,7 @@ def __repr__(self): 'file_request_change': EventType._file_request_change_validator, 'file_request_close': EventType._file_request_close_validator, 'file_request_create': EventType._file_request_create_validator, + 'file_request_delete': EventType._file_request_delete_validator, 'file_request_receive_file': EventType._file_request_receive_file_validator, 'group_add_external_id': EventType._group_add_external_id_validator, 'group_add_member': EventType._group_add_member_validator, @@ -65572,6 +73873,8 @@ def __repr__(self): 'group_remove_member': EventType._group_remove_member_validator, 'group_rename': EventType._group_rename_validator, 'emm_error': EventType._emm_error_validator, + 'guest_admin_signed_in_via_trusted_teams': EventType._guest_admin_signed_in_via_trusted_teams_validator, + 'guest_admin_signed_out_via_trusted_teams': EventType._guest_admin_signed_out_via_trusted_teams_validator, 'login_fail': EventType._login_fail_validator, 'login_success': EventType._login_success_validator, 'logout': EventType._logout_validator, @@ -65580,14 +73883,17 @@ def __repr__(self): 'sign_in_as_session_end': EventType._sign_in_as_session_end_validator, 'sign_in_as_session_start': EventType._sign_in_as_session_start_validator, 'sso_error': EventType._sso_error_validator, + 'member_add_external_id': EventType._member_add_external_id_validator, 'member_add_name': EventType._member_add_name_validator, 'member_change_admin_role': EventType._member_change_admin_role_validator, 'member_change_email': EventType._member_change_email_validator, + 'member_change_external_id': EventType._member_change_external_id_validator, 'member_change_membership_type': EventType._member_change_membership_type_validator, 'member_change_name': EventType._member_change_name_validator, 'member_change_status': EventType._member_change_status_validator, 'member_delete_manual_contacts': EventType._member_delete_manual_contacts_validator, 'member_permanently_delete_account_contents': EventType._member_permanently_delete_account_contents_validator, + 'member_remove_external_id': EventType._member_remove_external_id_validator, 'member_space_limits_add_custom_quota': EventType._member_space_limits_add_custom_quota_validator, 'member_space_limits_change_custom_quota': EventType._member_space_limits_change_custom_quota_validator, 'member_space_limits_change_status': EventType._member_space_limits_change_status_validator, @@ -65632,6 +73938,9 @@ def __repr__(self): 'paper_folder_deleted': EventType._paper_folder_deleted_validator, 'paper_folder_followed': EventType._paper_folder_followed_validator, 'paper_folder_team_invite': EventType._paper_folder_team_invite_validator, + 'paper_published_link_create': EventType._paper_published_link_create_validator, + 'paper_published_link_disabled': EventType._paper_published_link_disabled_validator, + 'paper_published_link_view': EventType._paper_published_link_view_validator, 'password_change': EventType._password_change_validator, 'password_reset': EventType._password_reset_validator, 'password_reset_all': EventType._password_reset_all_validator, @@ -65641,6 +73950,7 @@ def __repr__(self): 'paper_admin_export_start': EventType._paper_admin_export_start_validator, 'smart_sync_create_admin_privilege_report': EventType._smart_sync_create_admin_privilege_report_validator, 'team_activity_create_report': EventType._team_activity_create_report_validator, + 'team_activity_create_report_fail': EventType._team_activity_create_report_fail_validator, 'collection_share': EventType._collection_share_validator, 'note_acl_invite_only': EventType._note_acl_invite_only_validator, 'note_acl_link': EventType._note_acl_link_validator, @@ -65767,6 +74077,7 @@ def __repr__(self): 'file_requests_emails_restricted_to_team_only': EventType._file_requests_emails_restricted_to_team_only_validator, 'google_sso_change_policy': EventType._google_sso_change_policy_validator, 'group_user_management_change_policy': EventType._group_user_management_change_policy_validator, + 'integration_policy_changed': EventType._integration_policy_changed_validator, 'member_requests_change_policy': EventType._member_requests_change_policy_validator, 'member_space_limits_add_exception': EventType._member_space_limits_add_exception_validator, 'member_space_limits_change_caps_type_policy': EventType._member_space_limits_change_caps_type_policy_validator, @@ -65779,9 +74090,12 @@ def __repr__(self): 'paper_change_member_link_policy': EventType._paper_change_member_link_policy_validator, 'paper_change_member_policy': EventType._paper_change_member_policy_validator, 'paper_change_policy': EventType._paper_change_policy_validator, + 'paper_default_folder_policy_changed': EventType._paper_default_folder_policy_changed_validator, + 'paper_desktop_policy_changed': EventType._paper_desktop_policy_changed_validator, 'paper_enabled_users_group_addition': EventType._paper_enabled_users_group_addition_validator, 'paper_enabled_users_group_removal': EventType._paper_enabled_users_group_removal_validator, 'permanent_delete_change_policy': EventType._permanent_delete_change_policy_validator, + 'reseller_support_change_policy': EventType._reseller_support_change_policy_validator, 'sharing_change_folder_join_policy': EventType._sharing_change_folder_join_policy_validator, 'sharing_change_link_policy': EventType._sharing_change_link_policy_validator, 'sharing_change_member_policy': EventType._sharing_change_member_policy_validator, @@ -65792,6 +74106,7 @@ def __repr__(self): 'smart_sync_not_opt_out': EventType._smart_sync_not_opt_out_validator, 'smart_sync_opt_out': EventType._smart_sync_opt_out_validator, 'sso_change_policy': EventType._sso_change_policy_validator, + 'team_extensions_policy_changed': EventType._team_extensions_policy_changed_validator, 'team_selective_sync_policy_changed': EventType._team_selective_sync_policy_changed_validator, 'tfa_change_policy': EventType._tfa_change_policy_validator, 'two_account_change_policy': EventType._two_account_change_policy_validator, @@ -65812,6 +74127,25 @@ def __repr__(self): 'tfa_remove_backup_phone': EventType._tfa_remove_backup_phone_validator, 'tfa_remove_security_key': EventType._tfa_remove_security_key_validator, 'tfa_reset': EventType._tfa_reset_validator, + 'guest_admin_change_status': EventType._guest_admin_change_status_validator, + 'team_merge_request_accepted': EventType._team_merge_request_accepted_validator, + 'team_merge_request_accepted_shown_to_primary_team': EventType._team_merge_request_accepted_shown_to_primary_team_validator, + 'team_merge_request_accepted_shown_to_secondary_team': EventType._team_merge_request_accepted_shown_to_secondary_team_validator, + 'team_merge_request_auto_canceled': EventType._team_merge_request_auto_canceled_validator, + 'team_merge_request_canceled': EventType._team_merge_request_canceled_validator, + 'team_merge_request_canceled_shown_to_primary_team': EventType._team_merge_request_canceled_shown_to_primary_team_validator, + 'team_merge_request_canceled_shown_to_secondary_team': EventType._team_merge_request_canceled_shown_to_secondary_team_validator, + 'team_merge_request_expired': EventType._team_merge_request_expired_validator, + 'team_merge_request_expired_shown_to_primary_team': EventType._team_merge_request_expired_shown_to_primary_team_validator, + 'team_merge_request_expired_shown_to_secondary_team': EventType._team_merge_request_expired_shown_to_secondary_team_validator, + 'team_merge_request_rejected_shown_to_primary_team': EventType._team_merge_request_rejected_shown_to_primary_team_validator, + 'team_merge_request_rejected_shown_to_secondary_team': EventType._team_merge_request_rejected_shown_to_secondary_team_validator, + 'team_merge_request_reminder': EventType._team_merge_request_reminder_validator, + 'team_merge_request_reminder_shown_to_primary_team': EventType._team_merge_request_reminder_shown_to_primary_team_validator, + 'team_merge_request_reminder_shown_to_secondary_team': EventType._team_merge_request_reminder_shown_to_secondary_team_validator, + 'team_merge_request_revoked': EventType._team_merge_request_revoked_validator, + 'team_merge_request_sent_shown_to_primary_team': EventType._team_merge_request_sent_shown_to_primary_team_validator, + 'team_merge_request_sent_shown_to_secondary_team': EventType._team_merge_request_sent_shown_to_secondary_team_validator, 'other': EventType._other_validator, } @@ -66124,6 +74458,21 @@ def __repr__(self): ('allow_late_uploads', FileRequestDeadline._allow_late_uploads_validator), ] +FileRequestDeleteDetails._file_request_id_validator = bv.Nullable(file_requests.FileRequestId_validator) +FileRequestDeleteDetails._previous_details_validator = bv.Nullable(FileRequestDetails_validator) +FileRequestDeleteDetails._all_field_names_ = set([ + 'file_request_id', + 'previous_details', +]) +FileRequestDeleteDetails._all_fields_ = [ + ('file_request_id', FileRequestDeleteDetails._file_request_id_validator), + ('previous_details', FileRequestDeleteDetails._previous_details_validator), +] + +FileRequestDeleteType._description_validator = bv.String() +FileRequestDeleteType._all_field_names_ = set(['description']) +FileRequestDeleteType._all_fields_ = [('description', FileRequestDeleteType._description_validator)] + FileRequestDetails._asset_index_validator = bv.UInt64() FileRequestDetails._deadline_validator = bv.Nullable(FileRequestDeadline_validator) FileRequestDetails._all_field_names_ = set([ @@ -66540,6 +74889,63 @@ def __repr__(self): GroupUserManagementChangePolicyType._all_field_names_ = set(['description']) GroupUserManagementChangePolicyType._all_fields_ = [('description', GroupUserManagementChangePolicyType._description_validator)] +GuestAdminChangeStatusDetails._is_guest_validator = bv.Boolean() +GuestAdminChangeStatusDetails._guest_team_name_validator = bv.Nullable(bv.String()) +GuestAdminChangeStatusDetails._host_team_name_validator = bv.Nullable(bv.String()) +GuestAdminChangeStatusDetails._previous_value_validator = TrustedTeamsRequestState_validator +GuestAdminChangeStatusDetails._new_value_validator = TrustedTeamsRequestState_validator +GuestAdminChangeStatusDetails._action_details_validator = TrustedTeamsRequestAction_validator +GuestAdminChangeStatusDetails._all_field_names_ = set([ + 'is_guest', + 'guest_team_name', + 'host_team_name', + 'previous_value', + 'new_value', + 'action_details', +]) +GuestAdminChangeStatusDetails._all_fields_ = [ + ('is_guest', GuestAdminChangeStatusDetails._is_guest_validator), + ('guest_team_name', GuestAdminChangeStatusDetails._guest_team_name_validator), + ('host_team_name', GuestAdminChangeStatusDetails._host_team_name_validator), + ('previous_value', GuestAdminChangeStatusDetails._previous_value_validator), + ('new_value', GuestAdminChangeStatusDetails._new_value_validator), + ('action_details', GuestAdminChangeStatusDetails._action_details_validator), +] + +GuestAdminChangeStatusType._description_validator = bv.String() +GuestAdminChangeStatusType._all_field_names_ = set(['description']) +GuestAdminChangeStatusType._all_fields_ = [('description', GuestAdminChangeStatusType._description_validator)] + +GuestAdminSignedInViaTrustedTeamsDetails._team_name_validator = bv.Nullable(bv.String()) +GuestAdminSignedInViaTrustedTeamsDetails._trusted_team_name_validator = bv.Nullable(bv.String()) +GuestAdminSignedInViaTrustedTeamsDetails._all_field_names_ = set([ + 'team_name', + 'trusted_team_name', +]) +GuestAdminSignedInViaTrustedTeamsDetails._all_fields_ = [ + ('team_name', GuestAdminSignedInViaTrustedTeamsDetails._team_name_validator), + ('trusted_team_name', GuestAdminSignedInViaTrustedTeamsDetails._trusted_team_name_validator), +] + +GuestAdminSignedInViaTrustedTeamsType._description_validator = bv.String() +GuestAdminSignedInViaTrustedTeamsType._all_field_names_ = set(['description']) +GuestAdminSignedInViaTrustedTeamsType._all_fields_ = [('description', GuestAdminSignedInViaTrustedTeamsType._description_validator)] + +GuestAdminSignedOutViaTrustedTeamsDetails._team_name_validator = bv.Nullable(bv.String()) +GuestAdminSignedOutViaTrustedTeamsDetails._trusted_team_name_validator = bv.Nullable(bv.String()) +GuestAdminSignedOutViaTrustedTeamsDetails._all_field_names_ = set([ + 'team_name', + 'trusted_team_name', +]) +GuestAdminSignedOutViaTrustedTeamsDetails._all_fields_ = [ + ('team_name', GuestAdminSignedOutViaTrustedTeamsDetails._team_name_validator), + ('trusted_team_name', GuestAdminSignedOutViaTrustedTeamsDetails._trusted_team_name_validator), +] + +GuestAdminSignedOutViaTrustedTeamsType._description_validator = bv.String() +GuestAdminSignedOutViaTrustedTeamsType._all_field_names_ = set(['description']) +GuestAdminSignedOutViaTrustedTeamsType._all_fields_ = [('description', GuestAdminSignedOutViaTrustedTeamsType._description_validator)] + IdentifierType._email_validator = bv.Void() IdentifierType._facebook_profile_name_validator = bv.Void() IdentifierType._other_validator = bv.Void() @@ -66553,6 +74959,53 @@ def __repr__(self): IdentifierType.facebook_profile_name = IdentifierType('facebook_profile_name') IdentifierType.other = IdentifierType('other') +IntegrationConnectedDetails._integration_name_validator = bv.String() +IntegrationConnectedDetails._all_field_names_ = set(['integration_name']) +IntegrationConnectedDetails._all_fields_ = [('integration_name', IntegrationConnectedDetails._integration_name_validator)] + +IntegrationConnectedType._description_validator = bv.String() +IntegrationConnectedType._all_field_names_ = set(['description']) +IntegrationConnectedType._all_fields_ = [('description', IntegrationConnectedType._description_validator)] + +IntegrationDisconnectedDetails._integration_name_validator = bv.String() +IntegrationDisconnectedDetails._all_field_names_ = set(['integration_name']) +IntegrationDisconnectedDetails._all_fields_ = [('integration_name', IntegrationDisconnectedDetails._integration_name_validator)] + +IntegrationDisconnectedType._description_validator = bv.String() +IntegrationDisconnectedType._all_field_names_ = set(['description']) +IntegrationDisconnectedType._all_fields_ = [('description', IntegrationDisconnectedType._description_validator)] + +IntegrationPolicy._disabled_validator = bv.Void() +IntegrationPolicy._enabled_validator = bv.Void() +IntegrationPolicy._other_validator = bv.Void() +IntegrationPolicy._tagmap = { + 'disabled': IntegrationPolicy._disabled_validator, + 'enabled': IntegrationPolicy._enabled_validator, + 'other': IntegrationPolicy._other_validator, +} + +IntegrationPolicy.disabled = IntegrationPolicy('disabled') +IntegrationPolicy.enabled = IntegrationPolicy('enabled') +IntegrationPolicy.other = IntegrationPolicy('other') + +IntegrationPolicyChangedDetails._integration_name_validator = bv.String() +IntegrationPolicyChangedDetails._new_value_validator = IntegrationPolicy_validator +IntegrationPolicyChangedDetails._previous_value_validator = IntegrationPolicy_validator +IntegrationPolicyChangedDetails._all_field_names_ = set([ + 'integration_name', + 'new_value', + 'previous_value', +]) +IntegrationPolicyChangedDetails._all_fields_ = [ + ('integration_name', IntegrationPolicyChangedDetails._integration_name_validator), + ('new_value', IntegrationPolicyChangedDetails._new_value_validator), + ('previous_value', IntegrationPolicyChangedDetails._previous_value_validator), +] + +IntegrationPolicyChangedType._description_validator = bv.String() +IntegrationPolicyChangedType._all_field_names_ = set(['description']) +IntegrationPolicyChangedType._all_fields_ = [('description', IntegrationPolicyChangedType._description_validator)] + JoinTeamDetails._linked_apps_validator = bv.List(UserLinkedAppLogInfo_validator) JoinTeamDetails._linked_devices_validator = bv.List(LinkedDeviceLogInfo_validator) JoinTeamDetails._linked_shared_folders_validator = bv.List(FolderLogInfo_validator) @@ -66637,17 +75090,20 @@ def __repr__(self): LoginMethod._password_validator = bv.Void() LoginMethod._two_factor_authentication_validator = bv.Void() LoginMethod._saml_validator = bv.Void() +LoginMethod._google_oauth_validator = bv.Void() LoginMethod._other_validator = bv.Void() LoginMethod._tagmap = { 'password': LoginMethod._password_validator, 'two_factor_authentication': LoginMethod._two_factor_authentication_validator, 'saml': LoginMethod._saml_validator, + 'google_oauth': LoginMethod._google_oauth_validator, 'other': LoginMethod._other_validator, } LoginMethod.password = LoginMethod('password') LoginMethod.two_factor_authentication = LoginMethod('two_factor_authentication') LoginMethod.saml = LoginMethod('saml') +LoginMethod.google_oauth = LoginMethod('google_oauth') LoginMethod.other = LoginMethod('other') LoginSuccessDetails._is_emm_managed_validator = bv.Nullable(bv.Boolean()) @@ -66672,6 +75128,14 @@ def __repr__(self): LogoutType._all_field_names_ = set(['description']) LogoutType._all_fields_ = [('description', LogoutType._description_validator)] +MemberAddExternalIdDetails._new_value_validator = team_common.MemberExternalId_validator +MemberAddExternalIdDetails._all_field_names_ = set(['new_value']) +MemberAddExternalIdDetails._all_fields_ = [('new_value', MemberAddExternalIdDetails._new_value_validator)] + +MemberAddExternalIdType._description_validator = bv.String() +MemberAddExternalIdType._all_field_names_ = set(['description']) +MemberAddExternalIdType._all_fields_ = [('description', MemberAddExternalIdType._description_validator)] + MemberAddNameDetails._new_value_validator = UserNameLogInfo_validator MemberAddNameDetails._all_field_names_ = set(['new_value']) MemberAddNameDetails._all_fields_ = [('new_value', MemberAddNameDetails._new_value_validator)] @@ -66710,6 +75174,21 @@ def __repr__(self): MemberChangeEmailType._all_field_names_ = set(['description']) MemberChangeEmailType._all_fields_ = [('description', MemberChangeEmailType._description_validator)] +MemberChangeExternalIdDetails._new_value_validator = team_common.MemberExternalId_validator +MemberChangeExternalIdDetails._previous_value_validator = team_common.MemberExternalId_validator +MemberChangeExternalIdDetails._all_field_names_ = set([ + 'new_value', + 'previous_value', +]) +MemberChangeExternalIdDetails._all_fields_ = [ + ('new_value', MemberChangeExternalIdDetails._new_value_validator), + ('previous_value', MemberChangeExternalIdDetails._previous_value_validator), +] + +MemberChangeExternalIdType._description_validator = bv.String() +MemberChangeExternalIdType._all_field_names_ = set(['description']) +MemberChangeExternalIdType._all_fields_ = [('description', MemberChangeExternalIdType._description_validator)] + MemberChangeMembershipTypeDetails._prev_value_validator = TeamMembershipType_validator MemberChangeMembershipTypeDetails._new_value_validator = TeamMembershipType_validator MemberChangeMembershipTypeDetails._all_field_names_ = set([ @@ -66775,19 +75254,30 @@ def __repr__(self): MemberRemoveActionType._delete_validator = bv.Void() MemberRemoveActionType._offboard_validator = bv.Void() MemberRemoveActionType._leave_validator = bv.Void() +MemberRemoveActionType._offboard_and_retain_team_folders_validator = bv.Void() MemberRemoveActionType._other_validator = bv.Void() MemberRemoveActionType._tagmap = { 'delete': MemberRemoveActionType._delete_validator, 'offboard': MemberRemoveActionType._offboard_validator, 'leave': MemberRemoveActionType._leave_validator, + 'offboard_and_retain_team_folders': MemberRemoveActionType._offboard_and_retain_team_folders_validator, 'other': MemberRemoveActionType._other_validator, } MemberRemoveActionType.delete = MemberRemoveActionType('delete') MemberRemoveActionType.offboard = MemberRemoveActionType('offboard') MemberRemoveActionType.leave = MemberRemoveActionType('leave') +MemberRemoveActionType.offboard_and_retain_team_folders = MemberRemoveActionType('offboard_and_retain_team_folders') MemberRemoveActionType.other = MemberRemoveActionType('other') +MemberRemoveExternalIdDetails._previous_value_validator = team_common.MemberExternalId_validator +MemberRemoveExternalIdDetails._all_field_names_ = set(['previous_value']) +MemberRemoveExternalIdDetails._all_fields_ = [('previous_value', MemberRemoveExternalIdDetails._previous_value_validator)] + +MemberRemoveExternalIdType._description_validator = bv.String() +MemberRemoveExternalIdType._all_field_names_ = set(['description']) +MemberRemoveExternalIdType._all_fields_ = [('description', MemberRemoveExternalIdType._description_validator)] + MemberRequestsChangePolicyDetails._new_value_validator = MemberRequestsPolicy_validator MemberRequestsChangePolicyDetails._previous_value_validator = bv.Nullable(MemberRequestsPolicy_validator) MemberRequestsChangePolicyDetails._all_field_names_ = set([ @@ -67328,6 +75818,62 @@ def __repr__(self): PaperContentRestoreType._all_field_names_ = set(['description']) PaperContentRestoreType._all_fields_ = [('description', PaperContentRestoreType._description_validator)] +PaperDefaultFolderPolicy._everyone_in_team_validator = bv.Void() +PaperDefaultFolderPolicy._invite_only_validator = bv.Void() +PaperDefaultFolderPolicy._other_validator = bv.Void() +PaperDefaultFolderPolicy._tagmap = { + 'everyone_in_team': PaperDefaultFolderPolicy._everyone_in_team_validator, + 'invite_only': PaperDefaultFolderPolicy._invite_only_validator, + 'other': PaperDefaultFolderPolicy._other_validator, +} + +PaperDefaultFolderPolicy.everyone_in_team = PaperDefaultFolderPolicy('everyone_in_team') +PaperDefaultFolderPolicy.invite_only = PaperDefaultFolderPolicy('invite_only') +PaperDefaultFolderPolicy.other = PaperDefaultFolderPolicy('other') + +PaperDefaultFolderPolicyChangedDetails._new_value_validator = PaperDefaultFolderPolicy_validator +PaperDefaultFolderPolicyChangedDetails._previous_value_validator = PaperDefaultFolderPolicy_validator +PaperDefaultFolderPolicyChangedDetails._all_field_names_ = set([ + 'new_value', + 'previous_value', +]) +PaperDefaultFolderPolicyChangedDetails._all_fields_ = [ + ('new_value', PaperDefaultFolderPolicyChangedDetails._new_value_validator), + ('previous_value', PaperDefaultFolderPolicyChangedDetails._previous_value_validator), +] + +PaperDefaultFolderPolicyChangedType._description_validator = bv.String() +PaperDefaultFolderPolicyChangedType._all_field_names_ = set(['description']) +PaperDefaultFolderPolicyChangedType._all_fields_ = [('description', PaperDefaultFolderPolicyChangedType._description_validator)] + +PaperDesktopPolicy._disabled_validator = bv.Void() +PaperDesktopPolicy._enabled_validator = bv.Void() +PaperDesktopPolicy._other_validator = bv.Void() +PaperDesktopPolicy._tagmap = { + 'disabled': PaperDesktopPolicy._disabled_validator, + 'enabled': PaperDesktopPolicy._enabled_validator, + 'other': PaperDesktopPolicy._other_validator, +} + +PaperDesktopPolicy.disabled = PaperDesktopPolicy('disabled') +PaperDesktopPolicy.enabled = PaperDesktopPolicy('enabled') +PaperDesktopPolicy.other = PaperDesktopPolicy('other') + +PaperDesktopPolicyChangedDetails._new_value_validator = PaperDesktopPolicy_validator +PaperDesktopPolicyChangedDetails._previous_value_validator = PaperDesktopPolicy_validator +PaperDesktopPolicyChangedDetails._all_field_names_ = set([ + 'new_value', + 'previous_value', +]) +PaperDesktopPolicyChangedDetails._all_fields_ = [ + ('new_value', PaperDesktopPolicyChangedDetails._new_value_validator), + ('previous_value', PaperDesktopPolicyChangedDetails._previous_value_validator), +] + +PaperDesktopPolicyChangedType._description_validator = bv.String() +PaperDesktopPolicyChangedType._all_field_names_ = set(['description']) +PaperDesktopPolicyChangedType._all_fields_ = [('description', PaperDesktopPolicyChangedType._description_validator)] + PaperDocAddCommentDetails._event_uuid_validator = bv.String() PaperDocAddCommentDetails._comment_text_validator = bv.Nullable(bv.String()) PaperDocAddCommentDetails._all_field_names_ = set([ @@ -67712,6 +76258,30 @@ def __repr__(self): PaperMemberPolicy.team_and_explicitly_shared = PaperMemberPolicy('team_and_explicitly_shared') PaperMemberPolicy.other = PaperMemberPolicy('other') +PaperPublishedLinkCreateDetails._event_uuid_validator = bv.String() +PaperPublishedLinkCreateDetails._all_field_names_ = set(['event_uuid']) +PaperPublishedLinkCreateDetails._all_fields_ = [('event_uuid', PaperPublishedLinkCreateDetails._event_uuid_validator)] + +PaperPublishedLinkCreateType._description_validator = bv.String() +PaperPublishedLinkCreateType._all_field_names_ = set(['description']) +PaperPublishedLinkCreateType._all_fields_ = [('description', PaperPublishedLinkCreateType._description_validator)] + +PaperPublishedLinkDisabledDetails._event_uuid_validator = bv.String() +PaperPublishedLinkDisabledDetails._all_field_names_ = set(['event_uuid']) +PaperPublishedLinkDisabledDetails._all_fields_ = [('event_uuid', PaperPublishedLinkDisabledDetails._event_uuid_validator)] + +PaperPublishedLinkDisabledType._description_validator = bv.String() +PaperPublishedLinkDisabledType._all_field_names_ = set(['description']) +PaperPublishedLinkDisabledType._all_fields_ = [('description', PaperPublishedLinkDisabledType._description_validator)] + +PaperPublishedLinkViewDetails._event_uuid_validator = bv.String() +PaperPublishedLinkViewDetails._all_field_names_ = set(['event_uuid']) +PaperPublishedLinkViewDetails._all_fields_ = [('event_uuid', PaperPublishedLinkViewDetails._event_uuid_validator)] + +PaperPublishedLinkViewType._description_validator = bv.String() +PaperPublishedLinkViewType._all_field_names_ = set(['description']) +PaperPublishedLinkViewType._all_fields_ = [('description', PaperPublishedLinkViewType._description_validator)] + ParticipantLogInfo._user_validator = UserLogInfo_validator ParticipantLogInfo._group_validator = GroupLogInfo_validator ParticipantLogInfo._other_validator = bv.Void() @@ -67786,27 +76356,89 @@ def __repr__(self): PermanentDeleteChangePolicyType._all_field_names_ = set(['description']) PermanentDeleteChangePolicyType._all_fields_ = [('description', PermanentDeleteChangePolicyType._description_validator)] +PlacementRestriction._australia_only_validator = bv.Void() PlacementRestriction._europe_only_validator = bv.Void() +PlacementRestriction._japan_only_validator = bv.Void() PlacementRestriction._none_validator = bv.Void() PlacementRestriction._other_validator = bv.Void() PlacementRestriction._tagmap = { + 'australia_only': PlacementRestriction._australia_only_validator, 'europe_only': PlacementRestriction._europe_only_validator, + 'japan_only': PlacementRestriction._japan_only_validator, 'none': PlacementRestriction._none_validator, 'other': PlacementRestriction._other_validator, } +PlacementRestriction.australia_only = PlacementRestriction('australia_only') PlacementRestriction.europe_only = PlacementRestriction('europe_only') +PlacementRestriction.japan_only = PlacementRestriction('japan_only') PlacementRestriction.none = PlacementRestriction('none') PlacementRestriction.other = PlacementRestriction('other') +PrimaryTeamRequestAcceptedDetails._secondary_team_validator = bv.String() +PrimaryTeamRequestAcceptedDetails._sent_by_validator = bv.String() +PrimaryTeamRequestAcceptedDetails._all_field_names_ = set([ + 'secondary_team', + 'sent_by', +]) +PrimaryTeamRequestAcceptedDetails._all_fields_ = [ + ('secondary_team', PrimaryTeamRequestAcceptedDetails._secondary_team_validator), + ('sent_by', PrimaryTeamRequestAcceptedDetails._sent_by_validator), +] + +PrimaryTeamRequestCanceledDetails._secondary_team_validator = bv.String() +PrimaryTeamRequestCanceledDetails._sent_by_validator = bv.String() +PrimaryTeamRequestCanceledDetails._all_field_names_ = set([ + 'secondary_team', + 'sent_by', +]) +PrimaryTeamRequestCanceledDetails._all_fields_ = [ + ('secondary_team', PrimaryTeamRequestCanceledDetails._secondary_team_validator), + ('sent_by', PrimaryTeamRequestCanceledDetails._sent_by_validator), +] + +PrimaryTeamRequestExpiredDetails._secondary_team_validator = bv.String() +PrimaryTeamRequestExpiredDetails._sent_by_validator = bv.String() +PrimaryTeamRequestExpiredDetails._all_field_names_ = set([ + 'secondary_team', + 'sent_by', +]) +PrimaryTeamRequestExpiredDetails._all_fields_ = [ + ('secondary_team', PrimaryTeamRequestExpiredDetails._secondary_team_validator), + ('sent_by', PrimaryTeamRequestExpiredDetails._sent_by_validator), +] + +PrimaryTeamRequestReminderDetails._secondary_team_validator = bv.String() +PrimaryTeamRequestReminderDetails._sent_to_validator = bv.String() +PrimaryTeamRequestReminderDetails._all_field_names_ = set([ + 'secondary_team', + 'sent_to', +]) +PrimaryTeamRequestReminderDetails._all_fields_ = [ + ('secondary_team', PrimaryTeamRequestReminderDetails._secondary_team_validator), + ('sent_to', PrimaryTeamRequestReminderDetails._sent_to_validator), +] + QuickActionType._delete_shared_link_validator = bv.Void() +QuickActionType._reset_password_validator = bv.Void() +QuickActionType._restore_file_or_folder_validator = bv.Void() +QuickActionType._unlink_app_validator = bv.Void() +QuickActionType._unlink_session_validator = bv.Void() QuickActionType._other_validator = bv.Void() QuickActionType._tagmap = { 'delete_shared_link': QuickActionType._delete_shared_link_validator, + 'reset_password': QuickActionType._reset_password_validator, + 'restore_file_or_folder': QuickActionType._restore_file_or_folder_validator, + 'unlink_app': QuickActionType._unlink_app_validator, + 'unlink_session': QuickActionType._unlink_session_validator, 'other': QuickActionType._other_validator, } QuickActionType.delete_shared_link = QuickActionType('delete_shared_link') +QuickActionType.reset_password = QuickActionType('reset_password') +QuickActionType.restore_file_or_folder = QuickActionType('restore_file_or_folder') +QuickActionType.unlink_app = QuickActionType('unlink_app') +QuickActionType.unlink_session = QuickActionType('unlink_session') QuickActionType.other = QuickActionType('other') RelocateAssetReferencesLogInfo._src_asset_index_validator = bv.UInt64() @@ -67831,6 +76463,34 @@ def __repr__(self): ('reseller_email', ResellerLogInfo._reseller_email_validator), ] +ResellerSupportChangePolicyDetails._new_value_validator = ResellerSupportPolicy_validator +ResellerSupportChangePolicyDetails._previous_value_validator = ResellerSupportPolicy_validator +ResellerSupportChangePolicyDetails._all_field_names_ = set([ + 'new_value', + 'previous_value', +]) +ResellerSupportChangePolicyDetails._all_fields_ = [ + ('new_value', ResellerSupportChangePolicyDetails._new_value_validator), + ('previous_value', ResellerSupportChangePolicyDetails._previous_value_validator), +] + +ResellerSupportChangePolicyType._description_validator = bv.String() +ResellerSupportChangePolicyType._all_field_names_ = set(['description']) +ResellerSupportChangePolicyType._all_fields_ = [('description', ResellerSupportChangePolicyType._description_validator)] + +ResellerSupportPolicy._disabled_validator = bv.Void() +ResellerSupportPolicy._enabled_validator = bv.Void() +ResellerSupportPolicy._other_validator = bv.Void() +ResellerSupportPolicy._tagmap = { + 'disabled': ResellerSupportPolicy._disabled_validator, + 'enabled': ResellerSupportPolicy._enabled_validator, + 'other': ResellerSupportPolicy._other_validator, +} + +ResellerSupportPolicy.disabled = ResellerSupportPolicy('disabled') +ResellerSupportPolicy.enabled = ResellerSupportPolicy('enabled') +ResellerSupportPolicy.other = ResellerSupportPolicy('other') + ResellerSupportSessionEndDetails._all_field_names_ = set([]) ResellerSupportSessionEndDetails._all_fields_ = [] @@ -67873,6 +76533,36 @@ def __repr__(self): SecondaryMailsPolicyChangedType._all_field_names_ = set(['description']) SecondaryMailsPolicyChangedType._all_fields_ = [('description', SecondaryMailsPolicyChangedType._description_validator)] +SecondaryTeamRequestAcceptedDetails._primary_team_validator = bv.String() +SecondaryTeamRequestAcceptedDetails._sent_by_validator = bv.String() +SecondaryTeamRequestAcceptedDetails._all_field_names_ = set([ + 'primary_team', + 'sent_by', +]) +SecondaryTeamRequestAcceptedDetails._all_fields_ = [ + ('primary_team', SecondaryTeamRequestAcceptedDetails._primary_team_validator), + ('sent_by', SecondaryTeamRequestAcceptedDetails._sent_by_validator), +] + +SecondaryTeamRequestCanceledDetails._sent_to_validator = bv.String() +SecondaryTeamRequestCanceledDetails._sent_by_validator = bv.String() +SecondaryTeamRequestCanceledDetails._all_field_names_ = set([ + 'sent_to', + 'sent_by', +]) +SecondaryTeamRequestCanceledDetails._all_fields_ = [ + ('sent_to', SecondaryTeamRequestCanceledDetails._sent_to_validator), + ('sent_by', SecondaryTeamRequestCanceledDetails._sent_by_validator), +] + +SecondaryTeamRequestExpiredDetails._sent_to_validator = bv.String() +SecondaryTeamRequestExpiredDetails._all_field_names_ = set(['sent_to']) +SecondaryTeamRequestExpiredDetails._all_fields_ = [('sent_to', SecondaryTeamRequestExpiredDetails._sent_to_validator)] + +SecondaryTeamRequestReminderDetails._sent_to_validator = bv.String() +SecondaryTeamRequestReminderDetails._all_field_names_ = set(['sent_to']) +SecondaryTeamRequestReminderDetails._all_fields_ = [('sent_to', SecondaryTeamRequestReminderDetails._sent_to_validator)] + SfAddGroupDetails._target_asset_index_validator = bv.UInt64() SfAddGroupDetails._original_folder_name_validator = bv.String() SfAddGroupDetails._sharing_permission_validator = bv.Nullable(bv.String()) @@ -69309,6 +77999,14 @@ def __repr__(self): ('end_date', TeamActivityCreateReportDetails._end_date_validator), ] +TeamActivityCreateReportFailDetails._failure_reason_validator = team.TeamReportFailureReason_validator +TeamActivityCreateReportFailDetails._all_field_names_ = set(['failure_reason']) +TeamActivityCreateReportFailDetails._all_fields_ = [('failure_reason', TeamActivityCreateReportFailDetails._failure_reason_validator)] + +TeamActivityCreateReportFailType._description_validator = bv.String() +TeamActivityCreateReportFailType._all_field_names_ = set(['description']) +TeamActivityCreateReportFailType._all_fields_ = [('description', TeamActivityCreateReportFailType._description_validator)] + TeamActivityCreateReportType._description_validator = bv.String() TeamActivityCreateReportType._all_field_names_ = set(['description']) TeamActivityCreateReportType._all_fields_ = [('description', TeamActivityCreateReportType._description_validator)] @@ -69348,6 +78046,34 @@ def __repr__(self): ('details', TeamEvent._details_validator), ] +TeamExtensionsPolicy._disabled_validator = bv.Void() +TeamExtensionsPolicy._enabled_validator = bv.Void() +TeamExtensionsPolicy._other_validator = bv.Void() +TeamExtensionsPolicy._tagmap = { + 'disabled': TeamExtensionsPolicy._disabled_validator, + 'enabled': TeamExtensionsPolicy._enabled_validator, + 'other': TeamExtensionsPolicy._other_validator, +} + +TeamExtensionsPolicy.disabled = TeamExtensionsPolicy('disabled') +TeamExtensionsPolicy.enabled = TeamExtensionsPolicy('enabled') +TeamExtensionsPolicy.other = TeamExtensionsPolicy('other') + +TeamExtensionsPolicyChangedDetails._new_value_validator = TeamExtensionsPolicy_validator +TeamExtensionsPolicyChangedDetails._previous_value_validator = TeamExtensionsPolicy_validator +TeamExtensionsPolicyChangedDetails._all_field_names_ = set([ + 'new_value', + 'previous_value', +]) +TeamExtensionsPolicyChangedDetails._all_fields_ = [ + ('new_value', TeamExtensionsPolicyChangedDetails._new_value_validator), + ('previous_value', TeamExtensionsPolicyChangedDetails._previous_value_validator), +] + +TeamExtensionsPolicyChangedType._description_validator = bv.String() +TeamExtensionsPolicyChangedType._all_field_names_ = set(['description']) +TeamExtensionsPolicyChangedType._all_fields_ = [('description', TeamExtensionsPolicyChangedType._description_validator)] + TeamFolderChangeStatusDetails._new_value_validator = team.TeamFolderStatus_validator TeamFolderChangeStatusDetails._previous_value_validator = bv.Nullable(team.TeamFolderStatus_validator) TeamFolderChangeStatusDetails._all_field_names_ = set([ @@ -69439,6 +78165,250 @@ def __repr__(self): TeamMergeFromType._all_field_names_ = set(['description']) TeamMergeFromType._all_fields_ = [('description', TeamMergeFromType._description_validator)] +TeamMergeRequestAcceptedDetails._request_accepted_details_validator = TeamMergeRequestAcceptedExtraDetails_validator +TeamMergeRequestAcceptedDetails._all_field_names_ = set(['request_accepted_details']) +TeamMergeRequestAcceptedDetails._all_fields_ = [('request_accepted_details', TeamMergeRequestAcceptedDetails._request_accepted_details_validator)] + +TeamMergeRequestAcceptedExtraDetails._primary_team_validator = PrimaryTeamRequestAcceptedDetails_validator +TeamMergeRequestAcceptedExtraDetails._secondary_team_validator = SecondaryTeamRequestAcceptedDetails_validator +TeamMergeRequestAcceptedExtraDetails._other_validator = bv.Void() +TeamMergeRequestAcceptedExtraDetails._tagmap = { + 'primary_team': TeamMergeRequestAcceptedExtraDetails._primary_team_validator, + 'secondary_team': TeamMergeRequestAcceptedExtraDetails._secondary_team_validator, + 'other': TeamMergeRequestAcceptedExtraDetails._other_validator, +} + +TeamMergeRequestAcceptedExtraDetails.other = TeamMergeRequestAcceptedExtraDetails('other') + +TeamMergeRequestAcceptedShownToPrimaryTeamDetails._secondary_team_validator = bv.String() +TeamMergeRequestAcceptedShownToPrimaryTeamDetails._sent_by_validator = bv.String() +TeamMergeRequestAcceptedShownToPrimaryTeamDetails._all_field_names_ = set([ + 'secondary_team', + 'sent_by', +]) +TeamMergeRequestAcceptedShownToPrimaryTeamDetails._all_fields_ = [ + ('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)] + +TeamMergeRequestAcceptedShownToSecondaryTeamDetails._primary_team_validator = bv.String() +TeamMergeRequestAcceptedShownToSecondaryTeamDetails._sent_by_validator = bv.String() +TeamMergeRequestAcceptedShownToSecondaryTeamDetails._all_field_names_ = set([ + 'primary_team', + 'sent_by', +]) +TeamMergeRequestAcceptedShownToSecondaryTeamDetails._all_fields_ = [ + ('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)] + +TeamMergeRequestAcceptedType._description_validator = bv.String() +TeamMergeRequestAcceptedType._all_field_names_ = set(['description']) +TeamMergeRequestAcceptedType._all_fields_ = [('description', TeamMergeRequestAcceptedType._description_validator)] + +TeamMergeRequestAutoCanceledDetails._details_validator = bv.Nullable(bv.String()) +TeamMergeRequestAutoCanceledDetails._all_field_names_ = set(['details']) +TeamMergeRequestAutoCanceledDetails._all_fields_ = [('details', TeamMergeRequestAutoCanceledDetails._details_validator)] + +TeamMergeRequestAutoCanceledType._description_validator = bv.String() +TeamMergeRequestAutoCanceledType._all_field_names_ = set(['description']) +TeamMergeRequestAutoCanceledType._all_fields_ = [('description', TeamMergeRequestAutoCanceledType._description_validator)] + +TeamMergeRequestCanceledDetails._request_canceled_details_validator = TeamMergeRequestCanceledExtraDetails_validator +TeamMergeRequestCanceledDetails._all_field_names_ = set(['request_canceled_details']) +TeamMergeRequestCanceledDetails._all_fields_ = [('request_canceled_details', TeamMergeRequestCanceledDetails._request_canceled_details_validator)] + +TeamMergeRequestCanceledExtraDetails._primary_team_validator = PrimaryTeamRequestCanceledDetails_validator +TeamMergeRequestCanceledExtraDetails._secondary_team_validator = SecondaryTeamRequestCanceledDetails_validator +TeamMergeRequestCanceledExtraDetails._other_validator = bv.Void() +TeamMergeRequestCanceledExtraDetails._tagmap = { + 'primary_team': TeamMergeRequestCanceledExtraDetails._primary_team_validator, + 'secondary_team': TeamMergeRequestCanceledExtraDetails._secondary_team_validator, + 'other': TeamMergeRequestCanceledExtraDetails._other_validator, +} + +TeamMergeRequestCanceledExtraDetails.other = TeamMergeRequestCanceledExtraDetails('other') + +TeamMergeRequestCanceledShownToPrimaryTeamDetails._secondary_team_validator = bv.String() +TeamMergeRequestCanceledShownToPrimaryTeamDetails._sent_by_validator = bv.String() +TeamMergeRequestCanceledShownToPrimaryTeamDetails._all_field_names_ = set([ + 'secondary_team', + 'sent_by', +]) +TeamMergeRequestCanceledShownToPrimaryTeamDetails._all_fields_ = [ + ('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)] + +TeamMergeRequestCanceledShownToSecondaryTeamDetails._sent_to_validator = bv.String() +TeamMergeRequestCanceledShownToSecondaryTeamDetails._sent_by_validator = bv.String() +TeamMergeRequestCanceledShownToSecondaryTeamDetails._all_field_names_ = set([ + 'sent_to', + 'sent_by', +]) +TeamMergeRequestCanceledShownToSecondaryTeamDetails._all_fields_ = [ + ('sent_to', TeamMergeRequestCanceledShownToSecondaryTeamDetails._sent_to_validator), + ('sent_by', TeamMergeRequestCanceledShownToSecondaryTeamDetails._sent_by_validator), +] + +TeamMergeRequestCanceledShownToSecondaryTeamType._description_validator = bv.String() +TeamMergeRequestCanceledShownToSecondaryTeamType._all_field_names_ = set(['description']) +TeamMergeRequestCanceledShownToSecondaryTeamType._all_fields_ = [('description', TeamMergeRequestCanceledShownToSecondaryTeamType._description_validator)] + +TeamMergeRequestCanceledType._description_validator = bv.String() +TeamMergeRequestCanceledType._all_field_names_ = set(['description']) +TeamMergeRequestCanceledType._all_fields_ = [('description', TeamMergeRequestCanceledType._description_validator)] + +TeamMergeRequestExpiredDetails._request_expired_details_validator = TeamMergeRequestExpiredExtraDetails_validator +TeamMergeRequestExpiredDetails._all_field_names_ = set(['request_expired_details']) +TeamMergeRequestExpiredDetails._all_fields_ = [('request_expired_details', TeamMergeRequestExpiredDetails._request_expired_details_validator)] + +TeamMergeRequestExpiredExtraDetails._primary_team_validator = PrimaryTeamRequestExpiredDetails_validator +TeamMergeRequestExpiredExtraDetails._secondary_team_validator = SecondaryTeamRequestExpiredDetails_validator +TeamMergeRequestExpiredExtraDetails._other_validator = bv.Void() +TeamMergeRequestExpiredExtraDetails._tagmap = { + 'primary_team': TeamMergeRequestExpiredExtraDetails._primary_team_validator, + 'secondary_team': TeamMergeRequestExpiredExtraDetails._secondary_team_validator, + 'other': TeamMergeRequestExpiredExtraDetails._other_validator, +} + +TeamMergeRequestExpiredExtraDetails.other = TeamMergeRequestExpiredExtraDetails('other') + +TeamMergeRequestExpiredShownToPrimaryTeamDetails._secondary_team_validator = bv.String() +TeamMergeRequestExpiredShownToPrimaryTeamDetails._sent_by_validator = bv.String() +TeamMergeRequestExpiredShownToPrimaryTeamDetails._all_field_names_ = set([ + 'secondary_team', + 'sent_by', +]) +TeamMergeRequestExpiredShownToPrimaryTeamDetails._all_fields_ = [ + ('secondary_team', TeamMergeRequestExpiredShownToPrimaryTeamDetails._secondary_team_validator), + ('sent_by', TeamMergeRequestExpiredShownToPrimaryTeamDetails._sent_by_validator), +] + +TeamMergeRequestExpiredShownToPrimaryTeamType._description_validator = bv.String() +TeamMergeRequestExpiredShownToPrimaryTeamType._all_field_names_ = set(['description']) +TeamMergeRequestExpiredShownToPrimaryTeamType._all_fields_ = [('description', TeamMergeRequestExpiredShownToPrimaryTeamType._description_validator)] + +TeamMergeRequestExpiredShownToSecondaryTeamDetails._sent_to_validator = bv.String() +TeamMergeRequestExpiredShownToSecondaryTeamDetails._all_field_names_ = set(['sent_to']) +TeamMergeRequestExpiredShownToSecondaryTeamDetails._all_fields_ = [('sent_to', TeamMergeRequestExpiredShownToSecondaryTeamDetails._sent_to_validator)] + +TeamMergeRequestExpiredShownToSecondaryTeamType._description_validator = bv.String() +TeamMergeRequestExpiredShownToSecondaryTeamType._all_field_names_ = set(['description']) +TeamMergeRequestExpiredShownToSecondaryTeamType._all_fields_ = [('description', TeamMergeRequestExpiredShownToSecondaryTeamType._description_validator)] + +TeamMergeRequestExpiredType._description_validator = bv.String() +TeamMergeRequestExpiredType._all_field_names_ = set(['description']) +TeamMergeRequestExpiredType._all_fields_ = [('description', TeamMergeRequestExpiredType._description_validator)] + +TeamMergeRequestRejectedShownToPrimaryTeamDetails._secondary_team_validator = bv.String() +TeamMergeRequestRejectedShownToPrimaryTeamDetails._sent_by_validator = bv.String() +TeamMergeRequestRejectedShownToPrimaryTeamDetails._all_field_names_ = set([ + 'secondary_team', + 'sent_by', +]) +TeamMergeRequestRejectedShownToPrimaryTeamDetails._all_fields_ = [ + ('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)] + +TeamMergeRequestRejectedShownToSecondaryTeamDetails._sent_by_validator = bv.String() +TeamMergeRequestRejectedShownToSecondaryTeamDetails._all_field_names_ = set(['sent_by']) +TeamMergeRequestRejectedShownToSecondaryTeamDetails._all_fields_ = [('sent_by', TeamMergeRequestRejectedShownToSecondaryTeamDetails._sent_by_validator)] + +TeamMergeRequestRejectedShownToSecondaryTeamType._description_validator = bv.String() +TeamMergeRequestRejectedShownToSecondaryTeamType._all_field_names_ = set(['description']) +TeamMergeRequestRejectedShownToSecondaryTeamType._all_fields_ = [('description', TeamMergeRequestRejectedShownToSecondaryTeamType._description_validator)] + +TeamMergeRequestReminderDetails._request_reminder_details_validator = TeamMergeRequestReminderExtraDetails_validator +TeamMergeRequestReminderDetails._all_field_names_ = set(['request_reminder_details']) +TeamMergeRequestReminderDetails._all_fields_ = [('request_reminder_details', TeamMergeRequestReminderDetails._request_reminder_details_validator)] + +TeamMergeRequestReminderExtraDetails._primary_team_validator = PrimaryTeamRequestReminderDetails_validator +TeamMergeRequestReminderExtraDetails._secondary_team_validator = SecondaryTeamRequestReminderDetails_validator +TeamMergeRequestReminderExtraDetails._other_validator = bv.Void() +TeamMergeRequestReminderExtraDetails._tagmap = { + 'primary_team': TeamMergeRequestReminderExtraDetails._primary_team_validator, + 'secondary_team': TeamMergeRequestReminderExtraDetails._secondary_team_validator, + 'other': TeamMergeRequestReminderExtraDetails._other_validator, +} + +TeamMergeRequestReminderExtraDetails.other = TeamMergeRequestReminderExtraDetails('other') + +TeamMergeRequestReminderShownToPrimaryTeamDetails._secondary_team_validator = bv.String() +TeamMergeRequestReminderShownToPrimaryTeamDetails._sent_to_validator = bv.String() +TeamMergeRequestReminderShownToPrimaryTeamDetails._all_field_names_ = set([ + 'secondary_team', + 'sent_to', +]) +TeamMergeRequestReminderShownToPrimaryTeamDetails._all_fields_ = [ + ('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)] + +TeamMergeRequestReminderShownToSecondaryTeamDetails._sent_to_validator = bv.String() +TeamMergeRequestReminderShownToSecondaryTeamDetails._all_field_names_ = set(['sent_to']) +TeamMergeRequestReminderShownToSecondaryTeamDetails._all_fields_ = [('sent_to', TeamMergeRequestReminderShownToSecondaryTeamDetails._sent_to_validator)] + +TeamMergeRequestReminderShownToSecondaryTeamType._description_validator = bv.String() +TeamMergeRequestReminderShownToSecondaryTeamType._all_field_names_ = set(['description']) +TeamMergeRequestReminderShownToSecondaryTeamType._all_fields_ = [('description', TeamMergeRequestReminderShownToSecondaryTeamType._description_validator)] + +TeamMergeRequestReminderType._description_validator = bv.String() +TeamMergeRequestReminderType._all_field_names_ = set(['description']) +TeamMergeRequestReminderType._all_fields_ = [('description', TeamMergeRequestReminderType._description_validator)] + +TeamMergeRequestRevokedDetails._team_validator = bv.String() +TeamMergeRequestRevokedDetails._all_field_names_ = set(['team']) +TeamMergeRequestRevokedDetails._all_fields_ = [('team', TeamMergeRequestRevokedDetails._team_validator)] + +TeamMergeRequestRevokedType._description_validator = bv.String() +TeamMergeRequestRevokedType._all_field_names_ = set(['description']) +TeamMergeRequestRevokedType._all_fields_ = [('description', TeamMergeRequestRevokedType._description_validator)] + +TeamMergeRequestSentShownToPrimaryTeamDetails._secondary_team_validator = bv.String() +TeamMergeRequestSentShownToPrimaryTeamDetails._sent_to_validator = bv.String() +TeamMergeRequestSentShownToPrimaryTeamDetails._all_field_names_ = set([ + 'secondary_team', + 'sent_to', +]) +TeamMergeRequestSentShownToPrimaryTeamDetails._all_fields_ = [ + ('secondary_team', TeamMergeRequestSentShownToPrimaryTeamDetails._secondary_team_validator), + ('sent_to', TeamMergeRequestSentShownToPrimaryTeamDetails._sent_to_validator), +] + +TeamMergeRequestSentShownToPrimaryTeamType._description_validator = bv.String() +TeamMergeRequestSentShownToPrimaryTeamType._all_field_names_ = set(['description']) +TeamMergeRequestSentShownToPrimaryTeamType._all_fields_ = [('description', TeamMergeRequestSentShownToPrimaryTeamType._description_validator)] + +TeamMergeRequestSentShownToSecondaryTeamDetails._sent_to_validator = bv.String() +TeamMergeRequestSentShownToSecondaryTeamDetails._all_field_names_ = set(['sent_to']) +TeamMergeRequestSentShownToSecondaryTeamDetails._all_fields_ = [('sent_to', TeamMergeRequestSentShownToSecondaryTeamDetails._sent_to_validator)] + +TeamMergeRequestSentShownToSecondaryTeamType._description_validator = bv.String() +TeamMergeRequestSentShownToSecondaryTeamType._all_field_names_ = set(['description']) +TeamMergeRequestSentShownToSecondaryTeamType._all_fields_ = [('description', TeamMergeRequestSentShownToSecondaryTeamType._description_validator)] + TeamMergeToDetails._team_name_validator = bv.String() TeamMergeToDetails._all_field_names_ = set(['team_name']) TeamMergeToDetails._all_fields_ = [('team_name', TeamMergeToDetails._team_name_validator)] @@ -69693,6 +78663,44 @@ def __repr__(self): TrustedNonTeamMemberType.multi_instance_admin = TrustedNonTeamMemberType('multi_instance_admin') TrustedNonTeamMemberType.other = TrustedNonTeamMemberType('other') +TrustedTeamsRequestAction._invited_validator = bv.Void() +TrustedTeamsRequestAction._expired_validator = bv.Void() +TrustedTeamsRequestAction._revoked_validator = bv.Void() +TrustedTeamsRequestAction._accepted_validator = bv.Void() +TrustedTeamsRequestAction._declined_validator = bv.Void() +TrustedTeamsRequestAction._other_validator = bv.Void() +TrustedTeamsRequestAction._tagmap = { + 'invited': TrustedTeamsRequestAction._invited_validator, + 'expired': TrustedTeamsRequestAction._expired_validator, + 'revoked': TrustedTeamsRequestAction._revoked_validator, + 'accepted': TrustedTeamsRequestAction._accepted_validator, + 'declined': TrustedTeamsRequestAction._declined_validator, + 'other': TrustedTeamsRequestAction._other_validator, +} + +TrustedTeamsRequestAction.invited = TrustedTeamsRequestAction('invited') +TrustedTeamsRequestAction.expired = TrustedTeamsRequestAction('expired') +TrustedTeamsRequestAction.revoked = TrustedTeamsRequestAction('revoked') +TrustedTeamsRequestAction.accepted = TrustedTeamsRequestAction('accepted') +TrustedTeamsRequestAction.declined = TrustedTeamsRequestAction('declined') +TrustedTeamsRequestAction.other = TrustedTeamsRequestAction('other') + +TrustedTeamsRequestState._invited_validator = bv.Void() +TrustedTeamsRequestState._linked_validator = bv.Void() +TrustedTeamsRequestState._unlinked_validator = bv.Void() +TrustedTeamsRequestState._other_validator = bv.Void() +TrustedTeamsRequestState._tagmap = { + 'invited': TrustedTeamsRequestState._invited_validator, + 'linked': TrustedTeamsRequestState._linked_validator, + 'unlinked': TrustedTeamsRequestState._unlinked_validator, + 'other': TrustedTeamsRequestState._other_validator, +} + +TrustedTeamsRequestState.invited = TrustedTeamsRequestState('invited') +TrustedTeamsRequestState.linked = TrustedTeamsRequestState('linked') +TrustedTeamsRequestState.unlinked = TrustedTeamsRequestState('unlinked') +TrustedTeamsRequestState.other = TrustedTeamsRequestState('other') + TwoAccountChangePolicyDetails._new_value_validator = TwoAccountPolicy_validator TwoAccountChangePolicyDetails._previous_value_validator = bv.Nullable(TwoAccountPolicy_validator) TwoAccountChangePolicyDetails._all_field_names_ = set([ diff --git a/dropbox/team_policies.py b/dropbox/team_policies.py index fdc78004..136fa298 100644 --- a/dropbox/team_policies.py +++ b/dropbox/team_policies.py @@ -56,8 +56,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(CameraUploadsPolicyState, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(CameraUploadsPolicyState, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'CameraUploadsPolicyState(%r, %r)' % (self._tag, self._value) @@ -117,8 +117,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(EmmState, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(EmmState, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EmmState(%r, %r)' % (self._tag, self._value) @@ -159,8 +159,8 @@ def is_admins_only(self): """ return self._tag == 'admins_only' - def _process_custom_annotations(self, annotation_type, processor): - super(GroupCreation, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GroupCreation, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GroupCreation(%r, %r)' % (self._tag, self._value) @@ -209,14 +209,66 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(OfficeAddInPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(OfficeAddInPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'OfficeAddInPolicy(%r, %r)' % (self._tag, self._value) OfficeAddInPolicy_validator = bv.Union(OfficeAddInPolicy) +class PaperDefaultFolderPolicy(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 team_policies.PaperDefaultFolderPolicy.everyone_in_team: Everyone in + team will be the default option when creating a folder in Paper. + :ivar team_policies.PaperDefaultFolderPolicy.invite_only: Invite only will + be the default option when creating a folder in Paper. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + everyone_in_team = None + # Attribute is overwritten below the class definition + invite_only = None + # Attribute is overwritten below the class definition + other = None + + def is_everyone_in_team(self): + """ + Check if the union tag is ``everyone_in_team``. + + :rtype: bool + """ + return self._tag == 'everyone_in_team' + + def is_invite_only(self): + """ + Check if the union tag is ``invite_only``. + + :rtype: bool + """ + return self._tag == 'invite_only' + + 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(PaperDefaultFolderPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperDefaultFolderPolicy(%r, %r)' % (self._tag, self._value) + +PaperDefaultFolderPolicy_validator = bv.Union(PaperDefaultFolderPolicy) + class PaperDeploymentPolicy(bb.Union): """ This class acts as a tagged union. Only one of the ``is_*`` methods will @@ -262,14 +314,66 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PaperDeploymentPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperDeploymentPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperDeploymentPolicy(%r, %r)' % (self._tag, self._value) PaperDeploymentPolicy_validator = bv.Union(PaperDeploymentPolicy) +class PaperDesktopPolicy(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 team_policies.PaperDesktopPolicy.disabled: Do not allow team members + to use Paper Desktop. + :ivar team_policies.PaperDesktopPolicy.enabled: Allow team members to use + Paper Desktop. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + disabled = None + # Attribute is overwritten below the class definition + enabled = None + # Attribute is overwritten below the class definition + other = None + + def is_disabled(self): + """ + Check if the union tag is ``disabled``. + + :rtype: bool + """ + return self._tag == 'disabled' + + def is_enabled(self): + """ + Check if the union tag is ``enabled``. + + :rtype: bool + """ + return self._tag == 'enabled' + + 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(PaperDesktopPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PaperDesktopPolicy(%r, %r)' % (self._tag, self._value) + +PaperDesktopPolicy_validator = bv.Union(PaperDesktopPolicy) + class PaperEnabledPolicy(bb.Union): """ This class acts as a tagged union. Only one of the ``is_*`` methods will @@ -323,8 +427,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PaperEnabledPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PaperEnabledPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PaperEnabledPolicy(%r, %r)' % (self._tag, self._value) @@ -387,8 +491,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(PasswordStrengthPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(PasswordStrengthPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'PasswordStrengthPolicy(%r, %r)' % (self._tag, self._value) @@ -440,8 +544,8 @@ def is_add_member_to_exceptions(self): """ return self._tag == 'add_member_to_exceptions' - def _process_custom_annotations(self, annotation_type, processor): - super(RolloutMethod, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(RolloutMethod, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'RolloutMethod(%r, %r)' % (self._tag, self._value) @@ -495,8 +599,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderJoinPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderJoinPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedFolderJoinPolicy(%r, %r)' % (self._tag, self._value) @@ -549,8 +653,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedFolderMemberPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedFolderMemberPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedFolderMemberPolicy(%r, %r)' % (self._tag, self._value) @@ -619,8 +723,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SharedLinkCreatePolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SharedLinkCreatePolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SharedLinkCreatePolicy(%r, %r)' % (self._tag, self._value) @@ -671,8 +775,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseDownloadPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseDownloadPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ShowcaseDownloadPolicy(%r, %r)' % (self._tag, self._value) @@ -721,8 +825,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseEnabledPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseEnabledPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ShowcaseEnabledPolicy(%r, %r)' % (self._tag, self._value) @@ -773,8 +877,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(ShowcaseExternalSharingPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ShowcaseExternalSharingPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'ShowcaseExternalSharingPolicy(%r, %r)' % (self._tag, self._value) @@ -825,8 +929,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SmartSyncPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SmartSyncPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SmartSyncPolicy(%r, %r)' % (self._tag, self._value) @@ -889,8 +993,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(SsoPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SsoPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SsoPolicy(%r, %r)' % (self._tag, self._value) @@ -946,7 +1050,7 @@ def sharing(self): """ Policies governing sharing. - :rtype: team_policies.TeamSharingPolicies + :rtype: TeamSharingPolicies """ if self._sharing_present: return self._sharing_value @@ -974,7 +1078,7 @@ def emm_state(self): new feature and in the future we'll be adding more new fields and additional documentation. - :rtype: team_policies.EmmState + :rtype: EmmState """ if self._emm_state_present: return self._emm_state_value @@ -997,7 +1101,7 @@ def office_addin(self): """ The admin policy around the Dropbox Office Add-In for this team. - :rtype: team_policies.OfficeAddInPolicy + :rtype: OfficeAddInPolicy """ if self._office_addin_present: return self._office_addin_value @@ -1015,8 +1119,8 @@ def office_addin(self): self._office_addin_value = None self._office_addin_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamMemberPolicies, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamMemberPolicies, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamMemberPolicies(sharing={!r}, emm_state={!r}, office_addin={!r})'.format( @@ -1072,7 +1176,7 @@ def shared_folder_member_policy(self): """ Who can join folders shared by team members. - :rtype: team_policies.SharedFolderMemberPolicy + :rtype: SharedFolderMemberPolicy """ if self._shared_folder_member_policy_present: return self._shared_folder_member_policy_value @@ -1095,7 +1199,7 @@ def shared_folder_join_policy(self): """ Which shared folders team members can join. - :rtype: team_policies.SharedFolderJoinPolicy + :rtype: SharedFolderJoinPolicy """ if self._shared_folder_join_policy_present: return self._shared_folder_join_policy_value @@ -1118,7 +1222,7 @@ def shared_link_create_policy(self): """ Who can view shared links owned by team members. - :rtype: team_policies.SharedLinkCreatePolicy + :rtype: SharedLinkCreatePolicy """ if self._shared_link_create_policy_present: return self._shared_link_create_policy_value @@ -1136,8 +1240,8 @@ def shared_link_create_policy(self): self._shared_link_create_policy_value = None self._shared_link_create_policy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamSharingPolicies, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamSharingPolicies, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamSharingPolicies(shared_folder_member_policy={!r}, shared_folder_join_policy={!r}, shared_link_create_policy={!r})'.format( @@ -1192,14 +1296,66 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(TwoStepVerificationPolicy, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TwoStepVerificationPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TwoStepVerificationPolicy(%r, %r)' % (self._tag, self._value) TwoStepVerificationPolicy_validator = bv.Union(TwoStepVerificationPolicy) +class TwoStepVerificationState(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 team_policies.TwoStepVerificationState.required: Enabled require two + factor authorization. + :ivar team_policies.TwoStepVerificationState.optional: Optional require two + factor authorization. + """ + + _catch_all = 'other' + # Attribute is overwritten below the class definition + required = None + # Attribute is overwritten below the class definition + optional = None + # Attribute is overwritten below the class definition + other = None + + def is_required(self): + """ + Check if the union tag is ``required``. + + :rtype: bool + """ + return self._tag == 'required' + + def is_optional(self): + """ + Check if the union tag is ``optional``. + + :rtype: bool + """ + return self._tag == 'optional' + + 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(TwoStepVerificationState, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'TwoStepVerificationState(%r, %r)' % (self._tag, self._value) + +TwoStepVerificationState_validator = bv.Union(TwoStepVerificationState) + CameraUploadsPolicyState._disabled_validator = bv.Void() CameraUploadsPolicyState._enabled_validator = bv.Void() CameraUploadsPolicyState._other_validator = bv.Void() @@ -1252,6 +1408,19 @@ def __repr__(self): OfficeAddInPolicy.enabled = OfficeAddInPolicy('enabled') OfficeAddInPolicy.other = OfficeAddInPolicy('other') +PaperDefaultFolderPolicy._everyone_in_team_validator = bv.Void() +PaperDefaultFolderPolicy._invite_only_validator = bv.Void() +PaperDefaultFolderPolicy._other_validator = bv.Void() +PaperDefaultFolderPolicy._tagmap = { + 'everyone_in_team': PaperDefaultFolderPolicy._everyone_in_team_validator, + 'invite_only': PaperDefaultFolderPolicy._invite_only_validator, + 'other': PaperDefaultFolderPolicy._other_validator, +} + +PaperDefaultFolderPolicy.everyone_in_team = PaperDefaultFolderPolicy('everyone_in_team') +PaperDefaultFolderPolicy.invite_only = PaperDefaultFolderPolicy('invite_only') +PaperDefaultFolderPolicy.other = PaperDefaultFolderPolicy('other') + PaperDeploymentPolicy._full_validator = bv.Void() PaperDeploymentPolicy._partial_validator = bv.Void() PaperDeploymentPolicy._other_validator = bv.Void() @@ -1265,6 +1434,19 @@ def __repr__(self): PaperDeploymentPolicy.partial = PaperDeploymentPolicy('partial') PaperDeploymentPolicy.other = PaperDeploymentPolicy('other') +PaperDesktopPolicy._disabled_validator = bv.Void() +PaperDesktopPolicy._enabled_validator = bv.Void() +PaperDesktopPolicy._other_validator = bv.Void() +PaperDesktopPolicy._tagmap = { + 'disabled': PaperDesktopPolicy._disabled_validator, + 'enabled': PaperDesktopPolicy._enabled_validator, + 'other': PaperDesktopPolicy._other_validator, +} + +PaperDesktopPolicy.disabled = PaperDesktopPolicy('disabled') +PaperDesktopPolicy.enabled = PaperDesktopPolicy('enabled') +PaperDesktopPolicy.other = PaperDesktopPolicy('other') + PaperEnabledPolicy._disabled_validator = bv.Void() PaperEnabledPolicy._enabled_validator = bv.Void() PaperEnabledPolicy._unspecified_validator = bv.Void() @@ -1461,6 +1643,19 @@ def __repr__(self): TwoStepVerificationPolicy.require_tfa_disable = TwoStepVerificationPolicy('require_tfa_disable') TwoStepVerificationPolicy.other = TwoStepVerificationPolicy('other') +TwoStepVerificationState._required_validator = bv.Void() +TwoStepVerificationState._optional_validator = bv.Void() +TwoStepVerificationState._other_validator = bv.Void() +TwoStepVerificationState._tagmap = { + 'required': TwoStepVerificationState._required_validator, + 'optional': TwoStepVerificationState._optional_validator, + 'other': TwoStepVerificationState._other_validator, +} + +TwoStepVerificationState.required = TwoStepVerificationState('required') +TwoStepVerificationState.optional = TwoStepVerificationState('optional') +TwoStepVerificationState.other = TwoStepVerificationState('other') + ROUTES = { } diff --git a/dropbox/users.py b/dropbox/users.py index 8dfd1554..5dcc6da0 100644 --- a/dropbox/users.py +++ b/dropbox/users.py @@ -123,7 +123,7 @@ def name(self): """ Details of a user's name. - :rtype: users.Name + :rtype: Name """ if self._name_present: return self._name_value @@ -238,8 +238,8 @@ def disabled(self): self._disabled_value = None self._disabled_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(Account, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(Account, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'Account(account_id={!r}, name={!r}, email={!r}, email_verified={!r}, disabled={!r}, profile_photo_url={!r})'.format( @@ -349,8 +349,8 @@ def team_member_id(self): self._team_member_id_value = None self._team_member_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(BasicAccount, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(BasicAccount, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'BasicAccount(account_id={!r}, name={!r}, email={!r}, email_verified={!r}, disabled={!r}, is_teammate={!r}, profile_photo_url={!r}, team_member_id={!r})'.format( @@ -543,7 +543,7 @@ def team(self): """ If this account is a member of a team, information about that team. - :rtype: users.FullTeam + :rtype: FullTeam """ if self._team_present: return self._team_value @@ -662,8 +662,8 @@ def root_info(self): self._root_info_value = None self._root_info_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FullAccount, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FullAccount, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FullAccount(account_id={!r}, name={!r}, email={!r}, email_verified={!r}, disabled={!r}, locale={!r}, referral_link={!r}, is_paired={!r}, account_type={!r}, root_info={!r}, profile_photo_url={!r}, country={!r}, team={!r}, team_member_id={!r})'.format( @@ -760,8 +760,8 @@ def name(self): self._name_value = None self._name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(Team, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(Team, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'Team(id={!r}, name={!r})'.format( @@ -851,8 +851,8 @@ def office_addin_policy(self): self._office_addin_policy_value = None self._office_addin_policy_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(FullTeam, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(FullTeam, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'FullTeam(id={!r}, name={!r}, sharing_policies={!r}, office_addin_policy={!r})'.format( @@ -906,8 +906,8 @@ def account_id(self): self._account_id_value = None self._account_id_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetAccountArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetAccountArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetAccountArg(account_id={!r})'.format( @@ -960,8 +960,8 @@ def account_ids(self): self._account_ids_value = None self._account_ids_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(GetAccountBatchArg, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetAccountBatchArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetAccountBatchArg(account_ids={!r})'.format( @@ -992,7 +992,7 @@ def no_account(cls, val): value ``val``. :param str val: - :rtype: users.GetAccountBatchError + :rtype: GetAccountBatchError """ return cls('no_account', val) @@ -1025,8 +1025,8 @@ def get_no_account(self): raise AttributeError("tag 'no_account' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(GetAccountBatchError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetAccountBatchError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetAccountBatchError(%r, %r)' % (self._tag, self._value) @@ -1065,8 +1065,8 @@ def is_other(self): """ return self._tag == 'other' - def _process_custom_annotations(self, annotation_type, processor): - super(GetAccountError, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GetAccountError, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'GetAccountError(%r, %r)' % (self._tag, self._value) @@ -1116,8 +1116,8 @@ def allocated(self): self._allocated_value = None self._allocated_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(IndividualSpaceAllocation, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(IndividualSpaceAllocation, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'IndividualSpaceAllocation(allocated={!r})'.format( @@ -1302,8 +1302,8 @@ def abbreviated_name(self): self._abbreviated_name_value = None self._abbreviated_name_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(Name, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(Name, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'Name(given_name={!r}, surname={!r}, familiar_name={!r}, display_name={!r}, abbreviated_name={!r})'.format( @@ -1324,10 +1324,10 @@ class SpaceAllocation(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar IndividualSpaceAllocation users.SpaceAllocation.individual: The user's - space allocation applies only to their individual account. - :ivar TeamSpaceAllocation users.SpaceAllocation.team: The user shares space - with other members of their team. + :ivar IndividualSpaceAllocation SpaceAllocation.individual: The user's space + allocation applies only to their individual account. + :ivar TeamSpaceAllocation SpaceAllocation.team: The user shares space with + other members of their team. """ _catch_all = 'other' @@ -1340,8 +1340,8 @@ def individual(cls, val): Create an instance of this class set to the ``individual`` tag with value ``val``. - :param users.IndividualSpaceAllocation val: - :rtype: users.SpaceAllocation + :param IndividualSpaceAllocation val: + :rtype: SpaceAllocation """ return cls('individual', val) @@ -1351,8 +1351,8 @@ def team(cls, val): Create an instance of this class set to the ``team`` tag with value ``val``. - :param users.TeamSpaceAllocation val: - :rtype: users.SpaceAllocation + :param TeamSpaceAllocation val: + :rtype: SpaceAllocation """ return cls('team', val) @@ -1386,7 +1386,7 @@ def get_individual(self): Only call this if :meth:`is_individual` is true. - :rtype: users.IndividualSpaceAllocation + :rtype: IndividualSpaceAllocation """ if not self.is_individual(): raise AttributeError("tag 'individual' not set") @@ -1398,14 +1398,14 @@ def get_team(self): Only call this if :meth:`is_team` is true. - :rtype: users.TeamSpaceAllocation + :rtype: TeamSpaceAllocation """ if not self.is_team(): raise AttributeError("tag 'team' not set") return self._value - def _process_custom_annotations(self, annotation_type, processor): - super(SpaceAllocation, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SpaceAllocation, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SpaceAllocation(%r, %r)' % (self._tag, self._value) @@ -1469,7 +1469,7 @@ def allocation(self): """ The user's space allocation. - :rtype: users.SpaceAllocation + :rtype: SpaceAllocation """ if self._allocation_present: return self._allocation_value @@ -1487,8 +1487,8 @@ def allocation(self): self._allocation_value = None self._allocation_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(SpaceUsage, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(SpaceUsage, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SpaceUsage(used={!r}, allocation={!r})'.format( @@ -1642,8 +1642,8 @@ def user_within_team_space_limit_type(self): self._user_within_team_space_limit_type_value = None self._user_within_team_space_limit_type_present = False - def _process_custom_annotations(self, annotation_type, processor): - super(TeamSpaceAllocation, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(TeamSpaceAllocation, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'TeamSpaceAllocation(used={!r}, allocated={!r}, user_within_team_space_allocated={!r}, user_within_team_space_limit_type={!r})'.format( diff --git a/dropbox/users_common.py b/dropbox/users_common.py index 2228102c..51483c2a 100644 --- a/dropbox/users_common.py +++ b/dropbox/users_common.py @@ -61,8 +61,8 @@ def is_business(self): """ return self._tag == 'business' - def _process_custom_annotations(self, annotation_type, processor): - super(AccountType, self)._process_custom_annotations(annotation_type, processor) + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(AccountType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'AccountType(%r, %r)' % (self._tag, self._value) diff --git a/spec b/spec index 097e9ba0..0e697d79 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 097e9ba0d39ecf2f9e97e24ecd9874983d3cef1d +Subproject commit 0e697d79d684fd800448405ecfc5a50fcb5a125f diff --git a/stone b/stone index 0c4b720c..0e929e00 160000 --- a/stone +++ b/stone @@ -1 +1 @@ -Subproject commit 0c4b720cc9377314da9850513315d28144b3285d +Subproject commit 0e929e00c7cdcfb1fa69c0a21812552a70c94e15