diff --git a/dropbox/base.py b/dropbox/base.py index 8e94e7ce..24ab78a3 100644 --- a/dropbox/base.py +++ b/dropbox/base.py @@ -11,7 +11,6 @@ async_, auth, check, - cloud_docs, common, contacts, file_properties, @@ -154,194 +153,6 @@ def check_user(self, ) return r - # ------------------------------------------ - # Routes in cloud_docs namespace - - def cloud_docs_get_content(self, - file_id): - """ - Fetch the binary content of the requested document. This route requires - Cloud Docs auth. Please make a request to cloud_docs/authorize and - supply that token in the Authorization header. - - :type file_id: str - :rtype: (None, - :class:`requests.models.Response`) - :raises: :class:`.exceptions.ApiError` - - If this raises, ApiError will contain: - :class:`dropbox.cloud_docs.CloudDocsAccessError` - - 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 = cloud_docs.GetContentArg(file_id) - r = self.request( - cloud_docs.get_content, - 'cloud_docs', - arg, - None, - ) - return None - - def cloud_docs_get_content_to_file(self, - download_path, - file_id): - """ - Fetch the binary content of the requested document. This route requires - Cloud Docs auth. Please make a request to cloud_docs/authorize and - supply that token in the Authorization header. - - :param str download_path: Path on local machine to save file. - :type file_id: str - :rtype: None - :raises: :class:`.exceptions.ApiError` - - If this raises, ApiError will contain: - :class:`dropbox.cloud_docs.CloudDocsAccessError` - """ - arg = cloud_docs.GetContentArg(file_id) - r = self.request( - cloud_docs.get_content, - 'cloud_docs', - arg, - None, - ) - self._save_body_to_file(download_path, r[1]) - return None - - def cloud_docs_get_metadata(self, - file_id=u''): - """ - Fetches metadata associated with a Cloud Doc and user. This route - requires Cloud Docs auth. Please make a request to cloud_docs/authorize - and supply that token in the Authorization header. - - :param str file_id: API ID ("id:...") associated with the Cloud Doc. - :rtype: :class:`dropbox.cloud_docs.GetMetadataResult` - :raises: :class:`.exceptions.ApiError` - - If this raises, ApiError will contain: - :class:`dropbox.cloud_docs.GetMetadataError` - """ - arg = cloud_docs.GetMetadataArg(file_id) - r = self.request( - cloud_docs.get_metadata, - 'cloud_docs', - arg, - None, - ) - return r - - def cloud_docs_lock(self, - file_id=u''): - """ - Lock a Cloud Doc. This route requires Cloud Docs auth. Please make a - request to cloud_docs/authorize and supply that token in the - Authorization header. - - :param str file_id: The API ID ("id:...") associated with the Cloud Doc - :rtype: :class:`dropbox.cloud_docs.LockResult` - :raises: :class:`.exceptions.ApiError` - - If this raises, ApiError will contain: - :class:`dropbox.cloud_docs.LockingError` - """ - arg = cloud_docs.LockArg(file_id) - r = self.request( - cloud_docs.lock, - 'cloud_docs', - arg, - None, - ) - return r - - def cloud_docs_rename(self, - file_id=u'', - title=u''): - """ - Update the title of a Cloud Doc. This route requires Cloud Docs auth. - Please make a request to cloud_docs/authorize and supply that token in - the Authorization header. - - :param str file_id: The API ID ("id:...") associated with the Cloud Doc - :param str title: The new title of the doc, excluding extension - :rtype: :class:`dropbox.cloud_docs.RenameResult` - :raises: :class:`.exceptions.ApiError` - - If this raises, ApiError will contain: - :class:`dropbox.cloud_docs.RenameError` - """ - arg = cloud_docs.RenameArg(file_id, - title) - r = self.request( - cloud_docs.rename, - 'cloud_docs', - arg, - None, - ) - return r - - def cloud_docs_unlock(self, - file_id=u''): - """ - Unlock a Cloud Doc. This route requires Cloud Docs auth. Please make a - request to cloud_docs/authorize and supply that token in the - Authorization header. - - :param str file_id: The API ID ("id:...") associated with the Cloud Doc - :rtype: :class:`dropbox.cloud_docs.UnlockResult` - :raises: :class:`.exceptions.ApiError` - - If this raises, ApiError will contain: - :class:`dropbox.cloud_docs.LockingError` - """ - arg = cloud_docs.UnlockArg(file_id) - r = self.request( - cloud_docs.unlock, - 'cloud_docs', - arg, - None, - ) - return r - - def cloud_docs_update_content(self, - f, - file_id, - actor_tokens, - additional_contents=None): - """ - Update the contents of a Cloud Doc. This should be called for files with - a max size of 150MB. This route requires Cloud Docs auth. Please make a - request to cloud_docs/authorize and supply that token in the - Authorization header. - - :param bytes f: Contents to upload. - :type file_id: str - :param list actor_tokens: A list of auth_tokens, one for each editor who - made changes to the document since the last call to update_content. - :param Nullable additional_contents: Currently, this will always be - empty until we implement upload_additional_content. - :rtype: :class:`dropbox.cloud_docs.UpdateContentResult` - :raises: :class:`.exceptions.ApiError` - - If this raises, ApiError will contain: - :class:`dropbox.cloud_docs.UpdateContentError` - """ - arg = cloud_docs.UpdateContentArg(file_id, - actor_tokens, - additional_contents) - r = self.request( - cloud_docs.update_content, - 'cloud_docs', - arg, - f, - ) - return r - # ------------------------------------------ # Routes in contacts namespace @@ -719,7 +530,8 @@ def file_requests_create(self, title, destination, deadline=None, - open=True): + open=True, + description=None): """ Creates a file request for this user. @@ -732,6 +544,7 @@ def file_requests_create(self, :param bool open: Whether or not the file request should be open. If the file request is closed, it will not accept any file submissions, but it can be opened later. + :param Nullable description: A description of the file request. :rtype: :class:`dropbox.file_requests.FileRequest` :raises: :class:`.exceptions.ApiError` @@ -741,7 +554,8 @@ def file_requests_create(self, arg = file_requests.CreateFileRequestArgs(title, destination, deadline, - open) + open, + description) r = self.request( file_requests.create, 'file_requests', @@ -870,7 +684,8 @@ def file_requests_update(self, title=None, destination=None, deadline=file_requests.UpdateFileRequestDeadline.no_update, - open=None): + open=None, + description=None): """ Update a file request. @@ -885,13 +700,15 @@ def file_requests_update(self, :type deadline: :class:`dropbox.file_requests.UpdateFileRequestDeadline` :param Nullable open: Whether to set this file request as open or closed. + :param Nullable description: The description of the file request. :rtype: :class:`dropbox.file_requests.FileRequest` """ arg = file_requests.UpdateFileRequestArgs(id, title, destination, deadline, - open) + open, + description) r = self.request( file_requests.update, 'file_requests', @@ -2949,7 +2766,8 @@ def files_upload(self, :class:`dropbox.files.WriteMode` detects conflict. For example, always return a conflict error when ``mode`` = ``WriteMode.update`` and the given "rev" doesn't match the existing file's "rev", even if - the existing file has been deleted. + the existing file has been deleted. This also forces a conflict even + when the target path refers to a file with identical contents. :rtype: :class:`dropbox.files.FileMetadata` :raises: :class:`.exceptions.ApiError` @@ -4645,11 +4463,15 @@ def sharing_list_shared_links(self, direct_only=None): """ List shared links of this user. If no path is given, returns a list of - all shared links for the current user. If a non-empty path is given, - returns a list of all shared links that allow access to the given path - - direct links to the given path and links to parent folders of the given - path. Links to parent folders can be suppressed by setting direct_only - to true. + all shared links for the current user. For members of business teams + using team space and member folders, returns all shared links in the + team member's home folder unless the team space ID is specified in the + request header. For more information, refer to the `Namespace Guide + `_. If a + non-empty path is given, returns a list of all shared links that allow + access to the given path - direct links to the given path and links to + parent folders of the given path. Links to parent folders can be + suppressed by setting direct_only to true. :param Nullable path: See :meth:`sharing_list_shared_links` description. :param Nullable cursor: The cursor returned by your last call to diff --git a/dropbox/base_team.py b/dropbox/base_team.py index 9a8e97e7..829688d7 100644 --- a/dropbox/base_team.py +++ b/dropbox/base_team.py @@ -11,7 +11,6 @@ async_, auth, check, - cloud_docs, common, contacts, file_properties, @@ -47,9 +46,6 @@ def request(self, route, namespace, arg, arg_binary=None): # ------------------------------------------ # Routes in check namespace - # ------------------------------------------ - # Routes in cloud_docs namespace - # ------------------------------------------ # Routes in contacts namespace diff --git a/dropbox/cloud_docs.py b/dropbox/cloud_docs.py deleted file mode 100644 index 4b138a1b..00000000 --- a/dropbox/cloud_docs.py +++ /dev/null @@ -1,2316 +0,0 @@ -# -*- coding: utf-8 -*- -# Auto-generated by Stone, do not modify. -# @generated -# flake8: noqa -# pylint: skip-file -""" -Endpoints and datatypes for Cloud Docs. -""" - -try: - from . import stone_validators as bv - from . import stone_base as bb -except (ImportError, SystemError, ValueError): - # Catch errors raised when importing a relative module when not in a package. - # This makes testing this file directly (outside of a package) easier. - import stone_validators as bv - import stone_base as bb - -try: - from . import ( - files, - ) -except (ImportError, SystemError, ValueError): - import files - -class CloudDocsAccessError(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 cloud_docs.CloudDocsAccessError.invalid_doc_id: The Cloud Doc ID is - invalid. - :ivar cloud_docs.CloudDocsAccessError.not_found: A Cloud Doc could not be - found for the given ID. - :ivar cloud_docs.CloudDocsAccessError.permission_denied: Permission denied - for the Cloud Doc with the given ID. - """ - - _catch_all = 'other' - # Attribute is overwritten below the class definition - invalid_doc_id = None - # Attribute is overwritten below the class definition - not_found = None - # Attribute is overwritten below the class definition - permission_denied = None - # Attribute is overwritten below the class definition - other = None - - def is_invalid_doc_id(self): - """ - Check if the union tag is ``invalid_doc_id``. - - :rtype: bool - """ - return self._tag == 'invalid_doc_id' - - def is_not_found(self): - """ - Check if the union tag is ``not_found``. - - :rtype: bool - """ - return self._tag == 'not_found' - - def is_permission_denied(self): - """ - Check if the union tag is ``permission_denied``. - - :rtype: bool - """ - return self._tag == 'permission_denied' - - 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(CloudDocsAccessError, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'CloudDocsAccessError(%r, %r)' % (self._tag, self._value) - -CloudDocsAccessError_validator = bv.Union(CloudDocsAccessError) - -class Content(bb.Struct): - """ - :ivar cloud_docs.Content.content_key: The key returned from an - upload_additional_content response. - """ - - __slots__ = [ - '_purpose_value', - '_purpose_present', - '_content_key_value', - '_content_key_present', - ] - - _has_required_fields = True - - def __init__(self, - purpose=None, - content_key=None): - self._purpose_value = None - self._purpose_present = False - self._content_key_value = None - self._content_key_present = False - if purpose is not None: - self.purpose = purpose - if content_key is not None: - self.content_key = content_key - - @property - def purpose(self): - """ - :rtype: ContentPurpose - """ - if self._purpose_present: - return self._purpose_value - else: - raise AttributeError("missing required field 'purpose'") - - @purpose.setter - def purpose(self, val): - self._purpose_validator.validate_type_only(val) - self._purpose_value = val - self._purpose_present = True - - @purpose.deleter - def purpose(self): - self._purpose_value = None - self._purpose_present = False - - @property - def content_key(self): - """ - The key returned from an upload_additional_content response. - - :rtype: str - """ - if self._content_key_present: - return self._content_key_value - else: - raise AttributeError("missing required field 'content_key'") - - @content_key.setter - def content_key(self, val): - val = self._content_key_validator.validate(val) - self._content_key_value = val - self._content_key_present = True - - @content_key.deleter - def content_key(self): - self._content_key_value = None - self._content_key_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(Content, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'Content(purpose={!r}, content_key={!r})'.format( - self._purpose_value, - self._content_key_value, - ) - -Content_validator = bv.Struct(Content) - -class ContentPurpose(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 - search = None - # Attribute is overwritten below the class definition - preview = None - # Attribute is overwritten below the class definition - other = None - - def is_search(self): - """ - Check if the union tag is ``search``. - - :rtype: bool - """ - return self._tag == 'search' - - def is_preview(self): - """ - Check if the union tag is ``preview``. - - :rtype: bool - """ - return self._tag == 'preview' - - 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(ContentPurpose, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'ContentPurpose(%r, %r)' % (self._tag, self._value) - -ContentPurpose_validator = bv.Union(ContentPurpose) - -class GenericErrorTag(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 cloud_docs.GenericErrorTag.invalid_argument: Invalid argument - supplied. - :ivar cloud_docs.GenericErrorTag.unauthenticated: User is unauthenticated. - :ivar cloud_docs.GenericErrorTag.permission_denied: User does not have - access to the specified doc. - :ivar cloud_docs.GenericErrorTag.doc_not_found: Doc could not be found based - on the supplied doc ID. - """ - - _catch_all = 'other' - # Attribute is overwritten below the class definition - invalid_argument = None - # Attribute is overwritten below the class definition - unauthenticated = None - # Attribute is overwritten below the class definition - permission_denied = None - # Attribute is overwritten below the class definition - doc_not_found = None - # Attribute is overwritten below the class definition - other = None - - def is_invalid_argument(self): - """ - Check if the union tag is ``invalid_argument``. - - :rtype: bool - """ - return self._tag == 'invalid_argument' - - def is_unauthenticated(self): - """ - Check if the union tag is ``unauthenticated``. - - :rtype: bool - """ - return self._tag == 'unauthenticated' - - def is_permission_denied(self): - """ - Check if the union tag is ``permission_denied``. - - :rtype: bool - """ - return self._tag == 'permission_denied' - - def is_doc_not_found(self): - """ - Check if the union tag is ``doc_not_found``. - - :rtype: bool - """ - return self._tag == 'doc_not_found' - - 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(GenericErrorTag, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'GenericErrorTag(%r, %r)' % (self._tag, self._value) - -GenericErrorTag_validator = bv.Union(GenericErrorTag) - -class GetContentArg(bb.Struct): - - __slots__ = [ - '_file_id_value', - '_file_id_present', - ] - - _has_required_fields = True - - def __init__(self, - file_id=None): - self._file_id_value = None - self._file_id_present = False - if file_id is not None: - self.file_id = file_id - - @property - def file_id(self): - """ - :rtype: str - """ - if self._file_id_present: - return self._file_id_value - else: - raise AttributeError("missing required field 'file_id'") - - @file_id.setter - def file_id(self, val): - val = self._file_id_validator.validate(val) - self._file_id_value = val - self._file_id_present = True - - @file_id.deleter - def file_id(self): - self._file_id_value = None - self._file_id_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(GetContentArg, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'GetContentArg(file_id={!r})'.format( - self._file_id_value, - ) - -GetContentArg_validator = bv.Struct(GetContentArg) - -class GetMetadataArg(bb.Struct): - """ - :ivar cloud_docs.GetMetadataArg.file_id: API ID ("id:...") associated with - the Cloud Doc. - """ - - __slots__ = [ - '_file_id_value', - '_file_id_present', - ] - - _has_required_fields = False - - def __init__(self, - file_id=None): - self._file_id_value = None - self._file_id_present = False - if file_id is not None: - self.file_id = file_id - - @property - def file_id(self): - """ - API ID ("id:...") associated with the Cloud Doc. - - :rtype: str - """ - if self._file_id_present: - return self._file_id_value - else: - return u'' - - @file_id.setter - def file_id(self, val): - val = self._file_id_validator.validate(val) - self._file_id_value = val - self._file_id_present = True - - @file_id.deleter - def file_id(self): - self._file_id_value = None - self._file_id_present = False - - 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(file_id={!r})'.format( - self._file_id_value, - ) - -GetMetadataArg_validator = bv.Struct(GetMetadataArg) - -class GetMetadataError(bb.Struct): - - __slots__ = [ - '_get_metadata_error_tag_value', - '_get_metadata_error_tag_present', - ] - - _has_required_fields = False - - def __init__(self, - get_metadata_error_tag=None): - self._get_metadata_error_tag_value = None - self._get_metadata_error_tag_present = False - if get_metadata_error_tag is not None: - self.get_metadata_error_tag = get_metadata_error_tag - - @property - def get_metadata_error_tag(self): - """ - :rtype: GetMetadataErrorTagUnion - """ - if self._get_metadata_error_tag_present: - return self._get_metadata_error_tag_value - else: - return None - - @get_metadata_error_tag.setter - def get_metadata_error_tag(self, val): - if val is None: - del self.get_metadata_error_tag - return - self._get_metadata_error_tag_validator.validate_type_only(val) - self._get_metadata_error_tag_value = val - self._get_metadata_error_tag_present = True - - @get_metadata_error_tag.deleter - def get_metadata_error_tag(self): - self._get_metadata_error_tag_value = None - self._get_metadata_error_tag_present = False - - 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(get_metadata_error_tag={!r})'.format( - self._get_metadata_error_tag_value, - ) - -GetMetadataError_validator = bv.Struct(GetMetadataError) - -class GetMetadataResult(bb.Struct): - """ - :ivar cloud_docs.GetMetadataResult.title: Title of the Cloud Doc without - extension. - :ivar cloud_docs.GetMetadataResult.mime_type: MIME type of the Cloud Doc. - :ivar cloud_docs.GetMetadataResult.version: Opaque string representing the - version of the document stored in Dropbox (only set for Dropbox-stored - Documents). - :ivar cloud_docs.GetMetadataResult.provider_version: Application specific - string representing the revision of a document (only set for App-stored - Documents). - :ivar cloud_docs.GetMetadataResult.user: User identified by the auth token. - :ivar cloud_docs.GetMetadataResult.is_deleted: true if the document is - deleted or purged. - :ivar cloud_docs.GetMetadataResult.user_permissions: Actions that the user - identified by the auth token can performn. This message will not be - populated for deleted documents. - """ - - __slots__ = [ - '_file_id_value', - '_file_id_present', - '_title_value', - '_title_present', - '_mime_type_value', - '_mime_type_present', - '_version_value', - '_version_present', - '_provider_version_value', - '_provider_version_present', - '_user_value', - '_user_present', - '_is_deleted_value', - '_is_deleted_present', - '_user_permissions_value', - '_user_permissions_present', - ] - - _has_required_fields = False - - def __init__(self, - file_id=None, - title=None, - mime_type=None, - version=None, - provider_version=None, - user=None, - is_deleted=None, - user_permissions=None): - self._file_id_value = None - self._file_id_present = False - self._title_value = None - self._title_present = False - self._mime_type_value = None - self._mime_type_present = False - self._version_value = None - self._version_present = False - self._provider_version_value = None - self._provider_version_present = False - self._user_value = None - self._user_present = False - self._is_deleted_value = None - self._is_deleted_present = False - self._user_permissions_value = None - self._user_permissions_present = False - if file_id is not None: - self.file_id = file_id - if title is not None: - self.title = title - if mime_type is not None: - self.mime_type = mime_type - if version is not None: - self.version = version - if provider_version is not None: - self.provider_version = provider_version - if user is not None: - self.user = user - if is_deleted is not None: - self.is_deleted = is_deleted - if user_permissions is not None: - self.user_permissions = user_permissions - - @property - def file_id(self): - """ - :rtype: str - """ - if self._file_id_present: - return self._file_id_value - else: - return u'' - - @file_id.setter - def file_id(self, val): - val = self._file_id_validator.validate(val) - self._file_id_value = val - self._file_id_present = True - - @file_id.deleter - def file_id(self): - self._file_id_value = None - self._file_id_present = False - - @property - def title(self): - """ - Title of the Cloud Doc without extension. - - :rtype: str - """ - if self._title_present: - return self._title_value - else: - return u'' - - @title.setter - def title(self, val): - val = self._title_validator.validate(val) - self._title_value = val - self._title_present = True - - @title.deleter - def title(self): - self._title_value = None - self._title_present = False - - @property - def mime_type(self): - """ - MIME type of the Cloud Doc. - - :rtype: str - """ - if self._mime_type_present: - return self._mime_type_value - else: - return u'' - - @mime_type.setter - def mime_type(self, val): - val = self._mime_type_validator.validate(val) - self._mime_type_value = val - self._mime_type_present = True - - @mime_type.deleter - def mime_type(self): - self._mime_type_value = None - self._mime_type_present = False - - @property - def version(self): - """ - Opaque string representing the version of the document stored in Dropbox - (only set for Dropbox-stored Documents). - - :rtype: str - """ - if self._version_present: - return self._version_value - else: - return u'' - - @version.setter - def version(self, val): - val = self._version_validator.validate(val) - self._version_value = val - self._version_present = True - - @version.deleter - def version(self): - self._version_value = None - self._version_present = False - - @property - def provider_version(self): - """ - Application specific string representing the revision of a document - (only set for App-stored Documents). - - :rtype: str - """ - if self._provider_version_present: - return self._provider_version_value - else: - return u'' - - @provider_version.setter - def provider_version(self, val): - val = self._provider_version_validator.validate(val) - self._provider_version_value = val - self._provider_version_present = True - - @provider_version.deleter - def provider_version(self): - self._provider_version_value = None - self._provider_version_present = False - - @property - def user(self): - """ - User identified by the auth token. - - :rtype: UserInfo - """ - if self._user_present: - return self._user_value - else: - return None - - @user.setter - def user(self, val): - if val is None: - del self.user - return - self._user_validator.validate_type_only(val) - self._user_value = val - self._user_present = True - - @user.deleter - def user(self): - self._user_value = None - self._user_present = False - - @property - def is_deleted(self): - """ - true if the document is deleted or purged. - - :rtype: bool - """ - if self._is_deleted_present: - return self._is_deleted_value - else: - return False - - @is_deleted.setter - def is_deleted(self, val): - val = self._is_deleted_validator.validate(val) - self._is_deleted_value = val - self._is_deleted_present = True - - @is_deleted.deleter - def is_deleted(self): - self._is_deleted_value = None - self._is_deleted_present = False - - @property - def user_permissions(self): - """ - Actions that the user identified by the auth token can performn. This - message will not be populated for deleted documents. - - :rtype: UserPermissions - """ - if self._user_permissions_present: - return self._user_permissions_value - else: - return None - - @user_permissions.setter - def user_permissions(self, val): - if val is None: - del self.user_permissions - return - self._user_permissions_validator.validate_type_only(val) - self._user_permissions_value = val - self._user_permissions_present = True - - @user_permissions.deleter - def user_permissions(self): - self._user_permissions_value = None - self._user_permissions_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(GetMetadataResult, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'GetMetadataResult(file_id={!r}, title={!r}, mime_type={!r}, version={!r}, provider_version={!r}, user={!r}, is_deleted={!r}, user_permissions={!r})'.format( - self._file_id_value, - self._title_value, - self._mime_type_value, - self._version_value, - self._provider_version_value, - self._user_value, - self._is_deleted_value, - self._user_permissions_value, - ) - -GetMetadataResult_validator = bv.Struct(GetMetadataResult) - -class LockArg(bb.Struct): - """ - :ivar cloud_docs.LockArg.file_id: The API ID ("id:...") associated with the - Cloud Doc - """ - - __slots__ = [ - '_file_id_value', - '_file_id_present', - ] - - _has_required_fields = False - - def __init__(self, - file_id=None): - self._file_id_value = None - self._file_id_present = False - if file_id is not None: - self.file_id = file_id - - @property - def file_id(self): - """ - The API ID ("id:...") associated with the Cloud Doc - - :rtype: str - """ - if self._file_id_present: - return self._file_id_value - else: - return u'' - - @file_id.setter - def file_id(self, val): - val = self._file_id_validator.validate(val) - self._file_id_value = val - self._file_id_present = True - - @file_id.deleter - def file_id(self): - self._file_id_value = None - self._file_id_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(LockArg, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'LockArg(file_id={!r})'.format( - self._file_id_value, - ) - -LockArg_validator = bv.Struct(LockArg) - -class LockResult(bb.Struct): - """ - :ivar cloud_docs.LockResult.expires_at: The timestamp after which the lock - will expire, measured in seconds since 1970-01-01 00:00:00 UTC - """ - - __slots__ = [ - '_file_id_value', - '_file_id_present', - '_expires_at_value', - '_expires_at_present', - ] - - _has_required_fields = False - - def __init__(self, - file_id=None, - expires_at=None): - self._file_id_value = None - self._file_id_present = False - self._expires_at_value = None - self._expires_at_present = False - if file_id is not None: - self.file_id = file_id - if expires_at is not None: - self.expires_at = expires_at - - @property - def file_id(self): - """ - :rtype: str - """ - if self._file_id_present: - return self._file_id_value - else: - return u'' - - @file_id.setter - def file_id(self, val): - val = self._file_id_validator.validate(val) - self._file_id_value = val - self._file_id_present = True - - @file_id.deleter - def file_id(self): - self._file_id_value = None - self._file_id_present = False - - @property - def expires_at(self): - """ - The timestamp after which the lock will expire, measured in seconds - since 1970-01-01 00:00:00 UTC - - :rtype: int - """ - if self._expires_at_present: - return self._expires_at_value - else: - return 0 - - @expires_at.setter - def expires_at(self, val): - val = self._expires_at_validator.validate(val) - self._expires_at_value = val - self._expires_at_present = True - - @expires_at.deleter - def expires_at(self): - self._expires_at_value = None - self._expires_at_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(LockResult, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'LockResult(file_id={!r}, expires_at={!r})'.format( - self._file_id_value, - self._expires_at_value, - ) - -LockResult_validator = bv.Struct(LockResult) - -class LockingError(bb.Struct): - - __slots__ = [ - '_locking_error_tag_value', - '_locking_error_tag_present', - ] - - _has_required_fields = False - - def __init__(self, - locking_error_tag=None): - self._locking_error_tag_value = None - self._locking_error_tag_present = False - if locking_error_tag is not None: - self.locking_error_tag = locking_error_tag - - @property - def locking_error_tag(self): - """ - :rtype: LockingErrorTagUnion - """ - if self._locking_error_tag_present: - return self._locking_error_tag_value - else: - return None - - @locking_error_tag.setter - def locking_error_tag(self, val): - if val is None: - del self.locking_error_tag - return - self._locking_error_tag_validator.validate_type_only(val) - self._locking_error_tag_value = val - self._locking_error_tag_present = True - - @locking_error_tag.deleter - def locking_error_tag(self): - self._locking_error_tag_value = None - self._locking_error_tag_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(LockingError, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'LockingError(locking_error_tag={!r})'.format( - self._locking_error_tag_value, - ) - -LockingError_validator = bv.Struct(LockingError) - -class LockingErrorTag(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 cloud_docs.LockingErrorTag.conflict: A lock on the doc is held by - another editor - """ - - _catch_all = 'other' - # Attribute is overwritten below the class definition - conflict = None - # Attribute is overwritten below the class definition - other = None - - def is_conflict(self): - """ - Check if the union tag is ``conflict``. - - :rtype: bool - """ - return self._tag == 'conflict' - - 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(LockingErrorTag, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'LockingErrorTag(%r, %r)' % (self._tag, self._value) - -LockingErrorTag_validator = bv.Union(LockingErrorTag) - -class RenameArg(bb.Struct): - """ - :ivar cloud_docs.RenameArg.file_id: The API ID ("id:...") associated with - the Cloud Doc - :ivar cloud_docs.RenameArg.title: The new title of the doc, excluding - extension - """ - - __slots__ = [ - '_file_id_value', - '_file_id_present', - '_title_value', - '_title_present', - ] - - _has_required_fields = False - - def __init__(self, - file_id=None, - title=None): - self._file_id_value = None - self._file_id_present = False - self._title_value = None - self._title_present = False - if file_id is not None: - self.file_id = file_id - if title is not None: - self.title = title - - @property - def file_id(self): - """ - The API ID ("id:...") associated with the Cloud Doc - - :rtype: str - """ - if self._file_id_present: - return self._file_id_value - else: - return u'' - - @file_id.setter - def file_id(self, val): - val = self._file_id_validator.validate(val) - self._file_id_value = val - self._file_id_present = True - - @file_id.deleter - def file_id(self): - self._file_id_value = None - self._file_id_present = False - - @property - def title(self): - """ - The new title of the doc, excluding extension - - :rtype: str - """ - if self._title_present: - return self._title_value - else: - return u'' - - @title.setter - def title(self, val): - val = self._title_validator.validate(val) - self._title_value = val - self._title_present = True - - @title.deleter - def title(self): - self._title_value = None - self._title_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(RenameArg, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'RenameArg(file_id={!r}, title={!r})'.format( - self._file_id_value, - self._title_value, - ) - -RenameArg_validator = bv.Struct(RenameArg) - -class RenameError(bb.Struct): - - __slots__ = [ - '_rename_error_tag_value', - '_rename_error_tag_present', - ] - - _has_required_fields = False - - def __init__(self, - rename_error_tag=None): - self._rename_error_tag_value = None - self._rename_error_tag_present = False - if rename_error_tag is not None: - self.rename_error_tag = rename_error_tag - - @property - def rename_error_tag(self): - """ - :rtype: RenameErrorTagUnion - """ - if self._rename_error_tag_present: - return self._rename_error_tag_value - else: - return None - - @rename_error_tag.setter - def rename_error_tag(self, val): - if val is None: - del self.rename_error_tag - return - self._rename_error_tag_validator.validate_type_only(val) - self._rename_error_tag_value = val - self._rename_error_tag_present = True - - @rename_error_tag.deleter - def rename_error_tag(self): - self._rename_error_tag_value = None - self._rename_error_tag_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(RenameError, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'RenameError(rename_error_tag={!r})'.format( - self._rename_error_tag_value, - ) - -RenameError_validator = bv.Struct(RenameError) - -class RenameErrorTag(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 cloud_docs.RenameErrorTag.invalid_title: The supplied title is - invalid, e.g. the length of the title is longer than max length (255 - characters); the title contains illegal characters. - """ - - _catch_all = 'other' - # Attribute is overwritten below the class definition - invalid_title = None - # Attribute is overwritten below the class definition - other = None - - def is_invalid_title(self): - """ - Check if the union tag is ``invalid_title``. - - :rtype: bool - """ - return self._tag == 'invalid_title' - - 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(RenameErrorTag, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'RenameErrorTag(%r, %r)' % (self._tag, self._value) - -RenameErrorTag_validator = bv.Union(RenameErrorTag) - -class RenameResult(bb.Struct): - """ - :ivar cloud_docs.RenameResult.title: The updated title of the doc without - extension, which could be different from the supplied title in the - request because Dropbox may remove/replace charaters that are not - supported in Dropbox Filesystem. - """ - - __slots__ = [ - '_title_value', - '_title_present', - ] - - _has_required_fields = False - - def __init__(self, - title=None): - self._title_value = None - self._title_present = False - if title is not None: - self.title = title - - @property - def title(self): - """ - The updated title of the doc without extension, which could be different - from the supplied title in the request because Dropbox may - remove/replace charaters that are not supported in Dropbox Filesystem. - - :rtype: str - """ - if self._title_present: - return self._title_value - else: - return u'' - - @title.setter - def title(self, val): - val = self._title_validator.validate(val) - self._title_value = val - self._title_present = True - - @title.deleter - def title(self): - self._title_value = None - self._title_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(RenameResult, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'RenameResult(title={!r})'.format( - self._title_value, - ) - -RenameResult_validator = bv.Struct(RenameResult) - -class UnlockArg(bb.Struct): - """ - :ivar cloud_docs.UnlockArg.file_id: The API ID ("id:...") associated with - the Cloud Doc - """ - - __slots__ = [ - '_file_id_value', - '_file_id_present', - ] - - _has_required_fields = False - - def __init__(self, - file_id=None): - self._file_id_value = None - self._file_id_present = False - if file_id is not None: - self.file_id = file_id - - @property - def file_id(self): - """ - The API ID ("id:...") associated with the Cloud Doc - - :rtype: str - """ - if self._file_id_present: - return self._file_id_value - else: - return u'' - - @file_id.setter - def file_id(self, val): - val = self._file_id_validator.validate(val) - self._file_id_value = val - self._file_id_present = True - - @file_id.deleter - def file_id(self): - self._file_id_value = None - self._file_id_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(UnlockArg, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'UnlockArg(file_id={!r})'.format( - self._file_id_value, - ) - -UnlockArg_validator = bv.Struct(UnlockArg) - -class UnlockResult(bb.Struct): - """ - Empty message for unlock - """ - - __slots__ = [ - ] - - _has_required_fields = False - - def __init__(self): - pass - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(UnlockResult, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'UnlockResult()' - -UnlockResult_validator = bv.Struct(UnlockResult) - -class UpdateContentArg(bb.Struct): - """ - :ivar cloud_docs.UpdateContentArg.actor_tokens: A list of auth_tokens, one - for each editor who made changes to the document since the last call to - update_content. - :ivar cloud_docs.UpdateContentArg.additional_contents: Currently, this will - always be empty until we implement upload_additional_content. - """ - - __slots__ = [ - '_file_id_value', - '_file_id_present', - '_actor_tokens_value', - '_actor_tokens_present', - '_additional_contents_value', - '_additional_contents_present', - ] - - _has_required_fields = True - - def __init__(self, - file_id=None, - actor_tokens=None, - additional_contents=None): - self._file_id_value = None - self._file_id_present = False - self._actor_tokens_value = None - self._actor_tokens_present = False - self._additional_contents_value = None - self._additional_contents_present = False - if file_id is not None: - self.file_id = file_id - if actor_tokens is not None: - self.actor_tokens = actor_tokens - if additional_contents is not None: - self.additional_contents = additional_contents - - @property - def file_id(self): - """ - :rtype: str - """ - if self._file_id_present: - return self._file_id_value - else: - raise AttributeError("missing required field 'file_id'") - - @file_id.setter - def file_id(self, val): - val = self._file_id_validator.validate(val) - self._file_id_value = val - self._file_id_present = True - - @file_id.deleter - def file_id(self): - self._file_id_value = None - self._file_id_present = False - - @property - def actor_tokens(self): - """ - A list of auth_tokens, one for each editor who made changes to the - document since the last call to update_content. - - :rtype: list of [str] - """ - if self._actor_tokens_present: - return self._actor_tokens_value - else: - raise AttributeError("missing required field 'actor_tokens'") - - @actor_tokens.setter - def actor_tokens(self, val): - val = self._actor_tokens_validator.validate(val) - self._actor_tokens_value = val - self._actor_tokens_present = True - - @actor_tokens.deleter - def actor_tokens(self): - self._actor_tokens_value = None - self._actor_tokens_present = False - - @property - def additional_contents(self): - """ - Currently, this will always be empty until we implement - upload_additional_content. - - :rtype: list of [Content] - """ - if self._additional_contents_present: - return self._additional_contents_value - else: - return None - - @additional_contents.setter - def additional_contents(self, val): - if val is None: - del self.additional_contents - return - val = self._additional_contents_validator.validate(val) - self._additional_contents_value = val - self._additional_contents_present = True - - @additional_contents.deleter - def additional_contents(self): - self._additional_contents_value = None - self._additional_contents_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(UpdateContentArg, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'UpdateContentArg(file_id={!r}, actor_tokens={!r}, additional_contents={!r})'.format( - self._file_id_value, - self._actor_tokens_value, - self._additional_contents_value, - ) - -UpdateContentArg_validator = bv.Struct(UpdateContentArg) - -class UpdateContentError(CloudDocsAccessError): - """ - 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 cloud_docs.UpdateContentError.upload_size_too_large: Upload payload - exceeds maximum allowed size of 150MB. - :ivar cloud_docs.UpdateContentError.conflict: A lock on the document - identified by path_or_id is held by another editor. - :ivar cloud_docs.UpdateContentError.unlocked: A lock is not held on the - document identified by path_or_id. Acquire lock before uploading content - for the document. - """ - - # Attribute is overwritten below the class definition - upload_size_too_large = None - # Attribute is overwritten below the class definition - conflict = None - # Attribute is overwritten below the class definition - unlocked = None - - def is_upload_size_too_large(self): - """ - Check if the union tag is ``upload_size_too_large``. - - :rtype: bool - """ - return self._tag == 'upload_size_too_large' - - def is_conflict(self): - """ - Check if the union tag is ``conflict``. - - :rtype: bool - """ - return self._tag == 'conflict' - - def is_unlocked(self): - """ - Check if the union tag is ``unlocked``. - - :rtype: bool - """ - return self._tag == 'unlocked' - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(UpdateContentError, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'UpdateContentError(%r, %r)' % (self._tag, self._value) - -UpdateContentError_validator = bv.Union(UpdateContentError) - -class UpdateContentResult(bb.Struct): - """ - :ivar cloud_docs.UpdateContentResult.version: Version of the document stored - in Dropbox. - """ - - __slots__ = [ - '_version_value', - '_version_present', - ] - - _has_required_fields = True - - def __init__(self, - version=None): - self._version_value = None - self._version_present = False - if version is not None: - self.version = version - - @property - def version(self): - """ - Version of the document stored in Dropbox. - - :rtype: str - """ - if self._version_present: - return self._version_value - else: - raise AttributeError("missing required field 'version'") - - @version.setter - def version(self, val): - val = self._version_validator.validate(val) - self._version_value = val - self._version_present = True - - @version.deleter - def version(self): - self._version_value = None - self._version_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(UpdateContentResult, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'UpdateContentResult(version={!r})'.format( - self._version_value, - ) - -UpdateContentResult_validator = bv.Struct(UpdateContentResult) - -class UserInfo(bb.Struct): - """ - :ivar cloud_docs.UserInfo.id: ID associated with the user. - :ivar cloud_docs.UserInfo.email: Email associated with the user. - """ - - __slots__ = [ - '_id_value', - '_id_present', - '_email_value', - '_email_present', - ] - - _has_required_fields = False - - def __init__(self, - id=None, - email=None): - self._id_value = None - self._id_present = False - self._email_value = None - self._email_present = False - if id is not None: - self.id = id - if email is not None: - self.email = email - - @property - def id(self): - """ - ID associated with the user. - - :rtype: str - """ - if self._id_present: - return self._id_value - else: - return u'' - - @id.setter - def id(self, val): - val = self._id_validator.validate(val) - self._id_value = val - self._id_present = True - - @id.deleter - def id(self): - self._id_value = None - self._id_present = False - - @property - def email(self): - """ - Email associated with the user. - - :rtype: str - """ - if self._email_present: - return self._email_value - else: - return u'' - - @email.setter - def email(self, val): - 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(UserInfo, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'UserInfo(id={!r}, email={!r})'.format( - self._id_value, - self._email_value, - ) - -UserInfo_validator = bv.Struct(UserInfo) - -class UserPermissions(bb.Struct): - """ - :ivar cloud_docs.UserPermissions.can_edit: true if the user can edit the - content of this document - :ivar cloud_docs.UserPermissions.can_rename: true if the user can edit the - title of this document - :ivar cloud_docs.UserPermissions.can_comment: true if the user can comment - on this document - :ivar cloud_docs.UserPermissions.can_download: true if the user can download - the contents of this document. currently always true if the user has - view access to the document. - """ - - __slots__ = [ - '_can_edit_value', - '_can_edit_present', - '_can_rename_value', - '_can_rename_present', - '_can_comment_value', - '_can_comment_present', - '_can_download_value', - '_can_download_present', - ] - - _has_required_fields = False - - def __init__(self, - can_edit=None, - can_rename=None, - can_comment=None, - can_download=None): - self._can_edit_value = None - self._can_edit_present = False - self._can_rename_value = None - self._can_rename_present = False - self._can_comment_value = None - self._can_comment_present = False - self._can_download_value = None - self._can_download_present = False - if can_edit is not None: - self.can_edit = can_edit - if can_rename is not None: - self.can_rename = can_rename - if can_comment is not None: - self.can_comment = can_comment - if can_download is not None: - self.can_download = can_download - - @property - def can_edit(self): - """ - true if the user can edit the content of this document - - :rtype: bool - """ - if self._can_edit_present: - return self._can_edit_value - else: - return False - - @can_edit.setter - def can_edit(self, val): - val = self._can_edit_validator.validate(val) - self._can_edit_value = val - self._can_edit_present = True - - @can_edit.deleter - def can_edit(self): - self._can_edit_value = None - self._can_edit_present = False - - @property - def can_rename(self): - """ - true if the user can edit the title of this document - - :rtype: bool - """ - if self._can_rename_present: - return self._can_rename_value - else: - return False - - @can_rename.setter - def can_rename(self, val): - val = self._can_rename_validator.validate(val) - self._can_rename_value = val - self._can_rename_present = True - - @can_rename.deleter - def can_rename(self): - self._can_rename_value = None - self._can_rename_present = False - - @property - def can_comment(self): - """ - true if the user can comment on this document - - :rtype: bool - """ - if self._can_comment_present: - return self._can_comment_value - else: - return False - - @can_comment.setter - def can_comment(self, val): - val = self._can_comment_validator.validate(val) - self._can_comment_value = val - self._can_comment_present = True - - @can_comment.deleter - def can_comment(self): - self._can_comment_value = None - self._can_comment_present = False - - @property - def can_download(self): - """ - true if the user can download the contents of this document. currently - always true if the user has view access to the document. - - :rtype: bool - """ - if self._can_download_present: - return self._can_download_value - else: - return False - - @can_download.setter - def can_download(self, val): - val = self._can_download_validator.validate(val) - self._can_download_value = val - self._can_download_present = True - - @can_download.deleter - def can_download(self): - self._can_download_value = None - self._can_download_present = False - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(UserPermissions, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'UserPermissions(can_edit={!r}, can_rename={!r}, can_comment={!r}, can_download={!r})'.format( - self._can_edit_value, - self._can_rename_value, - self._can_comment_value, - self._can_download_value, - ) - -UserPermissions_validator = bv.Struct(UserPermissions) - -class GetMetadataErrorTagUnion(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 - other = None - - @classmethod - def generic_error(cls, val): - """ - Create an instance of this class set to the ``generic_error`` tag with - value ``val``. - - :param GenericErrorTag val: - :rtype: GetMetadataErrorTagUnion - """ - return cls('generic_error', val) - - def is_generic_error(self): - """ - Check if the union tag is ``generic_error``. - - :rtype: bool - """ - return self._tag == 'generic_error' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def get_generic_error(self): - """ - Only call this if :meth:`is_generic_error` is true. - - :rtype: GenericErrorTag - """ - if not self.is_generic_error(): - raise AttributeError("tag 'generic_error' not set") - return self._value - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(GetMetadataErrorTagUnion, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'GetMetadataErrorTagUnion(%r, %r)' % (self._tag, self._value) - -GetMetadataErrorTagUnion_validator = bv.Union(GetMetadataErrorTagUnion) - -class LockingErrorTagUnion(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 - other = None - - @classmethod - def locking_error(cls, val): - """ - Create an instance of this class set to the ``locking_error`` tag with - value ``val``. - - :param LockingErrorTag val: - :rtype: LockingErrorTagUnion - """ - return cls('locking_error', val) - - @classmethod - def generic_error(cls, val): - """ - Create an instance of this class set to the ``generic_error`` tag with - value ``val``. - - :param GenericErrorTag val: - :rtype: LockingErrorTagUnion - """ - return cls('generic_error', val) - - def is_locking_error(self): - """ - Check if the union tag is ``locking_error``. - - :rtype: bool - """ - return self._tag == 'locking_error' - - def is_generic_error(self): - """ - Check if the union tag is ``generic_error``. - - :rtype: bool - """ - return self._tag == 'generic_error' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def get_locking_error(self): - """ - Only call this if :meth:`is_locking_error` is true. - - :rtype: LockingErrorTag - """ - if not self.is_locking_error(): - raise AttributeError("tag 'locking_error' not set") - return self._value - - def get_generic_error(self): - """ - Only call this if :meth:`is_generic_error` is true. - - :rtype: GenericErrorTag - """ - if not self.is_generic_error(): - raise AttributeError("tag 'generic_error' not set") - return self._value - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(LockingErrorTagUnion, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'LockingErrorTagUnion(%r, %r)' % (self._tag, self._value) - -LockingErrorTagUnion_validator = bv.Union(LockingErrorTagUnion) - -class RenameErrorTagUnion(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 - other = None - - @classmethod - def rename_error(cls, val): - """ - Create an instance of this class set to the ``rename_error`` tag with - value ``val``. - - :param RenameErrorTag val: - :rtype: RenameErrorTagUnion - """ - return cls('rename_error', val) - - @classmethod - def generic_error(cls, val): - """ - Create an instance of this class set to the ``generic_error`` tag with - value ``val``. - - :param GenericErrorTag val: - :rtype: RenameErrorTagUnion - """ - return cls('generic_error', val) - - @classmethod - def locking_error(cls, val): - """ - Create an instance of this class set to the ``locking_error`` tag with - value ``val``. - - :param LockingErrorTag val: - :rtype: RenameErrorTagUnion - """ - return cls('locking_error', val) - - def is_rename_error(self): - """ - Check if the union tag is ``rename_error``. - - :rtype: bool - """ - return self._tag == 'rename_error' - - def is_generic_error(self): - """ - Check if the union tag is ``generic_error``. - - :rtype: bool - """ - return self._tag == 'generic_error' - - def is_locking_error(self): - """ - Check if the union tag is ``locking_error``. - - :rtype: bool - """ - return self._tag == 'locking_error' - - def is_other(self): - """ - Check if the union tag is ``other``. - - :rtype: bool - """ - return self._tag == 'other' - - def get_rename_error(self): - """ - Only call this if :meth:`is_rename_error` is true. - - :rtype: RenameErrorTag - """ - if not self.is_rename_error(): - raise AttributeError("tag 'rename_error' not set") - return self._value - - def get_generic_error(self): - """ - Only call this if :meth:`is_generic_error` is true. - - :rtype: GenericErrorTag - """ - if not self.is_generic_error(): - raise AttributeError("tag 'generic_error' not set") - return self._value - - def get_locking_error(self): - """ - Only call this if :meth:`is_locking_error` is true. - - :rtype: LockingErrorTag - """ - if not self.is_locking_error(): - raise AttributeError("tag 'locking_error' not set") - return self._value - - def _process_custom_annotations(self, annotation_type, field_path, processor): - super(RenameErrorTagUnion, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'RenameErrorTagUnion(%r, %r)' % (self._tag, self._value) - -RenameErrorTagUnion_validator = bv.Union(RenameErrorTagUnion) - -CloudDocsAccessError._invalid_doc_id_validator = bv.Void() -CloudDocsAccessError._not_found_validator = bv.Void() -CloudDocsAccessError._permission_denied_validator = bv.Void() -CloudDocsAccessError._other_validator = bv.Void() -CloudDocsAccessError._tagmap = { - 'invalid_doc_id': CloudDocsAccessError._invalid_doc_id_validator, - 'not_found': CloudDocsAccessError._not_found_validator, - 'permission_denied': CloudDocsAccessError._permission_denied_validator, - 'other': CloudDocsAccessError._other_validator, -} - -CloudDocsAccessError.invalid_doc_id = CloudDocsAccessError('invalid_doc_id') -CloudDocsAccessError.not_found = CloudDocsAccessError('not_found') -CloudDocsAccessError.permission_denied = CloudDocsAccessError('permission_denied') -CloudDocsAccessError.other = CloudDocsAccessError('other') - -Content._purpose_validator = ContentPurpose_validator -Content._content_key_validator = bv.String() -Content._all_field_names_ = set([ - 'purpose', - 'content_key', -]) -Content._all_fields_ = [ - ('purpose', Content._purpose_validator), - ('content_key', Content._content_key_validator), -] - -ContentPurpose._search_validator = bv.Void() -ContentPurpose._preview_validator = bv.Void() -ContentPurpose._other_validator = bv.Void() -ContentPurpose._tagmap = { - 'search': ContentPurpose._search_validator, - 'preview': ContentPurpose._preview_validator, - 'other': ContentPurpose._other_validator, -} - -ContentPurpose.search = ContentPurpose('search') -ContentPurpose.preview = ContentPurpose('preview') -ContentPurpose.other = ContentPurpose('other') - -GenericErrorTag._invalid_argument_validator = bv.Void() -GenericErrorTag._unauthenticated_validator = bv.Void() -GenericErrorTag._permission_denied_validator = bv.Void() -GenericErrorTag._doc_not_found_validator = bv.Void() -GenericErrorTag._other_validator = bv.Void() -GenericErrorTag._tagmap = { - 'invalid_argument': GenericErrorTag._invalid_argument_validator, - 'unauthenticated': GenericErrorTag._unauthenticated_validator, - 'permission_denied': GenericErrorTag._permission_denied_validator, - 'doc_not_found': GenericErrorTag._doc_not_found_validator, - 'other': GenericErrorTag._other_validator, -} - -GenericErrorTag.invalid_argument = GenericErrorTag('invalid_argument') -GenericErrorTag.unauthenticated = GenericErrorTag('unauthenticated') -GenericErrorTag.permission_denied = GenericErrorTag('permission_denied') -GenericErrorTag.doc_not_found = GenericErrorTag('doc_not_found') -GenericErrorTag.other = GenericErrorTag('other') - -GetContentArg._file_id_validator = files.FileId_validator -GetContentArg._all_field_names_ = set(['file_id']) -GetContentArg._all_fields_ = [('file_id', GetContentArg._file_id_validator)] - -GetMetadataArg._file_id_validator = bv.String() -GetMetadataArg._all_field_names_ = set(['file_id']) -GetMetadataArg._all_fields_ = [('file_id', GetMetadataArg._file_id_validator)] - -GetMetadataError._get_metadata_error_tag_validator = bv.Nullable(GetMetadataErrorTagUnion_validator) -GetMetadataError._all_field_names_ = set(['get_metadata_error_tag']) -GetMetadataError._all_fields_ = [('get_metadata_error_tag', GetMetadataError._get_metadata_error_tag_validator)] - -GetMetadataResult._file_id_validator = bv.String() -GetMetadataResult._title_validator = bv.String() -GetMetadataResult._mime_type_validator = bv.String() -GetMetadataResult._version_validator = bv.String() -GetMetadataResult._provider_version_validator = bv.String() -GetMetadataResult._user_validator = bv.Nullable(UserInfo_validator) -GetMetadataResult._is_deleted_validator = bv.Boolean() -GetMetadataResult._user_permissions_validator = bv.Nullable(UserPermissions_validator) -GetMetadataResult._all_field_names_ = set([ - 'file_id', - 'title', - 'mime_type', - 'version', - 'provider_version', - 'user', - 'is_deleted', - 'user_permissions', -]) -GetMetadataResult._all_fields_ = [ - ('file_id', GetMetadataResult._file_id_validator), - ('title', GetMetadataResult._title_validator), - ('mime_type', GetMetadataResult._mime_type_validator), - ('version', GetMetadataResult._version_validator), - ('provider_version', GetMetadataResult._provider_version_validator), - ('user', GetMetadataResult._user_validator), - ('is_deleted', GetMetadataResult._is_deleted_validator), - ('user_permissions', GetMetadataResult._user_permissions_validator), -] - -LockArg._file_id_validator = bv.String() -LockArg._all_field_names_ = set(['file_id']) -LockArg._all_fields_ = [('file_id', LockArg._file_id_validator)] - -LockResult._file_id_validator = bv.String() -LockResult._expires_at_validator = bv.Int64() -LockResult._all_field_names_ = set([ - 'file_id', - 'expires_at', -]) -LockResult._all_fields_ = [ - ('file_id', LockResult._file_id_validator), - ('expires_at', LockResult._expires_at_validator), -] - -LockingError._locking_error_tag_validator = bv.Nullable(LockingErrorTagUnion_validator) -LockingError._all_field_names_ = set(['locking_error_tag']) -LockingError._all_fields_ = [('locking_error_tag', LockingError._locking_error_tag_validator)] - -LockingErrorTag._conflict_validator = bv.Void() -LockingErrorTag._other_validator = bv.Void() -LockingErrorTag._tagmap = { - 'conflict': LockingErrorTag._conflict_validator, - 'other': LockingErrorTag._other_validator, -} - -LockingErrorTag.conflict = LockingErrorTag('conflict') -LockingErrorTag.other = LockingErrorTag('other') - -RenameArg._file_id_validator = bv.String() -RenameArg._title_validator = bv.String() -RenameArg._all_field_names_ = set([ - 'file_id', - 'title', -]) -RenameArg._all_fields_ = [ - ('file_id', RenameArg._file_id_validator), - ('title', RenameArg._title_validator), -] - -RenameError._rename_error_tag_validator = bv.Nullable(RenameErrorTagUnion_validator) -RenameError._all_field_names_ = set(['rename_error_tag']) -RenameError._all_fields_ = [('rename_error_tag', RenameError._rename_error_tag_validator)] - -RenameErrorTag._invalid_title_validator = bv.Void() -RenameErrorTag._other_validator = bv.Void() -RenameErrorTag._tagmap = { - 'invalid_title': RenameErrorTag._invalid_title_validator, - 'other': RenameErrorTag._other_validator, -} - -RenameErrorTag.invalid_title = RenameErrorTag('invalid_title') -RenameErrorTag.other = RenameErrorTag('other') - -RenameResult._title_validator = bv.String() -RenameResult._all_field_names_ = set(['title']) -RenameResult._all_fields_ = [('title', RenameResult._title_validator)] - -UnlockArg._file_id_validator = bv.String() -UnlockArg._all_field_names_ = set(['file_id']) -UnlockArg._all_fields_ = [('file_id', UnlockArg._file_id_validator)] - -UnlockResult._all_field_names_ = set([]) -UnlockResult._all_fields_ = [] - -UpdateContentArg._file_id_validator = files.FileId_validator -UpdateContentArg._actor_tokens_validator = bv.List(bv.String()) -UpdateContentArg._additional_contents_validator = bv.Nullable(bv.List(Content_validator)) -UpdateContentArg._all_field_names_ = set([ - 'file_id', - 'actor_tokens', - 'additional_contents', -]) -UpdateContentArg._all_fields_ = [ - ('file_id', UpdateContentArg._file_id_validator), - ('actor_tokens', UpdateContentArg._actor_tokens_validator), - ('additional_contents', UpdateContentArg._additional_contents_validator), -] - -UpdateContentError._upload_size_too_large_validator = bv.Void() -UpdateContentError._conflict_validator = bv.Void() -UpdateContentError._unlocked_validator = bv.Void() -UpdateContentError._tagmap = { - 'upload_size_too_large': UpdateContentError._upload_size_too_large_validator, - 'conflict': UpdateContentError._conflict_validator, - 'unlocked': UpdateContentError._unlocked_validator, -} -UpdateContentError._tagmap.update(CloudDocsAccessError._tagmap) - -UpdateContentError.upload_size_too_large = UpdateContentError('upload_size_too_large') -UpdateContentError.conflict = UpdateContentError('conflict') -UpdateContentError.unlocked = UpdateContentError('unlocked') - -UpdateContentResult._version_validator = bv.String() -UpdateContentResult._all_field_names_ = set(['version']) -UpdateContentResult._all_fields_ = [('version', UpdateContentResult._version_validator)] - -UserInfo._id_validator = bv.String() -UserInfo._email_validator = bv.String() -UserInfo._all_field_names_ = set([ - 'id', - 'email', -]) -UserInfo._all_fields_ = [ - ('id', UserInfo._id_validator), - ('email', UserInfo._email_validator), -] - -UserPermissions._can_edit_validator = bv.Boolean() -UserPermissions._can_rename_validator = bv.Boolean() -UserPermissions._can_comment_validator = bv.Boolean() -UserPermissions._can_download_validator = bv.Boolean() -UserPermissions._all_field_names_ = set([ - 'can_edit', - 'can_rename', - 'can_comment', - 'can_download', -]) -UserPermissions._all_fields_ = [ - ('can_edit', UserPermissions._can_edit_validator), - ('can_rename', UserPermissions._can_rename_validator), - ('can_comment', UserPermissions._can_comment_validator), - ('can_download', UserPermissions._can_download_validator), -] - -GetMetadataErrorTagUnion._generic_error_validator = GenericErrorTag_validator -GetMetadataErrorTagUnion._other_validator = bv.Void() -GetMetadataErrorTagUnion._tagmap = { - 'generic_error': GetMetadataErrorTagUnion._generic_error_validator, - 'other': GetMetadataErrorTagUnion._other_validator, -} - -GetMetadataErrorTagUnion.other = GetMetadataErrorTagUnion('other') - -LockingErrorTagUnion._locking_error_validator = LockingErrorTag_validator -LockingErrorTagUnion._generic_error_validator = GenericErrorTag_validator -LockingErrorTagUnion._other_validator = bv.Void() -LockingErrorTagUnion._tagmap = { - 'locking_error': LockingErrorTagUnion._locking_error_validator, - 'generic_error': LockingErrorTagUnion._generic_error_validator, - 'other': LockingErrorTagUnion._other_validator, -} - -LockingErrorTagUnion.other = LockingErrorTagUnion('other') - -RenameErrorTagUnion._rename_error_validator = RenameErrorTag_validator -RenameErrorTagUnion._generic_error_validator = GenericErrorTag_validator -RenameErrorTagUnion._locking_error_validator = LockingErrorTag_validator -RenameErrorTagUnion._other_validator = bv.Void() -RenameErrorTagUnion._tagmap = { - 'rename_error': RenameErrorTagUnion._rename_error_validator, - 'generic_error': RenameErrorTagUnion._generic_error_validator, - 'locking_error': RenameErrorTagUnion._locking_error_validator, - 'other': RenameErrorTagUnion._other_validator, -} - -RenameErrorTagUnion.other = RenameErrorTagUnion('other') - -get_content = bb.Route( - 'get_content', - 1, - False, - GetContentArg_validator, - bv.Void(), - CloudDocsAccessError_validator, - {'host': u'content', - 'style': u'download'}, -) -get_metadata = bb.Route( - 'get_metadata', - 1, - False, - GetMetadataArg_validator, - GetMetadataResult_validator, - GetMetadataError_validator, - {'host': u'api', - 'style': u'rpc'}, -) -lock = bb.Route( - 'lock', - 1, - False, - LockArg_validator, - LockResult_validator, - LockingError_validator, - {'host': u'api', - 'style': u'rpc'}, -) -rename = bb.Route( - 'rename', - 1, - False, - RenameArg_validator, - RenameResult_validator, - RenameError_validator, - {'host': u'api', - 'style': u'rpc'}, -) -unlock = bb.Route( - 'unlock', - 1, - False, - UnlockArg_validator, - UnlockResult_validator, - LockingError_validator, - {'host': u'api', - 'style': u'rpc'}, -) -update_content = bb.Route( - 'update_content', - 1, - False, - UpdateContentArg_validator, - UpdateContentResult_validator, - UpdateContentError_validator, - {'host': u'content', - 'style': u'upload'}, -) - -ROUTES = { - 'get_content': get_content, - 'get_metadata': get_metadata, - 'lock': lock, - 'rename': rename, - 'unlock': unlock, - 'update_content': update_content, -} - diff --git a/dropbox/file_requests.py b/dropbox/file_requests.py index d3b5a582..125d7931 100644 --- a/dropbox/file_requests.py +++ b/dropbox/file_requests.py @@ -154,6 +154,8 @@ class CreateFileRequestArgs(bb.Struct): :ivar file_requests.CreateFileRequestArgs.open: Whether or not the file request should be open. If the file request is closed, it will not accept any file submissions, but it can be opened later. + :ivar file_requests.CreateFileRequestArgs.description: A description of the + file request. """ __slots__ = [ @@ -165,6 +167,8 @@ class CreateFileRequestArgs(bb.Struct): '_deadline_present', '_open_value', '_open_present', + '_description_value', + '_description_present', ] _has_required_fields = True @@ -173,7 +177,8 @@ def __init__(self, title=None, destination=None, deadline=None, - open=None): + open=None, + description=None): self._title_value = None self._title_present = False self._destination_value = None @@ -182,6 +187,8 @@ def __init__(self, self._deadline_present = False self._open_value = None self._open_present = False + self._description_value = None + self._description_present = False if title is not None: self.title = title if destination is not None: @@ -190,6 +197,8 @@ def __init__(self, self.deadline = deadline if open is not None: self.open = open + if description is not None: + self.description = description @property def title(self): @@ -291,15 +300,42 @@ def open(self): self._open_value = None self._open_present = False + @property + def description(self): + """ + A description of the file request. + + :rtype: str + """ + if self._description_present: + return self._description_value + else: + return None + + @description.setter + def description(self, val): + if val is None: + del self.description + return + 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(CreateFileRequestArgs, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'CreateFileRequestArgs(title={!r}, destination={!r}, deadline={!r}, open={!r})'.format( + return 'CreateFileRequestArgs(title={!r}, destination={!r}, deadline={!r}, open={!r}, description={!r})'.format( self._title_value, self._destination_value, self._deadline_value, self._open_value, + self._description_value, ) CreateFileRequestArgs_validator = bv.Struct(CreateFileRequestArgs) @@ -676,6 +712,8 @@ class FileRequest(bb.Struct): submissions. :ivar file_requests.FileRequest.file_count: The number of files this file request has received. + :ivar file_requests.FileRequest.description: A description of the file + request. """ __slots__ = [ @@ -695,6 +733,8 @@ class FileRequest(bb.Struct): '_is_open_present', '_file_count_value', '_file_count_present', + '_description_value', + '_description_present', ] _has_required_fields = True @@ -707,7 +747,8 @@ def __init__(self, is_open=None, file_count=None, destination=None, - deadline=None): + deadline=None, + description=None): self._id_value = None self._id_present = False self._url_value = None @@ -724,6 +765,8 @@ def __init__(self, self._is_open_present = False self._file_count_value = None self._file_count_present = False + self._description_value = None + self._description_present = False if id is not None: self.id = id if url is not None: @@ -740,6 +783,8 @@ def __init__(self, self.is_open = is_open if file_count is not None: self.file_count = file_count + if description is not None: + self.description = description @property def id(self): @@ -935,11 +980,37 @@ def file_count(self): self._file_count_value = None self._file_count_present = False + @property + def description(self): + """ + A description of the file request. + + :rtype: str + """ + if self._description_present: + return self._description_value + else: + return None + + @description.setter + def description(self, val): + if val is None: + del self.description + return + 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(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( + return 'FileRequest(id={!r}, url={!r}, title={!r}, created={!r}, is_open={!r}, file_count={!r}, destination={!r}, deadline={!r}, description={!r})'.format( self._id_value, self._url_value, self._title_value, @@ -948,6 +1019,7 @@ def __repr__(self): self._file_count_value, self._destination_value, self._deadline_value, + self._description_value, ) FileRequest_validator = bv.Struct(FileRequest) @@ -1552,6 +1624,8 @@ class UpdateFileRequestArgs(bb.Struct): accounts. :ivar file_requests.UpdateFileRequestArgs.open: Whether to set this file request as open or closed. + :ivar file_requests.UpdateFileRequestArgs.description: The description of + the file request. """ __slots__ = [ @@ -1565,6 +1639,8 @@ class UpdateFileRequestArgs(bb.Struct): '_deadline_present', '_open_value', '_open_present', + '_description_value', + '_description_present', ] _has_required_fields = True @@ -1574,7 +1650,8 @@ def __init__(self, title=None, destination=None, deadline=None, - open=None): + open=None, + description=None): self._id_value = None self._id_present = False self._title_value = None @@ -1585,6 +1662,8 @@ def __init__(self, self._deadline_present = False self._open_value = None self._open_present = False + self._description_value = None + self._description_present = False if id is not None: self.id = id if title is not None: @@ -1595,6 +1674,8 @@ def __init__(self, self.deadline = deadline if open is not None: self.open = open + if description is not None: + self.description = description @property def id(self): @@ -1723,16 +1804,43 @@ def open(self): self._open_value = None self._open_present = False + @property + def description(self): + """ + The description of the file request. + + :rtype: str + """ + if self._description_present: + return self._description_value + else: + return None + + @description.setter + def description(self, val): + if val is None: + del self.description + return + 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(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( + return 'UpdateFileRequestArgs(id={!r}, title={!r}, destination={!r}, deadline={!r}, open={!r}, description={!r})'.format( self._id_value, self._title_value, self._destination_value, self._deadline_value, self._open_value, + self._description_value, ) UpdateFileRequestArgs_validator = bv.Struct(UpdateFileRequestArgs) @@ -1852,17 +1960,20 @@ def __repr__(self): CreateFileRequestArgs._destination_validator = files.Path_validator CreateFileRequestArgs._deadline_validator = bv.Nullable(FileRequestDeadline_validator) CreateFileRequestArgs._open_validator = bv.Boolean() +CreateFileRequestArgs._description_validator = bv.Nullable(bv.String()) CreateFileRequestArgs._all_field_names_ = set([ 'title', 'destination', 'deadline', 'open', + 'description', ]) CreateFileRequestArgs._all_fields_ = [ ('title', CreateFileRequestArgs._title_validator), ('destination', CreateFileRequestArgs._destination_validator), ('deadline', CreateFileRequestArgs._deadline_validator), ('open', CreateFileRequestArgs._open_validator), + ('description', CreateFileRequestArgs._description_validator), ] FileRequestError._not_found_validator = bv.Void() @@ -1931,6 +2042,7 @@ def __repr__(self): FileRequest._deadline_validator = bv.Nullable(FileRequestDeadline_validator) FileRequest._is_open_validator = bv.Boolean() FileRequest._file_count_validator = bv.Int64() +FileRequest._description_validator = bv.Nullable(bv.String()) FileRequest._all_field_names_ = set([ 'id', 'url', @@ -1940,6 +2052,7 @@ def __repr__(self): 'deadline', 'is_open', 'file_count', + 'description', ]) FileRequest._all_fields_ = [ ('id', FileRequest._id_validator), @@ -1950,6 +2063,7 @@ def __repr__(self): ('deadline', FileRequest._deadline_validator), ('is_open', FileRequest._is_open_validator), ('file_count', FileRequest._file_count_validator), + ('description', FileRequest._description_validator), ] FileRequestDeadline._deadline_validator = common.DropboxTimestamp_validator @@ -2036,12 +2150,14 @@ def __repr__(self): UpdateFileRequestArgs._destination_validator = bv.Nullable(files.Path_validator) UpdateFileRequestArgs._deadline_validator = UpdateFileRequestDeadline_validator UpdateFileRequestArgs._open_validator = bv.Nullable(bv.Boolean()) +UpdateFileRequestArgs._description_validator = bv.Nullable(bv.String()) UpdateFileRequestArgs._all_field_names_ = set([ 'id', 'title', 'destination', 'deadline', 'open', + 'description', ]) UpdateFileRequestArgs._all_fields_ = [ ('id', UpdateFileRequestArgs._id_validator), @@ -2049,6 +2165,7 @@ def __repr__(self): ('destination', UpdateFileRequestArgs._destination_validator), ('deadline', UpdateFileRequestArgs._deadline_validator), ('open', UpdateFileRequestArgs._open_validator), + ('description', UpdateFileRequestArgs._description_validator), ] UpdateFileRequestDeadline._no_update_validator = bv.Void() diff --git a/dropbox/files.py b/dropbox/files.py index 774d8fab..421ba516 100644 --- a/dropbox/files.py +++ b/dropbox/files.py @@ -408,7 +408,8 @@ class CommitInfo(bb.Struct): :class:`WriteMode` detects conflict. For example, always return a conflict error when ``mode`` = ``WriteMode.update`` and the given "rev" doesn't match the existing file's "rev", even if the existing file has - been deleted. + been deleted. This also forces a conflict even when the target path + refers to a file with identical contents. """ __slots__ = [ @@ -625,7 +626,9 @@ def strict_conflict(self): Be more strict about how each :class:`WriteMode` detects conflict. For example, always return a conflict error when ``mode`` = ``WriteMode.update`` and the given "rev" doesn't match the existing - file's "rev", even if the existing file has been deleted. + file's "rev", even if the existing file has been deleted. This also + forces a conflict even when the target path refers to a file with + identical contents. :rtype: bool """ @@ -5161,8 +5164,10 @@ class GetTemporaryLinkError(bb.Union): 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.email_not_verified: This user's email + address is not verified. This functionality is only available on + accounts with a verified email address. Users can verify their email + address `here `_. :ivar files.GetTemporaryLinkError.unsupported_file: Cannot get temporary link to this file type; use :meth:`dropbox.dropbox.Dropbox.files_export` instead. @@ -10320,13 +10325,17 @@ class RestoreError(bb.Union): :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. + not exist or may point to a deleted file. + :ivar files.RestoreError.in_progress: The restore is currently executing, + but has not yet completed. """ _catch_all = 'other' # Attribute is overwritten below the class definition invalid_revision = None # Attribute is overwritten below the class definition + in_progress = None + # Attribute is overwritten below the class definition other = None @classmethod @@ -10375,6 +10384,14 @@ def is_invalid_revision(self): """ return self._tag == 'invalid_revision' + def is_in_progress(self): + """ + Check if the union tag is ``in_progress``. + + :rtype: bool + """ + return self._tag == 'in_progress' + def is_other(self): """ Check if the union tag is ``other``. @@ -15076,6 +15093,8 @@ class WriteError(bb.Union): folder because of its name. :ivar files.WriteError.team_folder: This endpoint cannot move or delete team folders. + :ivar files.WriteError.operation_suppressed: This file operation is not + allowed at this path. :ivar files.WriteError.too_many_write_operations: There are too many write operations in user's Dropbox. Please retry this request. """ @@ -15090,6 +15109,8 @@ class WriteError(bb.Union): # Attribute is overwritten below the class definition team_folder = None # Attribute is overwritten below the class definition + operation_suppressed = None + # Attribute is overwritten below the class definition too_many_write_operations = None # Attribute is overwritten below the class definition other = None @@ -15164,6 +15185,14 @@ def is_team_folder(self): """ return self._tag == 'team_folder' + def is_operation_suppressed(self): + """ + Check if the union tag is ``operation_suppressed``. + + :rtype: bool + """ + return self._tag == 'operation_suppressed' + def is_too_many_write_operations(self): """ Check if the union tag is ``too_many_write_operations``. @@ -16608,15 +16637,18 @@ def __repr__(self): RestoreError._path_lookup_validator = LookupError_validator RestoreError._path_write_validator = WriteError_validator RestoreError._invalid_revision_validator = bv.Void() +RestoreError._in_progress_validator = bv.Void() RestoreError._other_validator = bv.Void() RestoreError._tagmap = { 'path_lookup': RestoreError._path_lookup_validator, 'path_write': RestoreError._path_write_validator, 'invalid_revision': RestoreError._invalid_revision_validator, + 'in_progress': RestoreError._in_progress_validator, 'other': RestoreError._other_validator, } RestoreError.invalid_revision = RestoreError('invalid_revision') +RestoreError.in_progress = RestoreError('in_progress') RestoreError.other = RestoreError('other') SaveCopyReferenceArg._copy_reference_validator = bv.String() @@ -17248,6 +17280,7 @@ def __repr__(self): WriteError._insufficient_space_validator = bv.Void() WriteError._disallowed_name_validator = bv.Void() WriteError._team_folder_validator = bv.Void() +WriteError._operation_suppressed_validator = bv.Void() WriteError._too_many_write_operations_validator = bv.Void() WriteError._other_validator = bv.Void() WriteError._tagmap = { @@ -17257,6 +17290,7 @@ def __repr__(self): 'insufficient_space': WriteError._insufficient_space_validator, 'disallowed_name': WriteError._disallowed_name_validator, 'team_folder': WriteError._team_folder_validator, + 'operation_suppressed': WriteError._operation_suppressed_validator, 'too_many_write_operations': WriteError._too_many_write_operations_validator, 'other': WriteError._other_validator, } @@ -17265,6 +17299,7 @@ def __repr__(self): WriteError.insufficient_space = WriteError('insufficient_space') WriteError.disallowed_name = WriteError('disallowed_name') WriteError.team_folder = WriteError('team_folder') +WriteError.operation_suppressed = WriteError('operation_suppressed') WriteError.too_many_write_operations = WriteError('too_many_write_operations') WriteError.other = WriteError('other') diff --git a/dropbox/sharing.py b/dropbox/sharing.py index 22e78b5d..2a1bb42f 100644 --- a/dropbox/sharing.py +++ b/dropbox/sharing.py @@ -727,8 +727,10 @@ class AddFolderMemberError(bb.Union): :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 sharing.AddFolderMemberError.email_unverified: This user's email + address is not verified. This functionality is only available on + accounts with a verified email address. Users can verify their email + address `here `_. :ivar sharing.AddFolderMemberError.banned_member: The current user has been banned. :ivar AddMemberSelectorError AddFolderMemberError.bad_member: @@ -1091,8 +1093,8 @@ class AddMemberSelectorError(bb.Union): :ivar str sharing.AddMemberSelectorError.invalid_email: The value is the e-email address that is malformed. :ivar str sharing.AddMemberSelectorError.unverified_dropbox_id: The value is - the ID of the Dropbox user with an unverified e-mail address. Invite - unverified users by e-mail address instead of by their Dropbox ID. + the ID of the Dropbox user with an unverified email address. Invite + unverified users by email address instead of by their Dropbox ID. :ivar sharing.AddMemberSelectorError.group_deleted: At least one of the specified groups in ``AddFolderMemberArg.members`` is deleted. :ivar sharing.AddMemberSelectorError.group_not_on_team: Sharing to a group @@ -1224,8 +1226,8 @@ def get_invalid_email(self): def get_unverified_dropbox_id(self): """ - The value is the ID of the Dropbox user with an unverified e-mail - address. Invite unverified users by e-mail address instead of by their + The value is the ID of the Dropbox user with an unverified email + address. Invite unverified users by email address instead of by their Dropbox ID. Only call this if :meth:`is_unverified_dropbox_id` is true. @@ -2063,8 +2065,10 @@ class CreateSharedLinkWithSettingsError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar sharing.CreateSharedLinkWithSettingsError.email_not_verified: User's - email should be verified. + :ivar sharing.CreateSharedLinkWithSettingsError.email_not_verified: This + user's email address is not verified. This functionality is only + available on accounts with a verified email address. Users can verify + their email address `here `_. :ivar Optional[SharedLinkAlreadyExistsMetadata] sharing.CreateSharedLinkWithSettingsError.shared_link_already_exists: The shared link already exists. You can call :route:`list_shared_links` @@ -5956,7 +5960,7 @@ class InviteeInfo(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar str sharing.InviteeInfo.email: E-mail address of invited user. + :ivar str sharing.InviteeInfo.email: Email address of invited user. """ _catch_all = 'other' @@ -5992,7 +5996,7 @@ def is_other(self): def get_email(self): """ - E-mail address of invited user. + Email address of invited user. Only call this if :meth:`is_email` is true. @@ -9657,7 +9661,7 @@ class MemberSelector(bb.Union): :ivar str sharing.MemberSelector.dropbox_id: Dropbox account, team member, or group ID of member. - :ivar str sharing.MemberSelector.email: E-mail address of member. + :ivar str sharing.MemberSelector.email: Email address of member. """ _catch_all = 'other' @@ -9724,7 +9728,7 @@ def get_dropbox_id(self): def get_email(self): """ - E-mail address of member. + Email address of member. Only call this if :meth:`is_email` is true. @@ -9869,8 +9873,10 @@ class ModifySharedLinkSettingsError(SharedLinkError): :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. + :ivar sharing.ModifySharedLinkSettingsError.email_not_verified: This user's + email address is not verified. This functionality is only available on + accounts with a verified email address. Users can verify their email + address `here `_. """ # Attribute is overwritten below the class definition @@ -12340,8 +12346,10 @@ class ShareFolderErrorBase(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar sharing.ShareFolderErrorBase.email_unverified: The current user's - e-mail address is unverified. + :ivar sharing.ShareFolderErrorBase.email_unverified: This user's email + address is not verified. This functionality is only available on + accounts with a verified email address. Users can verify their email + address `here `_. :ivar SharePathError ShareFolderErrorBase.bad_path: ``ShareFolderArg.path`` is invalid. :ivar sharing.ShareFolderErrorBase.team_policy_disallows_member_policy: Team @@ -14584,8 +14592,10 @@ class SharedLinkAccessFailureReason(bb.Union): :ivar sharing.SharedLinkAccessFailureReason.login_required: User is not logged in. - :ivar sharing.SharedLinkAccessFailureReason.email_verify_required: User's - email is not verified. + :ivar sharing.SharedLinkAccessFailureReason.email_verify_required: This + user's email address is not verified. This functionality is only + available on accounts with a verified email address. Users can verify + their email address `here `_. :ivar sharing.SharedLinkAccessFailureReason.password_required: The link is password protected. :ivar sharing.SharedLinkAccessFailureReason.team_only: Access is allowed for @@ -15149,8 +15159,10 @@ class SharingUserError(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar sharing.SharingUserError.email_unverified: The current user must - verify the account e-mail address before performing this action. + :ivar sharing.SharingUserError.email_unverified: This user's email address + is not verified. This functionality is only available on accounts with a + verified email address. Users can verify their email address `here + `_. """ _catch_all = 'other' @@ -15406,7 +15418,9 @@ class TransferFolderError(bb.Union): :ivar sharing.TransferFolderError.new_owner_unmounted: The new designated owner has not added the folder to their Dropbox. :ivar sharing.TransferFolderError.new_owner_email_unverified: The new - designated owner's e-mail address is unverified. + designated owner's email address is not verified. This functionality is + only available on accounts with a verified email address. Users can + verify their email address `here `_. :ivar sharing.TransferFolderError.team_folder: This action cannot be performed on a team shared folder. :ivar sharing.TransferFolderError.no_permission: The current user does not diff --git a/dropbox/stone_serializers.py b/dropbox/stone_serializers.py index 6f1d117d..dafc901f 100644 --- a/dropbox/stone_serializers.py +++ b/dropbox/stone_serializers.py @@ -19,9 +19,10 @@ import functools import json import re -import six import time +import six + try: from . import stone_base as bb # noqa: F401 # pylint: disable=unused-import from . import stone_validators as bv diff --git a/dropbox/stone_validators.py b/dropbox/stone_validators.py index 683521df..2f0f3492 100644 --- a/dropbox/stone_validators.py +++ b/dropbox/stone_validators.py @@ -12,12 +12,14 @@ from __future__ import absolute_import, unicode_literals -from abc import ABCMeta, abstractmethod import datetime import hashlib import math import numbers import re + +from abc import ABCMeta, abstractmethod + import six _MYPY = False @@ -102,7 +104,6 @@ def validate(self, val): Returns: A normalized value if validation succeeds. Raises: ValidationError """ - pass def has_default(self): return False @@ -111,10 +112,8 @@ def get_default(self): raise AssertionError('No default available.') -class Primitive(Validator): +class Primitive(Validator): # pylint: disable=abstract-method """A basic type that is defined by Stone.""" - # pylint: disable=abstract-method - pass class Boolean(Primitive): @@ -372,11 +371,9 @@ def validate(self, val): return val -class Composite(Validator): +class Composite(Validator): # pylint: disable=abstract-method """Validator for a type that builds on other primitive and composite types.""" - # pylint: disable=abstract-method - pass class List(Composite): @@ -634,7 +631,6 @@ def apply(self, val): """Redacts information from annotated field. Returns: A redacted version of the string provided. """ - pass def _get_matches(self, val): if not self.regex: diff --git a/dropbox/team.py b/dropbox/team.py index 4445b897..d3c5b771 100644 --- a/dropbox/team.py +++ b/dropbox/team.py @@ -8851,6 +8851,8 @@ class LegalHoldsPolicyCreateError(LegalHoldsError): provided is already in use by another legal hold. :ivar team.LegalHoldsPolicyCreateError.team_exceeded_legal_hold_quota: Team exceeded legal hold quota. + :ivar team.LegalHoldsPolicyCreateError.invalid_date: The provided date is + invalid. """ # Attribute is overwritten below the class definition @@ -8867,6 +8869,8 @@ class LegalHoldsPolicyCreateError(LegalHoldsError): name_must_be_unique = None # Attribute is overwritten below the class definition team_exceeded_legal_hold_quota = None + # Attribute is overwritten below the class definition + invalid_date = None def is_start_date_is_later_than_end_date(self): """ @@ -8924,6 +8928,14 @@ def is_team_exceeded_legal_hold_quota(self): """ return self._tag == 'team_exceeded_legal_hold_quota' + def is_invalid_date(self): + """ + Check if the union tag is ``invalid_date``. + + :rtype: bool + """ + return self._tag == 'invalid_date' + def _process_custom_annotations(self, annotation_type, field_path, processor): super(LegalHoldsPolicyCreateError, self)._process_custom_annotations(annotation_type, field_path, processor) @@ -22187,6 +22199,7 @@ def __repr__(self): LegalHoldsPolicyCreateError._transient_error_validator = bv.Void() LegalHoldsPolicyCreateError._name_must_be_unique_validator = bv.Void() LegalHoldsPolicyCreateError._team_exceeded_legal_hold_quota_validator = bv.Void() +LegalHoldsPolicyCreateError._invalid_date_validator = bv.Void() LegalHoldsPolicyCreateError._tagmap = { 'start_date_is_later_than_end_date': LegalHoldsPolicyCreateError._start_date_is_later_than_end_date_validator, 'empty_members_list': LegalHoldsPolicyCreateError._empty_members_list_validator, @@ -22195,6 +22208,7 @@ def __repr__(self): 'transient_error': LegalHoldsPolicyCreateError._transient_error_validator, 'name_must_be_unique': LegalHoldsPolicyCreateError._name_must_be_unique_validator, 'team_exceeded_legal_hold_quota': LegalHoldsPolicyCreateError._team_exceeded_legal_hold_quota_validator, + 'invalid_date': LegalHoldsPolicyCreateError._invalid_date_validator, } LegalHoldsPolicyCreateError._tagmap.update(LegalHoldsError._tagmap) @@ -22205,6 +22219,7 @@ def __repr__(self): LegalHoldsPolicyCreateError.transient_error = LegalHoldsPolicyCreateError('transient_error') LegalHoldsPolicyCreateError.name_must_be_unique = LegalHoldsPolicyCreateError('name_must_be_unique') LegalHoldsPolicyCreateError.team_exceeded_legal_hold_quota = LegalHoldsPolicyCreateError('team_exceeded_legal_hold_quota') +LegalHoldsPolicyCreateError.invalid_date = LegalHoldsPolicyCreateError('invalid_date') LegalHoldsPolicyReleaseArg._id_validator = LegalHoldId_validator LegalHoldsPolicyReleaseArg._all_field_names_ = set(['id']) diff --git a/dropbox/team_common.py b/dropbox/team_common.py index e2356f89..8f7befaa 100644 --- a/dropbox/team_common.py +++ b/dropbox/team_common.py @@ -490,6 +490,7 @@ def __repr__(self): GroupId_validator = bv.String() MemberExternalId_validator = bv.String(max_length=64) ResellerId_validator = bv.String() +TeamId_validator = bv.String() TeamMemberId_validator = bv.String() GroupManagementType._user_managed_validator = bv.Void() GroupManagementType._company_managed_validator = bv.Void() diff --git a/dropbox/team_log.py b/dropbox/team_log.py index ff511742..3c29cc73 100644 --- a/dropbox/team_log.py +++ b/dropbox/team_log.py @@ -41,16 +41,16 @@ class AccessMethodLogInfo(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar SessionLogInfo AccessMethodLogInfo.end_user: End user session details. - :ivar WebSessionLogInfo AccessMethodLogInfo.sign_in_as: Sign in as session - details. - :ivar WebSessionLogInfo AccessMethodLogInfo.content_manager: Content manager - session details. :ivar WebSessionLogInfo AccessMethodLogInfo.admin_console: Admin console session details. + :ivar ApiSessionLogInfo AccessMethodLogInfo.api: Api session details. + :ivar WebSessionLogInfo AccessMethodLogInfo.content_manager: Content manager + session details. + :ivar SessionLogInfo AccessMethodLogInfo.end_user: End user session details. :ivar WebSessionLogInfo AccessMethodLogInfo.enterprise_console: Enterprise console session details. - :ivar ApiSessionLogInfo AccessMethodLogInfo.api: Api session details. + :ivar WebSessionLogInfo AccessMethodLogInfo.sign_in_as: Sign in as session + details. """ _catch_all = 'other' @@ -58,26 +58,26 @@ class AccessMethodLogInfo(bb.Union): other = None @classmethod - def end_user(cls, val): + def admin_console(cls, val): """ - Create an instance of this class set to the ``end_user`` tag with value - ``val``. + Create an instance of this class set to the ``admin_console`` tag with + value ``val``. - :param SessionLogInfo val: + :param WebSessionLogInfo val: :rtype: AccessMethodLogInfo """ - return cls('end_user', val) + return cls('admin_console', val) @classmethod - def sign_in_as(cls, val): + def api(cls, val): """ - Create an instance of this class set to the ``sign_in_as`` tag with - value ``val``. + Create an instance of this class set to the ``api`` tag with value + ``val``. - :param WebSessionLogInfo val: + :param ApiSessionLogInfo val: :rtype: AccessMethodLogInfo """ - return cls('sign_in_as', val) + return cls('api', val) @classmethod def content_manager(cls, val): @@ -91,15 +91,15 @@ def content_manager(cls, val): return cls('content_manager', val) @classmethod - def admin_console(cls, val): + def end_user(cls, val): """ - Create an instance of this class set to the ``admin_console`` tag with - value ``val``. + Create an instance of this class set to the ``end_user`` tag with value + ``val``. - :param WebSessionLogInfo val: + :param SessionLogInfo val: :rtype: AccessMethodLogInfo """ - return cls('admin_console', val) + return cls('end_user', val) @classmethod def enterprise_console(cls, val): @@ -113,31 +113,31 @@ def enterprise_console(cls, val): return cls('enterprise_console', val) @classmethod - def api(cls, val): + def sign_in_as(cls, val): """ - Create an instance of this class set to the ``api`` tag with value - ``val``. + Create an instance of this class set to the ``sign_in_as`` tag with + value ``val``. - :param ApiSessionLogInfo val: + :param WebSessionLogInfo val: :rtype: AccessMethodLogInfo """ - return cls('api', val) + return cls('sign_in_as', val) - def is_end_user(self): + def is_admin_console(self): """ - Check if the union tag is ``end_user``. + Check if the union tag is ``admin_console``. :rtype: bool """ - return self._tag == 'end_user' + return self._tag == 'admin_console' - def is_sign_in_as(self): + def is_api(self): """ - Check if the union tag is ``sign_in_as``. + Check if the union tag is ``api``. :rtype: bool """ - return self._tag == 'sign_in_as' + return self._tag == 'api' def is_content_manager(self): """ @@ -147,13 +147,13 @@ def is_content_manager(self): """ return self._tag == 'content_manager' - def is_admin_console(self): + def is_end_user(self): """ - Check if the union tag is ``admin_console``. + Check if the union tag is ``end_user``. :rtype: bool """ - return self._tag == 'admin_console' + return self._tag == 'end_user' def is_enterprise_console(self): """ @@ -163,13 +163,13 @@ def is_enterprise_console(self): """ return self._tag == 'enterprise_console' - def is_api(self): + def is_sign_in_as(self): """ - Check if the union tag is ``api``. + Check if the union tag is ``sign_in_as``. :rtype: bool """ - return self._tag == 'api' + return self._tag == 'sign_in_as' def is_other(self): """ @@ -179,28 +179,28 @@ def is_other(self): """ return self._tag == 'other' - def get_end_user(self): + def get_admin_console(self): """ - End user session details. + Admin console session details. - Only call this if :meth:`is_end_user` is true. + Only call this if :meth:`is_admin_console` is true. - :rtype: SessionLogInfo + :rtype: WebSessionLogInfo """ - if not self.is_end_user(): - raise AttributeError("tag 'end_user' not set") + if not self.is_admin_console(): + raise AttributeError("tag 'admin_console' not set") return self._value - def get_sign_in_as(self): + def get_api(self): """ - Sign in as session details. + Api session details. - Only call this if :meth:`is_sign_in_as` is true. + Only call this if :meth:`is_api` is true. - :rtype: WebSessionLogInfo + :rtype: ApiSessionLogInfo """ - if not self.is_sign_in_as(): - raise AttributeError("tag 'sign_in_as' not set") + if not self.is_api(): + raise AttributeError("tag 'api' not set") return self._value def get_content_manager(self): @@ -215,16 +215,16 @@ def get_content_manager(self): raise AttributeError("tag 'content_manager' not set") return self._value - def get_admin_console(self): + def get_end_user(self): """ - Admin console session details. + End user session details. - Only call this if :meth:`is_admin_console` is true. + Only call this if :meth:`is_end_user` is true. - :rtype: WebSessionLogInfo + :rtype: SessionLogInfo """ - if not self.is_admin_console(): - raise AttributeError("tag 'admin_console' not set") + if not self.is_end_user(): + raise AttributeError("tag 'end_user' not set") return self._value def get_enterprise_console(self): @@ -239,16 +239,16 @@ def get_enterprise_console(self): raise AttributeError("tag 'enterprise_console' not set") return self._value - def get_api(self): + def get_sign_in_as(self): """ - Api session details. + Sign in as session details. - Only call this if :meth:`is_api` is true. + Only call this if :meth:`is_sign_in_as` is true. - :rtype: ApiSessionLogInfo + :rtype: WebSessionLogInfo """ - if not self.is_api(): - raise AttributeError("tag 'api' not set") + if not self.is_sign_in_as(): + raise AttributeError("tag 'sign_in_as' not set") return self._value def _process_custom_annotations(self, annotation_type, field_path, processor): @@ -268,27 +268,27 @@ class AccountCaptureAvailability(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - unavailable = None - # Attribute is overwritten below the class definition available = None # Attribute is overwritten below the class definition + unavailable = None + # Attribute is overwritten below the class definition other = None - def is_unavailable(self): + def is_available(self): """ - Check if the union tag is ``unavailable``. + Check if the union tag is ``available``. :rtype: bool """ - return self._tag == 'unavailable' + return self._tag == 'available' - def is_available(self): + def is_unavailable(self): """ - Check if the union tag is ``available``. + Check if the union tag is ``unavailable``. :rtype: bool """ - return self._tag == 'available' + return self._tag == 'unavailable' def is_other(self): """ @@ -834,27 +834,27 @@ class AccountCaptureNotificationType(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - proactive_warning_notification = None - # Attribute is overwritten below the class definition actionable_notification = None # Attribute is overwritten below the class definition + proactive_warning_notification = None + # Attribute is overwritten below the class definition other = None - def is_proactive_warning_notification(self): + def is_actionable_notification(self): """ - Check if the union tag is ``proactive_warning_notification``. + Check if the union tag is ``actionable_notification``. :rtype: bool """ - return self._tag == 'proactive_warning_notification' + return self._tag == 'actionable_notification' - def is_actionable_notification(self): + def is_proactive_warning_notification(self): """ - Check if the union tag is ``actionable_notification``. + Check if the union tag is ``proactive_warning_notification``. :rtype: bool """ - return self._tag == 'actionable_notification' + return self._tag == 'proactive_warning_notification' def is_other(self): """ @@ -881,14 +881,22 @@ class AccountCapturePolicy(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition + all_users = None + # Attribute is overwritten below the class definition disabled = None # Attribute is overwritten below the class definition invited_users = None # Attribute is overwritten below the class definition - all_users = None - # Attribute is overwritten below the class definition other = None + def is_all_users(self): + """ + Check if the union tag is ``all_users``. + + :rtype: bool + """ + return self._tag == 'all_users' + def is_disabled(self): """ Check if the union tag is ``disabled``. @@ -905,14 +913,6 @@ def is_invited_users(self): """ return self._tag == 'invited_users' - def is_all_users(self): - """ - Check if the union tag is ``all_users``. - - :rtype: bool - """ - return self._tag == 'all_users' - def is_other(self): """ Check if the union tag is ``other``. @@ -1222,29 +1222,18 @@ class ActionDetails(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar JoinTeamDetails ActionDetails.team_join_details: Additional - information relevant when a new member joins the team. :ivar MemberRemoveActionType ActionDetails.remove_action: Define how the user was removed from the team. :ivar TeamInviteDetails ActionDetails.team_invite_details: Additional information relevant when someone is invited to the team. + :ivar JoinTeamDetails ActionDetails.team_join_details: Additional + information relevant when a new member joins the team. """ _catch_all = 'other' # Attribute is overwritten below the class definition other = None - @classmethod - def team_join_details(cls, val): - """ - Create an instance of this class set to the ``team_join_details`` tag - with value ``val``. - - :param JoinTeamDetails val: - :rtype: ActionDetails - """ - return cls('team_join_details', val) - @classmethod def remove_action(cls, val): """ @@ -1267,13 +1256,16 @@ def team_invite_details(cls, val): """ return cls('team_invite_details', val) - def is_team_join_details(self): + @classmethod + def team_join_details(cls, val): """ - Check if the union tag is ``team_join_details``. + Create an instance of this class set to the ``team_join_details`` tag + with value ``val``. - :rtype: bool + :param JoinTeamDetails val: + :rtype: ActionDetails """ - return self._tag == 'team_join_details' + return cls('team_join_details', val) def is_remove_action(self): """ @@ -1291,25 +1283,21 @@ def is_team_invite_details(self): """ return self._tag == 'team_invite_details' - def is_other(self): + def is_team_join_details(self): """ - Check if the union tag is ``other``. + Check if the union tag is ``team_join_details``. :rtype: bool """ - return self._tag == 'other' + return self._tag == 'team_join_details' - def get_team_join_details(self): + def is_other(self): """ - Additional information relevant when a new member joins the team. - - Only call this if :meth:`is_team_join_details` is true. + Check if the union tag is ``other``. - :rtype: JoinTeamDetails + :rtype: bool """ - if not self.is_team_join_details(): - raise AttributeError("tag 'team_join_details' not set") - return self._value + return self._tag == 'other' def get_remove_action(self): """ @@ -1335,6 +1323,18 @@ def get_team_invite_details(self): raise AttributeError("tag 'team_invite_details' not set") return self._value + def get_team_join_details(self): + """ + Additional information relevant when a new member joins the team. + + Only call this if :meth:`is_team_join_details` is true. + + :rtype: JoinTeamDetails + """ + if not self.is_team_join_details(): + raise AttributeError("tag 'team_join_details' not set") + return self._value + def _process_custom_annotations(self, annotation_type, field_path, processor): super(ActionDetails, self)._process_custom_annotations(annotation_type, field_path, processor) @@ -1351,33 +1351,22 @@ class ActorLogInfo(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar UserLogInfo ActorLogInfo.user: The user who did the action. :ivar UserLogInfo ActorLogInfo.admin: The admin who did the action. + :ivar team_log.ActorLogInfo.anonymous: Anonymous actor. :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. + :ivar ResellerLogInfo ActorLogInfo.reseller: Action done by reseller. + :ivar UserLogInfo ActorLogInfo.user: The user who did the action. """ _catch_all = 'other' # Attribute is overwritten below the class definition - dropbox = None - # Attribute is overwritten below the class definition anonymous = None # Attribute is overwritten below the class definition + dropbox = None + # Attribute is overwritten below the class definition other = None - @classmethod - def user(cls, val): - """ - Create an instance of this class set to the ``user`` tag with value - ``val``. - - :param UserLogInfo val: - :rtype: ActorLogInfo - """ - return cls('user', val) - @classmethod def admin(cls, val): """ @@ -1411,13 +1400,16 @@ def reseller(cls, val): """ return cls('reseller', val) - def is_user(self): + @classmethod + def user(cls, val): """ - Check if the union tag is ``user``. + Create an instance of this class set to the ``user`` tag with value + ``val``. - :rtype: bool + :param UserLogInfo val: + :rtype: ActorLogInfo """ - return self._tag == 'user' + return cls('user', val) def is_admin(self): """ @@ -1427,21 +1419,21 @@ def is_admin(self): """ return self._tag == 'admin' - def is_app(self): + def is_anonymous(self): """ - Check if the union tag is ``app``. + Check if the union tag is ``anonymous``. :rtype: bool """ - return self._tag == 'app' + return self._tag == 'anonymous' - def is_reseller(self): + def is_app(self): """ - Check if the union tag is ``reseller``. + Check if the union tag is ``app``. :rtype: bool """ - return self._tag == 'reseller' + return self._tag == 'app' def is_dropbox(self): """ @@ -1451,33 +1443,29 @@ def is_dropbox(self): """ return self._tag == 'dropbox' - def is_anonymous(self): + def is_reseller(self): """ - Check if the union tag is ``anonymous``. + Check if the union tag is ``reseller``. :rtype: bool """ - return self._tag == 'anonymous' + return self._tag == 'reseller' - def is_other(self): + def is_user(self): """ - Check if the union tag is ``other``. + Check if the union tag is ``user``. :rtype: bool """ - return self._tag == 'other' + return self._tag == 'user' - def get_user(self): + def is_other(self): """ - The user who did the action. - - Only call this if :meth:`is_user` is true. + Check if the union tag is ``other``. - :rtype: UserLogInfo + :rtype: bool """ - if not self.is_user(): - raise AttributeError("tag 'user' not set") - return self._value + return self._tag == 'other' def get_admin(self): """ @@ -1515,6 +1503,18 @@ def get_reseller(self): raise AttributeError("tag 'reseller' not set") return self._value + def get_user(self): + """ + The user who did the action. + + 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, field_path, processor): super(ActorLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) @@ -1532,33 +1532,33 @@ class AdminRole(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - team_admin = None + limited_admin = None # Attribute is overwritten below the class definition - user_management_admin = None + member_only = None # Attribute is overwritten below the class definition support_admin = None # Attribute is overwritten below the class definition - limited_admin = None + team_admin = None # Attribute is overwritten below the class definition - member_only = None + user_management_admin = None # Attribute is overwritten below the class definition other = None - def is_team_admin(self): + def is_limited_admin(self): """ - Check if the union tag is ``team_admin``. + Check if the union tag is ``limited_admin``. :rtype: bool """ - return self._tag == 'team_admin' + return self._tag == 'limited_admin' - def is_user_management_admin(self): + def is_member_only(self): """ - Check if the union tag is ``user_management_admin``. + Check if the union tag is ``member_only``. :rtype: bool """ - return self._tag == 'user_management_admin' + return self._tag == 'member_only' def is_support_admin(self): """ @@ -1568,21 +1568,21 @@ def is_support_admin(self): """ return self._tag == 'support_admin' - def is_limited_admin(self): + def is_team_admin(self): """ - Check if the union tag is ``limited_admin``. + Check if the union tag is ``team_admin``. :rtype: bool """ - return self._tag == 'limited_admin' + return self._tag == 'team_admin' - def is_member_only(self): + def is_user_management_admin(self): """ - Check if the union tag is ``member_only``. + Check if the union tag is ``user_management_admin``. :rtype: bool """ - return self._tag == 'member_only' + return self._tag == 'user_management_admin' def is_other(self): """ @@ -2480,6 +2480,55 @@ def __repr__(self): AssetLogInfo_validator = bv.Union(AssetLogInfo) +class BackupStatus(bb.Union): + """ + Backup status + + 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(BackupStatus, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'BackupStatus(%r, %r)' % (self._tag, self._value) + +BackupStatus_validator = bv.Union(BackupStatus) + class BinderAddPageDetails(bb.Struct): """ Added Binder page. @@ -5035,14 +5084,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 ContextLogInfo.team_member: Action was done on - behalf of a team member. + :ivar team_log.ContextLogInfo.anonymous: Anonymous context. :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 TeamLogInfo ContextLogInfo.organization_team: Action was done on behalf of a team that's part of an organization. + :ivar team_log.ContextLogInfo.team: Action was done on behalf of the team. + :ivar TeamMemberLogInfo ContextLogInfo.team_member: Action was done on + behalf of a team member. :ivar TrustedNonTeamMemberLogInfo ContextLogInfo.trusted_non_team_member: Action was done on behalf of a trusted non team member. """ @@ -5055,17 +5104,6 @@ class ContextLogInfo(bb.Union): # Attribute is overwritten below the class definition other = None - @classmethod - def team_member(cls, val): - """ - Create an instance of this class set to the ``team_member`` tag with - value ``val``. - - :param TeamMemberLogInfo val: - :rtype: ContextLogInfo - """ - return cls('team_member', val) - @classmethod def non_team_member(cls, val): """ @@ -5088,6 +5126,17 @@ def organization_team(cls, val): """ return cls('organization_team', val) + @classmethod + def team_member(cls, val): + """ + Create an instance of this class set to the ``team_member`` tag with + value ``val``. + + :param TeamMemberLogInfo val: + :rtype: ContextLogInfo + """ + return cls('team_member', val) + @classmethod def trusted_non_team_member(cls, val): """ @@ -5099,13 +5148,13 @@ def trusted_non_team_member(cls, val): """ return cls('trusted_non_team_member', val) - def is_team_member(self): + def is_anonymous(self): """ - Check if the union tag is ``team_member``. + Check if the union tag is ``anonymous``. :rtype: bool """ - return self._tag == 'team_member' + return self._tag == 'anonymous' def is_non_team_member(self): """ @@ -5115,13 +5164,13 @@ def is_non_team_member(self): """ return self._tag == 'non_team_member' - def is_anonymous(self): + def is_organization_team(self): """ - Check if the union tag is ``anonymous``. + Check if the union tag is ``organization_team``. :rtype: bool """ - return self._tag == 'anonymous' + return self._tag == 'organization_team' def is_team(self): """ @@ -5131,13 +5180,13 @@ def is_team(self): """ return self._tag == 'team' - def is_organization_team(self): + def is_team_member(self): """ - Check if the union tag is ``organization_team``. + Check if the union tag is ``team_member``. :rtype: bool """ - return self._tag == 'organization_team' + return self._tag == 'team_member' def is_trusted_non_team_member(self): """ @@ -5155,18 +5204,6 @@ def is_other(self): """ return self._tag == 'other' - def get_team_member(self): - """ - Action was done on behalf of a team member. - - Only call this if :meth:`is_team_member` is true. - - :rtype: TeamMemberLogInfo - """ - if not self.is_team_member(): - raise AttributeError("tag 'team_member' not set") - return self._value - def get_non_team_member(self): """ Action was done on behalf of a non team member. @@ -5191,6 +5228,18 @@ def get_organization_team(self): raise AttributeError("tag 'organization_team' not set") return self._value + def get_team_member(self): + """ + Action was done on behalf of a team member. + + Only call this if :meth:`is_team_member` is true. + + :rtype: TeamMemberLogInfo + """ + if not self.is_team_member(): + raise AttributeError("tag 'team_member' not set") + return self._value + def get_trusted_non_team_member(self): """ Action was done on behalf of a trusted non team member. @@ -6861,27 +6910,27 @@ class DeviceApprovalsPolicy(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - unlimited = None - # Attribute is overwritten below the class definition limited = None # Attribute is overwritten below the class definition + unlimited = None + # Attribute is overwritten below the class definition other = None - def is_unlimited(self): + def is_limited(self): """ - Check if the union tag is ``unlimited``. + Check if the union tag is ``limited``. :rtype: bool """ - return self._tag == 'unlimited' + return self._tag == 'limited' - def is_limited(self): + def is_unlimited(self): """ - Check if the union tag is ``limited``. + Check if the union tag is ``unlimited``. :rtype: bool """ - return self._tag == 'limited' + return self._tag == 'unlimited' def is_other(self): """ @@ -7969,6 +8018,175 @@ def __repr__(self): DeviceManagementEnabledType_validator = bv.Struct(DeviceManagementEnabledType) +class DeviceSyncBackupStatusChangedDetails(bb.Struct): + """ + Enabled/disabled backup for computer. + + :ivar + team_log.DeviceSyncBackupStatusChangedDetails.desktop_device_session_info: + Device's session logged information. + :ivar team_log.DeviceSyncBackupStatusChangedDetails.previous_value: Previous + status of computer backup on the device. + :ivar team_log.DeviceSyncBackupStatusChangedDetails.new_value: Next status + of computer backup on the device. + """ + + __slots__ = [ + '_desktop_device_session_info_value', + '_desktop_device_session_info_present', + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + desktop_device_session_info=None, + previous_value=None, + new_value=None): + self._desktop_device_session_info_value = None + self._desktop_device_session_info_present = False + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if desktop_device_session_info is not None: + self.desktop_device_session_info = desktop_device_session_info + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value + + @property + def desktop_device_session_info(self): + """ + Device's session logged information. + + :rtype: DesktopDeviceSessionLogInfo + """ + if self._desktop_device_session_info_present: + return self._desktop_device_session_info_value + else: + raise AttributeError("missing required field 'desktop_device_session_info'") + + @desktop_device_session_info.setter + def desktop_device_session_info(self, val): + self._desktop_device_session_info_validator.validate_type_only(val) + self._desktop_device_session_info_value = val + self._desktop_device_session_info_present = True + + @desktop_device_session_info.deleter + def desktop_device_session_info(self): + self._desktop_device_session_info_value = None + self._desktop_device_session_info_present = False + + @property + def previous_value(self): + """ + Previous status of computer backup on the device. + + :rtype: BackupStatus + """ + 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): + """ + Next status of computer backup on the device. + + :rtype: BackupStatus + """ + 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(DeviceSyncBackupStatusChangedDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'DeviceSyncBackupStatusChangedDetails(desktop_device_session_info={!r}, previous_value={!r}, new_value={!r})'.format( + self._desktop_device_session_info_value, + self._previous_value_value, + self._new_value_value, + ) + +DeviceSyncBackupStatusChangedDetails_validator = bv.Struct(DeviceSyncBackupStatusChangedDetails) + +class DeviceSyncBackupStatusChangedType(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(DeviceSyncBackupStatusChangedType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'DeviceSyncBackupStatusChangedType(description={!r})'.format( + self._description_value, + ) + +DeviceSyncBackupStatusChangedType_validator = bv.Struct(DeviceSyncBackupStatusChangedType) + class DeviceType(bb.Union): """ This class acts as a tagged union. Only one of the ``is_*`` methods will @@ -8152,27 +8370,27 @@ class DeviceUnlinkPolicy(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - remove = None - # Attribute is overwritten below the class definition keep = None # Attribute is overwritten below the class definition + remove = None + # Attribute is overwritten below the class definition other = None - def is_remove(self): + def is_keep(self): """ - Check if the union tag is ``remove``. + Check if the union tag is ``keep``. :rtype: bool """ - return self._tag == 'remove' + return self._tag == 'keep' - def is_keep(self): + def is_remove(self): """ - Check if the union tag is ``keep``. + Check if the union tag is ``remove``. :rtype: bool """ - return self._tag == 'keep' + return self._tag == 'remove' def is_other(self): """ @@ -10468,6 +10686,8 @@ class EventCategory(bb.Union): apps. :ivar team_log.EventCategory.comments: Events that have to do with comments on files and Paper documents. + :ivar team_log.EventCategory.data_governance: Events that involve data + governance actions :ivar team_log.EventCategory.devices: Events that apply to linked devices on mobile, desktop and Web platforms. :ivar team_log.EventCategory.domains: Events that involve domain management @@ -10477,8 +10697,6 @@ class EventCategory(bb.Union): :ivar team_log.EventCategory.file_requests: Events that apply to the file requests feature. :ivar team_log.EventCategory.groups: Events that involve group management. - :ivar team_log.EventCategory.legal_holds: Events that involve placing holds - on content for litigation reasons :ivar team_log.EventCategory.logins: Events that involve users signing in to or out of Dropbox. :ivar team_log.EventCategory.members: Events that involve team member @@ -10514,6 +10732,8 @@ class EventCategory(bb.Union): # Attribute is overwritten below the class definition comments = None # Attribute is overwritten below the class definition + data_governance = None + # Attribute is overwritten below the class definition devices = None # Attribute is overwritten below the class definition domains = None @@ -10524,8 +10744,6 @@ class EventCategory(bb.Union): # Attribute is overwritten below the class definition groups = None # Attribute is overwritten below the class definition - legal_holds = None - # Attribute is overwritten below the class definition logins = None # Attribute is overwritten below the class definition members = None @@ -10570,6 +10788,14 @@ def is_comments(self): """ return self._tag == 'comments' + def is_data_governance(self): + """ + Check if the union tag is ``data_governance``. + + :rtype: bool + """ + return self._tag == 'data_governance' + def is_devices(self): """ Check if the union tag is ``devices``. @@ -10610,14 +10836,6 @@ def is_groups(self): """ return self._tag == 'groups' - def is_legal_holds(self): - """ - Check if the union tag is ``legal_holds``. - - :rtype: bool - """ - return self._tag == 'legal_holds' - def is_logins(self): """ Check if the union tag is ``logins``. @@ -10908,6 +11126,193 @@ def file_unresolve_comment_details(cls, val): """ return cls('file_unresolve_comment_details', val) + @classmethod + def governance_policy_add_folders_details(cls, val): + """ + Create an instance of this class set to the + ``governance_policy_add_folders_details`` tag with value ``val``. + + :param GovernancePolicyAddFoldersDetails val: + :rtype: EventDetails + """ + return cls('governance_policy_add_folders_details', val) + + @classmethod + def governance_policy_create_details(cls, val): + """ + Create an instance of this class set to the + ``governance_policy_create_details`` tag with value ``val``. + + :param GovernancePolicyCreateDetails val: + :rtype: EventDetails + """ + return cls('governance_policy_create_details', val) + + @classmethod + def governance_policy_delete_details(cls, val): + """ + Create an instance of this class set to the + ``governance_policy_delete_details`` tag with value ``val``. + + :param GovernancePolicyDeleteDetails val: + :rtype: EventDetails + """ + return cls('governance_policy_delete_details', val) + + @classmethod + def governance_policy_edit_details_details(cls, val): + """ + Create an instance of this class set to the + ``governance_policy_edit_details_details`` tag with value ``val``. + + :param GovernancePolicyEditDetailsDetails val: + :rtype: EventDetails + """ + return cls('governance_policy_edit_details_details', val) + + @classmethod + def governance_policy_edit_duration_details(cls, val): + """ + Create an instance of this class set to the + ``governance_policy_edit_duration_details`` tag with value ``val``. + + :param GovernancePolicyEditDurationDetails val: + :rtype: EventDetails + """ + return cls('governance_policy_edit_duration_details', val) + + @classmethod + def governance_policy_remove_folders_details(cls, val): + """ + Create an instance of this class set to the + ``governance_policy_remove_folders_details`` tag with value ``val``. + + :param GovernancePolicyRemoveFoldersDetails val: + :rtype: EventDetails + """ + return cls('governance_policy_remove_folders_details', val) + + @classmethod + def legal_holds_activate_a_hold_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_activate_a_hold_details`` tag with value ``val``. + + :param LegalHoldsActivateAHoldDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_activate_a_hold_details', val) + + @classmethod + def legal_holds_add_members_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_add_members_details`` tag with value ``val``. + + :param LegalHoldsAddMembersDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_add_members_details', val) + + @classmethod + def legal_holds_change_hold_details_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_change_hold_details_details`` tag with value ``val``. + + :param LegalHoldsChangeHoldDetailsDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_change_hold_details_details', val) + + @classmethod + def legal_holds_change_hold_name_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_change_hold_name_details`` tag with value ``val``. + + :param LegalHoldsChangeHoldNameDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_change_hold_name_details', val) + + @classmethod + def legal_holds_export_a_hold_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_export_a_hold_details`` tag with value ``val``. + + :param LegalHoldsExportAHoldDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_export_a_hold_details', val) + + @classmethod + def legal_holds_export_cancelled_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_export_cancelled_details`` tag with value ``val``. + + :param LegalHoldsExportCancelledDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_export_cancelled_details', val) + + @classmethod + def legal_holds_export_downloaded_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_export_downloaded_details`` tag with value ``val``. + + :param LegalHoldsExportDownloadedDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_export_downloaded_details', val) + + @classmethod + def legal_holds_export_removed_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_export_removed_details`` tag with value ``val``. + + :param LegalHoldsExportRemovedDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_export_removed_details', val) + + @classmethod + def legal_holds_release_a_hold_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_release_a_hold_details`` tag with value ``val``. + + :param LegalHoldsReleaseAHoldDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_release_a_hold_details', val) + + @classmethod + def legal_holds_remove_members_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_remove_members_details`` tag with value ``val``. + + :param LegalHoldsRemoveMembersDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_remove_members_details', val) + + @classmethod + def legal_holds_report_a_hold_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_report_a_hold_details`` tag with value ``val``. + + :param LegalHoldsReportAHoldDetails val: + :rtype: EventDetails + """ + return cls('legal_holds_report_a_hold_details', val) + @classmethod def device_change_ip_desktop_details(cls, val): """ @@ -11007,6 +11412,17 @@ def device_management_enabled_details(cls, val): """ return cls('device_management_enabled_details', val) + @classmethod + def device_sync_backup_status_changed_details(cls, val): + """ + Create an instance of this class set to the + ``device_sync_backup_status_changed_details`` tag with value ``val``. + + :param DeviceSyncBackupStatusChangedDetails val: + :rtype: EventDetails + """ + return cls('device_sync_backup_status_changed_details', val) + @classmethod def device_unlink_details(cls, val): """ @@ -11618,127 +12034,6 @@ def group_rename_details(cls, val): """ return cls('group_rename_details', val) - @classmethod - def legal_holds_activate_a_hold_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_activate_a_hold_details`` tag with value ``val``. - - :param LegalHoldsActivateAHoldDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_activate_a_hold_details', val) - - @classmethod - def legal_holds_add_members_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_add_members_details`` tag with value ``val``. - - :param LegalHoldsAddMembersDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_add_members_details', val) - - @classmethod - def legal_holds_change_hold_details_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_change_hold_details_details`` tag with value ``val``. - - :param LegalHoldsChangeHoldDetailsDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_change_hold_details_details', val) - - @classmethod - def legal_holds_change_hold_name_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_change_hold_name_details`` tag with value ``val``. - - :param LegalHoldsChangeHoldNameDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_change_hold_name_details', val) - - @classmethod - def legal_holds_export_a_hold_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_export_a_hold_details`` tag with value ``val``. - - :param LegalHoldsExportAHoldDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_export_a_hold_details', val) - - @classmethod - def legal_holds_export_cancelled_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_export_cancelled_details`` tag with value ``val``. - - :param LegalHoldsExportCancelledDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_export_cancelled_details', val) - - @classmethod - def legal_holds_export_downloaded_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_export_downloaded_details`` tag with value ``val``. - - :param LegalHoldsExportDownloadedDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_export_downloaded_details', val) - - @classmethod - def legal_holds_export_removed_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_export_removed_details`` tag with value ``val``. - - :param LegalHoldsExportRemovedDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_export_removed_details', val) - - @classmethod - def legal_holds_release_a_hold_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_release_a_hold_details`` tag with value ``val``. - - :param LegalHoldsReleaseAHoldDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_release_a_hold_details', val) - - @classmethod - def legal_holds_remove_members_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_remove_members_details`` tag with value ``val``. - - :param LegalHoldsRemoveMembersDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_remove_members_details', val) - - @classmethod - def legal_holds_report_a_hold_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_report_a_hold_details`` tag with value ``val``. - - :param LegalHoldsReportAHoldDetails val: - :rtype: EventDetails - """ - return cls('legal_holds_report_a_hold_details', val) - @classmethod def account_lock_or_unlocked_details(cls, val): """ @@ -13801,6 +14096,28 @@ def shared_note_opened_details(cls, val): """ return cls('shared_note_opened_details', val) + @classmethod + def shmodel_disable_downloads_details(cls, val): + """ + Create an instance of this class set to the + ``shmodel_disable_downloads_details`` tag with value ``val``. + + :param ShmodelDisableDownloadsDetails val: + :rtype: EventDetails + """ + return cls('shmodel_disable_downloads_details', val) + + @classmethod + def shmodel_enable_downloads_details(cls, val): + """ + Create an instance of this class set to the + ``shmodel_enable_downloads_details`` tag with value ``val``. + + :param ShmodelEnableDownloadsDetails val: + :rtype: EventDetails + """ + return cls('shmodel_enable_downloads_details', val) + @classmethod def shmodel_group_share_details(cls, val): """ @@ -15638,6 +15955,142 @@ def is_file_unresolve_comment_details(self): """ return self._tag == 'file_unresolve_comment_details' + def is_governance_policy_add_folders_details(self): + """ + Check if the union tag is ``governance_policy_add_folders_details``. + + :rtype: bool + """ + return self._tag == 'governance_policy_add_folders_details' + + def is_governance_policy_create_details(self): + """ + Check if the union tag is ``governance_policy_create_details``. + + :rtype: bool + """ + return self._tag == 'governance_policy_create_details' + + def is_governance_policy_delete_details(self): + """ + Check if the union tag is ``governance_policy_delete_details``. + + :rtype: bool + """ + return self._tag == 'governance_policy_delete_details' + + def is_governance_policy_edit_details_details(self): + """ + Check if the union tag is ``governance_policy_edit_details_details``. + + :rtype: bool + """ + return self._tag == 'governance_policy_edit_details_details' + + def is_governance_policy_edit_duration_details(self): + """ + Check if the union tag is ``governance_policy_edit_duration_details``. + + :rtype: bool + """ + return self._tag == 'governance_policy_edit_duration_details' + + def is_governance_policy_remove_folders_details(self): + """ + Check if the union tag is ``governance_policy_remove_folders_details``. + + :rtype: bool + """ + return self._tag == 'governance_policy_remove_folders_details' + + def is_legal_holds_activate_a_hold_details(self): + """ + Check if the union tag is ``legal_holds_activate_a_hold_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_activate_a_hold_details' + + def is_legal_holds_add_members_details(self): + """ + Check if the union tag is ``legal_holds_add_members_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_add_members_details' + + def is_legal_holds_change_hold_details_details(self): + """ + Check if the union tag is ``legal_holds_change_hold_details_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_change_hold_details_details' + + def is_legal_holds_change_hold_name_details(self): + """ + Check if the union tag is ``legal_holds_change_hold_name_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_change_hold_name_details' + + def is_legal_holds_export_a_hold_details(self): + """ + Check if the union tag is ``legal_holds_export_a_hold_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_a_hold_details' + + def is_legal_holds_export_cancelled_details(self): + """ + Check if the union tag is ``legal_holds_export_cancelled_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_cancelled_details' + + def is_legal_holds_export_downloaded_details(self): + """ + Check if the union tag is ``legal_holds_export_downloaded_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_downloaded_details' + + def is_legal_holds_export_removed_details(self): + """ + Check if the union tag is ``legal_holds_export_removed_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_removed_details' + + def is_legal_holds_release_a_hold_details(self): + """ + Check if the union tag is ``legal_holds_release_a_hold_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_release_a_hold_details' + + def is_legal_holds_remove_members_details(self): + """ + Check if the union tag is ``legal_holds_remove_members_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_remove_members_details' + + def is_legal_holds_report_a_hold_details(self): + """ + Check if the union tag is ``legal_holds_report_a_hold_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_report_a_hold_details' + def is_device_change_ip_desktop_details(self): """ Check if the union tag is ``device_change_ip_desktop_details``. @@ -15710,6 +16163,14 @@ def is_device_management_enabled_details(self): """ return self._tag == 'device_management_enabled_details' + def is_device_sync_backup_status_changed_details(self): + """ + Check if the union tag is ``device_sync_backup_status_changed_details``. + + :rtype: bool + """ + return self._tag == 'device_sync_backup_status_changed_details' + def is_device_unlink_details(self): """ Check if the union tag is ``device_unlink_details``. @@ -16150,94 +16611,6 @@ def is_group_rename_details(self): """ return self._tag == 'group_rename_details' - def is_legal_holds_activate_a_hold_details(self): - """ - Check if the union tag is ``legal_holds_activate_a_hold_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_activate_a_hold_details' - - def is_legal_holds_add_members_details(self): - """ - Check if the union tag is ``legal_holds_add_members_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_add_members_details' - - def is_legal_holds_change_hold_details_details(self): - """ - Check if the union tag is ``legal_holds_change_hold_details_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_change_hold_details_details' - - def is_legal_holds_change_hold_name_details(self): - """ - Check if the union tag is ``legal_holds_change_hold_name_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_change_hold_name_details' - - def is_legal_holds_export_a_hold_details(self): - """ - Check if the union tag is ``legal_holds_export_a_hold_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_a_hold_details' - - def is_legal_holds_export_cancelled_details(self): - """ - Check if the union tag is ``legal_holds_export_cancelled_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_cancelled_details' - - def is_legal_holds_export_downloaded_details(self): - """ - Check if the union tag is ``legal_holds_export_downloaded_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_downloaded_details' - - def is_legal_holds_export_removed_details(self): - """ - Check if the union tag is ``legal_holds_export_removed_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_removed_details' - - def is_legal_holds_release_a_hold_details(self): - """ - Check if the union tag is ``legal_holds_release_a_hold_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_release_a_hold_details' - - def is_legal_holds_remove_members_details(self): - """ - Check if the union tag is ``legal_holds_remove_members_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_remove_members_details' - - def is_legal_holds_report_a_hold_details(self): - """ - Check if the union tag is ``legal_holds_report_a_hold_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_report_a_hold_details' - def is_account_lock_or_unlocked_details(self): """ Check if the union tag is ``account_lock_or_unlocked_details``. @@ -17726,6 +18099,22 @@ def is_shared_note_opened_details(self): """ return self._tag == 'shared_note_opened_details' + def is_shmodel_disable_downloads_details(self): + """ + Check if the union tag is ``shmodel_disable_downloads_details``. + + :rtype: bool + """ + return self._tag == 'shmodel_disable_downloads_details' + + def is_shmodel_enable_downloads_details(self): + """ + Check if the union tag is ``shmodel_enable_downloads_details``. + + :rtype: bool + """ + return self._tag == 'shmodel_enable_downloads_details' + def is_shmodel_group_share_details(self): """ Check if the union tag is ``shmodel_group_share_details``. @@ -19106,6 +19495,176 @@ def get_file_unresolve_comment_details(self): raise AttributeError("tag 'file_unresolve_comment_details' not set") return self._value + def get_governance_policy_add_folders_details(self): + """ + Only call this if :meth:`is_governance_policy_add_folders_details` is true. + + :rtype: GovernancePolicyAddFoldersDetails + """ + if not self.is_governance_policy_add_folders_details(): + raise AttributeError("tag 'governance_policy_add_folders_details' not set") + return self._value + + def get_governance_policy_create_details(self): + """ + Only call this if :meth:`is_governance_policy_create_details` is true. + + :rtype: GovernancePolicyCreateDetails + """ + if not self.is_governance_policy_create_details(): + raise AttributeError("tag 'governance_policy_create_details' not set") + return self._value + + def get_governance_policy_delete_details(self): + """ + Only call this if :meth:`is_governance_policy_delete_details` is true. + + :rtype: GovernancePolicyDeleteDetails + """ + if not self.is_governance_policy_delete_details(): + raise AttributeError("tag 'governance_policy_delete_details' not set") + return self._value + + def get_governance_policy_edit_details_details(self): + """ + Only call this if :meth:`is_governance_policy_edit_details_details` is true. + + :rtype: GovernancePolicyEditDetailsDetails + """ + if not self.is_governance_policy_edit_details_details(): + raise AttributeError("tag 'governance_policy_edit_details_details' not set") + return self._value + + def get_governance_policy_edit_duration_details(self): + """ + Only call this if :meth:`is_governance_policy_edit_duration_details` is true. + + :rtype: GovernancePolicyEditDurationDetails + """ + if not self.is_governance_policy_edit_duration_details(): + raise AttributeError("tag 'governance_policy_edit_duration_details' not set") + return self._value + + def get_governance_policy_remove_folders_details(self): + """ + Only call this if :meth:`is_governance_policy_remove_folders_details` is true. + + :rtype: GovernancePolicyRemoveFoldersDetails + """ + if not self.is_governance_policy_remove_folders_details(): + raise AttributeError("tag 'governance_policy_remove_folders_details' not set") + return self._value + + def get_legal_holds_activate_a_hold_details(self): + """ + Only call this if :meth:`is_legal_holds_activate_a_hold_details` is true. + + :rtype: LegalHoldsActivateAHoldDetails + """ + if not self.is_legal_holds_activate_a_hold_details(): + raise AttributeError("tag 'legal_holds_activate_a_hold_details' not set") + return self._value + + def get_legal_holds_add_members_details(self): + """ + Only call this if :meth:`is_legal_holds_add_members_details` is true. + + :rtype: LegalHoldsAddMembersDetails + """ + if not self.is_legal_holds_add_members_details(): + raise AttributeError("tag 'legal_holds_add_members_details' not set") + return self._value + + def get_legal_holds_change_hold_details_details(self): + """ + Only call this if :meth:`is_legal_holds_change_hold_details_details` is true. + + :rtype: LegalHoldsChangeHoldDetailsDetails + """ + if not self.is_legal_holds_change_hold_details_details(): + raise AttributeError("tag 'legal_holds_change_hold_details_details' not set") + return self._value + + def get_legal_holds_change_hold_name_details(self): + """ + Only call this if :meth:`is_legal_holds_change_hold_name_details` is true. + + :rtype: LegalHoldsChangeHoldNameDetails + """ + if not self.is_legal_holds_change_hold_name_details(): + raise AttributeError("tag 'legal_holds_change_hold_name_details' not set") + return self._value + + def get_legal_holds_export_a_hold_details(self): + """ + Only call this if :meth:`is_legal_holds_export_a_hold_details` is true. + + :rtype: LegalHoldsExportAHoldDetails + """ + if not self.is_legal_holds_export_a_hold_details(): + raise AttributeError("tag 'legal_holds_export_a_hold_details' not set") + return self._value + + def get_legal_holds_export_cancelled_details(self): + """ + Only call this if :meth:`is_legal_holds_export_cancelled_details` is true. + + :rtype: LegalHoldsExportCancelledDetails + """ + if not self.is_legal_holds_export_cancelled_details(): + raise AttributeError("tag 'legal_holds_export_cancelled_details' not set") + return self._value + + def get_legal_holds_export_downloaded_details(self): + """ + Only call this if :meth:`is_legal_holds_export_downloaded_details` is true. + + :rtype: LegalHoldsExportDownloadedDetails + """ + if not self.is_legal_holds_export_downloaded_details(): + raise AttributeError("tag 'legal_holds_export_downloaded_details' not set") + return self._value + + def get_legal_holds_export_removed_details(self): + """ + Only call this if :meth:`is_legal_holds_export_removed_details` is true. + + :rtype: LegalHoldsExportRemovedDetails + """ + if not self.is_legal_holds_export_removed_details(): + raise AttributeError("tag 'legal_holds_export_removed_details' not set") + return self._value + + def get_legal_holds_release_a_hold_details(self): + """ + Only call this if :meth:`is_legal_holds_release_a_hold_details` is true. + + :rtype: LegalHoldsReleaseAHoldDetails + """ + if not self.is_legal_holds_release_a_hold_details(): + raise AttributeError("tag 'legal_holds_release_a_hold_details' not set") + return self._value + + def get_legal_holds_remove_members_details(self): + """ + Only call this if :meth:`is_legal_holds_remove_members_details` is true. + + :rtype: LegalHoldsRemoveMembersDetails + """ + if not self.is_legal_holds_remove_members_details(): + raise AttributeError("tag 'legal_holds_remove_members_details' not set") + return self._value + + def get_legal_holds_report_a_hold_details(self): + """ + Only call this if :meth:`is_legal_holds_report_a_hold_details` is true. + + :rtype: LegalHoldsReportAHoldDetails + """ + if not self.is_legal_holds_report_a_hold_details(): + raise AttributeError("tag 'legal_holds_report_a_hold_details' not set") + return self._value + def get_device_change_ip_desktop_details(self): """ Only call this if :meth:`is_device_change_ip_desktop_details` is true. @@ -19196,6 +19755,16 @@ def get_device_management_enabled_details(self): raise AttributeError("tag 'device_management_enabled_details' not set") return self._value + def get_device_sync_backup_status_changed_details(self): + """ + Only call this if :meth:`is_device_sync_backup_status_changed_details` is true. + + :rtype: DeviceSyncBackupStatusChangedDetails + """ + if not self.is_device_sync_backup_status_changed_details(): + raise AttributeError("tag 'device_sync_backup_status_changed_details' not set") + return self._value + def get_device_unlink_details(self): """ Only call this if :meth:`is_device_unlink_details` is true. @@ -19746,116 +20315,6 @@ def get_group_rename_details(self): raise AttributeError("tag 'group_rename_details' not set") return self._value - def get_legal_holds_activate_a_hold_details(self): - """ - Only call this if :meth:`is_legal_holds_activate_a_hold_details` is true. - - :rtype: LegalHoldsActivateAHoldDetails - """ - if not self.is_legal_holds_activate_a_hold_details(): - raise AttributeError("tag 'legal_holds_activate_a_hold_details' not set") - return self._value - - def get_legal_holds_add_members_details(self): - """ - Only call this if :meth:`is_legal_holds_add_members_details` is true. - - :rtype: LegalHoldsAddMembersDetails - """ - if not self.is_legal_holds_add_members_details(): - raise AttributeError("tag 'legal_holds_add_members_details' not set") - return self._value - - def get_legal_holds_change_hold_details_details(self): - """ - Only call this if :meth:`is_legal_holds_change_hold_details_details` is true. - - :rtype: LegalHoldsChangeHoldDetailsDetails - """ - if not self.is_legal_holds_change_hold_details_details(): - raise AttributeError("tag 'legal_holds_change_hold_details_details' not set") - return self._value - - def get_legal_holds_change_hold_name_details(self): - """ - Only call this if :meth:`is_legal_holds_change_hold_name_details` is true. - - :rtype: LegalHoldsChangeHoldNameDetails - """ - if not self.is_legal_holds_change_hold_name_details(): - raise AttributeError("tag 'legal_holds_change_hold_name_details' not set") - return self._value - - def get_legal_holds_export_a_hold_details(self): - """ - Only call this if :meth:`is_legal_holds_export_a_hold_details` is true. - - :rtype: LegalHoldsExportAHoldDetails - """ - if not self.is_legal_holds_export_a_hold_details(): - raise AttributeError("tag 'legal_holds_export_a_hold_details' not set") - return self._value - - def get_legal_holds_export_cancelled_details(self): - """ - Only call this if :meth:`is_legal_holds_export_cancelled_details` is true. - - :rtype: LegalHoldsExportCancelledDetails - """ - if not self.is_legal_holds_export_cancelled_details(): - raise AttributeError("tag 'legal_holds_export_cancelled_details' not set") - return self._value - - def get_legal_holds_export_downloaded_details(self): - """ - Only call this if :meth:`is_legal_holds_export_downloaded_details` is true. - - :rtype: LegalHoldsExportDownloadedDetails - """ - if not self.is_legal_holds_export_downloaded_details(): - raise AttributeError("tag 'legal_holds_export_downloaded_details' not set") - return self._value - - def get_legal_holds_export_removed_details(self): - """ - Only call this if :meth:`is_legal_holds_export_removed_details` is true. - - :rtype: LegalHoldsExportRemovedDetails - """ - if not self.is_legal_holds_export_removed_details(): - raise AttributeError("tag 'legal_holds_export_removed_details' not set") - return self._value - - def get_legal_holds_release_a_hold_details(self): - """ - Only call this if :meth:`is_legal_holds_release_a_hold_details` is true. - - :rtype: LegalHoldsReleaseAHoldDetails - """ - if not self.is_legal_holds_release_a_hold_details(): - raise AttributeError("tag 'legal_holds_release_a_hold_details' not set") - return self._value - - def get_legal_holds_remove_members_details(self): - """ - Only call this if :meth:`is_legal_holds_remove_members_details` is true. - - :rtype: LegalHoldsRemoveMembersDetails - """ - if not self.is_legal_holds_remove_members_details(): - raise AttributeError("tag 'legal_holds_remove_members_details' not set") - return self._value - - def get_legal_holds_report_a_hold_details(self): - """ - Only call this if :meth:`is_legal_holds_report_a_hold_details` is true. - - :rtype: LegalHoldsReportAHoldDetails - """ - if not self.is_legal_holds_report_a_hold_details(): - raise AttributeError("tag 'legal_holds_report_a_hold_details' not set") - return self._value - def get_account_lock_or_unlocked_details(self): """ Only call this if :meth:`is_account_lock_or_unlocked_details` is true. @@ -21716,6 +22175,26 @@ def get_shared_note_opened_details(self): raise AttributeError("tag 'shared_note_opened_details' not set") return self._value + def get_shmodel_disable_downloads_details(self): + """ + Only call this if :meth:`is_shmodel_disable_downloads_details` is true. + + :rtype: ShmodelDisableDownloadsDetails + """ + if not self.is_shmodel_disable_downloads_details(): + raise AttributeError("tag 'shmodel_disable_downloads_details' not set") + return self._value + + def get_shmodel_enable_downloads_details(self): + """ + Only call this if :meth:`is_shmodel_enable_downloads_details` is true. + + :rtype: ShmodelEnableDownloadsDetails + """ + if not self.is_shmodel_enable_downloads_details(): + raise AttributeError("tag 'shmodel_enable_downloads_details' not set") + return self._value + def get_shmodel_group_share_details(self): """ Only call this if :meth:`is_shmodel_group_share_details` is true. @@ -23302,6 +23781,46 @@ class EventType(bb.Union): Unliked file comment (deprecated, no longer logged) :ivar FileUnresolveCommentType EventType.file_unresolve_comment: (comments) Unresolved file comment + :ivar GovernancePolicyAddFoldersType + EventType.governance_policy_add_folders: (data_governance) Added folders + to policy + :ivar GovernancePolicyCreateType EventType.governance_policy_create: + (data_governance) Activated a new policy + :ivar GovernancePolicyDeleteType EventType.governance_policy_delete: + (data_governance) Deleted a policy + :ivar GovernancePolicyEditDetailsType + EventType.governance_policy_edit_details: (data_governance) Edited + policy + :ivar GovernancePolicyEditDurationType + EventType.governance_policy_edit_duration: (data_governance) Changed + policy duration + :ivar GovernancePolicyRemoveFoldersType + EventType.governance_policy_remove_folders: (data_governance) Removed + folders from policy + :ivar LegalHoldsActivateAHoldType EventType.legal_holds_activate_a_hold: + (data_governance) Activated a hold + :ivar LegalHoldsAddMembersType EventType.legal_holds_add_members: + (data_governance) Added members to a hold + :ivar LegalHoldsChangeHoldDetailsType + EventType.legal_holds_change_hold_details: (data_governance) Edited + details for a hold + :ivar LegalHoldsChangeHoldNameType EventType.legal_holds_change_hold_name: + (data_governance) Renamed a hold + :ivar LegalHoldsExportAHoldType EventType.legal_holds_export_a_hold: + (data_governance) Exported hold + :ivar LegalHoldsExportCancelledType EventType.legal_holds_export_cancelled: + (data_governance) Canceled export for a hold + :ivar LegalHoldsExportDownloadedType + EventType.legal_holds_export_downloaded: (data_governance) Downloaded + export for a hold + :ivar LegalHoldsExportRemovedType EventType.legal_holds_export_removed: + (data_governance) Removed export for a hold + :ivar LegalHoldsReleaseAHoldType EventType.legal_holds_release_a_hold: + (data_governance) Released a hold + :ivar LegalHoldsRemoveMembersType EventType.legal_holds_remove_members: + (data_governance) Removed members from a hold + :ivar LegalHoldsReportAHoldType EventType.legal_holds_report_a_hold: + (data_governance) Created a summary report for a hold :ivar DeviceChangeIpDesktopType EventType.device_change_ip_desktop: (devices) Changed IP address associated with active desktop session :ivar DeviceChangeIpMobileType EventType.device_change_ip_mobile: (devices) @@ -23321,6 +23840,9 @@ class EventType(bb.Union): (devices) Disabled device management (deprecated, no longer logged) :ivar DeviceManagementEnabledType EventType.device_management_enabled: (devices) Enabled device management (deprecated, no longer logged) + :ivar DeviceSyncBackupStatusChangedType + EventType.device_sync_backup_status_changed: (devices) Enabled/disabled + backup for computer :ivar DeviceUnlinkType EventType.device_unlink: (devices) Disconnected device :ivar EmmRefreshAuthTokenType EventType.emm_refresh_auth_token: (devices) @@ -23443,30 +23965,6 @@ class EventType(bb.Union): :ivar GroupRemoveMemberType EventType.group_remove_member: (groups) Removed team members from group :ivar GroupRenameType EventType.group_rename: (groups) Renamed group - :ivar LegalHoldsActivateAHoldType EventType.legal_holds_activate_a_hold: - (legal_holds) Activated a hold - :ivar LegalHoldsAddMembersType EventType.legal_holds_add_members: - (legal_holds) Added members to a hold - :ivar LegalHoldsChangeHoldDetailsType - EventType.legal_holds_change_hold_details: (legal_holds) Edited details - for a hold - :ivar LegalHoldsChangeHoldNameType EventType.legal_holds_change_hold_name: - (legal_holds) Renamed a hold - :ivar LegalHoldsExportAHoldType EventType.legal_holds_export_a_hold: - (legal_holds) Exported hold - :ivar LegalHoldsExportCancelledType EventType.legal_holds_export_cancelled: - (legal_holds) Canceled export for a hold - :ivar LegalHoldsExportDownloadedType - EventType.legal_holds_export_downloaded: (legal_holds) Downloaded export - for a hold - :ivar LegalHoldsExportRemovedType EventType.legal_holds_export_removed: - (legal_holds) Removed export for a hold - :ivar LegalHoldsReleaseAHoldType EventType.legal_holds_release_a_hold: - (legal_holds) Released a hold - :ivar LegalHoldsRemoveMembersType EventType.legal_holds_remove_members: - (legal_holds) Removed members from a hold - :ivar LegalHoldsReportAHoldType EventType.legal_holds_report_a_hold: - (legal_holds) Created a summary report for a hold :ivar AccountLockOrUnlockedType EventType.account_lock_or_unlocked: (logins) Unlocked/locked account after failed sign in attempts :ivar EmmErrorType EventType.emm_error: (logins) Failed to sign in via EMM @@ -23672,11 +24170,11 @@ class EventType(bb.Union): :ivar ExportMembersReportFailType EventType.export_members_report_fail: (reports) Failed to create members data report :ivar ExternalSharingCreateReportType - EventType.external_sharing_create_report: (reports) Report created: Data - shared outside the team + EventType.external_sharing_create_report: (reports) Created External + sharing report :ivar ExternalSharingReportFailedType EventType.external_sharing_report_failed: (reports) Couldn't create - report: Data shared outside the team + External sharing report :ivar NoExpirationLinkGenCreateReportType EventType.no_expiration_link_gen_create_report: (reports) Report created: Links created with no expiration @@ -23911,6 +24409,10 @@ class EventType(bb.Union): link :ivar SharedNoteOpenedType EventType.shared_note_opened: (sharing) Opened shared Paper doc (deprecated, no longer logged) + :ivar ShmodelDisableDownloadsType EventType.shmodel_disable_downloads: + (sharing) Disabled downloads for link (deprecated, no longer logged) + :ivar ShmodelEnableDownloadsType EventType.shmodel_enable_downloads: + (sharing) Enabled downloads for link (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: @@ -24467,6 +24969,193 @@ def file_unresolve_comment(cls, val): """ return cls('file_unresolve_comment', val) + @classmethod + def governance_policy_add_folders(cls, val): + """ + Create an instance of this class set to the + ``governance_policy_add_folders`` tag with value ``val``. + + :param GovernancePolicyAddFoldersType val: + :rtype: EventType + """ + return cls('governance_policy_add_folders', val) + + @classmethod + def governance_policy_create(cls, val): + """ + Create an instance of this class set to the ``governance_policy_create`` + tag with value ``val``. + + :param GovernancePolicyCreateType val: + :rtype: EventType + """ + return cls('governance_policy_create', val) + + @classmethod + def governance_policy_delete(cls, val): + """ + Create an instance of this class set to the ``governance_policy_delete`` + tag with value ``val``. + + :param GovernancePolicyDeleteType val: + :rtype: EventType + """ + return cls('governance_policy_delete', val) + + @classmethod + def governance_policy_edit_details(cls, val): + """ + Create an instance of this class set to the + ``governance_policy_edit_details`` tag with value ``val``. + + :param GovernancePolicyEditDetailsType val: + :rtype: EventType + """ + return cls('governance_policy_edit_details', val) + + @classmethod + def governance_policy_edit_duration(cls, val): + """ + Create an instance of this class set to the + ``governance_policy_edit_duration`` tag with value ``val``. + + :param GovernancePolicyEditDurationType val: + :rtype: EventType + """ + return cls('governance_policy_edit_duration', val) + + @classmethod + def governance_policy_remove_folders(cls, val): + """ + Create an instance of this class set to the + ``governance_policy_remove_folders`` tag with value ``val``. + + :param GovernancePolicyRemoveFoldersType val: + :rtype: EventType + """ + return cls('governance_policy_remove_folders', val) + + @classmethod + def legal_holds_activate_a_hold(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_activate_a_hold`` tag with value ``val``. + + :param LegalHoldsActivateAHoldType val: + :rtype: EventType + """ + return cls('legal_holds_activate_a_hold', val) + + @classmethod + def legal_holds_add_members(cls, val): + """ + Create an instance of this class set to the ``legal_holds_add_members`` + tag with value ``val``. + + :param LegalHoldsAddMembersType val: + :rtype: EventType + """ + return cls('legal_holds_add_members', val) + + @classmethod + def legal_holds_change_hold_details(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_change_hold_details`` tag with value ``val``. + + :param LegalHoldsChangeHoldDetailsType val: + :rtype: EventType + """ + return cls('legal_holds_change_hold_details', val) + + @classmethod + def legal_holds_change_hold_name(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_change_hold_name`` tag with value ``val``. + + :param LegalHoldsChangeHoldNameType val: + :rtype: EventType + """ + return cls('legal_holds_change_hold_name', val) + + @classmethod + def legal_holds_export_a_hold(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_export_a_hold`` tag with value ``val``. + + :param LegalHoldsExportAHoldType val: + :rtype: EventType + """ + return cls('legal_holds_export_a_hold', val) + + @classmethod + def legal_holds_export_cancelled(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_export_cancelled`` tag with value ``val``. + + :param LegalHoldsExportCancelledType val: + :rtype: EventType + """ + return cls('legal_holds_export_cancelled', val) + + @classmethod + def legal_holds_export_downloaded(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_export_downloaded`` tag with value ``val``. + + :param LegalHoldsExportDownloadedType val: + :rtype: EventType + """ + return cls('legal_holds_export_downloaded', val) + + @classmethod + def legal_holds_export_removed(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_export_removed`` tag with value ``val``. + + :param LegalHoldsExportRemovedType val: + :rtype: EventType + """ + return cls('legal_holds_export_removed', val) + + @classmethod + def legal_holds_release_a_hold(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_release_a_hold`` tag with value ``val``. + + :param LegalHoldsReleaseAHoldType val: + :rtype: EventType + """ + return cls('legal_holds_release_a_hold', val) + + @classmethod + def legal_holds_remove_members(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_remove_members`` tag with value ``val``. + + :param LegalHoldsRemoveMembersType val: + :rtype: EventType + """ + return cls('legal_holds_remove_members', val) + + @classmethod + def legal_holds_report_a_hold(cls, val): + """ + Create an instance of this class set to the + ``legal_holds_report_a_hold`` tag with value ``val``. + + :param LegalHoldsReportAHoldType val: + :rtype: EventType + """ + return cls('legal_holds_report_a_hold', val) + @classmethod def device_change_ip_desktop(cls, val): """ @@ -24566,6 +25255,17 @@ def device_management_enabled(cls, val): """ return cls('device_management_enabled', val) + @classmethod + def device_sync_backup_status_changed(cls, val): + """ + Create an instance of this class set to the + ``device_sync_backup_status_changed`` tag with value ``val``. + + :param DeviceSyncBackupStatusChangedType val: + :rtype: EventType + """ + return cls('device_sync_backup_status_changed', val) + @classmethod def device_unlink(cls, val): """ @@ -25173,127 +25873,6 @@ def group_rename(cls, val): """ return cls('group_rename', val) - @classmethod - def legal_holds_activate_a_hold(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_activate_a_hold`` tag with value ``val``. - - :param LegalHoldsActivateAHoldType val: - :rtype: EventType - """ - return cls('legal_holds_activate_a_hold', val) - - @classmethod - def legal_holds_add_members(cls, val): - """ - Create an instance of this class set to the ``legal_holds_add_members`` - tag with value ``val``. - - :param LegalHoldsAddMembersType val: - :rtype: EventType - """ - return cls('legal_holds_add_members', val) - - @classmethod - def legal_holds_change_hold_details(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_change_hold_details`` tag with value ``val``. - - :param LegalHoldsChangeHoldDetailsType val: - :rtype: EventType - """ - return cls('legal_holds_change_hold_details', val) - - @classmethod - def legal_holds_change_hold_name(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_change_hold_name`` tag with value ``val``. - - :param LegalHoldsChangeHoldNameType val: - :rtype: EventType - """ - return cls('legal_holds_change_hold_name', val) - - @classmethod - def legal_holds_export_a_hold(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_export_a_hold`` tag with value ``val``. - - :param LegalHoldsExportAHoldType val: - :rtype: EventType - """ - return cls('legal_holds_export_a_hold', val) - - @classmethod - def legal_holds_export_cancelled(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_export_cancelled`` tag with value ``val``. - - :param LegalHoldsExportCancelledType val: - :rtype: EventType - """ - return cls('legal_holds_export_cancelled', val) - - @classmethod - def legal_holds_export_downloaded(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_export_downloaded`` tag with value ``val``. - - :param LegalHoldsExportDownloadedType val: - :rtype: EventType - """ - return cls('legal_holds_export_downloaded', val) - - @classmethod - def legal_holds_export_removed(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_export_removed`` tag with value ``val``. - - :param LegalHoldsExportRemovedType val: - :rtype: EventType - """ - return cls('legal_holds_export_removed', val) - - @classmethod - def legal_holds_release_a_hold(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_release_a_hold`` tag with value ``val``. - - :param LegalHoldsReleaseAHoldType val: - :rtype: EventType - """ - return cls('legal_holds_release_a_hold', val) - - @classmethod - def legal_holds_remove_members(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_remove_members`` tag with value ``val``. - - :param LegalHoldsRemoveMembersType val: - :rtype: EventType - """ - return cls('legal_holds_remove_members', val) - - @classmethod - def legal_holds_report_a_hold(cls, val): - """ - Create an instance of this class set to the - ``legal_holds_report_a_hold`` tag with value ``val``. - - :param LegalHoldsReportAHoldType val: - :rtype: EventType - """ - return cls('legal_holds_report_a_hold', val) - @classmethod def account_lock_or_unlocked(cls, val): """ @@ -27342,6 +27921,28 @@ def shared_note_opened(cls, val): """ return cls('shared_note_opened', val) + @classmethod + def shmodel_disable_downloads(cls, val): + """ + Create an instance of this class set to the + ``shmodel_disable_downloads`` tag with value ``val``. + + :param ShmodelDisableDownloadsType val: + :rtype: EventType + """ + return cls('shmodel_disable_downloads', val) + + @classmethod + def shmodel_enable_downloads(cls, val): + """ + Create an instance of this class set to the ``shmodel_enable_downloads`` + tag with value ``val``. + + :param ShmodelEnableDownloadsType val: + :rtype: EventType + """ + return cls('shmodel_enable_downloads', val) + @classmethod def shmodel_group_share(cls, val): """ @@ -29149,6 +29750,142 @@ def is_file_unresolve_comment(self): """ return self._tag == 'file_unresolve_comment' + def is_governance_policy_add_folders(self): + """ + Check if the union tag is ``governance_policy_add_folders``. + + :rtype: bool + """ + return self._tag == 'governance_policy_add_folders' + + def is_governance_policy_create(self): + """ + Check if the union tag is ``governance_policy_create``. + + :rtype: bool + """ + return self._tag == 'governance_policy_create' + + def is_governance_policy_delete(self): + """ + Check if the union tag is ``governance_policy_delete``. + + :rtype: bool + """ + return self._tag == 'governance_policy_delete' + + def is_governance_policy_edit_details(self): + """ + Check if the union tag is ``governance_policy_edit_details``. + + :rtype: bool + """ + return self._tag == 'governance_policy_edit_details' + + def is_governance_policy_edit_duration(self): + """ + Check if the union tag is ``governance_policy_edit_duration``. + + :rtype: bool + """ + return self._tag == 'governance_policy_edit_duration' + + def is_governance_policy_remove_folders(self): + """ + Check if the union tag is ``governance_policy_remove_folders``. + + :rtype: bool + """ + return self._tag == 'governance_policy_remove_folders' + + def is_legal_holds_activate_a_hold(self): + """ + Check if the union tag is ``legal_holds_activate_a_hold``. + + :rtype: bool + """ + return self._tag == 'legal_holds_activate_a_hold' + + def is_legal_holds_add_members(self): + """ + Check if the union tag is ``legal_holds_add_members``. + + :rtype: bool + """ + return self._tag == 'legal_holds_add_members' + + def is_legal_holds_change_hold_details(self): + """ + Check if the union tag is ``legal_holds_change_hold_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_change_hold_details' + + def is_legal_holds_change_hold_name(self): + """ + Check if the union tag is ``legal_holds_change_hold_name``. + + :rtype: bool + """ + return self._tag == 'legal_holds_change_hold_name' + + def is_legal_holds_export_a_hold(self): + """ + Check if the union tag is ``legal_holds_export_a_hold``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_a_hold' + + def is_legal_holds_export_cancelled(self): + """ + Check if the union tag is ``legal_holds_export_cancelled``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_cancelled' + + def is_legal_holds_export_downloaded(self): + """ + Check if the union tag is ``legal_holds_export_downloaded``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_downloaded' + + def is_legal_holds_export_removed(self): + """ + Check if the union tag is ``legal_holds_export_removed``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_removed' + + def is_legal_holds_release_a_hold(self): + """ + Check if the union tag is ``legal_holds_release_a_hold``. + + :rtype: bool + """ + return self._tag == 'legal_holds_release_a_hold' + + def is_legal_holds_remove_members(self): + """ + Check if the union tag is ``legal_holds_remove_members``. + + :rtype: bool + """ + return self._tag == 'legal_holds_remove_members' + + def is_legal_holds_report_a_hold(self): + """ + Check if the union tag is ``legal_holds_report_a_hold``. + + :rtype: bool + """ + return self._tag == 'legal_holds_report_a_hold' + def is_device_change_ip_desktop(self): """ Check if the union tag is ``device_change_ip_desktop``. @@ -29221,6 +29958,14 @@ def is_device_management_enabled(self): """ return self._tag == 'device_management_enabled' + def is_device_sync_backup_status_changed(self): + """ + Check if the union tag is ``device_sync_backup_status_changed``. + + :rtype: bool + """ + return self._tag == 'device_sync_backup_status_changed' + def is_device_unlink(self): """ Check if the union tag is ``device_unlink``. @@ -29661,94 +30406,6 @@ def is_group_rename(self): """ return self._tag == 'group_rename' - def is_legal_holds_activate_a_hold(self): - """ - Check if the union tag is ``legal_holds_activate_a_hold``. - - :rtype: bool - """ - return self._tag == 'legal_holds_activate_a_hold' - - def is_legal_holds_add_members(self): - """ - Check if the union tag is ``legal_holds_add_members``. - - :rtype: bool - """ - return self._tag == 'legal_holds_add_members' - - def is_legal_holds_change_hold_details(self): - """ - Check if the union tag is ``legal_holds_change_hold_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_change_hold_details' - - def is_legal_holds_change_hold_name(self): - """ - Check if the union tag is ``legal_holds_change_hold_name``. - - :rtype: bool - """ - return self._tag == 'legal_holds_change_hold_name' - - def is_legal_holds_export_a_hold(self): - """ - Check if the union tag is ``legal_holds_export_a_hold``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_a_hold' - - def is_legal_holds_export_cancelled(self): - """ - Check if the union tag is ``legal_holds_export_cancelled``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_cancelled' - - def is_legal_holds_export_downloaded(self): - """ - Check if the union tag is ``legal_holds_export_downloaded``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_downloaded' - - def is_legal_holds_export_removed(self): - """ - Check if the union tag is ``legal_holds_export_removed``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_removed' - - def is_legal_holds_release_a_hold(self): - """ - Check if the union tag is ``legal_holds_release_a_hold``. - - :rtype: bool - """ - return self._tag == 'legal_holds_release_a_hold' - - def is_legal_holds_remove_members(self): - """ - Check if the union tag is ``legal_holds_remove_members``. - - :rtype: bool - """ - return self._tag == 'legal_holds_remove_members' - - def is_legal_holds_report_a_hold(self): - """ - Check if the union tag is ``legal_holds_report_a_hold``. - - :rtype: bool - """ - return self._tag == 'legal_holds_report_a_hold' - def is_account_lock_or_unlocked(self): """ Check if the union tag is ``account_lock_or_unlocked``. @@ -31237,6 +31894,22 @@ def is_shared_note_opened(self): """ return self._tag == 'shared_note_opened' + def is_shmodel_disable_downloads(self): + """ + Check if the union tag is ``shmodel_disable_downloads``. + + :rtype: bool + """ + return self._tag == 'shmodel_disable_downloads' + + def is_shmodel_enable_downloads(self): + """ + Check if the union tag is ``shmodel_enable_downloads``. + + :rtype: bool + """ + return self._tag == 'shmodel_enable_downloads' + def is_shmodel_group_share(self): """ Check if the union tag is ``shmodel_group_share``. @@ -32638,6 +33311,210 @@ def get_file_unresolve_comment(self): raise AttributeError("tag 'file_unresolve_comment' not set") return self._value + def get_governance_policy_add_folders(self): + """ + (data_governance) Added folders to policy + + Only call this if :meth:`is_governance_policy_add_folders` is true. + + :rtype: GovernancePolicyAddFoldersType + """ + if not self.is_governance_policy_add_folders(): + raise AttributeError("tag 'governance_policy_add_folders' not set") + return self._value + + def get_governance_policy_create(self): + """ + (data_governance) Activated a new policy + + Only call this if :meth:`is_governance_policy_create` is true. + + :rtype: GovernancePolicyCreateType + """ + if not self.is_governance_policy_create(): + raise AttributeError("tag 'governance_policy_create' not set") + return self._value + + def get_governance_policy_delete(self): + """ + (data_governance) Deleted a policy + + Only call this if :meth:`is_governance_policy_delete` is true. + + :rtype: GovernancePolicyDeleteType + """ + if not self.is_governance_policy_delete(): + raise AttributeError("tag 'governance_policy_delete' not set") + return self._value + + def get_governance_policy_edit_details(self): + """ + (data_governance) Edited policy + + Only call this if :meth:`is_governance_policy_edit_details` is true. + + :rtype: GovernancePolicyEditDetailsType + """ + if not self.is_governance_policy_edit_details(): + raise AttributeError("tag 'governance_policy_edit_details' not set") + return self._value + + def get_governance_policy_edit_duration(self): + """ + (data_governance) Changed policy duration + + Only call this if :meth:`is_governance_policy_edit_duration` is true. + + :rtype: GovernancePolicyEditDurationType + """ + if not self.is_governance_policy_edit_duration(): + raise AttributeError("tag 'governance_policy_edit_duration' not set") + return self._value + + def get_governance_policy_remove_folders(self): + """ + (data_governance) Removed folders from policy + + Only call this if :meth:`is_governance_policy_remove_folders` is true. + + :rtype: GovernancePolicyRemoveFoldersType + """ + if not self.is_governance_policy_remove_folders(): + raise AttributeError("tag 'governance_policy_remove_folders' not set") + return self._value + + def get_legal_holds_activate_a_hold(self): + """ + (data_governance) Activated a hold + + Only call this if :meth:`is_legal_holds_activate_a_hold` is true. + + :rtype: LegalHoldsActivateAHoldType + """ + if not self.is_legal_holds_activate_a_hold(): + raise AttributeError("tag 'legal_holds_activate_a_hold' not set") + return self._value + + def get_legal_holds_add_members(self): + """ + (data_governance) Added members to a hold + + Only call this if :meth:`is_legal_holds_add_members` is true. + + :rtype: LegalHoldsAddMembersType + """ + if not self.is_legal_holds_add_members(): + raise AttributeError("tag 'legal_holds_add_members' not set") + return self._value + + def get_legal_holds_change_hold_details(self): + """ + (data_governance) Edited details for a hold + + Only call this if :meth:`is_legal_holds_change_hold_details` is true. + + :rtype: LegalHoldsChangeHoldDetailsType + """ + if not self.is_legal_holds_change_hold_details(): + raise AttributeError("tag 'legal_holds_change_hold_details' not set") + return self._value + + def get_legal_holds_change_hold_name(self): + """ + (data_governance) Renamed a hold + + Only call this if :meth:`is_legal_holds_change_hold_name` is true. + + :rtype: LegalHoldsChangeHoldNameType + """ + if not self.is_legal_holds_change_hold_name(): + raise AttributeError("tag 'legal_holds_change_hold_name' not set") + return self._value + + def get_legal_holds_export_a_hold(self): + """ + (data_governance) Exported hold + + Only call this if :meth:`is_legal_holds_export_a_hold` is true. + + :rtype: LegalHoldsExportAHoldType + """ + if not self.is_legal_holds_export_a_hold(): + raise AttributeError("tag 'legal_holds_export_a_hold' not set") + return self._value + + def get_legal_holds_export_cancelled(self): + """ + (data_governance) Canceled export for a hold + + Only call this if :meth:`is_legal_holds_export_cancelled` is true. + + :rtype: LegalHoldsExportCancelledType + """ + if not self.is_legal_holds_export_cancelled(): + raise AttributeError("tag 'legal_holds_export_cancelled' not set") + return self._value + + def get_legal_holds_export_downloaded(self): + """ + (data_governance) Downloaded export for a hold + + Only call this if :meth:`is_legal_holds_export_downloaded` is true. + + :rtype: LegalHoldsExportDownloadedType + """ + if not self.is_legal_holds_export_downloaded(): + raise AttributeError("tag 'legal_holds_export_downloaded' not set") + return self._value + + def get_legal_holds_export_removed(self): + """ + (data_governance) Removed export for a hold + + Only call this if :meth:`is_legal_holds_export_removed` is true. + + :rtype: LegalHoldsExportRemovedType + """ + if not self.is_legal_holds_export_removed(): + raise AttributeError("tag 'legal_holds_export_removed' not set") + return self._value + + def get_legal_holds_release_a_hold(self): + """ + (data_governance) Released a hold + + Only call this if :meth:`is_legal_holds_release_a_hold` is true. + + :rtype: LegalHoldsReleaseAHoldType + """ + if not self.is_legal_holds_release_a_hold(): + raise AttributeError("tag 'legal_holds_release_a_hold' not set") + return self._value + + def get_legal_holds_remove_members(self): + """ + (data_governance) Removed members from a hold + + Only call this if :meth:`is_legal_holds_remove_members` is true. + + :rtype: LegalHoldsRemoveMembersType + """ + if not self.is_legal_holds_remove_members(): + raise AttributeError("tag 'legal_holds_remove_members' not set") + return self._value + + def get_legal_holds_report_a_hold(self): + """ + (data_governance) Created a summary report for a hold + + Only call this if :meth:`is_legal_holds_report_a_hold` is true. + + :rtype: LegalHoldsReportAHoldType + """ + if not self.is_legal_holds_report_a_hold(): + raise AttributeError("tag 'legal_holds_report_a_hold' not set") + return self._value + def get_device_change_ip_desktop(self): """ (devices) Changed IP address associated with active desktop session @@ -32746,6 +33623,18 @@ def get_device_management_enabled(self): raise AttributeError("tag 'device_management_enabled' not set") return self._value + def get_device_sync_backup_status_changed(self): + """ + (devices) Enabled/disabled backup for computer + + Only call this if :meth:`is_device_sync_backup_status_changed` is true. + + :rtype: DeviceSyncBackupStatusChangedType + """ + if not self.is_device_sync_backup_status_changed(): + raise AttributeError("tag 'device_sync_backup_status_changed' not set") + return self._value + def get_device_unlink(self): """ (devices) Disconnected device @@ -33410,138 +34299,6 @@ def get_group_rename(self): raise AttributeError("tag 'group_rename' not set") return self._value - def get_legal_holds_activate_a_hold(self): - """ - (legal_holds) Activated a hold - - Only call this if :meth:`is_legal_holds_activate_a_hold` is true. - - :rtype: LegalHoldsActivateAHoldType - """ - if not self.is_legal_holds_activate_a_hold(): - raise AttributeError("tag 'legal_holds_activate_a_hold' not set") - return self._value - - def get_legal_holds_add_members(self): - """ - (legal_holds) Added members to a hold - - Only call this if :meth:`is_legal_holds_add_members` is true. - - :rtype: LegalHoldsAddMembersType - """ - if not self.is_legal_holds_add_members(): - raise AttributeError("tag 'legal_holds_add_members' not set") - return self._value - - def get_legal_holds_change_hold_details(self): - """ - (legal_holds) Edited details for a hold - - Only call this if :meth:`is_legal_holds_change_hold_details` is true. - - :rtype: LegalHoldsChangeHoldDetailsType - """ - if not self.is_legal_holds_change_hold_details(): - raise AttributeError("tag 'legal_holds_change_hold_details' not set") - return self._value - - def get_legal_holds_change_hold_name(self): - """ - (legal_holds) Renamed a hold - - Only call this if :meth:`is_legal_holds_change_hold_name` is true. - - :rtype: LegalHoldsChangeHoldNameType - """ - if not self.is_legal_holds_change_hold_name(): - raise AttributeError("tag 'legal_holds_change_hold_name' not set") - return self._value - - def get_legal_holds_export_a_hold(self): - """ - (legal_holds) Exported hold - - Only call this if :meth:`is_legal_holds_export_a_hold` is true. - - :rtype: LegalHoldsExportAHoldType - """ - if not self.is_legal_holds_export_a_hold(): - raise AttributeError("tag 'legal_holds_export_a_hold' not set") - return self._value - - def get_legal_holds_export_cancelled(self): - """ - (legal_holds) Canceled export for a hold - - Only call this if :meth:`is_legal_holds_export_cancelled` is true. - - :rtype: LegalHoldsExportCancelledType - """ - if not self.is_legal_holds_export_cancelled(): - raise AttributeError("tag 'legal_holds_export_cancelled' not set") - return self._value - - def get_legal_holds_export_downloaded(self): - """ - (legal_holds) Downloaded export for a hold - - Only call this if :meth:`is_legal_holds_export_downloaded` is true. - - :rtype: LegalHoldsExportDownloadedType - """ - if not self.is_legal_holds_export_downloaded(): - raise AttributeError("tag 'legal_holds_export_downloaded' not set") - return self._value - - def get_legal_holds_export_removed(self): - """ - (legal_holds) Removed export for a hold - - Only call this if :meth:`is_legal_holds_export_removed` is true. - - :rtype: LegalHoldsExportRemovedType - """ - if not self.is_legal_holds_export_removed(): - raise AttributeError("tag 'legal_holds_export_removed' not set") - return self._value - - def get_legal_holds_release_a_hold(self): - """ - (legal_holds) Released a hold - - Only call this if :meth:`is_legal_holds_release_a_hold` is true. - - :rtype: LegalHoldsReleaseAHoldType - """ - if not self.is_legal_holds_release_a_hold(): - raise AttributeError("tag 'legal_holds_release_a_hold' not set") - return self._value - - def get_legal_holds_remove_members(self): - """ - (legal_holds) Removed members from a hold - - Only call this if :meth:`is_legal_holds_remove_members` is true. - - :rtype: LegalHoldsRemoveMembersType - """ - if not self.is_legal_holds_remove_members(): - raise AttributeError("tag 'legal_holds_remove_members' not set") - return self._value - - def get_legal_holds_report_a_hold(self): - """ - (legal_holds) Created a summary report for a hold - - Only call this if :meth:`is_legal_holds_report_a_hold` is true. - - :rtype: LegalHoldsReportAHoldType - """ - if not self.is_legal_holds_report_a_hold(): - raise AttributeError("tag 'legal_holds_report_a_hold' not set") - return self._value - def get_account_lock_or_unlocked(self): """ (logins) Unlocked/locked account after failed sign in attempts @@ -34672,7 +35429,7 @@ def get_export_members_report_fail(self): def get_external_sharing_create_report(self): """ - (reports) Report created: Data shared outside the team + (reports) Created External sharing report Only call this if :meth:`is_external_sharing_create_report` is true. @@ -34684,7 +35441,7 @@ def get_external_sharing_create_report(self): def get_external_sharing_report_failed(self): """ - (reports) Couldn't create report: Data shared outside the team + (reports) Couldn't create External sharing report Only call this if :meth:`is_external_sharing_report_failed` is true. @@ -35811,6 +36568,30 @@ def get_shared_note_opened(self): raise AttributeError("tag 'shared_note_opened' not set") return self._value + def get_shmodel_disable_downloads(self): + """ + (sharing) Disabled downloads for link (deprecated, no longer logged) + + Only call this if :meth:`is_shmodel_disable_downloads` is true. + + :rtype: ShmodelDisableDownloadsType + """ + if not self.is_shmodel_disable_downloads(): + raise AttributeError("tag 'shmodel_disable_downloads' not set") + return self._value + + def get_shmodel_enable_downloads(self): + """ + (sharing) Enabled downloads for link (deprecated, no longer logged) + + Only call this if :meth:`is_shmodel_enable_downloads` is true. + + :rtype: ShmodelEnableDownloadsType + """ + if not self.is_shmodel_enable_downloads(): + raise AttributeError("tag 'shmodel_enable_downloads' not set") + return self._value + def get_shmodel_group_share(self): """ (sharing) Shared link with group (deprecated, no longer logged) @@ -37724,6 +38505,40 @@ class EventTypeArg(bb.Union): comment (deprecated, no longer logged) :ivar team_log.EventTypeArg.file_unresolve_comment: (comments) Unresolved file comment + :ivar team_log.EventTypeArg.governance_policy_add_folders: (data_governance) + Added folders to policy + :ivar team_log.EventTypeArg.governance_policy_create: (data_governance) + Activated a new policy + :ivar team_log.EventTypeArg.governance_policy_delete: (data_governance) + Deleted a policy + :ivar team_log.EventTypeArg.governance_policy_edit_details: + (data_governance) Edited policy + :ivar team_log.EventTypeArg.governance_policy_edit_duration: + (data_governance) Changed policy duration + :ivar team_log.EventTypeArg.governance_policy_remove_folders: + (data_governance) Removed folders from policy + :ivar team_log.EventTypeArg.legal_holds_activate_a_hold: (data_governance) + Activated a hold + :ivar team_log.EventTypeArg.legal_holds_add_members: (data_governance) Added + members to a hold + :ivar team_log.EventTypeArg.legal_holds_change_hold_details: + (data_governance) Edited details for a hold + :ivar team_log.EventTypeArg.legal_holds_change_hold_name: (data_governance) + Renamed a hold + :ivar team_log.EventTypeArg.legal_holds_export_a_hold: (data_governance) + Exported hold + :ivar team_log.EventTypeArg.legal_holds_export_cancelled: (data_governance) + Canceled export for a hold + :ivar team_log.EventTypeArg.legal_holds_export_downloaded: (data_governance) + Downloaded export for a hold + :ivar team_log.EventTypeArg.legal_holds_export_removed: (data_governance) + Removed export for a hold + :ivar team_log.EventTypeArg.legal_holds_release_a_hold: (data_governance) + Released a hold + :ivar team_log.EventTypeArg.legal_holds_remove_members: (data_governance) + Removed members from a hold + :ivar team_log.EventTypeArg.legal_holds_report_a_hold: (data_governance) + Created a summary report for a hold :ivar team_log.EventTypeArg.device_change_ip_desktop: (devices) Changed IP address associated with active desktop session :ivar team_log.EventTypeArg.device_change_ip_mobile: (devices) Changed IP @@ -37741,6 +38556,8 @@ class EventTypeArg(bb.Union): device management (deprecated, no longer logged) :ivar team_log.EventTypeArg.device_management_enabled: (devices) Enabled device management (deprecated, no longer logged) + :ivar team_log.EventTypeArg.device_sync_backup_status_changed: (devices) + Enabled/disabled backup for computer :ivar team_log.EventTypeArg.device_unlink: (devices) Disconnected device :ivar team_log.EventTypeArg.emm_refresh_auth_token: (devices) Refreshed auth token used for setting up EMM @@ -37849,28 +38666,6 @@ class EventTypeArg(bb.Union): :ivar team_log.EventTypeArg.group_remove_member: (groups) Removed team members from group :ivar team_log.EventTypeArg.group_rename: (groups) Renamed group - :ivar team_log.EventTypeArg.legal_holds_activate_a_hold: (legal_holds) - Activated a hold - :ivar team_log.EventTypeArg.legal_holds_add_members: (legal_holds) Added - members to a hold - :ivar team_log.EventTypeArg.legal_holds_change_hold_details: (legal_holds) - Edited details for a hold - :ivar team_log.EventTypeArg.legal_holds_change_hold_name: (legal_holds) - Renamed a hold - :ivar team_log.EventTypeArg.legal_holds_export_a_hold: (legal_holds) - Exported hold - :ivar team_log.EventTypeArg.legal_holds_export_cancelled: (legal_holds) - Canceled export for a hold - :ivar team_log.EventTypeArg.legal_holds_export_downloaded: (legal_holds) - Downloaded export for a hold - :ivar team_log.EventTypeArg.legal_holds_export_removed: (legal_holds) - Removed export for a hold - :ivar team_log.EventTypeArg.legal_holds_release_a_hold: (legal_holds) - Released a hold - :ivar team_log.EventTypeArg.legal_holds_remove_members: (legal_holds) - Removed members from a hold - :ivar team_log.EventTypeArg.legal_holds_report_a_hold: (legal_holds) Created - a summary report for a hold :ivar team_log.EventTypeArg.account_lock_or_unlocked: (logins) Unlocked/locked account after failed sign in attempts :ivar team_log.EventTypeArg.emm_error: (logins) Failed to sign in via EMM @@ -38050,10 +38845,10 @@ class EventTypeArg(bb.Union): data report :ivar team_log.EventTypeArg.export_members_report_fail: (reports) Failed to create members data report - :ivar team_log.EventTypeArg.external_sharing_create_report: (reports) Report - created: Data shared outside the team + :ivar team_log.EventTypeArg.external_sharing_create_report: (reports) + Created External sharing report :ivar team_log.EventTypeArg.external_sharing_report_failed: (reports) - Couldn't create report: Data shared outside the team + Couldn't create External sharing report :ivar team_log.EventTypeArg.no_expiration_link_gen_create_report: (reports) Report created: Links created with no expiration :ivar team_log.EventTypeArg.no_expiration_link_gen_report_failed: (reports) @@ -38248,6 +39043,10 @@ class EventTypeArg(bb.Union): :ivar team_log.EventTypeArg.shared_link_view: (sharing) Opened shared link :ivar team_log.EventTypeArg.shared_note_opened: (sharing) Opened shared Paper doc (deprecated, no longer logged) + :ivar team_log.EventTypeArg.shmodel_disable_downloads: (sharing) Disabled + downloads for link (deprecated, no longer logged) + :ivar team_log.EventTypeArg.shmodel_enable_downloads: (sharing) Enabled + downloads for link (deprecated, no longer logged) :ivar team_log.EventTypeArg.shmodel_group_share: (sharing) Shared link with group (deprecated, no longer logged) :ivar team_log.EventTypeArg.showcase_access_granted: (showcase) Granted @@ -38618,133 +39417,17 @@ class EventTypeArg(bb.Union): # Attribute is overwritten below the class definition file_unresolve_comment = None # Attribute is overwritten below the class definition - device_change_ip_desktop = None - # Attribute is overwritten below the class definition - device_change_ip_mobile = None - # Attribute is overwritten below the class definition - device_change_ip_web = None - # Attribute is overwritten below the class definition - device_delete_on_unlink_fail = None - # Attribute is overwritten below the class definition - device_delete_on_unlink_success = None - # Attribute is overwritten below the class definition - device_link_fail = None - # Attribute is overwritten below the class definition - device_link_success = None - # Attribute is overwritten below the class definition - device_management_disabled = None - # Attribute is overwritten below the class definition - device_management_enabled = None - # Attribute is overwritten below the class definition - device_unlink = None - # Attribute is overwritten below the class definition - emm_refresh_auth_token = None - # Attribute is overwritten below the class definition - account_capture_change_availability = None - # Attribute is overwritten below the class definition - account_capture_migrate_account = None - # Attribute is overwritten below the class definition - account_capture_notification_emails_sent = None + governance_policy_add_folders = None # Attribute is overwritten below the class definition - account_capture_relinquish_account = None + governance_policy_create = None # Attribute is overwritten below the class definition - disabled_domain_invites = None + governance_policy_delete = None # Attribute is overwritten below the class definition - domain_invites_approve_request_to_join_team = None - # Attribute is overwritten below the class definition - domain_invites_decline_request_to_join_team = None - # Attribute is overwritten below the class definition - domain_invites_email_existing_users = None - # Attribute is overwritten below the class definition - domain_invites_request_to_join_team = None + governance_policy_edit_details = None # Attribute is overwritten below the class definition - domain_invites_set_invite_new_user_pref_to_no = None - # Attribute is overwritten below the class definition - domain_invites_set_invite_new_user_pref_to_yes = None - # Attribute is overwritten below the class definition - domain_verification_add_domain_fail = None - # Attribute is overwritten below the class definition - domain_verification_add_domain_success = None - # Attribute is overwritten below the class definition - domain_verification_remove_domain = None - # Attribute is overwritten below the class definition - enabled_domain_invites = None - # Attribute is overwritten below the class definition - create_folder = None - # Attribute is overwritten below the class definition - file_add = None - # Attribute is overwritten below the class definition - file_copy = None + governance_policy_edit_duration = None # Attribute is overwritten below the class definition - file_delete = None - # Attribute is overwritten below the class definition - file_download = None - # Attribute is overwritten below the class definition - file_edit = None - # Attribute is overwritten below the class definition - file_get_copy_reference = None - # Attribute is overwritten below the class definition - file_locking_lock_status_changed = None - # Attribute is overwritten below the class definition - file_move = None - # Attribute is overwritten below the class definition - file_permanently_delete = None - # Attribute is overwritten below the class definition - file_preview = None - # Attribute is overwritten below the class definition - file_rename = None - # Attribute is overwritten below the class definition - file_restore = None - # Attribute is overwritten below the class definition - file_revert = None - # Attribute is overwritten below the class definition - file_rollback_changes = None - # Attribute is overwritten below the class definition - file_save_copy_reference = None - # Attribute is overwritten below the class definition - folder_overview_description_changed = None - # Attribute is overwritten below the class definition - folder_overview_item_pinned = None - # Attribute is overwritten below the class definition - folder_overview_item_unpinned = None - # Attribute is overwritten below the class definition - rewind_folder = None - # Attribute is overwritten below the class definition - file_request_change = None - # Attribute is overwritten below the class definition - file_request_close = None - # Attribute is overwritten below the class definition - file_request_create = None - # Attribute is overwritten below the class definition - file_request_delete = None - # Attribute is overwritten below the class definition - file_request_receive_file = None - # Attribute is overwritten below the class definition - group_add_external_id = None - # Attribute is overwritten below the class definition - group_add_member = None - # Attribute is overwritten below the class definition - group_change_external_id = None - # Attribute is overwritten below the class definition - group_change_management_type = None - # Attribute is overwritten below the class definition - group_change_member_role = None - # Attribute is overwritten below the class definition - group_create = None - # Attribute is overwritten below the class definition - group_delete = None - # Attribute is overwritten below the class definition - group_description_updated = None - # Attribute is overwritten below the class definition - group_join_policy_updated = None - # Attribute is overwritten below the class definition - group_moved = None - # Attribute is overwritten below the class definition - group_remove_external_id = None - # Attribute is overwritten below the class definition - group_remove_member = None - # Attribute is overwritten below the class definition - group_rename = None + governance_policy_remove_folders = None # Attribute is overwritten below the class definition legal_holds_activate_a_hold = None # Attribute is overwritten below the class definition @@ -38768,6 +39451,136 @@ class EventTypeArg(bb.Union): # Attribute is overwritten below the class definition legal_holds_report_a_hold = None # Attribute is overwritten below the class definition + device_change_ip_desktop = None + # Attribute is overwritten below the class definition + device_change_ip_mobile = None + # Attribute is overwritten below the class definition + device_change_ip_web = None + # Attribute is overwritten below the class definition + device_delete_on_unlink_fail = None + # Attribute is overwritten below the class definition + device_delete_on_unlink_success = None + # Attribute is overwritten below the class definition + device_link_fail = None + # Attribute is overwritten below the class definition + device_link_success = None + # Attribute is overwritten below the class definition + device_management_disabled = None + # Attribute is overwritten below the class definition + device_management_enabled = None + # Attribute is overwritten below the class definition + device_sync_backup_status_changed = None + # Attribute is overwritten below the class definition + device_unlink = None + # Attribute is overwritten below the class definition + emm_refresh_auth_token = None + # Attribute is overwritten below the class definition + account_capture_change_availability = None + # Attribute is overwritten below the class definition + account_capture_migrate_account = None + # Attribute is overwritten below the class definition + account_capture_notification_emails_sent = None + # Attribute is overwritten below the class definition + account_capture_relinquish_account = None + # Attribute is overwritten below the class definition + disabled_domain_invites = None + # Attribute is overwritten below the class definition + domain_invites_approve_request_to_join_team = None + # Attribute is overwritten below the class definition + domain_invites_decline_request_to_join_team = None + # Attribute is overwritten below the class definition + domain_invites_email_existing_users = None + # Attribute is overwritten below the class definition + domain_invites_request_to_join_team = None + # Attribute is overwritten below the class definition + domain_invites_set_invite_new_user_pref_to_no = None + # Attribute is overwritten below the class definition + domain_invites_set_invite_new_user_pref_to_yes = None + # Attribute is overwritten below the class definition + domain_verification_add_domain_fail = None + # Attribute is overwritten below the class definition + domain_verification_add_domain_success = None + # Attribute is overwritten below the class definition + domain_verification_remove_domain = None + # Attribute is overwritten below the class definition + enabled_domain_invites = None + # Attribute is overwritten below the class definition + create_folder = None + # Attribute is overwritten below the class definition + file_add = None + # Attribute is overwritten below the class definition + file_copy = None + # Attribute is overwritten below the class definition + file_delete = None + # Attribute is overwritten below the class definition + file_download = None + # Attribute is overwritten below the class definition + file_edit = None + # Attribute is overwritten below the class definition + file_get_copy_reference = None + # Attribute is overwritten below the class definition + file_locking_lock_status_changed = None + # Attribute is overwritten below the class definition + file_move = None + # Attribute is overwritten below the class definition + file_permanently_delete = None + # Attribute is overwritten below the class definition + file_preview = None + # Attribute is overwritten below the class definition + file_rename = None + # Attribute is overwritten below the class definition + file_restore = None + # Attribute is overwritten below the class definition + file_revert = None + # Attribute is overwritten below the class definition + file_rollback_changes = None + # Attribute is overwritten below the class definition + file_save_copy_reference = None + # Attribute is overwritten below the class definition + folder_overview_description_changed = None + # Attribute is overwritten below the class definition + folder_overview_item_pinned = None + # Attribute is overwritten below the class definition + folder_overview_item_unpinned = None + # Attribute is overwritten below the class definition + rewind_folder = None + # Attribute is overwritten below the class definition + file_request_change = None + # Attribute is overwritten below the class definition + file_request_close = None + # Attribute is overwritten below the class definition + file_request_create = None + # Attribute is overwritten below the class definition + file_request_delete = None + # Attribute is overwritten below the class definition + file_request_receive_file = None + # Attribute is overwritten below the class definition + group_add_external_id = None + # Attribute is overwritten below the class definition + group_add_member = None + # Attribute is overwritten below the class definition + group_change_external_id = None + # Attribute is overwritten below the class definition + group_change_management_type = None + # Attribute is overwritten below the class definition + group_change_member_role = None + # Attribute is overwritten below the class definition + group_create = None + # Attribute is overwritten below the class definition + group_delete = None + # Attribute is overwritten below the class definition + group_description_updated = None + # Attribute is overwritten below the class definition + group_join_policy_updated = None + # Attribute is overwritten below the class definition + group_moved = None + # Attribute is overwritten below the class definition + group_remove_external_id = None + # Attribute is overwritten below the class definition + group_remove_member = None + # Attribute is overwritten below the class definition + group_rename = None + # Attribute is overwritten below the class definition account_lock_or_unlocked = None # Attribute is overwritten below the class definition emm_error = None @@ -39140,6 +39953,10 @@ class EventTypeArg(bb.Union): # Attribute is overwritten below the class definition shared_note_opened = None # Attribute is overwritten below the class definition + shmodel_disable_downloads = None + # Attribute is overwritten below the class definition + shmodel_enable_downloads = None + # Attribute is overwritten below the class definition shmodel_group_share = None # Attribute is overwritten below the class definition showcase_access_granted = None @@ -39560,6 +40377,142 @@ def is_file_unresolve_comment(self): """ return self._tag == 'file_unresolve_comment' + def is_governance_policy_add_folders(self): + """ + Check if the union tag is ``governance_policy_add_folders``. + + :rtype: bool + """ + return self._tag == 'governance_policy_add_folders' + + def is_governance_policy_create(self): + """ + Check if the union tag is ``governance_policy_create``. + + :rtype: bool + """ + return self._tag == 'governance_policy_create' + + def is_governance_policy_delete(self): + """ + Check if the union tag is ``governance_policy_delete``. + + :rtype: bool + """ + return self._tag == 'governance_policy_delete' + + def is_governance_policy_edit_details(self): + """ + Check if the union tag is ``governance_policy_edit_details``. + + :rtype: bool + """ + return self._tag == 'governance_policy_edit_details' + + def is_governance_policy_edit_duration(self): + """ + Check if the union tag is ``governance_policy_edit_duration``. + + :rtype: bool + """ + return self._tag == 'governance_policy_edit_duration' + + def is_governance_policy_remove_folders(self): + """ + Check if the union tag is ``governance_policy_remove_folders``. + + :rtype: bool + """ + return self._tag == 'governance_policy_remove_folders' + + def is_legal_holds_activate_a_hold(self): + """ + Check if the union tag is ``legal_holds_activate_a_hold``. + + :rtype: bool + """ + return self._tag == 'legal_holds_activate_a_hold' + + def is_legal_holds_add_members(self): + """ + Check if the union tag is ``legal_holds_add_members``. + + :rtype: bool + """ + return self._tag == 'legal_holds_add_members' + + def is_legal_holds_change_hold_details(self): + """ + Check if the union tag is ``legal_holds_change_hold_details``. + + :rtype: bool + """ + return self._tag == 'legal_holds_change_hold_details' + + def is_legal_holds_change_hold_name(self): + """ + Check if the union tag is ``legal_holds_change_hold_name``. + + :rtype: bool + """ + return self._tag == 'legal_holds_change_hold_name' + + def is_legal_holds_export_a_hold(self): + """ + Check if the union tag is ``legal_holds_export_a_hold``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_a_hold' + + def is_legal_holds_export_cancelled(self): + """ + Check if the union tag is ``legal_holds_export_cancelled``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_cancelled' + + def is_legal_holds_export_downloaded(self): + """ + Check if the union tag is ``legal_holds_export_downloaded``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_downloaded' + + def is_legal_holds_export_removed(self): + """ + Check if the union tag is ``legal_holds_export_removed``. + + :rtype: bool + """ + return self._tag == 'legal_holds_export_removed' + + def is_legal_holds_release_a_hold(self): + """ + Check if the union tag is ``legal_holds_release_a_hold``. + + :rtype: bool + """ + return self._tag == 'legal_holds_release_a_hold' + + def is_legal_holds_remove_members(self): + """ + Check if the union tag is ``legal_holds_remove_members``. + + :rtype: bool + """ + return self._tag == 'legal_holds_remove_members' + + def is_legal_holds_report_a_hold(self): + """ + Check if the union tag is ``legal_holds_report_a_hold``. + + :rtype: bool + """ + return self._tag == 'legal_holds_report_a_hold' + def is_device_change_ip_desktop(self): """ Check if the union tag is ``device_change_ip_desktop``. @@ -39632,6 +40585,14 @@ def is_device_management_enabled(self): """ return self._tag == 'device_management_enabled' + def is_device_sync_backup_status_changed(self): + """ + Check if the union tag is ``device_sync_backup_status_changed``. + + :rtype: bool + """ + return self._tag == 'device_sync_backup_status_changed' + def is_device_unlink(self): """ Check if the union tag is ``device_unlink``. @@ -40072,94 +41033,6 @@ def is_group_rename(self): """ return self._tag == 'group_rename' - def is_legal_holds_activate_a_hold(self): - """ - Check if the union tag is ``legal_holds_activate_a_hold``. - - :rtype: bool - """ - return self._tag == 'legal_holds_activate_a_hold' - - def is_legal_holds_add_members(self): - """ - Check if the union tag is ``legal_holds_add_members``. - - :rtype: bool - """ - return self._tag == 'legal_holds_add_members' - - def is_legal_holds_change_hold_details(self): - """ - Check if the union tag is ``legal_holds_change_hold_details``. - - :rtype: bool - """ - return self._tag == 'legal_holds_change_hold_details' - - def is_legal_holds_change_hold_name(self): - """ - Check if the union tag is ``legal_holds_change_hold_name``. - - :rtype: bool - """ - return self._tag == 'legal_holds_change_hold_name' - - def is_legal_holds_export_a_hold(self): - """ - Check if the union tag is ``legal_holds_export_a_hold``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_a_hold' - - def is_legal_holds_export_cancelled(self): - """ - Check if the union tag is ``legal_holds_export_cancelled``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_cancelled' - - def is_legal_holds_export_downloaded(self): - """ - Check if the union tag is ``legal_holds_export_downloaded``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_downloaded' - - def is_legal_holds_export_removed(self): - """ - Check if the union tag is ``legal_holds_export_removed``. - - :rtype: bool - """ - return self._tag == 'legal_holds_export_removed' - - def is_legal_holds_release_a_hold(self): - """ - Check if the union tag is ``legal_holds_release_a_hold``. - - :rtype: bool - """ - return self._tag == 'legal_holds_release_a_hold' - - def is_legal_holds_remove_members(self): - """ - Check if the union tag is ``legal_holds_remove_members``. - - :rtype: bool - """ - return self._tag == 'legal_holds_remove_members' - - def is_legal_holds_report_a_hold(self): - """ - Check if the union tag is ``legal_holds_report_a_hold``. - - :rtype: bool - """ - return self._tag == 'legal_holds_report_a_hold' - def is_account_lock_or_unlocked(self): """ Check if the union tag is ``account_lock_or_unlocked``. @@ -41648,6 +42521,22 @@ def is_shared_note_opened(self): """ return self._tag == 'shared_note_opened' + def is_shmodel_disable_downloads(self): + """ + Check if the union tag is ``shmodel_disable_downloads``. + + :rtype: bool + """ + return self._tag == 'shmodel_disable_downloads' + + def is_shmodel_enable_downloads(self): + """ + Check if the union tag is ``shmodel_enable_downloads``. + + :rtype: bool + """ + return self._tag == 'shmodel_enable_downloads' + def is_shmodel_group_share(self): """ Check if the union tag is ``shmodel_group_share``. @@ -43267,7 +44156,7 @@ def __repr__(self): class ExternalSharingCreateReportDetails(bb.Struct): """ - Report created: Data shared outside the team. + Created External sharing report. """ __slots__ = [ @@ -43335,7 +44224,7 @@ def __repr__(self): class ExternalSharingReportFailedDetails(bb.Struct): """ - Couldn't create report: Data shared outside the team. + Couldn't create External sharing report. :ivar team_log.ExternalSharingReportFailedDetails.failure_reason: Failure reason. @@ -43626,27 +44515,27 @@ class FedAdminRole(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - not_enterprise_admin = None - # Attribute is overwritten below the class definition enterprise_admin = None # Attribute is overwritten below the class definition + not_enterprise_admin = None + # Attribute is overwritten below the class definition other = None - def is_not_enterprise_admin(self): + def is_enterprise_admin(self): """ - Check if the union tag is ``not_enterprise_admin``. + Check if the union tag is ``enterprise_admin``. :rtype: bool """ - return self._tag == 'not_enterprise_admin' + return self._tag == 'enterprise_admin' - def is_enterprise_admin(self): + def is_not_enterprise_admin(self): """ - Check if the union tag is ``enterprise_admin``. + Check if the union tag is ``not_enterprise_admin``. :rtype: bool """ - return self._tag == 'enterprise_admin' + return self._tag == 'not_enterprise_admin' def is_other(self): """ @@ -43672,26 +44561,15 @@ class FedExtraDetails(bb.Union): return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. - :ivar TeamDetails FedExtraDetails.team: More details about the team. :ivar OrganizationDetails FedExtraDetails.organization: More details about the organization. + :ivar TeamDetails FedExtraDetails.team: More details about the team. """ _catch_all = 'other' # Attribute is overwritten below the class definition other = None - @classmethod - def team(cls, val): - """ - Create an instance of this class set to the ``team`` tag with value - ``val``. - - :param TeamDetails val: - :rtype: FedExtraDetails - """ - return cls('team', val) - @classmethod def organization(cls, val): """ @@ -43703,13 +44581,16 @@ def organization(cls, val): """ return cls('organization', val) - def is_team(self): + @classmethod + def team(cls, val): """ - Check if the union tag is ``team``. + Create an instance of this class set to the ``team`` tag with value + ``val``. - :rtype: bool + :param TeamDetails val: + :rtype: FedExtraDetails """ - return self._tag == 'team' + return cls('team', val) def is_organization(self): """ @@ -43719,25 +44600,21 @@ def is_organization(self): """ return self._tag == 'organization' - def is_other(self): + def is_team(self): """ - Check if the union tag is ``other``. + Check if the union tag is ``team``. :rtype: bool """ - return self._tag == 'other' + return self._tag == 'team' - def get_team(self): + def is_other(self): """ - More details about the team. - - Only call this if :meth:`is_team` is true. + Check if the union tag is ``other``. - :rtype: TeamDetails + :rtype: bool """ - if not self.is_team(): - raise AttributeError("tag 'team' not set") - return self._value + return self._tag == 'other' def get_organization(self): """ @@ -43751,6 +44628,18 @@ def get_organization(self): raise AttributeError("tag 'organization' not set") return self._value + def get_team(self): + """ + More details about the team. + + Only call this if :meth:`is_team` is true. + + :rtype: TeamDetails + """ + if not self.is_team(): + raise AttributeError("tag 'team' not set") + return self._value + def _process_custom_annotations(self, annotation_type, field_path, processor): super(FedExtraDetails, self)._process_custom_annotations(annotation_type, field_path, processor) @@ -43768,67 +44657,67 @@ class FedHandshakeAction(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - invited = None - # Attribute is overwritten below the class definition accepted_invite = None # Attribute is overwritten below the class definition - rejected_invite = None - # Attribute is overwritten below the class definition canceled_invite = None # Attribute is overwritten below the class definition - removed_team = None - # Attribute is overwritten below the class definition invite_expired = None # Attribute is overwritten below the class definition + invited = None + # Attribute is overwritten below the class definition + rejected_invite = None + # Attribute is overwritten below the class definition + removed_team = None + # Attribute is overwritten below the class definition other = None - def is_invited(self): + def is_accepted_invite(self): """ - Check if the union tag is ``invited``. + Check if the union tag is ``accepted_invite``. :rtype: bool """ - return self._tag == 'invited' + return self._tag == 'accepted_invite' - def is_accepted_invite(self): + def is_canceled_invite(self): """ - Check if the union tag is ``accepted_invite``. + Check if the union tag is ``canceled_invite``. :rtype: bool """ - return self._tag == 'accepted_invite' + return self._tag == 'canceled_invite' - def is_rejected_invite(self): + def is_invite_expired(self): """ - Check if the union tag is ``rejected_invite``. + Check if the union tag is ``invite_expired``. :rtype: bool """ - return self._tag == 'rejected_invite' + return self._tag == 'invite_expired' - def is_canceled_invite(self): + def is_invited(self): """ - Check if the union tag is ``canceled_invite``. + Check if the union tag is ``invited``. :rtype: bool """ - return self._tag == 'canceled_invite' + return self._tag == 'invited' - def is_removed_team(self): + def is_rejected_invite(self): """ - Check if the union tag is ``removed_team``. + Check if the union tag is ``rejected_invite``. :rtype: bool """ - return self._tag == 'removed_team' + return self._tag == 'rejected_invite' - def is_invite_expired(self): + def is_removed_team(self): """ - Check if the union tag is ``invite_expired``. + Check if the union tag is ``removed_team``. :rtype: bool """ - return self._tag == 'invite_expired' + return self._tag == 'removed_team' def is_other(self): """ @@ -50019,63 +50908,1375 @@ def description(self): self._description_present = False def _process_custom_annotations(self, annotation_type, field_path, processor): - super(GoogleSsoChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) + super(GoogleSsoChangePolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GoogleSsoChangePolicyType(description={!r})'.format( + self._description_value, + ) + +GoogleSsoChangePolicyType_validator = bv.Struct(GoogleSsoChangePolicyType) + +class GoogleSsoPolicy(bb.Union): + """ + Google SSO 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(GoogleSsoPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GoogleSsoPolicy(%r, %r)' % (self._tag, self._value) + +GoogleSsoPolicy_validator = bv.Union(GoogleSsoPolicy) + +class GovernancePolicyAddFoldersDetails(bb.Struct): + """ + Added folders to policy. + + :ivar team_log.GovernancePolicyAddFoldersDetails.governance_policy_id: + Policy ID. + :ivar team_log.GovernancePolicyAddFoldersDetails.name: Policy name. + :ivar team_log.GovernancePolicyAddFoldersDetails.policy_type: Policy type. + :ivar team_log.GovernancePolicyAddFoldersDetails.folders: Folders. + """ + + __slots__ = [ + '_governance_policy_id_value', + '_governance_policy_id_present', + '_name_value', + '_name_present', + '_policy_type_value', + '_policy_type_present', + '_folders_value', + '_folders_present', + ] + + _has_required_fields = True + + def __init__(self, + governance_policy_id=None, + name=None, + policy_type=None, + folders=None): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + self._name_value = None + self._name_present = False + self._policy_type_value = None + self._policy_type_present = False + self._folders_value = None + self._folders_present = False + if governance_policy_id is not None: + self.governance_policy_id = governance_policy_id + if name is not None: + self.name = name + if policy_type is not None: + self.policy_type = policy_type + if folders is not None: + self.folders = folders + + @property + def governance_policy_id(self): + """ + Policy ID. + + :rtype: str + """ + if self._governance_policy_id_present: + return self._governance_policy_id_value + else: + raise AttributeError("missing required field 'governance_policy_id'") + + @governance_policy_id.setter + def governance_policy_id(self, val): + val = self._governance_policy_id_validator.validate(val) + self._governance_policy_id_value = val + self._governance_policy_id_present = True + + @governance_policy_id.deleter + def governance_policy_id(self): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + + @property + def name(self): + """ + Policy name. + + :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 policy_type(self): + """ + Policy type. + + :rtype: PolicyType + """ + if self._policy_type_present: + return self._policy_type_value + else: + return None + + @policy_type.setter + def policy_type(self, val): + if val is None: + del self.policy_type + return + self._policy_type_validator.validate_type_only(val) + self._policy_type_value = val + self._policy_type_present = True + + @policy_type.deleter + def policy_type(self): + self._policy_type_value = None + self._policy_type_present = False + + @property + def folders(self): + """ + Folders. + + :rtype: list of [str] + """ + if self._folders_present: + return self._folders_value + else: + return None + + @folders.setter + def folders(self, val): + if val is None: + del self.folders + return + val = self._folders_validator.validate(val) + self._folders_value = val + self._folders_present = True + + @folders.deleter + def folders(self): + self._folders_value = None + self._folders_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GovernancePolicyAddFoldersDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GovernancePolicyAddFoldersDetails(governance_policy_id={!r}, name={!r}, policy_type={!r}, folders={!r})'.format( + self._governance_policy_id_value, + self._name_value, + self._policy_type_value, + self._folders_value, + ) + +GovernancePolicyAddFoldersDetails_validator = bv.Struct(GovernancePolicyAddFoldersDetails) + +class GovernancePolicyAddFoldersType(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(GovernancePolicyAddFoldersType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GovernancePolicyAddFoldersType(description={!r})'.format( + self._description_value, + ) + +GovernancePolicyAddFoldersType_validator = bv.Struct(GovernancePolicyAddFoldersType) + +class GovernancePolicyCreateDetails(bb.Struct): + """ + Activated a new policy. + + :ivar team_log.GovernancePolicyCreateDetails.governance_policy_id: Policy + ID. + :ivar team_log.GovernancePolicyCreateDetails.name: Policy name. + :ivar team_log.GovernancePolicyCreateDetails.policy_type: Policy type. + :ivar team_log.GovernancePolicyCreateDetails.duration: Duration in days. + :ivar team_log.GovernancePolicyCreateDetails.folders: Folders. + """ + + __slots__ = [ + '_governance_policy_id_value', + '_governance_policy_id_present', + '_name_value', + '_name_present', + '_policy_type_value', + '_policy_type_present', + '_duration_value', + '_duration_present', + '_folders_value', + '_folders_present', + ] + + _has_required_fields = True + + def __init__(self, + governance_policy_id=None, + name=None, + duration=None, + policy_type=None, + folders=None): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + self._name_value = None + self._name_present = False + self._policy_type_value = None + self._policy_type_present = False + self._duration_value = None + self._duration_present = False + self._folders_value = None + self._folders_present = False + if governance_policy_id is not None: + self.governance_policy_id = governance_policy_id + if name is not None: + self.name = name + if policy_type is not None: + self.policy_type = policy_type + if duration is not None: + self.duration = duration + if folders is not None: + self.folders = folders + + @property + def governance_policy_id(self): + """ + Policy ID. + + :rtype: str + """ + if self._governance_policy_id_present: + return self._governance_policy_id_value + else: + raise AttributeError("missing required field 'governance_policy_id'") + + @governance_policy_id.setter + def governance_policy_id(self, val): + val = self._governance_policy_id_validator.validate(val) + self._governance_policy_id_value = val + self._governance_policy_id_present = True + + @governance_policy_id.deleter + def governance_policy_id(self): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + + @property + def name(self): + """ + Policy name. + + :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 policy_type(self): + """ + Policy type. + + :rtype: PolicyType + """ + if self._policy_type_present: + return self._policy_type_value + else: + return None + + @policy_type.setter + def policy_type(self, val): + if val is None: + del self.policy_type + return + self._policy_type_validator.validate_type_only(val) + self._policy_type_value = val + self._policy_type_present = True + + @policy_type.deleter + def policy_type(self): + self._policy_type_value = None + self._policy_type_present = False + + @property + def duration(self): + """ + Duration in days. + + :rtype: DurationLogInfo + """ + if self._duration_present: + return self._duration_value + else: + raise AttributeError("missing required field 'duration'") + + @duration.setter + def duration(self, val): + self._duration_validator.validate_type_only(val) + self._duration_value = val + self._duration_present = True + + @duration.deleter + def duration(self): + self._duration_value = None + self._duration_present = False + + @property + def folders(self): + """ + Folders. + + :rtype: list of [str] + """ + if self._folders_present: + return self._folders_value + else: + return None + + @folders.setter + def folders(self, val): + if val is None: + del self.folders + return + val = self._folders_validator.validate(val) + self._folders_value = val + self._folders_present = True + + @folders.deleter + def folders(self): + self._folders_value = None + self._folders_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GovernancePolicyCreateDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GovernancePolicyCreateDetails(governance_policy_id={!r}, name={!r}, duration={!r}, policy_type={!r}, folders={!r})'.format( + self._governance_policy_id_value, + self._name_value, + self._duration_value, + self._policy_type_value, + self._folders_value, + ) + +GovernancePolicyCreateDetails_validator = bv.Struct(GovernancePolicyCreateDetails) + +class GovernancePolicyCreateType(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(GovernancePolicyCreateType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GovernancePolicyCreateType(description={!r})'.format( + self._description_value, + ) + +GovernancePolicyCreateType_validator = bv.Struct(GovernancePolicyCreateType) + +class GovernancePolicyDeleteDetails(bb.Struct): + """ + Deleted a policy. + + :ivar team_log.GovernancePolicyDeleteDetails.governance_policy_id: Policy + ID. + :ivar team_log.GovernancePolicyDeleteDetails.name: Policy name. + :ivar team_log.GovernancePolicyDeleteDetails.policy_type: Policy type. + """ + + __slots__ = [ + '_governance_policy_id_value', + '_governance_policy_id_present', + '_name_value', + '_name_present', + '_policy_type_value', + '_policy_type_present', + ] + + _has_required_fields = True + + def __init__(self, + governance_policy_id=None, + name=None, + policy_type=None): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + self._name_value = None + self._name_present = False + self._policy_type_value = None + self._policy_type_present = False + if governance_policy_id is not None: + self.governance_policy_id = governance_policy_id + if name is not None: + self.name = name + if policy_type is not None: + self.policy_type = policy_type + + @property + def governance_policy_id(self): + """ + Policy ID. + + :rtype: str + """ + if self._governance_policy_id_present: + return self._governance_policy_id_value + else: + raise AttributeError("missing required field 'governance_policy_id'") + + @governance_policy_id.setter + def governance_policy_id(self, val): + val = self._governance_policy_id_validator.validate(val) + self._governance_policy_id_value = val + self._governance_policy_id_present = True + + @governance_policy_id.deleter + def governance_policy_id(self): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + + @property + def name(self): + """ + Policy name. + + :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 policy_type(self): + """ + Policy type. + + :rtype: PolicyType + """ + if self._policy_type_present: + return self._policy_type_value + else: + return None + + @policy_type.setter + def policy_type(self, val): + if val is None: + del self.policy_type + return + self._policy_type_validator.validate_type_only(val) + self._policy_type_value = val + self._policy_type_present = True + + @policy_type.deleter + def policy_type(self): + self._policy_type_value = None + self._policy_type_present = False + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(GovernancePolicyDeleteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GovernancePolicyDeleteDetails(governance_policy_id={!r}, name={!r}, policy_type={!r})'.format( + self._governance_policy_id_value, + self._name_value, + self._policy_type_value, + ) + +GovernancePolicyDeleteDetails_validator = bv.Struct(GovernancePolicyDeleteDetails) + +class GovernancePolicyDeleteType(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(GovernancePolicyDeleteType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GovernancePolicyDeleteType(description={!r})'.format( + self._description_value, + ) + +GovernancePolicyDeleteType_validator = bv.Struct(GovernancePolicyDeleteType) + +class GovernancePolicyEditDetailsDetails(bb.Struct): + """ + Edited policy. + + :ivar team_log.GovernancePolicyEditDetailsDetails.governance_policy_id: + Policy ID. + :ivar team_log.GovernancePolicyEditDetailsDetails.name: Policy name. + :ivar team_log.GovernancePolicyEditDetailsDetails.policy_type: Policy type. + :ivar team_log.GovernancePolicyEditDetailsDetails.attribute: Attribute. + :ivar team_log.GovernancePolicyEditDetailsDetails.previous_value: From. + :ivar team_log.GovernancePolicyEditDetailsDetails.new_value: To. + """ + + __slots__ = [ + '_governance_policy_id_value', + '_governance_policy_id_present', + '_name_value', + '_name_present', + '_policy_type_value', + '_policy_type_present', + '_attribute_value', + '_attribute_present', + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + governance_policy_id=None, + name=None, + attribute=None, + previous_value=None, + new_value=None, + policy_type=None): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + self._name_value = None + self._name_present = False + self._policy_type_value = None + self._policy_type_present = False + self._attribute_value = None + self._attribute_present = False + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if governance_policy_id is not None: + self.governance_policy_id = governance_policy_id + if name is not None: + self.name = name + if policy_type is not None: + self.policy_type = policy_type + if attribute is not None: + self.attribute = attribute + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value + + @property + def governance_policy_id(self): + """ + Policy ID. + + :rtype: str + """ + if self._governance_policy_id_present: + return self._governance_policy_id_value + else: + raise AttributeError("missing required field 'governance_policy_id'") + + @governance_policy_id.setter + def governance_policy_id(self, val): + val = self._governance_policy_id_validator.validate(val) + self._governance_policy_id_value = val + self._governance_policy_id_present = True + + @governance_policy_id.deleter + def governance_policy_id(self): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + + @property + def name(self): + """ + Policy name. + + :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 policy_type(self): + """ + Policy type. + + :rtype: PolicyType + """ + if self._policy_type_present: + return self._policy_type_value + else: + return None + + @policy_type.setter + def policy_type(self, val): + if val is None: + del self.policy_type + return + self._policy_type_validator.validate_type_only(val) + self._policy_type_value = val + self._policy_type_present = True + + @policy_type.deleter + def policy_type(self): + self._policy_type_value = None + self._policy_type_present = False + + @property + def attribute(self): + """ + Attribute. + + :rtype: str + """ + if self._attribute_present: + return self._attribute_value + else: + raise AttributeError("missing required field 'attribute'") + + @attribute.setter + def attribute(self, val): + val = self._attribute_validator.validate(val) + self._attribute_value = val + self._attribute_present = True + + @attribute.deleter + def attribute(self): + self._attribute_value = None + self._attribute_present = False + + @property + def previous_value(self): + """ + From. + + :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 + + @property + def new_value(self): + """ + To. + + :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(GovernancePolicyEditDetailsDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GovernancePolicyEditDetailsDetails(governance_policy_id={!r}, name={!r}, attribute={!r}, previous_value={!r}, new_value={!r}, policy_type={!r})'.format( + self._governance_policy_id_value, + self._name_value, + self._attribute_value, + self._previous_value_value, + self._new_value_value, + self._policy_type_value, + ) + +GovernancePolicyEditDetailsDetails_validator = bv.Struct(GovernancePolicyEditDetailsDetails) + +class GovernancePolicyEditDetailsType(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(GovernancePolicyEditDetailsType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GovernancePolicyEditDetailsType(description={!r})'.format( + self._description_value, + ) + +GovernancePolicyEditDetailsType_validator = bv.Struct(GovernancePolicyEditDetailsType) + +class GovernancePolicyEditDurationDetails(bb.Struct): + """ + Changed policy duration. + + :ivar team_log.GovernancePolicyEditDurationDetails.governance_policy_id: + Policy ID. + :ivar team_log.GovernancePolicyEditDurationDetails.name: Policy name. + :ivar team_log.GovernancePolicyEditDurationDetails.policy_type: Policy type. + :ivar team_log.GovernancePolicyEditDurationDetails.previous_value: From. + :ivar team_log.GovernancePolicyEditDurationDetails.new_value: To. + """ + + __slots__ = [ + '_governance_policy_id_value', + '_governance_policy_id_present', + '_name_value', + '_name_present', + '_policy_type_value', + '_policy_type_present', + '_previous_value_value', + '_previous_value_present', + '_new_value_value', + '_new_value_present', + ] + + _has_required_fields = True + + def __init__(self, + governance_policy_id=None, + name=None, + previous_value=None, + new_value=None, + policy_type=None): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + self._name_value = None + self._name_present = False + self._policy_type_value = None + self._policy_type_present = False + self._previous_value_value = None + self._previous_value_present = False + self._new_value_value = None + self._new_value_present = False + if governance_policy_id is not None: + self.governance_policy_id = governance_policy_id + if name is not None: + self.name = name + if policy_type is not None: + self.policy_type = policy_type + if previous_value is not None: + self.previous_value = previous_value + if new_value is not None: + self.new_value = new_value + + @property + def governance_policy_id(self): + """ + Policy ID. + + :rtype: str + """ + if self._governance_policy_id_present: + return self._governance_policy_id_value + else: + raise AttributeError("missing required field 'governance_policy_id'") + + @governance_policy_id.setter + def governance_policy_id(self, val): + val = self._governance_policy_id_validator.validate(val) + self._governance_policy_id_value = val + self._governance_policy_id_present = True + + @governance_policy_id.deleter + def governance_policy_id(self): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + + @property + def name(self): + """ + Policy name. + + :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 policy_type(self): + """ + Policy type. + + :rtype: PolicyType + """ + if self._policy_type_present: + return self._policy_type_value + else: + return None + + @policy_type.setter + def policy_type(self, val): + if val is None: + del self.policy_type + return + self._policy_type_validator.validate_type_only(val) + self._policy_type_value = val + self._policy_type_present = True + + @policy_type.deleter + def policy_type(self): + self._policy_type_value = None + self._policy_type_present = False + + @property + def previous_value(self): + """ + From. + + :rtype: DurationLogInfo + """ + 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): + """ + To. + + :rtype: DurationLogInfo + """ + 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(GovernancePolicyEditDurationDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GovernancePolicyEditDurationDetails(governance_policy_id={!r}, name={!r}, previous_value={!r}, new_value={!r}, policy_type={!r})'.format( + self._governance_policy_id_value, + self._name_value, + self._previous_value_value, + self._new_value_value, + self._policy_type_value, + ) + +GovernancePolicyEditDurationDetails_validator = bv.Struct(GovernancePolicyEditDurationDetails) + +class GovernancePolicyEditDurationType(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(GovernancePolicyEditDurationType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'GoogleSsoChangePolicyType(description={!r})'.format( + return 'GovernancePolicyEditDurationType(description={!r})'.format( self._description_value, ) -GoogleSsoChangePolicyType_validator = bv.Struct(GoogleSsoChangePolicyType) +GovernancePolicyEditDurationType_validator = bv.Struct(GovernancePolicyEditDurationType) -class GoogleSsoPolicy(bb.Union): +class GovernancePolicyRemoveFoldersDetails(bb.Struct): """ - Google SSO policy + Removed folders from 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. + :ivar team_log.GovernancePolicyRemoveFoldersDetails.governance_policy_id: + Policy ID. + :ivar team_log.GovernancePolicyRemoveFoldersDetails.name: Policy name. + :ivar team_log.GovernancePolicyRemoveFoldersDetails.policy_type: Policy + type. + :ivar team_log.GovernancePolicyRemoveFoldersDetails.folders: Folders. """ - _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__ = [ + '_governance_policy_id_value', + '_governance_policy_id_present', + '_name_value', + '_name_present', + '_policy_type_value', + '_policy_type_present', + '_folders_value', + '_folders_present', + ] - def is_disabled(self): + _has_required_fields = True + + def __init__(self, + governance_policy_id=None, + name=None, + policy_type=None, + folders=None): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + self._name_value = None + self._name_present = False + self._policy_type_value = None + self._policy_type_present = False + self._folders_value = None + self._folders_present = False + if governance_policy_id is not None: + self.governance_policy_id = governance_policy_id + if name is not None: + self.name = name + if policy_type is not None: + self.policy_type = policy_type + if folders is not None: + self.folders = folders + + @property + def governance_policy_id(self): """ - Check if the union tag is ``disabled``. + Policy ID. - :rtype: bool + :rtype: str """ - return self._tag == 'disabled' + if self._governance_policy_id_present: + return self._governance_policy_id_value + else: + raise AttributeError("missing required field 'governance_policy_id'") - def is_enabled(self): + @governance_policy_id.setter + def governance_policy_id(self, val): + val = self._governance_policy_id_validator.validate(val) + self._governance_policy_id_value = val + self._governance_policy_id_present = True + + @governance_policy_id.deleter + def governance_policy_id(self): + self._governance_policy_id_value = None + self._governance_policy_id_present = False + + @property + def name(self): """ - Check if the union tag is ``enabled``. + Policy name. - :rtype: bool + :rtype: str """ - return self._tag == 'enabled' + if self._name_present: + return self._name_value + else: + raise AttributeError("missing required field 'name'") - def is_other(self): + @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 policy_type(self): """ - Check if the union tag is ``other``. + Policy type. - :rtype: bool + :rtype: PolicyType """ - return self._tag == 'other' + if self._policy_type_present: + return self._policy_type_value + else: + return None + + @policy_type.setter + def policy_type(self, val): + if val is None: + del self.policy_type + return + self._policy_type_validator.validate_type_only(val) + self._policy_type_value = val + self._policy_type_present = True + + @policy_type.deleter + def policy_type(self): + self._policy_type_value = None + self._policy_type_present = False + + @property + def folders(self): + """ + Folders. + + :rtype: list of [str] + """ + if self._folders_present: + return self._folders_value + else: + return None + + @folders.setter + def folders(self, val): + if val is None: + del self.folders + return + val = self._folders_validator.validate(val) + self._folders_value = val + self._folders_present = True + + @folders.deleter + def folders(self): + self._folders_value = None + self._folders_present = False def _process_custom_annotations(self, annotation_type, field_path, processor): - super(GoogleSsoPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + super(GovernancePolicyRemoveFoldersDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'GoogleSsoPolicy(%r, %r)' % (self._tag, self._value) + return 'GovernancePolicyRemoveFoldersDetails(governance_policy_id={!r}, name={!r}, policy_type={!r}, folders={!r})'.format( + self._governance_policy_id_value, + self._name_value, + self._policy_type_value, + self._folders_value, + ) -GoogleSsoPolicy_validator = bv.Union(GoogleSsoPolicy) +GovernancePolicyRemoveFoldersDetails_validator = bv.Struct(GovernancePolicyRemoveFoldersDetails) + +class GovernancePolicyRemoveFoldersType(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(GovernancePolicyRemoveFoldersType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'GovernancePolicyRemoveFoldersType(description={!r})'.format( + self._description_value, + ) + +GovernancePolicyRemoveFoldersType_validator = bv.Struct(GovernancePolicyRemoveFoldersType) class GroupAddExternalIdDetails(bb.Struct): """ @@ -52820,14 +55021,24 @@ class InviteMethod(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition + auto_approve = None + # Attribute is overwritten below the class definition invite_link = None # Attribute is overwritten below the class definition - auto_approve = None + member_invite = None # Attribute is overwritten below the class definition moved_from_another_team = None # Attribute is overwritten below the class definition other = None + def is_auto_approve(self): + """ + Check if the union tag is ``auto_approve``. + + :rtype: bool + """ + return self._tag == 'auto_approve' + def is_invite_link(self): """ Check if the union tag is ``invite_link``. @@ -52836,13 +55047,13 @@ def is_invite_link(self): """ return self._tag == 'invite_link' - def is_auto_approve(self): + def is_member_invite(self): """ - Check if the union tag is ``auto_approve``. + Check if the union tag is ``member_invite``. :rtype: bool """ - return self._tag == 'auto_approve' + return self._tag == 'member_invite' def is_moved_from_another_team(self): """ @@ -55412,15 +57623,15 @@ class LinkedDeviceLogInfo(bb.Union): 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. + :ivar MobileDeviceSessionLogInfo LinkedDeviceLogInfo.mobile_device_session: + mobile device session's details. + :ivar WebDeviceSessionLogInfo LinkedDeviceLogInfo.web_device_session: web + device session's details. """ _catch_all = 'other' @@ -55428,26 +57639,37 @@ class LinkedDeviceLogInfo(bb.Union): other = None @classmethod - def mobile_device_session(cls, val): + def desktop_device_session(cls, val): """ - Create an instance of this class set to the ``mobile_device_session`` + Create an instance of this class set to the ``desktop_device_session`` tag with value ``val``. - :param MobileDeviceSessionLogInfo val: + :param DesktopDeviceSessionLogInfo val: :rtype: LinkedDeviceLogInfo """ - return cls('mobile_device_session', val) + return cls('desktop_device_session', val) @classmethod - def desktop_device_session(cls, val): + def legacy_device_session(cls, val): """ - Create an instance of this class set to the ``desktop_device_session`` + Create an instance of this class set to the ``legacy_device_session`` tag with value ``val``. - :param DesktopDeviceSessionLogInfo val: + :param LegacyDeviceSessionLogInfo val: :rtype: LinkedDeviceLogInfo """ - return cls('desktop_device_session', val) + return cls('legacy_device_session', val) + + @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 web_device_session(cls, val): @@ -55460,32 +57682,29 @@ def web_device_session(cls, val): """ return cls('web_device_session', val) - @classmethod - def legacy_device_session(cls, val): + def is_desktop_device_session(self): """ - Create an instance of this class set to the ``legacy_device_session`` - tag with value ``val``. + Check if the union tag is ``desktop_device_session``. - :param LegacyDeviceSessionLogInfo val: - :rtype: LinkedDeviceLogInfo + :rtype: bool """ - return cls('legacy_device_session', val) + return self._tag == 'desktop_device_session' - def is_mobile_device_session(self): + def is_legacy_device_session(self): """ - Check if the union tag is ``mobile_device_session``. + Check if the union tag is ``legacy_device_session``. :rtype: bool """ - return self._tag == 'mobile_device_session' + return self._tag == 'legacy_device_session' - def is_desktop_device_session(self): + def is_mobile_device_session(self): """ - Check if the union tag is ``desktop_device_session``. + Check if the union tag is ``mobile_device_session``. :rtype: bool """ - return self._tag == 'desktop_device_session' + return self._tag == 'mobile_device_session' def is_web_device_session(self): """ @@ -55495,44 +57714,48 @@ def is_web_device_session(self): """ return self._tag == 'web_device_session' - def is_legacy_device_session(self): + def is_other(self): """ - Check if the union tag is ``legacy_device_session``. + Check if the union tag is ``other``. :rtype: bool """ - return self._tag == 'legacy_device_session' + return self._tag == 'other' - def is_other(self): + def get_desktop_device_session(self): """ - Check if the union tag is ``other``. + desktop device session's details. - :rtype: bool + Only call this if :meth:`is_desktop_device_session` is true. + + :rtype: DesktopDeviceSessionLogInfo """ - return self._tag == 'other' + if not self.is_desktop_device_session(): + raise AttributeError("tag 'desktop_device_session' not set") + return self._value - def get_mobile_device_session(self): + def get_legacy_device_session(self): """ - mobile device session's details. + legacy device session's details. - Only call this if :meth:`is_mobile_device_session` is true. + Only call this if :meth:`is_legacy_device_session` is true. - :rtype: MobileDeviceSessionLogInfo + :rtype: LegacyDeviceSessionLogInfo """ - if not self.is_mobile_device_session(): - raise AttributeError("tag 'mobile_device_session' not set") + if not self.is_legacy_device_session(): + raise AttributeError("tag 'legacy_device_session' not set") return self._value - def get_desktop_device_session(self): + def get_mobile_device_session(self): """ - desktop device session's details. + mobile device session's details. - Only call this if :meth:`is_desktop_device_session` is true. + Only call this if :meth:`is_mobile_device_session` is true. - :rtype: DesktopDeviceSessionLogInfo + :rtype: MobileDeviceSessionLogInfo """ - if not self.is_desktop_device_session(): - raise AttributeError("tag 'desktop_device_session' not set") + if not self.is_mobile_device_session(): + raise AttributeError("tag 'mobile_device_session' not set") return self._value def get_web_device_session(self): @@ -55547,18 +57770,6 @@ def get_web_device_session(self): 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) @@ -55795,47 +58006,39 @@ 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 + apple_oauth = None # Attribute is overwritten below the class definition - saml = None + first_party_token_exchange = None # Attribute is overwritten below the class definition google_oauth = None # Attribute is overwritten below the class definition - web_session = None + password = None # Attribute is overwritten below the class definition qr_code = None # Attribute is overwritten below the class definition - apple_oauth = None + saml = None # Attribute is overwritten below the class definition - first_party_token_exchange = None + two_factor_authentication = None + # Attribute is overwritten below the class definition + web_session = 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_apple_oauth(self): """ - Check if the union tag is ``two_factor_authentication``. + Check if the union tag is ``apple_oauth``. :rtype: bool """ - return self._tag == 'two_factor_authentication' + return self._tag == 'apple_oauth' - def is_saml(self): + def is_first_party_token_exchange(self): """ - Check if the union tag is ``saml``. + Check if the union tag is ``first_party_token_exchange``. :rtype: bool """ - return self._tag == 'saml' + return self._tag == 'first_party_token_exchange' def is_google_oauth(self): """ @@ -55845,13 +58048,13 @@ def is_google_oauth(self): """ return self._tag == 'google_oauth' - def is_web_session(self): + def is_password(self): """ - Check if the union tag is ``web_session``. + Check if the union tag is ``password``. :rtype: bool """ - return self._tag == 'web_session' + return self._tag == 'password' def is_qr_code(self): """ @@ -55861,21 +58064,29 @@ def is_qr_code(self): """ return self._tag == 'qr_code' - def is_apple_oauth(self): + def is_saml(self): """ - Check if the union tag is ``apple_oauth``. + Check if the union tag is ``saml``. :rtype: bool """ - return self._tag == 'apple_oauth' + return self._tag == 'saml' - def is_first_party_token_exchange(self): + def is_two_factor_authentication(self): """ - Check if the union tag is ``first_party_token_exchange``. + Check if the union tag is ``two_factor_authentication``. :rtype: bool """ - return self._tag == 'first_party_token_exchange' + return self._tag == 'two_factor_authentication' + + def is_web_session(self): + """ + Check if the union tag is ``web_session``. + + :rtype: bool + """ + return self._tag == 'web_session' def is_other(self): """ @@ -56034,21 +58245,57 @@ def __repr__(self): class LogoutDetails(bb.Struct): """ Signed out. + + :ivar team_log.LogoutDetails.login_id: Login session id. """ __slots__ = [ + '_login_id_value', + '_login_id_present', ] _has_required_fields = False - def __init__(self): - pass + def __init__(self, + login_id=None): + self._login_id_value = None + self._login_id_present = False + if login_id is not None: + self.login_id = login_id + + @property + def login_id(self): + """ + Login session id. + + :rtype: str + """ + if self._login_id_present: + return self._login_id_value + else: + return None + + @login_id.setter + def login_id(self, val): + if val is None: + del self.login_id + return + val = self._login_id_validator.validate(val) + self._login_id_value = val + self._login_id_present = True + + @login_id.deleter + def login_id(self): + self._login_id_value = None + self._login_id_present = False 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()' + return 'LogoutDetails(login_id={!r})'.format( + self._login_id_value, + ) LogoutDetails_validator = bv.Struct(LogoutDetails) @@ -57453,10 +59700,10 @@ class MemberRemoveActionType(bb.Union): # 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 = None + # Attribute is overwritten below the class definition offboard_and_retain_team_folders = None # Attribute is overwritten below the class definition other = None @@ -57469,21 +59716,21 @@ def is_delete(self): """ return self._tag == 'delete' - def is_offboard(self): + def is_leave(self): """ - Check if the union tag is ``offboard``. + Check if the union tag is ``leave``. :rtype: bool """ - return self._tag == 'offboard' + return self._tag == 'leave' - def is_leave(self): + def is_offboard(self): """ - Check if the union tag is ``leave``. + Check if the union tag is ``offboard``. :rtype: bool """ - return self._tag == 'leave' + return self._tag == 'offboard' def is_offboard_and_retain_team_folders(self): """ @@ -57821,10 +60068,10 @@ class MemberSendInvitePolicy(bb.Union): # Attribute is overwritten below the class definition disabled = None # Attribute is overwritten below the class definition - specific_members = None - # Attribute is overwritten below the class definition everyone = None # Attribute is overwritten below the class definition + specific_members = None + # Attribute is overwritten below the class definition other = None def is_disabled(self): @@ -57835,21 +60082,21 @@ def is_disabled(self): """ return self._tag == 'disabled' - def is_specific_members(self): + def is_everyone(self): """ - Check if the union tag is ``specific_members``. + Check if the union tag is ``everyone``. :rtype: bool """ - return self._tag == 'specific_members' + return self._tag == 'everyone' - def is_everyone(self): + def is_specific_members(self): """ - Check if the union tag is ``everyone``. + Check if the union tag is ``specific_members``. :rtype: bool """ - return self._tag == 'everyone' + return self._tag == 'specific_members' def is_other(self): """ @@ -58935,27 +61182,27 @@ class MemberStatus(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - not_joined = None + active = None # Attribute is overwritten below the class definition invited = None # Attribute is overwritten below the class definition - active = None + moved_to_another_team = None # Attribute is overwritten below the class definition - suspended = None + not_joined = None # Attribute is overwritten below the class definition removed = None # Attribute is overwritten below the class definition - moved_to_another_team = None + suspended = None # Attribute is overwritten below the class definition other = None - def is_not_joined(self): + def is_active(self): """ - Check if the union tag is ``not_joined``. + Check if the union tag is ``active``. :rtype: bool """ - return self._tag == 'not_joined' + return self._tag == 'active' def is_invited(self): """ @@ -58965,21 +61212,21 @@ def is_invited(self): """ return self._tag == 'invited' - def is_active(self): + def is_moved_to_another_team(self): """ - Check if the union tag is ``active``. + Check if the union tag is ``moved_to_another_team``. :rtype: bool """ - return self._tag == 'active' + return self._tag == 'moved_to_another_team' - def is_suspended(self): + def is_not_joined(self): """ - Check if the union tag is ``suspended``. + Check if the union tag is ``not_joined``. :rtype: bool """ - return self._tag == 'suspended' + return self._tag == 'not_joined' def is_removed(self): """ @@ -58989,13 +61236,13 @@ def is_removed(self): """ return self._tag == 'removed' - def is_moved_to_another_team(self): + def is_suspended(self): """ - Check if the union tag is ``moved_to_another_team``. + Check if the union tag is ``suspended``. :rtype: bool """ - return self._tag == 'moved_to_another_team' + return self._tag == 'suspended' def is_other(self): """ @@ -61985,22 +64232,14 @@ class PaperAccessType(bb.Union): _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 + viewer = 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``. @@ -62017,6 +64256,14 @@ def is_editor(self): """ return self._tag == 'editor' + def is_viewer(self): + """ + Check if the union tag is ``viewer``. + + :rtype: bool + """ + return self._tag == 'viewer' + def is_other(self): """ Check if the union tag is ``other``. @@ -68344,25 +70591,14 @@ class ParticipantLogInfo(bb.Union): 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. + :ivar UserLogInfo ParticipantLogInfo.user: A user with a Dropbox account. """ _catch_all = 'other' # Attribute is overwritten below the class definition other = None - @classmethod - def user(cls, val): - """ - Create an instance of this class set to the ``user`` tag with value - ``val``. - - :param UserLogInfo val: - :rtype: ParticipantLogInfo - """ - return cls('user', val) - @classmethod def group(cls, val): """ @@ -68374,13 +70610,16 @@ def group(cls, val): """ return cls('group', val) - def is_user(self): + @classmethod + def user(cls, val): """ - Check if the union tag is ``user``. + Create an instance of this class set to the ``user`` tag with value + ``val``. - :rtype: bool + :param UserLogInfo val: + :rtype: ParticipantLogInfo """ - return self._tag == 'user' + return cls('user', val) def is_group(self): """ @@ -68390,25 +70629,21 @@ def is_group(self): """ return self._tag == 'group' - def is_other(self): + def is_user(self): """ - Check if the union tag is ``other``. + Check if the union tag is ``user``. :rtype: bool """ - return self._tag == 'other' + return self._tag == 'user' - def get_user(self): + def is_other(self): """ - A user with a Dropbox account. - - Only call this if :meth:`is_user` is true. + Check if the union tag is ``other``. - :rtype: UserLogInfo + :rtype: bool """ - if not self.is_user(): - raise AttributeError("tag 'user' not set") - return self._value + return self._tag == 'other' def get_group(self): """ @@ -68422,6 +70657,18 @@ def get_group(self): raise AttributeError("tag 'group' not set") return self._value + 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, field_path, processor): super(ParticipantLogInfo, self)._process_custom_annotations(annotation_type, field_path, processor) @@ -68439,22 +70686,14 @@ class PassPolicy(bb.Union): _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 + enabled = 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``. @@ -68471,6 +70710,14 @@ def is_disabled(self): """ 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``. @@ -69228,6 +71475,43 @@ def __repr__(self): PlacementRestriction_validator = bv.Union(PlacementRestriction) +class PolicyType(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 + retention = None + # Attribute is overwritten below the class definition + other = None + + def is_retention(self): + """ + Check if the union tag is ``retention``. + + :rtype: bool + """ + return self._tag == 'retention' + + 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(PolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'PolicyType(%r, %r)' % (self._tag, self._value) + +PolicyType_validator = bv.Union(PolicyType) + class PrimaryTeamRequestAcceptedDetails(bb.Struct): """ Team merge request acceptance details shown to the primary team @@ -77106,27 +79390,27 @@ class SharedFolderMembersInheritancePolicy(bb.Union): _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 + inherit_members = None + # Attribute is overwritten below the class definition other = None - def is_inherit_members(self): + def is_dont_inherit_members(self): """ - Check if the union tag is ``inherit_members``. + Check if the union tag is ``dont_inherit_members``. :rtype: bool """ - return self._tag == 'inherit_members' + return self._tag == 'dont_inherit_members' - def is_dont_inherit_members(self): + def is_inherit_members(self): """ - Check if the union tag is ``dont_inherit_members``. + Check if the union tag is ``inherit_members``. :rtype: bool """ - return self._tag == 'dont_inherit_members' + return self._tag == 'inherit_members' def is_other(self): """ @@ -80871,182 +83155,392 @@ def description(self): self._description_present = False def _process_custom_annotations(self, annotation_type, field_path, processor): - super(SharingChangeMemberPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) + super(SharingChangeMemberPolicyType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharingChangeMemberPolicyType(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, field_path, processor): + super(SharingFolderJoinPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharingFolderJoinPolicy(%r, %r)' % (self._tag, self._value) + +SharingFolderJoinPolicy_validator = bv.Union(SharingFolderJoinPolicy) + +class SharingLinkPolicy(bb.Union): + """ + Policy for controlling if team members can share links 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. + """ + + _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' + + def is_default_public(self): + """ + Check if the union tag is ``default_public``. + + :rtype: bool + """ + return self._tag == 'default_public' + + 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``. + + :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 'SharingLinkPolicy(%r, %r)' % (self._tag, self._value) + +SharingLinkPolicy_validator = bv.Union(SharingLinkPolicy) + +class SharingMemberPolicy(bb.Union): + """ + 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 + corresponding ``get_*`` method. + """ + + _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 + forbid_with_exclusions = None + # Attribute is overwritten below the class definition + other = None + + def is_allow(self): + """ + Check if the union tag is ``allow``. + + :rtype: bool + """ + return self._tag == 'allow' + + def is_forbid(self): + """ + Check if the union tag is ``forbid``. + + :rtype: bool + """ + return self._tag == 'forbid' + + def is_forbid_with_exclusions(self): + """ + Check if the union tag is ``forbid_with_exclusions``. + + :rtype: bool + """ + return self._tag == 'forbid_with_exclusions' + + 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(SharingMemberPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SharingMemberPolicy(%r, %r)' % (self._tag, self._value) + +SharingMemberPolicy_validator = bv.Union(SharingMemberPolicy) + +class ShmodelDisableDownloadsDetails(bb.Struct): + """ + Disabled downloads for link. + + :ivar team_log.ShmodelDisableDownloadsDetails.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, + 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, field_path, processor): + super(ShmodelDisableDownloadsDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ShmodelDisableDownloadsDetails(shared_link_owner={!r})'.format( + self._shared_link_owner_value, + ) + +ShmodelDisableDownloadsDetails_validator = bv.Struct(ShmodelDisableDownloadsDetails) + +class ShmodelDisableDownloadsType(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(ShmodelDisableDownloadsType, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ShmodelDisableDownloadsType(description={!r})'.format( + self._description_value, + ) + +ShmodelDisableDownloadsType_validator = bv.Struct(ShmodelDisableDownloadsType) + +class ShmodelEnableDownloadsDetails(bb.Struct): + """ + Enabled downloads for link. + + :ivar team_log.ShmodelEnableDownloadsDetails.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, + 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, field_path, processor): + super(ShmodelEnableDownloadsDetails, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'ShmodelEnableDownloadsDetails(shared_link_owner={!r})'.format( + self._shared_link_owner_value, + ) + +ShmodelEnableDownloadsDetails_validator = bv.Struct(ShmodelEnableDownloadsDetails) + +class ShmodelEnableDownloadsType(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(ShmodelEnableDownloadsType, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'SharingChangeMemberPolicyType(description={!r})'.format( + return 'ShmodelEnableDownloadsType(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, field_path, processor): - super(SharingFolderJoinPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'SharingFolderJoinPolicy(%r, %r)' % (self._tag, self._value) - -SharingFolderJoinPolicy_validator = bv.Union(SharingFolderJoinPolicy) - -class SharingLinkPolicy(bb.Union): - """ - Policy for controlling if team members can share links 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. - """ - - _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' - - def is_default_public(self): - """ - Check if the union tag is ``default_public``. - - :rtype: bool - """ - return self._tag == 'default_public' - - 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``. - - :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 'SharingLinkPolicy(%r, %r)' % (self._tag, self._value) - -SharingLinkPolicy_validator = bv.Union(SharingLinkPolicy) - -class SharingMemberPolicy(bb.Union): - """ - 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 - corresponding ``get_*`` method. - """ - - _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 - forbid_with_exclusions = None - # Attribute is overwritten below the class definition - other = None - - def is_allow(self): - """ - Check if the union tag is ``allow``. - - :rtype: bool - """ - return self._tag == 'allow' - - def is_forbid(self): - """ - Check if the union tag is ``forbid``. - - :rtype: bool - """ - return self._tag == 'forbid' - - def is_forbid_with_exclusions(self): - """ - Check if the union tag is ``forbid_with_exclusions``. - - :rtype: bool - """ - return self._tag == 'forbid_with_exclusions' - - 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(SharingMemberPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) - - def __repr__(self): - return 'SharingMemberPolicy(%r, %r)' % (self._tag, self._value) - -SharingMemberPolicy_validator = bv.Union(SharingMemberPolicy) +ShmodelEnableDownloadsType_validator = bv.Struct(ShmodelEnableDownloadsType) class ShmodelGroupShareDetails(bb.Struct): """ @@ -85266,22 +87760,14 @@ class SpaceLimitsStatus(bb.Union): _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 + within_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``. @@ -85298,6 +87784,14 @@ def is_over_quota(self): """ return self._tag == 'over_quota' + def is_within_quota(self): + """ + Check if the union tag is ``within_quota``. + + :rtype: bool + """ + return self._tag == 'within_quota' + def is_other(self): """ Check if the union tag is ``other``. @@ -88167,21 +90661,30 @@ class TeamInviteDetails(bb.Struct): :ivar team_log.TeamInviteDetails.invite_method: How the user was invited to the team. + :ivar team_log.TeamInviteDetails.additional_license_purchase: True if the + invitation incurred an additional license purchase. """ __slots__ = [ '_invite_method_value', '_invite_method_present', + '_additional_license_purchase_value', + '_additional_license_purchase_present', ] _has_required_fields = True def __init__(self, - invite_method=None): + invite_method=None, + additional_license_purchase=None): self._invite_method_value = None self._invite_method_present = False + self._additional_license_purchase_value = None + self._additional_license_purchase_present = False if invite_method is not None: self.invite_method = invite_method + if additional_license_purchase is not None: + self.additional_license_purchase = additional_license_purchase @property def invite_method(self): @@ -88206,12 +90709,39 @@ def invite_method(self): self._invite_method_value = None self._invite_method_present = False + @property + def additional_license_purchase(self): + """ + True if the invitation incurred an additional license purchase. + + :rtype: bool + """ + if self._additional_license_purchase_present: + return self._additional_license_purchase_value + else: + return None + + @additional_license_purchase.setter + def additional_license_purchase(self, val): + if val is None: + del self.additional_license_purchase + return + val = self._additional_license_purchase_validator.validate(val) + self._additional_license_purchase_value = val + self._additional_license_purchase_present = True + + @additional_license_purchase.deleter + def additional_license_purchase(self): + self._additional_license_purchase_value = None + self._additional_license_purchase_present = False + def _process_custom_annotations(self, annotation_type, field_path, processor): super(TeamInviteDetails, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): - return 'TeamInviteDetails(invite_method={!r})'.format( + return 'TeamInviteDetails(invite_method={!r}, additional_license_purchase={!r})'.format( self._invite_method_value, + self._additional_license_purchase_value, ) TeamInviteDetails_validator = bv.Struct(TeamInviteDetails) @@ -88445,27 +90975,27 @@ class TeamMembershipType(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - full = None - # 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_full(self): + def is_free(self): """ - Check if the union tag is ``full``. + Check if the union tag is ``free``. :rtype: bool """ - return self._tag == 'full' + return self._tag == 'free' - def is_free(self): + def is_full(self): """ - Check if the union tag is ``free``. + Check if the union tag is ``full``. :rtype: bool """ - return self._tag == 'free' + return self._tag == 'full' def is_other(self): """ @@ -92804,16 +95334,24 @@ class TfaConfiguration(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition + authenticator = None + # 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 sms = None # Attribute is overwritten below the class definition - authenticator = None - # Attribute is overwritten below the class definition other = None + def is_authenticator(self): + """ + Check if the union tag is ``authenticator``. + + :rtype: bool + """ + return self._tag == 'authenticator' + def is_disabled(self): """ Check if the union tag is ``disabled``. @@ -92838,14 +95376,6 @@ def is_sms(self): """ return self._tag == 'sms' - def is_authenticator(self): - """ - Check if the union tag is ``authenticator``. - - :rtype: bool - """ - return self._tag == 'authenticator' - def is_other(self): """ Check if the union tag is ``other``. @@ -93143,39 +95673,47 @@ class TimeUnit(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - milliseconds = None + days = None # Attribute is overwritten below the class definition - seconds = None + hours = None + # Attribute is overwritten below the class definition + milliseconds = None # Attribute is overwritten below the class definition minutes = None # Attribute is overwritten below the class definition - hours = None + months = None # Attribute is overwritten below the class definition - days = None + seconds = None # Attribute is overwritten below the class definition weeks = None # Attribute is overwritten below the class definition - months = None - # Attribute is overwritten below the class definition years = None # Attribute is overwritten below the class definition other = None - def is_milliseconds(self): + def is_days(self): """ - Check if the union tag is ``milliseconds``. + Check if the union tag is ``days``. :rtype: bool """ - return self._tag == 'milliseconds' + return self._tag == 'days' - def is_seconds(self): + def is_hours(self): """ - Check if the union tag is ``seconds``. + Check if the union tag is ``hours``. :rtype: bool """ - return self._tag == 'seconds' + return self._tag == 'hours' + + def is_milliseconds(self): + """ + Check if the union tag is ``milliseconds``. + + :rtype: bool + """ + return self._tag == 'milliseconds' def is_minutes(self): """ @@ -93185,21 +95723,21 @@ def is_minutes(self): """ return self._tag == 'minutes' - def is_hours(self): + def is_months(self): """ - Check if the union tag is ``hours``. + Check if the union tag is ``months``. :rtype: bool """ - return self._tag == 'hours' + return self._tag == 'months' - def is_days(self): + def is_seconds(self): """ - Check if the union tag is ``days``. + Check if the union tag is ``seconds``. :rtype: bool """ - return self._tag == 'days' + return self._tag == 'seconds' def is_weeks(self): """ @@ -93209,14 +95747,6 @@ def is_weeks(self): """ return self._tag == 'weeks' - def is_months(self): - """ - Check if the union tag is ``months``. - - :rtype: bool - """ - return self._tag == 'months' - def is_years(self): """ Check if the union tag is ``years``. @@ -93247,8 +95777,8 @@ class TrustedNonTeamMemberLogInfo(UserLogInfo): :ivar team_log.TrustedNonTeamMemberLogInfo.trusted_non_team_member_type: Indicates the type of the member of a trusted team. - :ivar team_log.TrustedNonTeamMemberLogInfo.team: Details about this - useru2019s trusted team. + :ivar team_log.TrustedNonTeamMemberLogInfo.team: Details about this user's + trusted team. """ __slots__ = [ @@ -93304,7 +95834,7 @@ def trusted_non_team_member_type(self): @property def team(self): """ - Details about this useru2019s trusted team. + Details about this user's trusted team. :rtype: TeamLogInfo """ @@ -93350,27 +95880,27 @@ class TrustedNonTeamMemberType(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - multi_instance_admin = None - # Attribute is overwritten below the class definition enterprise_admin = None # Attribute is overwritten below the class definition + multi_instance_admin = None + # Attribute is overwritten below the class definition other = None - def is_multi_instance_admin(self): + def is_enterprise_admin(self): """ - Check if the union tag is ``multi_instance_admin``. + Check if the union tag is ``enterprise_admin``. :rtype: bool """ - return self._tag == 'multi_instance_admin' + return self._tag == 'enterprise_admin' - def is_enterprise_admin(self): + def is_multi_instance_admin(self): """ - Check if the union tag is ``enterprise_admin``. + Check if the union tag is ``multi_instance_admin``. :rtype: bool """ - return self._tag == 'enterprise_admin' + return self._tag == 'multi_instance_admin' def is_other(self): """ @@ -93397,57 +95927,57 @@ class TrustedTeamsRequestAction(bb.Union): _catch_all = 'other' # Attribute is overwritten below the class definition - invited = None + accepted = None # Attribute is overwritten below the class definition - expired = None + declined = None # Attribute is overwritten below the class definition - revoked = None + expired = None # Attribute is overwritten below the class definition - accepted = None + invited = None # Attribute is overwritten below the class definition - declined = None + revoked = None # Attribute is overwritten below the class definition other = None - def is_invited(self): + def is_accepted(self): """ - Check if the union tag is ``invited``. + Check if the union tag is ``accepted``. :rtype: bool """ - return self._tag == 'invited' + return self._tag == 'accepted' - def is_expired(self): + def is_declined(self): """ - Check if the union tag is ``expired``. + Check if the union tag is ``declined``. :rtype: bool """ - return self._tag == 'expired' + return self._tag == 'declined' - def is_revoked(self): + def is_expired(self): """ - Check if the union tag is ``revoked``. + Check if the union tag is ``expired``. :rtype: bool """ - return self._tag == 'revoked' + return self._tag == 'expired' - def is_accepted(self): + def is_invited(self): """ - Check if the union tag is ``accepted``. + Check if the union tag is ``invited``. :rtype: bool """ - return self._tag == 'accepted' + return self._tag == 'invited' - def is_declined(self): + def is_revoked(self): """ - Check if the union tag is ``declined``. + Check if the union tag is ``revoked``. :rtype: bool """ - return self._tag == 'declined' + return self._tag == 'revoked' def is_other(self): """ @@ -94975,36 +97505,36 @@ def __repr__(self): NamespaceId_validator = bv.String() RequestId_validator = bv.String() TeamEventList_validator = bv.List(TeamEvent_validator) -AccessMethodLogInfo._end_user_validator = SessionLogInfo_validator -AccessMethodLogInfo._sign_in_as_validator = WebSessionLogInfo_validator -AccessMethodLogInfo._content_manager_validator = WebSessionLogInfo_validator AccessMethodLogInfo._admin_console_validator = WebSessionLogInfo_validator -AccessMethodLogInfo._enterprise_console_validator = WebSessionLogInfo_validator AccessMethodLogInfo._api_validator = ApiSessionLogInfo_validator +AccessMethodLogInfo._content_manager_validator = WebSessionLogInfo_validator +AccessMethodLogInfo._end_user_validator = SessionLogInfo_validator +AccessMethodLogInfo._enterprise_console_validator = WebSessionLogInfo_validator +AccessMethodLogInfo._sign_in_as_validator = WebSessionLogInfo_validator AccessMethodLogInfo._other_validator = bv.Void() AccessMethodLogInfo._tagmap = { - 'end_user': AccessMethodLogInfo._end_user_validator, - 'sign_in_as': AccessMethodLogInfo._sign_in_as_validator, - 'content_manager': AccessMethodLogInfo._content_manager_validator, 'admin_console': AccessMethodLogInfo._admin_console_validator, - 'enterprise_console': AccessMethodLogInfo._enterprise_console_validator, 'api': AccessMethodLogInfo._api_validator, + 'content_manager': AccessMethodLogInfo._content_manager_validator, + 'end_user': AccessMethodLogInfo._end_user_validator, + 'enterprise_console': AccessMethodLogInfo._enterprise_console_validator, + 'sign_in_as': AccessMethodLogInfo._sign_in_as_validator, 'other': AccessMethodLogInfo._other_validator, } AccessMethodLogInfo.other = AccessMethodLogInfo('other') -AccountCaptureAvailability._unavailable_validator = bv.Void() AccountCaptureAvailability._available_validator = bv.Void() +AccountCaptureAvailability._unavailable_validator = bv.Void() AccountCaptureAvailability._other_validator = bv.Void() AccountCaptureAvailability._tagmap = { - 'unavailable': AccountCaptureAvailability._unavailable_validator, 'available': AccountCaptureAvailability._available_validator, + 'unavailable': AccountCaptureAvailability._unavailable_validator, 'other': AccountCaptureAvailability._other_validator, } -AccountCaptureAvailability.unavailable = AccountCaptureAvailability('unavailable') AccountCaptureAvailability.available = AccountCaptureAvailability('available') +AccountCaptureAvailability.unavailable = AccountCaptureAvailability('unavailable') AccountCaptureAvailability.other = AccountCaptureAvailability('other') AccountCaptureChangeAvailabilityDetails._new_value_validator = AccountCaptureAvailability_validator @@ -95060,33 +97590,33 @@ def __repr__(self): AccountCaptureNotificationEmailsSentType._all_field_names_ = set(['description']) AccountCaptureNotificationEmailsSentType._all_fields_ = [('description', AccountCaptureNotificationEmailsSentType._description_validator)] -AccountCaptureNotificationType._proactive_warning_notification_validator = bv.Void() AccountCaptureNotificationType._actionable_notification_validator = bv.Void() +AccountCaptureNotificationType._proactive_warning_notification_validator = bv.Void() AccountCaptureNotificationType._other_validator = bv.Void() AccountCaptureNotificationType._tagmap = { - 'proactive_warning_notification': AccountCaptureNotificationType._proactive_warning_notification_validator, 'actionable_notification': AccountCaptureNotificationType._actionable_notification_validator, + 'proactive_warning_notification': AccountCaptureNotificationType._proactive_warning_notification_validator, 'other': AccountCaptureNotificationType._other_validator, } -AccountCaptureNotificationType.proactive_warning_notification = AccountCaptureNotificationType('proactive_warning_notification') AccountCaptureNotificationType.actionable_notification = AccountCaptureNotificationType('actionable_notification') +AccountCaptureNotificationType.proactive_warning_notification = AccountCaptureNotificationType('proactive_warning_notification') AccountCaptureNotificationType.other = AccountCaptureNotificationType('other') +AccountCapturePolicy._all_users_validator = bv.Void() AccountCapturePolicy._disabled_validator = bv.Void() AccountCapturePolicy._invited_users_validator = bv.Void() -AccountCapturePolicy._all_users_validator = bv.Void() AccountCapturePolicy._other_validator = bv.Void() AccountCapturePolicy._tagmap = { + 'all_users': AccountCapturePolicy._all_users_validator, 'disabled': AccountCapturePolicy._disabled_validator, 'invited_users': AccountCapturePolicy._invited_users_validator, - 'all_users': AccountCapturePolicy._all_users_validator, 'other': AccountCapturePolicy._other_validator, } +AccountCapturePolicy.all_users = AccountCapturePolicy('all_users') AccountCapturePolicy.disabled = AccountCapturePolicy('disabled') AccountCapturePolicy.invited_users = AccountCapturePolicy('invited_users') -AccountCapturePolicy.all_users = AccountCapturePolicy('all_users') AccountCapturePolicy.other = AccountCapturePolicy('other') AccountCaptureRelinquishAccountDetails._domain_name_validator = bv.String() @@ -95125,60 +97655,60 @@ def __repr__(self): AccountState.unlocked = AccountState('unlocked') AccountState.other = AccountState('other') -ActionDetails._team_join_details_validator = JoinTeamDetails_validator ActionDetails._remove_action_validator = MemberRemoveActionType_validator ActionDetails._team_invite_details_validator = TeamInviteDetails_validator +ActionDetails._team_join_details_validator = JoinTeamDetails_validator ActionDetails._other_validator = bv.Void() ActionDetails._tagmap = { - 'team_join_details': ActionDetails._team_join_details_validator, 'remove_action': ActionDetails._remove_action_validator, 'team_invite_details': ActionDetails._team_invite_details_validator, + 'team_join_details': ActionDetails._team_join_details_validator, 'other': ActionDetails._other_validator, } ActionDetails.other = ActionDetails('other') -ActorLogInfo._user_validator = UserLogInfo_validator ActorLogInfo._admin_validator = UserLogInfo_validator +ActorLogInfo._anonymous_validator = bv.Void() ActorLogInfo._app_validator = AppLogInfo_validator -ActorLogInfo._reseller_validator = ResellerLogInfo_validator ActorLogInfo._dropbox_validator = bv.Void() -ActorLogInfo._anonymous_validator = bv.Void() +ActorLogInfo._reseller_validator = ResellerLogInfo_validator +ActorLogInfo._user_validator = UserLogInfo_validator ActorLogInfo._other_validator = bv.Void() ActorLogInfo._tagmap = { - 'user': ActorLogInfo._user_validator, 'admin': ActorLogInfo._admin_validator, + 'anonymous': ActorLogInfo._anonymous_validator, 'app': ActorLogInfo._app_validator, - 'reseller': ActorLogInfo._reseller_validator, 'dropbox': ActorLogInfo._dropbox_validator, - 'anonymous': ActorLogInfo._anonymous_validator, + 'reseller': ActorLogInfo._reseller_validator, + 'user': ActorLogInfo._user_validator, 'other': ActorLogInfo._other_validator, } -ActorLogInfo.dropbox = ActorLogInfo('dropbox') ActorLogInfo.anonymous = ActorLogInfo('anonymous') +ActorLogInfo.dropbox = ActorLogInfo('dropbox') ActorLogInfo.other = ActorLogInfo('other') -AdminRole._team_admin_validator = bv.Void() -AdminRole._user_management_admin_validator = bv.Void() -AdminRole._support_admin_validator = bv.Void() AdminRole._limited_admin_validator = bv.Void() AdminRole._member_only_validator = bv.Void() +AdminRole._support_admin_validator = bv.Void() +AdminRole._team_admin_validator = bv.Void() +AdminRole._user_management_admin_validator = bv.Void() AdminRole._other_validator = bv.Void() AdminRole._tagmap = { - 'team_admin': AdminRole._team_admin_validator, - 'user_management_admin': AdminRole._user_management_admin_validator, - 'support_admin': AdminRole._support_admin_validator, 'limited_admin': AdminRole._limited_admin_validator, 'member_only': AdminRole._member_only_validator, + 'support_admin': AdminRole._support_admin_validator, + 'team_admin': AdminRole._team_admin_validator, + 'user_management_admin': AdminRole._user_management_admin_validator, 'other': AdminRole._other_validator, } -AdminRole.team_admin = AdminRole('team_admin') -AdminRole.user_management_admin = AdminRole('user_management_admin') -AdminRole.support_admin = AdminRole('support_admin') AdminRole.limited_admin = AdminRole('limited_admin') AdminRole.member_only = AdminRole('member_only') +AdminRole.support_admin = AdminRole('support_admin') +AdminRole.team_admin = AdminRole('team_admin') +AdminRole.user_management_admin = AdminRole('user_management_admin') AdminRole.other = AdminRole('other') AllowDownloadDisabledDetails._all_field_names_ = set([]) @@ -95273,6 +97803,19 @@ def __repr__(self): AssetLogInfo.other = AssetLogInfo('other') +BackupStatus._disabled_validator = bv.Void() +BackupStatus._enabled_validator = bv.Void() +BackupStatus._other_validator = bv.Void() +BackupStatus._tagmap = { + 'disabled': BackupStatus._disabled_validator, + 'enabled': BackupStatus._enabled_validator, + 'other': BackupStatus._other_validator, +} + +BackupStatus.disabled = BackupStatus('disabled') +BackupStatus.enabled = BackupStatus('enabled') +BackupStatus.other = BackupStatus('other') + BinderAddPageDetails._event_uuid_validator = bv.String() BinderAddPageDetails._doc_title_validator = bv.String() BinderAddPageDetails._binder_item_name_validator = bv.String() @@ -95556,19 +98099,19 @@ def __repr__(self): ContentPermanentDeletePolicy.enabled = ContentPermanentDeletePolicy('enabled') ContentPermanentDeletePolicy.other = ContentPermanentDeletePolicy('other') -ContextLogInfo._team_member_validator = TeamMemberLogInfo_validator -ContextLogInfo._non_team_member_validator = NonTeamMemberLogInfo_validator ContextLogInfo._anonymous_validator = bv.Void() -ContextLogInfo._team_validator = bv.Void() +ContextLogInfo._non_team_member_validator = NonTeamMemberLogInfo_validator ContextLogInfo._organization_team_validator = TeamLogInfo_validator +ContextLogInfo._team_validator = bv.Void() +ContextLogInfo._team_member_validator = TeamMemberLogInfo_validator ContextLogInfo._trusted_non_team_member_validator = TrustedNonTeamMemberLogInfo_validator ContextLogInfo._other_validator = bv.Void() ContextLogInfo._tagmap = { - 'team_member': ContextLogInfo._team_member_validator, - 'non_team_member': ContextLogInfo._non_team_member_validator, 'anonymous': ContextLogInfo._anonymous_validator, - 'team': ContextLogInfo._team_validator, + 'non_team_member': ContextLogInfo._non_team_member_validator, 'organization_team': ContextLogInfo._organization_team_validator, + 'team': ContextLogInfo._team_validator, + 'team_member': ContextLogInfo._team_member_validator, 'trusted_non_team_member': ContextLogInfo._trusted_non_team_member_validator, 'other': ContextLogInfo._other_validator, } @@ -95775,17 +98318,17 @@ def __repr__(self): DeviceApprovalsChangeUnlinkActionType._all_field_names_ = set(['description']) DeviceApprovalsChangeUnlinkActionType._all_fields_ = [('description', DeviceApprovalsChangeUnlinkActionType._description_validator)] -DeviceApprovalsPolicy._unlimited_validator = bv.Void() DeviceApprovalsPolicy._limited_validator = bv.Void() +DeviceApprovalsPolicy._unlimited_validator = bv.Void() DeviceApprovalsPolicy._other_validator = bv.Void() DeviceApprovalsPolicy._tagmap = { - 'unlimited': DeviceApprovalsPolicy._unlimited_validator, 'limited': DeviceApprovalsPolicy._limited_validator, + 'unlimited': DeviceApprovalsPolicy._unlimited_validator, 'other': DeviceApprovalsPolicy._other_validator, } -DeviceApprovalsPolicy.unlimited = DeviceApprovalsPolicy('unlimited') DeviceApprovalsPolicy.limited = DeviceApprovalsPolicy('limited') +DeviceApprovalsPolicy.unlimited = DeviceApprovalsPolicy('unlimited') DeviceApprovalsPolicy.other = DeviceApprovalsPolicy('other') DeviceApprovalsRemoveExceptionDetails._all_field_names_ = set([]) @@ -95889,6 +98432,24 @@ def __repr__(self): DeviceManagementEnabledType._all_field_names_ = set(['description']) DeviceManagementEnabledType._all_fields_ = [('description', DeviceManagementEnabledType._description_validator)] +DeviceSyncBackupStatusChangedDetails._desktop_device_session_info_validator = DesktopDeviceSessionLogInfo_validator +DeviceSyncBackupStatusChangedDetails._previous_value_validator = BackupStatus_validator +DeviceSyncBackupStatusChangedDetails._new_value_validator = BackupStatus_validator +DeviceSyncBackupStatusChangedDetails._all_field_names_ = set([ + 'desktop_device_session_info', + 'previous_value', + 'new_value', +]) +DeviceSyncBackupStatusChangedDetails._all_fields_ = [ + ('desktop_device_session_info', DeviceSyncBackupStatusChangedDetails._desktop_device_session_info_validator), + ('previous_value', DeviceSyncBackupStatusChangedDetails._previous_value_validator), + ('new_value', DeviceSyncBackupStatusChangedDetails._new_value_validator), +] + +DeviceSyncBackupStatusChangedType._description_validator = bv.String() +DeviceSyncBackupStatusChangedType._all_field_names_ = set(['description']) +DeviceSyncBackupStatusChangedType._all_fields_ = [('description', DeviceSyncBackupStatusChangedType._description_validator)] + DeviceType._desktop_validator = bv.Void() DeviceType._mobile_validator = bv.Void() DeviceType._other_validator = bv.Void() @@ -95916,17 +98477,17 @@ def __repr__(self): ('delete_data', DeviceUnlinkDetails._delete_data_validator), ] -DeviceUnlinkPolicy._remove_validator = bv.Void() DeviceUnlinkPolicy._keep_validator = bv.Void() +DeviceUnlinkPolicy._remove_validator = bv.Void() DeviceUnlinkPolicy._other_validator = bv.Void() DeviceUnlinkPolicy._tagmap = { - 'remove': DeviceUnlinkPolicy._remove_validator, 'keep': DeviceUnlinkPolicy._keep_validator, + 'remove': DeviceUnlinkPolicy._remove_validator, 'other': DeviceUnlinkPolicy._other_validator, } -DeviceUnlinkPolicy.remove = DeviceUnlinkPolicy('remove') DeviceUnlinkPolicy.keep = DeviceUnlinkPolicy('keep') +DeviceUnlinkPolicy.remove = DeviceUnlinkPolicy('remove') DeviceUnlinkPolicy.other = DeviceUnlinkPolicy('other') DeviceUnlinkType._description_validator = bv.String() @@ -96169,12 +98730,12 @@ def __repr__(self): EventCategory._apps_validator = bv.Void() EventCategory._comments_validator = bv.Void() +EventCategory._data_governance_validator = bv.Void() EventCategory._devices_validator = bv.Void() EventCategory._domains_validator = bv.Void() EventCategory._file_operations_validator = bv.Void() EventCategory._file_requests_validator = bv.Void() EventCategory._groups_validator = bv.Void() -EventCategory._legal_holds_validator = bv.Void() EventCategory._logins_validator = bv.Void() EventCategory._members_validator = bv.Void() EventCategory._paper_validator = bv.Void() @@ -96192,12 +98753,12 @@ def __repr__(self): EventCategory._tagmap = { 'apps': EventCategory._apps_validator, 'comments': EventCategory._comments_validator, + 'data_governance': EventCategory._data_governance_validator, 'devices': EventCategory._devices_validator, 'domains': EventCategory._domains_validator, 'file_operations': EventCategory._file_operations_validator, 'file_requests': EventCategory._file_requests_validator, 'groups': EventCategory._groups_validator, - 'legal_holds': EventCategory._legal_holds_validator, 'logins': EventCategory._logins_validator, 'members': EventCategory._members_validator, 'paper': EventCategory._paper_validator, @@ -96216,12 +98777,12 @@ def __repr__(self): EventCategory.apps = EventCategory('apps') EventCategory.comments = EventCategory('comments') +EventCategory.data_governance = EventCategory('data_governance') EventCategory.devices = EventCategory('devices') EventCategory.domains = EventCategory('domains') EventCategory.file_operations = EventCategory('file_operations') EventCategory.file_requests = EventCategory('file_requests') EventCategory.groups = EventCategory('groups') -EventCategory.legal_holds = EventCategory('legal_holds') EventCategory.logins = EventCategory('logins') EventCategory.members = EventCategory('members') EventCategory.paper = EventCategory('paper') @@ -96251,6 +98812,23 @@ def __repr__(self): EventDetails._file_resolve_comment_details_validator = FileResolveCommentDetails_validator EventDetails._file_unlike_comment_details_validator = FileUnlikeCommentDetails_validator EventDetails._file_unresolve_comment_details_validator = FileUnresolveCommentDetails_validator +EventDetails._governance_policy_add_folders_details_validator = GovernancePolicyAddFoldersDetails_validator +EventDetails._governance_policy_create_details_validator = GovernancePolicyCreateDetails_validator +EventDetails._governance_policy_delete_details_validator = GovernancePolicyDeleteDetails_validator +EventDetails._governance_policy_edit_details_details_validator = GovernancePolicyEditDetailsDetails_validator +EventDetails._governance_policy_edit_duration_details_validator = GovernancePolicyEditDurationDetails_validator +EventDetails._governance_policy_remove_folders_details_validator = GovernancePolicyRemoveFoldersDetails_validator +EventDetails._legal_holds_activate_a_hold_details_validator = LegalHoldsActivateAHoldDetails_validator +EventDetails._legal_holds_add_members_details_validator = LegalHoldsAddMembersDetails_validator +EventDetails._legal_holds_change_hold_details_details_validator = LegalHoldsChangeHoldDetailsDetails_validator +EventDetails._legal_holds_change_hold_name_details_validator = LegalHoldsChangeHoldNameDetails_validator +EventDetails._legal_holds_export_a_hold_details_validator = LegalHoldsExportAHoldDetails_validator +EventDetails._legal_holds_export_cancelled_details_validator = LegalHoldsExportCancelledDetails_validator +EventDetails._legal_holds_export_downloaded_details_validator = LegalHoldsExportDownloadedDetails_validator +EventDetails._legal_holds_export_removed_details_validator = LegalHoldsExportRemovedDetails_validator +EventDetails._legal_holds_release_a_hold_details_validator = LegalHoldsReleaseAHoldDetails_validator +EventDetails._legal_holds_remove_members_details_validator = LegalHoldsRemoveMembersDetails_validator +EventDetails._legal_holds_report_a_hold_details_validator = LegalHoldsReportAHoldDetails_validator EventDetails._device_change_ip_desktop_details_validator = DeviceChangeIpDesktopDetails_validator EventDetails._device_change_ip_mobile_details_validator = DeviceChangeIpMobileDetails_validator EventDetails._device_change_ip_web_details_validator = DeviceChangeIpWebDetails_validator @@ -96260,6 +98838,7 @@ def __repr__(self): EventDetails._device_link_success_details_validator = DeviceLinkSuccessDetails_validator EventDetails._device_management_disabled_details_validator = DeviceManagementDisabledDetails_validator EventDetails._device_management_enabled_details_validator = DeviceManagementEnabledDetails_validator +EventDetails._device_sync_backup_status_changed_details_validator = DeviceSyncBackupStatusChangedDetails_validator EventDetails._device_unlink_details_validator = DeviceUnlinkDetails_validator EventDetails._emm_refresh_auth_token_details_validator = EmmRefreshAuthTokenDetails_validator EventDetails._account_capture_change_availability_details_validator = AccountCaptureChangeAvailabilityDetails_validator @@ -96315,17 +98894,6 @@ def __repr__(self): EventDetails._group_remove_external_id_details_validator = GroupRemoveExternalIdDetails_validator EventDetails._group_remove_member_details_validator = GroupRemoveMemberDetails_validator EventDetails._group_rename_details_validator = GroupRenameDetails_validator -EventDetails._legal_holds_activate_a_hold_details_validator = LegalHoldsActivateAHoldDetails_validator -EventDetails._legal_holds_add_members_details_validator = LegalHoldsAddMembersDetails_validator -EventDetails._legal_holds_change_hold_details_details_validator = LegalHoldsChangeHoldDetailsDetails_validator -EventDetails._legal_holds_change_hold_name_details_validator = LegalHoldsChangeHoldNameDetails_validator -EventDetails._legal_holds_export_a_hold_details_validator = LegalHoldsExportAHoldDetails_validator -EventDetails._legal_holds_export_cancelled_details_validator = LegalHoldsExportCancelledDetails_validator -EventDetails._legal_holds_export_downloaded_details_validator = LegalHoldsExportDownloadedDetails_validator -EventDetails._legal_holds_export_removed_details_validator = LegalHoldsExportRemovedDetails_validator -EventDetails._legal_holds_release_a_hold_details_validator = LegalHoldsReleaseAHoldDetails_validator -EventDetails._legal_holds_remove_members_details_validator = LegalHoldsRemoveMembersDetails_validator -EventDetails._legal_holds_report_a_hold_details_validator = LegalHoldsReportAHoldDetails_validator EventDetails._account_lock_or_unlocked_details_validator = AccountLockOrUnlockedDetails_validator EventDetails._emm_error_details_validator = EmmErrorDetails_validator EventDetails._guest_admin_signed_in_via_trusted_teams_details_validator = GuestAdminSignedInViaTrustedTeamsDetails_validator @@ -96512,6 +99080,8 @@ def __repr__(self): EventDetails._shared_link_share_details_validator = SharedLinkShareDetails_validator EventDetails._shared_link_view_details_validator = SharedLinkViewDetails_validator EventDetails._shared_note_opened_details_validator = SharedNoteOpenedDetails_validator +EventDetails._shmodel_disable_downloads_details_validator = ShmodelDisableDownloadsDetails_validator +EventDetails._shmodel_enable_downloads_details_validator = ShmodelEnableDownloadsDetails_validator EventDetails._shmodel_group_share_details_validator = ShmodelGroupShareDetails_validator EventDetails._showcase_access_granted_details_validator = ShowcaseAccessGrantedDetails_validator EventDetails._showcase_add_member_details_validator = ShowcaseAddMemberDetails_validator @@ -96682,6 +99252,23 @@ def __repr__(self): 'file_resolve_comment_details': EventDetails._file_resolve_comment_details_validator, 'file_unlike_comment_details': EventDetails._file_unlike_comment_details_validator, 'file_unresolve_comment_details': EventDetails._file_unresolve_comment_details_validator, + 'governance_policy_add_folders_details': EventDetails._governance_policy_add_folders_details_validator, + 'governance_policy_create_details': EventDetails._governance_policy_create_details_validator, + 'governance_policy_delete_details': EventDetails._governance_policy_delete_details_validator, + 'governance_policy_edit_details_details': EventDetails._governance_policy_edit_details_details_validator, + 'governance_policy_edit_duration_details': EventDetails._governance_policy_edit_duration_details_validator, + 'governance_policy_remove_folders_details': EventDetails._governance_policy_remove_folders_details_validator, + 'legal_holds_activate_a_hold_details': EventDetails._legal_holds_activate_a_hold_details_validator, + 'legal_holds_add_members_details': EventDetails._legal_holds_add_members_details_validator, + 'legal_holds_change_hold_details_details': EventDetails._legal_holds_change_hold_details_details_validator, + 'legal_holds_change_hold_name_details': EventDetails._legal_holds_change_hold_name_details_validator, + 'legal_holds_export_a_hold_details': EventDetails._legal_holds_export_a_hold_details_validator, + 'legal_holds_export_cancelled_details': EventDetails._legal_holds_export_cancelled_details_validator, + 'legal_holds_export_downloaded_details': EventDetails._legal_holds_export_downloaded_details_validator, + 'legal_holds_export_removed_details': EventDetails._legal_holds_export_removed_details_validator, + 'legal_holds_release_a_hold_details': EventDetails._legal_holds_release_a_hold_details_validator, + 'legal_holds_remove_members_details': EventDetails._legal_holds_remove_members_details_validator, + 'legal_holds_report_a_hold_details': EventDetails._legal_holds_report_a_hold_details_validator, 'device_change_ip_desktop_details': EventDetails._device_change_ip_desktop_details_validator, 'device_change_ip_mobile_details': EventDetails._device_change_ip_mobile_details_validator, 'device_change_ip_web_details': EventDetails._device_change_ip_web_details_validator, @@ -96691,6 +99278,7 @@ def __repr__(self): 'device_link_success_details': EventDetails._device_link_success_details_validator, 'device_management_disabled_details': EventDetails._device_management_disabled_details_validator, 'device_management_enabled_details': EventDetails._device_management_enabled_details_validator, + 'device_sync_backup_status_changed_details': EventDetails._device_sync_backup_status_changed_details_validator, 'device_unlink_details': EventDetails._device_unlink_details_validator, 'emm_refresh_auth_token_details': EventDetails._emm_refresh_auth_token_details_validator, 'account_capture_change_availability_details': EventDetails._account_capture_change_availability_details_validator, @@ -96746,17 +99334,6 @@ def __repr__(self): 'group_remove_external_id_details': EventDetails._group_remove_external_id_details_validator, 'group_remove_member_details': EventDetails._group_remove_member_details_validator, 'group_rename_details': EventDetails._group_rename_details_validator, - 'legal_holds_activate_a_hold_details': EventDetails._legal_holds_activate_a_hold_details_validator, - 'legal_holds_add_members_details': EventDetails._legal_holds_add_members_details_validator, - 'legal_holds_change_hold_details_details': EventDetails._legal_holds_change_hold_details_details_validator, - 'legal_holds_change_hold_name_details': EventDetails._legal_holds_change_hold_name_details_validator, - 'legal_holds_export_a_hold_details': EventDetails._legal_holds_export_a_hold_details_validator, - 'legal_holds_export_cancelled_details': EventDetails._legal_holds_export_cancelled_details_validator, - 'legal_holds_export_downloaded_details': EventDetails._legal_holds_export_downloaded_details_validator, - 'legal_holds_export_removed_details': EventDetails._legal_holds_export_removed_details_validator, - 'legal_holds_release_a_hold_details': EventDetails._legal_holds_release_a_hold_details_validator, - 'legal_holds_remove_members_details': EventDetails._legal_holds_remove_members_details_validator, - 'legal_holds_report_a_hold_details': EventDetails._legal_holds_report_a_hold_details_validator, 'account_lock_or_unlocked_details': EventDetails._account_lock_or_unlocked_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, @@ -96943,6 +99520,8 @@ def __repr__(self): 'shared_link_share_details': EventDetails._shared_link_share_details_validator, 'shared_link_view_details': EventDetails._shared_link_view_details_validator, 'shared_note_opened_details': EventDetails._shared_note_opened_details_validator, + 'shmodel_disable_downloads_details': EventDetails._shmodel_disable_downloads_details_validator, + 'shmodel_enable_downloads_details': EventDetails._shmodel_enable_downloads_details_validator, 'shmodel_group_share_details': EventDetails._shmodel_group_share_details_validator, 'showcase_access_granted_details': EventDetails._showcase_access_granted_details_validator, 'showcase_add_member_details': EventDetails._showcase_add_member_details_validator, @@ -97116,6 +99695,23 @@ def __repr__(self): EventType._file_resolve_comment_validator = FileResolveCommentType_validator EventType._file_unlike_comment_validator = FileUnlikeCommentType_validator EventType._file_unresolve_comment_validator = FileUnresolveCommentType_validator +EventType._governance_policy_add_folders_validator = GovernancePolicyAddFoldersType_validator +EventType._governance_policy_create_validator = GovernancePolicyCreateType_validator +EventType._governance_policy_delete_validator = GovernancePolicyDeleteType_validator +EventType._governance_policy_edit_details_validator = GovernancePolicyEditDetailsType_validator +EventType._governance_policy_edit_duration_validator = GovernancePolicyEditDurationType_validator +EventType._governance_policy_remove_folders_validator = GovernancePolicyRemoveFoldersType_validator +EventType._legal_holds_activate_a_hold_validator = LegalHoldsActivateAHoldType_validator +EventType._legal_holds_add_members_validator = LegalHoldsAddMembersType_validator +EventType._legal_holds_change_hold_details_validator = LegalHoldsChangeHoldDetailsType_validator +EventType._legal_holds_change_hold_name_validator = LegalHoldsChangeHoldNameType_validator +EventType._legal_holds_export_a_hold_validator = LegalHoldsExportAHoldType_validator +EventType._legal_holds_export_cancelled_validator = LegalHoldsExportCancelledType_validator +EventType._legal_holds_export_downloaded_validator = LegalHoldsExportDownloadedType_validator +EventType._legal_holds_export_removed_validator = LegalHoldsExportRemovedType_validator +EventType._legal_holds_release_a_hold_validator = LegalHoldsReleaseAHoldType_validator +EventType._legal_holds_remove_members_validator = LegalHoldsRemoveMembersType_validator +EventType._legal_holds_report_a_hold_validator = LegalHoldsReportAHoldType_validator EventType._device_change_ip_desktop_validator = DeviceChangeIpDesktopType_validator EventType._device_change_ip_mobile_validator = DeviceChangeIpMobileType_validator EventType._device_change_ip_web_validator = DeviceChangeIpWebType_validator @@ -97125,6 +99721,7 @@ def __repr__(self): EventType._device_link_success_validator = DeviceLinkSuccessType_validator EventType._device_management_disabled_validator = DeviceManagementDisabledType_validator EventType._device_management_enabled_validator = DeviceManagementEnabledType_validator +EventType._device_sync_backup_status_changed_validator = DeviceSyncBackupStatusChangedType_validator EventType._device_unlink_validator = DeviceUnlinkType_validator EventType._emm_refresh_auth_token_validator = EmmRefreshAuthTokenType_validator EventType._account_capture_change_availability_validator = AccountCaptureChangeAvailabilityType_validator @@ -97180,17 +99777,6 @@ def __repr__(self): EventType._group_remove_external_id_validator = GroupRemoveExternalIdType_validator EventType._group_remove_member_validator = GroupRemoveMemberType_validator EventType._group_rename_validator = GroupRenameType_validator -EventType._legal_holds_activate_a_hold_validator = LegalHoldsActivateAHoldType_validator -EventType._legal_holds_add_members_validator = LegalHoldsAddMembersType_validator -EventType._legal_holds_change_hold_details_validator = LegalHoldsChangeHoldDetailsType_validator -EventType._legal_holds_change_hold_name_validator = LegalHoldsChangeHoldNameType_validator -EventType._legal_holds_export_a_hold_validator = LegalHoldsExportAHoldType_validator -EventType._legal_holds_export_cancelled_validator = LegalHoldsExportCancelledType_validator -EventType._legal_holds_export_downloaded_validator = LegalHoldsExportDownloadedType_validator -EventType._legal_holds_export_removed_validator = LegalHoldsExportRemovedType_validator -EventType._legal_holds_release_a_hold_validator = LegalHoldsReleaseAHoldType_validator -EventType._legal_holds_remove_members_validator = LegalHoldsRemoveMembersType_validator -EventType._legal_holds_report_a_hold_validator = LegalHoldsReportAHoldType_validator EventType._account_lock_or_unlocked_validator = AccountLockOrUnlockedType_validator EventType._emm_error_validator = EmmErrorType_validator EventType._guest_admin_signed_in_via_trusted_teams_validator = GuestAdminSignedInViaTrustedTeamsType_validator @@ -97377,6 +99963,8 @@ def __repr__(self): EventType._shared_link_share_validator = SharedLinkShareType_validator EventType._shared_link_view_validator = SharedLinkViewType_validator EventType._shared_note_opened_validator = SharedNoteOpenedType_validator +EventType._shmodel_disable_downloads_validator = ShmodelDisableDownloadsType_validator +EventType._shmodel_enable_downloads_validator = ShmodelEnableDownloadsType_validator EventType._shmodel_group_share_validator = ShmodelGroupShareType_validator EventType._showcase_access_granted_validator = ShowcaseAccessGrantedType_validator EventType._showcase_add_member_validator = ShowcaseAddMemberType_validator @@ -97546,6 +100134,23 @@ def __repr__(self): 'file_resolve_comment': EventType._file_resolve_comment_validator, 'file_unlike_comment': EventType._file_unlike_comment_validator, 'file_unresolve_comment': EventType._file_unresolve_comment_validator, + 'governance_policy_add_folders': EventType._governance_policy_add_folders_validator, + 'governance_policy_create': EventType._governance_policy_create_validator, + 'governance_policy_delete': EventType._governance_policy_delete_validator, + 'governance_policy_edit_details': EventType._governance_policy_edit_details_validator, + 'governance_policy_edit_duration': EventType._governance_policy_edit_duration_validator, + 'governance_policy_remove_folders': EventType._governance_policy_remove_folders_validator, + 'legal_holds_activate_a_hold': EventType._legal_holds_activate_a_hold_validator, + 'legal_holds_add_members': EventType._legal_holds_add_members_validator, + 'legal_holds_change_hold_details': EventType._legal_holds_change_hold_details_validator, + 'legal_holds_change_hold_name': EventType._legal_holds_change_hold_name_validator, + 'legal_holds_export_a_hold': EventType._legal_holds_export_a_hold_validator, + 'legal_holds_export_cancelled': EventType._legal_holds_export_cancelled_validator, + 'legal_holds_export_downloaded': EventType._legal_holds_export_downloaded_validator, + 'legal_holds_export_removed': EventType._legal_holds_export_removed_validator, + 'legal_holds_release_a_hold': EventType._legal_holds_release_a_hold_validator, + 'legal_holds_remove_members': EventType._legal_holds_remove_members_validator, + 'legal_holds_report_a_hold': EventType._legal_holds_report_a_hold_validator, 'device_change_ip_desktop': EventType._device_change_ip_desktop_validator, 'device_change_ip_mobile': EventType._device_change_ip_mobile_validator, 'device_change_ip_web': EventType._device_change_ip_web_validator, @@ -97555,6 +100160,7 @@ def __repr__(self): 'device_link_success': EventType._device_link_success_validator, 'device_management_disabled': EventType._device_management_disabled_validator, 'device_management_enabled': EventType._device_management_enabled_validator, + 'device_sync_backup_status_changed': EventType._device_sync_backup_status_changed_validator, 'device_unlink': EventType._device_unlink_validator, 'emm_refresh_auth_token': EventType._emm_refresh_auth_token_validator, 'account_capture_change_availability': EventType._account_capture_change_availability_validator, @@ -97610,17 +100216,6 @@ def __repr__(self): 'group_remove_external_id': EventType._group_remove_external_id_validator, 'group_remove_member': EventType._group_remove_member_validator, 'group_rename': EventType._group_rename_validator, - 'legal_holds_activate_a_hold': EventType._legal_holds_activate_a_hold_validator, - 'legal_holds_add_members': EventType._legal_holds_add_members_validator, - 'legal_holds_change_hold_details': EventType._legal_holds_change_hold_details_validator, - 'legal_holds_change_hold_name': EventType._legal_holds_change_hold_name_validator, - 'legal_holds_export_a_hold': EventType._legal_holds_export_a_hold_validator, - 'legal_holds_export_cancelled': EventType._legal_holds_export_cancelled_validator, - 'legal_holds_export_downloaded': EventType._legal_holds_export_downloaded_validator, - 'legal_holds_export_removed': EventType._legal_holds_export_removed_validator, - 'legal_holds_release_a_hold': EventType._legal_holds_release_a_hold_validator, - 'legal_holds_remove_members': EventType._legal_holds_remove_members_validator, - 'legal_holds_report_a_hold': EventType._legal_holds_report_a_hold_validator, 'account_lock_or_unlocked': EventType._account_lock_or_unlocked_validator, 'emm_error': EventType._emm_error_validator, 'guest_admin_signed_in_via_trusted_teams': EventType._guest_admin_signed_in_via_trusted_teams_validator, @@ -97807,6 +100402,8 @@ def __repr__(self): 'shared_link_share': EventType._shared_link_share_validator, 'shared_link_view': EventType._shared_link_view_validator, 'shared_note_opened': EventType._shared_note_opened_validator, + 'shmodel_disable_downloads': EventType._shmodel_disable_downloads_validator, + 'shmodel_enable_downloads': EventType._shmodel_enable_downloads_validator, 'shmodel_group_share': EventType._shmodel_group_share_validator, 'showcase_access_granted': EventType._showcase_access_granted_validator, 'showcase_add_member': EventType._showcase_add_member_validator, @@ -97979,6 +100576,23 @@ def __repr__(self): EventTypeArg._file_resolve_comment_validator = bv.Void() EventTypeArg._file_unlike_comment_validator = bv.Void() EventTypeArg._file_unresolve_comment_validator = bv.Void() +EventTypeArg._governance_policy_add_folders_validator = bv.Void() +EventTypeArg._governance_policy_create_validator = bv.Void() +EventTypeArg._governance_policy_delete_validator = bv.Void() +EventTypeArg._governance_policy_edit_details_validator = bv.Void() +EventTypeArg._governance_policy_edit_duration_validator = bv.Void() +EventTypeArg._governance_policy_remove_folders_validator = bv.Void() +EventTypeArg._legal_holds_activate_a_hold_validator = bv.Void() +EventTypeArg._legal_holds_add_members_validator = bv.Void() +EventTypeArg._legal_holds_change_hold_details_validator = bv.Void() +EventTypeArg._legal_holds_change_hold_name_validator = bv.Void() +EventTypeArg._legal_holds_export_a_hold_validator = bv.Void() +EventTypeArg._legal_holds_export_cancelled_validator = bv.Void() +EventTypeArg._legal_holds_export_downloaded_validator = bv.Void() +EventTypeArg._legal_holds_export_removed_validator = bv.Void() +EventTypeArg._legal_holds_release_a_hold_validator = bv.Void() +EventTypeArg._legal_holds_remove_members_validator = bv.Void() +EventTypeArg._legal_holds_report_a_hold_validator = bv.Void() EventTypeArg._device_change_ip_desktop_validator = bv.Void() EventTypeArg._device_change_ip_mobile_validator = bv.Void() EventTypeArg._device_change_ip_web_validator = bv.Void() @@ -97988,6 +100602,7 @@ def __repr__(self): EventTypeArg._device_link_success_validator = bv.Void() EventTypeArg._device_management_disabled_validator = bv.Void() EventTypeArg._device_management_enabled_validator = bv.Void() +EventTypeArg._device_sync_backup_status_changed_validator = bv.Void() EventTypeArg._device_unlink_validator = bv.Void() EventTypeArg._emm_refresh_auth_token_validator = bv.Void() EventTypeArg._account_capture_change_availability_validator = bv.Void() @@ -98043,17 +100658,6 @@ def __repr__(self): EventTypeArg._group_remove_external_id_validator = bv.Void() EventTypeArg._group_remove_member_validator = bv.Void() EventTypeArg._group_rename_validator = bv.Void() -EventTypeArg._legal_holds_activate_a_hold_validator = bv.Void() -EventTypeArg._legal_holds_add_members_validator = bv.Void() -EventTypeArg._legal_holds_change_hold_details_validator = bv.Void() -EventTypeArg._legal_holds_change_hold_name_validator = bv.Void() -EventTypeArg._legal_holds_export_a_hold_validator = bv.Void() -EventTypeArg._legal_holds_export_cancelled_validator = bv.Void() -EventTypeArg._legal_holds_export_downloaded_validator = bv.Void() -EventTypeArg._legal_holds_export_removed_validator = bv.Void() -EventTypeArg._legal_holds_release_a_hold_validator = bv.Void() -EventTypeArg._legal_holds_remove_members_validator = bv.Void() -EventTypeArg._legal_holds_report_a_hold_validator = bv.Void() EventTypeArg._account_lock_or_unlocked_validator = bv.Void() EventTypeArg._emm_error_validator = bv.Void() EventTypeArg._guest_admin_signed_in_via_trusted_teams_validator = bv.Void() @@ -98240,6 +100844,8 @@ def __repr__(self): EventTypeArg._shared_link_share_validator = bv.Void() EventTypeArg._shared_link_view_validator = bv.Void() EventTypeArg._shared_note_opened_validator = bv.Void() +EventTypeArg._shmodel_disable_downloads_validator = bv.Void() +EventTypeArg._shmodel_enable_downloads_validator = bv.Void() EventTypeArg._shmodel_group_share_validator = bv.Void() EventTypeArg._showcase_access_granted_validator = bv.Void() EventTypeArg._showcase_add_member_validator = bv.Void() @@ -98409,6 +101015,23 @@ def __repr__(self): 'file_resolve_comment': EventTypeArg._file_resolve_comment_validator, 'file_unlike_comment': EventTypeArg._file_unlike_comment_validator, 'file_unresolve_comment': EventTypeArg._file_unresolve_comment_validator, + 'governance_policy_add_folders': EventTypeArg._governance_policy_add_folders_validator, + 'governance_policy_create': EventTypeArg._governance_policy_create_validator, + 'governance_policy_delete': EventTypeArg._governance_policy_delete_validator, + 'governance_policy_edit_details': EventTypeArg._governance_policy_edit_details_validator, + 'governance_policy_edit_duration': EventTypeArg._governance_policy_edit_duration_validator, + 'governance_policy_remove_folders': EventTypeArg._governance_policy_remove_folders_validator, + 'legal_holds_activate_a_hold': EventTypeArg._legal_holds_activate_a_hold_validator, + 'legal_holds_add_members': EventTypeArg._legal_holds_add_members_validator, + 'legal_holds_change_hold_details': EventTypeArg._legal_holds_change_hold_details_validator, + 'legal_holds_change_hold_name': EventTypeArg._legal_holds_change_hold_name_validator, + 'legal_holds_export_a_hold': EventTypeArg._legal_holds_export_a_hold_validator, + 'legal_holds_export_cancelled': EventTypeArg._legal_holds_export_cancelled_validator, + 'legal_holds_export_downloaded': EventTypeArg._legal_holds_export_downloaded_validator, + 'legal_holds_export_removed': EventTypeArg._legal_holds_export_removed_validator, + 'legal_holds_release_a_hold': EventTypeArg._legal_holds_release_a_hold_validator, + 'legal_holds_remove_members': EventTypeArg._legal_holds_remove_members_validator, + 'legal_holds_report_a_hold': EventTypeArg._legal_holds_report_a_hold_validator, 'device_change_ip_desktop': EventTypeArg._device_change_ip_desktop_validator, 'device_change_ip_mobile': EventTypeArg._device_change_ip_mobile_validator, 'device_change_ip_web': EventTypeArg._device_change_ip_web_validator, @@ -98418,6 +101041,7 @@ def __repr__(self): 'device_link_success': EventTypeArg._device_link_success_validator, 'device_management_disabled': EventTypeArg._device_management_disabled_validator, 'device_management_enabled': EventTypeArg._device_management_enabled_validator, + 'device_sync_backup_status_changed': EventTypeArg._device_sync_backup_status_changed_validator, 'device_unlink': EventTypeArg._device_unlink_validator, 'emm_refresh_auth_token': EventTypeArg._emm_refresh_auth_token_validator, 'account_capture_change_availability': EventTypeArg._account_capture_change_availability_validator, @@ -98473,17 +101097,6 @@ def __repr__(self): 'group_remove_external_id': EventTypeArg._group_remove_external_id_validator, 'group_remove_member': EventTypeArg._group_remove_member_validator, 'group_rename': EventTypeArg._group_rename_validator, - 'legal_holds_activate_a_hold': EventTypeArg._legal_holds_activate_a_hold_validator, - 'legal_holds_add_members': EventTypeArg._legal_holds_add_members_validator, - 'legal_holds_change_hold_details': EventTypeArg._legal_holds_change_hold_details_validator, - 'legal_holds_change_hold_name': EventTypeArg._legal_holds_change_hold_name_validator, - 'legal_holds_export_a_hold': EventTypeArg._legal_holds_export_a_hold_validator, - 'legal_holds_export_cancelled': EventTypeArg._legal_holds_export_cancelled_validator, - 'legal_holds_export_downloaded': EventTypeArg._legal_holds_export_downloaded_validator, - 'legal_holds_export_removed': EventTypeArg._legal_holds_export_removed_validator, - 'legal_holds_release_a_hold': EventTypeArg._legal_holds_release_a_hold_validator, - 'legal_holds_remove_members': EventTypeArg._legal_holds_remove_members_validator, - 'legal_holds_report_a_hold': EventTypeArg._legal_holds_report_a_hold_validator, 'account_lock_or_unlocked': EventTypeArg._account_lock_or_unlocked_validator, 'emm_error': EventTypeArg._emm_error_validator, 'guest_admin_signed_in_via_trusted_teams': EventTypeArg._guest_admin_signed_in_via_trusted_teams_validator, @@ -98670,6 +101283,8 @@ def __repr__(self): 'shared_link_share': EventTypeArg._shared_link_share_validator, 'shared_link_view': EventTypeArg._shared_link_view_validator, 'shared_note_opened': EventTypeArg._shared_note_opened_validator, + 'shmodel_disable_downloads': EventTypeArg._shmodel_disable_downloads_validator, + 'shmodel_enable_downloads': EventTypeArg._shmodel_enable_downloads_validator, 'shmodel_group_share': EventTypeArg._shmodel_group_share_validator, 'showcase_access_granted': EventTypeArg._showcase_access_granted_validator, 'showcase_add_member': EventTypeArg._showcase_add_member_validator, @@ -98840,6 +101455,23 @@ def __repr__(self): EventTypeArg.file_resolve_comment = EventTypeArg('file_resolve_comment') EventTypeArg.file_unlike_comment = EventTypeArg('file_unlike_comment') EventTypeArg.file_unresolve_comment = EventTypeArg('file_unresolve_comment') +EventTypeArg.governance_policy_add_folders = EventTypeArg('governance_policy_add_folders') +EventTypeArg.governance_policy_create = EventTypeArg('governance_policy_create') +EventTypeArg.governance_policy_delete = EventTypeArg('governance_policy_delete') +EventTypeArg.governance_policy_edit_details = EventTypeArg('governance_policy_edit_details') +EventTypeArg.governance_policy_edit_duration = EventTypeArg('governance_policy_edit_duration') +EventTypeArg.governance_policy_remove_folders = EventTypeArg('governance_policy_remove_folders') +EventTypeArg.legal_holds_activate_a_hold = EventTypeArg('legal_holds_activate_a_hold') +EventTypeArg.legal_holds_add_members = EventTypeArg('legal_holds_add_members') +EventTypeArg.legal_holds_change_hold_details = EventTypeArg('legal_holds_change_hold_details') +EventTypeArg.legal_holds_change_hold_name = EventTypeArg('legal_holds_change_hold_name') +EventTypeArg.legal_holds_export_a_hold = EventTypeArg('legal_holds_export_a_hold') +EventTypeArg.legal_holds_export_cancelled = EventTypeArg('legal_holds_export_cancelled') +EventTypeArg.legal_holds_export_downloaded = EventTypeArg('legal_holds_export_downloaded') +EventTypeArg.legal_holds_export_removed = EventTypeArg('legal_holds_export_removed') +EventTypeArg.legal_holds_release_a_hold = EventTypeArg('legal_holds_release_a_hold') +EventTypeArg.legal_holds_remove_members = EventTypeArg('legal_holds_remove_members') +EventTypeArg.legal_holds_report_a_hold = EventTypeArg('legal_holds_report_a_hold') EventTypeArg.device_change_ip_desktop = EventTypeArg('device_change_ip_desktop') EventTypeArg.device_change_ip_mobile = EventTypeArg('device_change_ip_mobile') EventTypeArg.device_change_ip_web = EventTypeArg('device_change_ip_web') @@ -98849,6 +101481,7 @@ def __repr__(self): EventTypeArg.device_link_success = EventTypeArg('device_link_success') EventTypeArg.device_management_disabled = EventTypeArg('device_management_disabled') EventTypeArg.device_management_enabled = EventTypeArg('device_management_enabled') +EventTypeArg.device_sync_backup_status_changed = EventTypeArg('device_sync_backup_status_changed') EventTypeArg.device_unlink = EventTypeArg('device_unlink') EventTypeArg.emm_refresh_auth_token = EventTypeArg('emm_refresh_auth_token') EventTypeArg.account_capture_change_availability = EventTypeArg('account_capture_change_availability') @@ -98904,17 +101537,6 @@ def __repr__(self): EventTypeArg.group_remove_external_id = EventTypeArg('group_remove_external_id') EventTypeArg.group_remove_member = EventTypeArg('group_remove_member') EventTypeArg.group_rename = EventTypeArg('group_rename') -EventTypeArg.legal_holds_activate_a_hold = EventTypeArg('legal_holds_activate_a_hold') -EventTypeArg.legal_holds_add_members = EventTypeArg('legal_holds_add_members') -EventTypeArg.legal_holds_change_hold_details = EventTypeArg('legal_holds_change_hold_details') -EventTypeArg.legal_holds_change_hold_name = EventTypeArg('legal_holds_change_hold_name') -EventTypeArg.legal_holds_export_a_hold = EventTypeArg('legal_holds_export_a_hold') -EventTypeArg.legal_holds_export_cancelled = EventTypeArg('legal_holds_export_cancelled') -EventTypeArg.legal_holds_export_downloaded = EventTypeArg('legal_holds_export_downloaded') -EventTypeArg.legal_holds_export_removed = EventTypeArg('legal_holds_export_removed') -EventTypeArg.legal_holds_release_a_hold = EventTypeArg('legal_holds_release_a_hold') -EventTypeArg.legal_holds_remove_members = EventTypeArg('legal_holds_remove_members') -EventTypeArg.legal_holds_report_a_hold = EventTypeArg('legal_holds_report_a_hold') EventTypeArg.account_lock_or_unlocked = EventTypeArg('account_lock_or_unlocked') EventTypeArg.emm_error = EventTypeArg('emm_error') EventTypeArg.guest_admin_signed_in_via_trusted_teams = EventTypeArg('guest_admin_signed_in_via_trusted_teams') @@ -99101,6 +101723,8 @@ def __repr__(self): EventTypeArg.shared_link_share = EventTypeArg('shared_link_share') EventTypeArg.shared_link_view = EventTypeArg('shared_link_view') EventTypeArg.shared_note_opened = EventTypeArg('shared_note_opened') +EventTypeArg.shmodel_disable_downloads = EventTypeArg('shmodel_disable_downloads') +EventTypeArg.shmodel_enable_downloads = EventTypeArg('shmodel_enable_downloads') EventTypeArg.shmodel_group_share = EventTypeArg('shmodel_group_share') EventTypeArg.showcase_access_granted = EventTypeArg('showcase_access_granted') EventTypeArg.showcase_add_member = EventTypeArg('showcase_add_member') @@ -99342,53 +101966,53 @@ def __repr__(self): ('technical_error_message', FailureDetailsLogInfo._technical_error_message_validator), ] -FedAdminRole._not_enterprise_admin_validator = bv.Void() FedAdminRole._enterprise_admin_validator = bv.Void() +FedAdminRole._not_enterprise_admin_validator = bv.Void() FedAdminRole._other_validator = bv.Void() FedAdminRole._tagmap = { - 'not_enterprise_admin': FedAdminRole._not_enterprise_admin_validator, 'enterprise_admin': FedAdminRole._enterprise_admin_validator, + 'not_enterprise_admin': FedAdminRole._not_enterprise_admin_validator, 'other': FedAdminRole._other_validator, } -FedAdminRole.not_enterprise_admin = FedAdminRole('not_enterprise_admin') FedAdminRole.enterprise_admin = FedAdminRole('enterprise_admin') +FedAdminRole.not_enterprise_admin = FedAdminRole('not_enterprise_admin') FedAdminRole.other = FedAdminRole('other') -FedExtraDetails._team_validator = TeamDetails_validator FedExtraDetails._organization_validator = OrganizationDetails_validator +FedExtraDetails._team_validator = TeamDetails_validator FedExtraDetails._other_validator = bv.Void() FedExtraDetails._tagmap = { - 'team': FedExtraDetails._team_validator, 'organization': FedExtraDetails._organization_validator, + 'team': FedExtraDetails._team_validator, 'other': FedExtraDetails._other_validator, } FedExtraDetails.other = FedExtraDetails('other') -FedHandshakeAction._invited_validator = bv.Void() FedHandshakeAction._accepted_invite_validator = bv.Void() -FedHandshakeAction._rejected_invite_validator = bv.Void() FedHandshakeAction._canceled_invite_validator = bv.Void() -FedHandshakeAction._removed_team_validator = bv.Void() FedHandshakeAction._invite_expired_validator = bv.Void() +FedHandshakeAction._invited_validator = bv.Void() +FedHandshakeAction._rejected_invite_validator = bv.Void() +FedHandshakeAction._removed_team_validator = bv.Void() FedHandshakeAction._other_validator = bv.Void() FedHandshakeAction._tagmap = { - 'invited': FedHandshakeAction._invited_validator, 'accepted_invite': FedHandshakeAction._accepted_invite_validator, - 'rejected_invite': FedHandshakeAction._rejected_invite_validator, 'canceled_invite': FedHandshakeAction._canceled_invite_validator, - 'removed_team': FedHandshakeAction._removed_team_validator, 'invite_expired': FedHandshakeAction._invite_expired_validator, + 'invited': FedHandshakeAction._invited_validator, + 'rejected_invite': FedHandshakeAction._rejected_invite_validator, + 'removed_team': FedHandshakeAction._removed_team_validator, 'other': FedHandshakeAction._other_validator, } -FedHandshakeAction.invited = FedHandshakeAction('invited') FedHandshakeAction.accepted_invite = FedHandshakeAction('accepted_invite') -FedHandshakeAction.rejected_invite = FedHandshakeAction('rejected_invite') FedHandshakeAction.canceled_invite = FedHandshakeAction('canceled_invite') -FedHandshakeAction.removed_team = FedHandshakeAction('removed_team') FedHandshakeAction.invite_expired = FedHandshakeAction('invite_expired') +FedHandshakeAction.invited = FedHandshakeAction('invited') +FedHandshakeAction.rejected_invite = FedHandshakeAction('rejected_invite') +FedHandshakeAction.removed_team = FedHandshakeAction('removed_team') FedHandshakeAction.other = FedHandshakeAction('other') FederationStatusChangeAdditionalInfo._connected_team_name_validator = ConnectedTeamName_validator @@ -100047,6 +102671,141 @@ def __repr__(self): GoogleSsoPolicy.enabled = GoogleSsoPolicy('enabled') GoogleSsoPolicy.other = GoogleSsoPolicy('other') +GovernancePolicyAddFoldersDetails._governance_policy_id_validator = bv.String() +GovernancePolicyAddFoldersDetails._name_validator = bv.String() +GovernancePolicyAddFoldersDetails._policy_type_validator = bv.Nullable(PolicyType_validator) +GovernancePolicyAddFoldersDetails._folders_validator = bv.Nullable(bv.List(bv.String())) +GovernancePolicyAddFoldersDetails._all_field_names_ = set([ + 'governance_policy_id', + 'name', + 'policy_type', + 'folders', +]) +GovernancePolicyAddFoldersDetails._all_fields_ = [ + ('governance_policy_id', GovernancePolicyAddFoldersDetails._governance_policy_id_validator), + ('name', GovernancePolicyAddFoldersDetails._name_validator), + ('policy_type', GovernancePolicyAddFoldersDetails._policy_type_validator), + ('folders', GovernancePolicyAddFoldersDetails._folders_validator), +] + +GovernancePolicyAddFoldersType._description_validator = bv.String() +GovernancePolicyAddFoldersType._all_field_names_ = set(['description']) +GovernancePolicyAddFoldersType._all_fields_ = [('description', GovernancePolicyAddFoldersType._description_validator)] + +GovernancePolicyCreateDetails._governance_policy_id_validator = bv.String() +GovernancePolicyCreateDetails._name_validator = bv.String() +GovernancePolicyCreateDetails._policy_type_validator = bv.Nullable(PolicyType_validator) +GovernancePolicyCreateDetails._duration_validator = DurationLogInfo_validator +GovernancePolicyCreateDetails._folders_validator = bv.Nullable(bv.List(bv.String())) +GovernancePolicyCreateDetails._all_field_names_ = set([ + 'governance_policy_id', + 'name', + 'policy_type', + 'duration', + 'folders', +]) +GovernancePolicyCreateDetails._all_fields_ = [ + ('governance_policy_id', GovernancePolicyCreateDetails._governance_policy_id_validator), + ('name', GovernancePolicyCreateDetails._name_validator), + ('policy_type', GovernancePolicyCreateDetails._policy_type_validator), + ('duration', GovernancePolicyCreateDetails._duration_validator), + ('folders', GovernancePolicyCreateDetails._folders_validator), +] + +GovernancePolicyCreateType._description_validator = bv.String() +GovernancePolicyCreateType._all_field_names_ = set(['description']) +GovernancePolicyCreateType._all_fields_ = [('description', GovernancePolicyCreateType._description_validator)] + +GovernancePolicyDeleteDetails._governance_policy_id_validator = bv.String() +GovernancePolicyDeleteDetails._name_validator = bv.String() +GovernancePolicyDeleteDetails._policy_type_validator = bv.Nullable(PolicyType_validator) +GovernancePolicyDeleteDetails._all_field_names_ = set([ + 'governance_policy_id', + 'name', + 'policy_type', +]) +GovernancePolicyDeleteDetails._all_fields_ = [ + ('governance_policy_id', GovernancePolicyDeleteDetails._governance_policy_id_validator), + ('name', GovernancePolicyDeleteDetails._name_validator), + ('policy_type', GovernancePolicyDeleteDetails._policy_type_validator), +] + +GovernancePolicyDeleteType._description_validator = bv.String() +GovernancePolicyDeleteType._all_field_names_ = set(['description']) +GovernancePolicyDeleteType._all_fields_ = [('description', GovernancePolicyDeleteType._description_validator)] + +GovernancePolicyEditDetailsDetails._governance_policy_id_validator = bv.String() +GovernancePolicyEditDetailsDetails._name_validator = bv.String() +GovernancePolicyEditDetailsDetails._policy_type_validator = bv.Nullable(PolicyType_validator) +GovernancePolicyEditDetailsDetails._attribute_validator = bv.String() +GovernancePolicyEditDetailsDetails._previous_value_validator = bv.String() +GovernancePolicyEditDetailsDetails._new_value_validator = bv.String() +GovernancePolicyEditDetailsDetails._all_field_names_ = set([ + 'governance_policy_id', + 'name', + 'policy_type', + 'attribute', + 'previous_value', + 'new_value', +]) +GovernancePolicyEditDetailsDetails._all_fields_ = [ + ('governance_policy_id', GovernancePolicyEditDetailsDetails._governance_policy_id_validator), + ('name', GovernancePolicyEditDetailsDetails._name_validator), + ('policy_type', GovernancePolicyEditDetailsDetails._policy_type_validator), + ('attribute', GovernancePolicyEditDetailsDetails._attribute_validator), + ('previous_value', GovernancePolicyEditDetailsDetails._previous_value_validator), + ('new_value', GovernancePolicyEditDetailsDetails._new_value_validator), +] + +GovernancePolicyEditDetailsType._description_validator = bv.String() +GovernancePolicyEditDetailsType._all_field_names_ = set(['description']) +GovernancePolicyEditDetailsType._all_fields_ = [('description', GovernancePolicyEditDetailsType._description_validator)] + +GovernancePolicyEditDurationDetails._governance_policy_id_validator = bv.String() +GovernancePolicyEditDurationDetails._name_validator = bv.String() +GovernancePolicyEditDurationDetails._policy_type_validator = bv.Nullable(PolicyType_validator) +GovernancePolicyEditDurationDetails._previous_value_validator = DurationLogInfo_validator +GovernancePolicyEditDurationDetails._new_value_validator = DurationLogInfo_validator +GovernancePolicyEditDurationDetails._all_field_names_ = set([ + 'governance_policy_id', + 'name', + 'policy_type', + 'previous_value', + 'new_value', +]) +GovernancePolicyEditDurationDetails._all_fields_ = [ + ('governance_policy_id', GovernancePolicyEditDurationDetails._governance_policy_id_validator), + ('name', GovernancePolicyEditDurationDetails._name_validator), + ('policy_type', GovernancePolicyEditDurationDetails._policy_type_validator), + ('previous_value', GovernancePolicyEditDurationDetails._previous_value_validator), + ('new_value', GovernancePolicyEditDurationDetails._new_value_validator), +] + +GovernancePolicyEditDurationType._description_validator = bv.String() +GovernancePolicyEditDurationType._all_field_names_ = set(['description']) +GovernancePolicyEditDurationType._all_fields_ = [('description', GovernancePolicyEditDurationType._description_validator)] + +GovernancePolicyRemoveFoldersDetails._governance_policy_id_validator = bv.String() +GovernancePolicyRemoveFoldersDetails._name_validator = bv.String() +GovernancePolicyRemoveFoldersDetails._policy_type_validator = bv.Nullable(PolicyType_validator) +GovernancePolicyRemoveFoldersDetails._folders_validator = bv.Nullable(bv.List(bv.String())) +GovernancePolicyRemoveFoldersDetails._all_field_names_ = set([ + 'governance_policy_id', + 'name', + 'policy_type', + 'folders', +]) +GovernancePolicyRemoveFoldersDetails._all_fields_ = [ + ('governance_policy_id', GovernancePolicyRemoveFoldersDetails._governance_policy_id_validator), + ('name', GovernancePolicyRemoveFoldersDetails._name_validator), + ('policy_type', GovernancePolicyRemoveFoldersDetails._policy_type_validator), + ('folders', GovernancePolicyRemoveFoldersDetails._folders_validator), +] + +GovernancePolicyRemoveFoldersType._description_validator = bv.String() +GovernancePolicyRemoveFoldersType._all_field_names_ = set(['description']) +GovernancePolicyRemoveFoldersType._all_fields_ = [('description', GovernancePolicyRemoveFoldersType._description_validator)] + GroupAddExternalIdDetails._new_value_validator = team_common.GroupExternalId_validator GroupAddExternalIdDetails._all_field_names_ = set(['new_value']) GroupAddExternalIdDetails._all_fields_ = [('new_value', GroupAddExternalIdDetails._new_value_validator)] @@ -100342,19 +103101,22 @@ def __repr__(self): IntegrationPolicyChangedType._all_field_names_ = set(['description']) IntegrationPolicyChangedType._all_fields_ = [('description', IntegrationPolicyChangedType._description_validator)] -InviteMethod._invite_link_validator = bv.Void() InviteMethod._auto_approve_validator = bv.Void() +InviteMethod._invite_link_validator = bv.Void() +InviteMethod._member_invite_validator = bv.Void() InviteMethod._moved_from_another_team_validator = bv.Void() InviteMethod._other_validator = bv.Void() InviteMethod._tagmap = { - 'invite_link': InviteMethod._invite_link_validator, 'auto_approve': InviteMethod._auto_approve_validator, + 'invite_link': InviteMethod._invite_link_validator, + 'member_invite': InviteMethod._member_invite_validator, 'moved_from_another_team': InviteMethod._moved_from_another_team_validator, 'other': InviteMethod._other_validator, } -InviteMethod.invite_link = InviteMethod('invite_link') InviteMethod.auto_approve = InviteMethod('auto_approve') +InviteMethod.invite_link = InviteMethod('invite_link') +InviteMethod.member_invite = InviteMethod('member_invite') InviteMethod.moved_from_another_team = InviteMethod('moved_from_another_team') InviteMethod.other = InviteMethod('other') @@ -100622,16 +103384,16 @@ def __repr__(self): LegalHoldsReportAHoldType._all_field_names_ = set(['description']) LegalHoldsReportAHoldType._all_fields_ = [('description', LegalHoldsReportAHoldType._description_validator)] -LinkedDeviceLogInfo._mobile_device_session_validator = MobileDeviceSessionLogInfo_validator LinkedDeviceLogInfo._desktop_device_session_validator = DesktopDeviceSessionLogInfo_validator -LinkedDeviceLogInfo._web_device_session_validator = WebDeviceSessionLogInfo_validator LinkedDeviceLogInfo._legacy_device_session_validator = LegacyDeviceSessionLogInfo_validator +LinkedDeviceLogInfo._mobile_device_session_validator = MobileDeviceSessionLogInfo_validator +LinkedDeviceLogInfo._web_device_session_validator = WebDeviceSessionLogInfo_validator LinkedDeviceLogInfo._other_validator = bv.Void() LinkedDeviceLogInfo._tagmap = { - 'mobile_device_session': LinkedDeviceLogInfo._mobile_device_session_validator, 'desktop_device_session': LinkedDeviceLogInfo._desktop_device_session_validator, - 'web_device_session': LinkedDeviceLogInfo._web_device_session_validator, 'legacy_device_session': LinkedDeviceLogInfo._legacy_device_session_validator, + 'mobile_device_session': LinkedDeviceLogInfo._mobile_device_session_validator, + 'web_device_session': LinkedDeviceLogInfo._web_device_session_validator, 'other': LinkedDeviceLogInfo._other_validator, } @@ -100668,35 +103430,35 @@ def __repr__(self): LoginFailType._all_field_names_ = set(['description']) LoginFailType._all_fields_ = [('description', LoginFailType._description_validator)] +LoginMethod._apple_oauth_validator = bv.Void() +LoginMethod._first_party_token_exchange_validator = bv.Void() +LoginMethod._google_oauth_validator = bv.Void() LoginMethod._password_validator = bv.Void() -LoginMethod._two_factor_authentication_validator = bv.Void() +LoginMethod._qr_code_validator = bv.Void() LoginMethod._saml_validator = bv.Void() -LoginMethod._google_oauth_validator = bv.Void() +LoginMethod._two_factor_authentication_validator = bv.Void() LoginMethod._web_session_validator = bv.Void() -LoginMethod._qr_code_validator = bv.Void() -LoginMethod._apple_oauth_validator = bv.Void() -LoginMethod._first_party_token_exchange_validator = bv.Void() LoginMethod._other_validator = bv.Void() LoginMethod._tagmap = { + 'apple_oauth': LoginMethod._apple_oauth_validator, + 'first_party_token_exchange': LoginMethod._first_party_token_exchange_validator, + 'google_oauth': LoginMethod._google_oauth_validator, 'password': LoginMethod._password_validator, - 'two_factor_authentication': LoginMethod._two_factor_authentication_validator, + 'qr_code': LoginMethod._qr_code_validator, 'saml': LoginMethod._saml_validator, - 'google_oauth': LoginMethod._google_oauth_validator, + 'two_factor_authentication': LoginMethod._two_factor_authentication_validator, 'web_session': LoginMethod._web_session_validator, - 'qr_code': LoginMethod._qr_code_validator, - 'apple_oauth': LoginMethod._apple_oauth_validator, - 'first_party_token_exchange': LoginMethod._first_party_token_exchange_validator, 'other': LoginMethod._other_validator, } +LoginMethod.apple_oauth = LoginMethod('apple_oauth') +LoginMethod.first_party_token_exchange = LoginMethod('first_party_token_exchange') +LoginMethod.google_oauth = LoginMethod('google_oauth') LoginMethod.password = LoginMethod('password') -LoginMethod.two_factor_authentication = LoginMethod('two_factor_authentication') +LoginMethod.qr_code = LoginMethod('qr_code') LoginMethod.saml = LoginMethod('saml') -LoginMethod.google_oauth = LoginMethod('google_oauth') +LoginMethod.two_factor_authentication = LoginMethod('two_factor_authentication') LoginMethod.web_session = LoginMethod('web_session') -LoginMethod.qr_code = LoginMethod('qr_code') -LoginMethod.apple_oauth = LoginMethod('apple_oauth') -LoginMethod.first_party_token_exchange = LoginMethod('first_party_token_exchange') LoginMethod.other = LoginMethod('other') LoginSuccessDetails._is_emm_managed_validator = bv.Nullable(bv.Boolean()) @@ -100714,8 +103476,9 @@ def __repr__(self): LoginSuccessType._all_field_names_ = set(['description']) LoginSuccessType._all_fields_ = [('description', LoginSuccessType._description_validator)] -LogoutDetails._all_field_names_ = set([]) -LogoutDetails._all_fields_ = [] +LogoutDetails._login_id_validator = bv.Nullable(bv.String()) +LogoutDetails._all_field_names_ = set(['login_id']) +LogoutDetails._all_fields_ = [('login_id', LogoutDetails._login_id_validator)] LogoutType._description_validator = bv.String() LogoutType._all_field_names_ = set(['description']) @@ -100858,21 +103621,21 @@ def __repr__(self): MemberPermanentlyDeleteAccountContentsType._all_fields_ = [('description', MemberPermanentlyDeleteAccountContentsType._description_validator)] MemberRemoveActionType._delete_validator = bv.Void() -MemberRemoveActionType._offboard_validator = bv.Void() MemberRemoveActionType._leave_validator = bv.Void() +MemberRemoveActionType._offboard_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': MemberRemoveActionType._offboard_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 = MemberRemoveActionType('offboard') MemberRemoveActionType.offboard_and_retain_team_folders = MemberRemoveActionType('offboard_and_retain_team_folders') MemberRemoveActionType.other = MemberRemoveActionType('other') @@ -100916,19 +103679,19 @@ def __repr__(self): MemberRequestsPolicy.other = MemberRequestsPolicy('other') MemberSendInvitePolicy._disabled_validator = bv.Void() -MemberSendInvitePolicy._specific_members_validator = bv.Void() MemberSendInvitePolicy._everyone_validator = bv.Void() +MemberSendInvitePolicy._specific_members_validator = bv.Void() MemberSendInvitePolicy._other_validator = bv.Void() MemberSendInvitePolicy._tagmap = { 'disabled': MemberSendInvitePolicy._disabled_validator, - 'specific_members': MemberSendInvitePolicy._specific_members_validator, 'everyone': MemberSendInvitePolicy._everyone_validator, + 'specific_members': MemberSendInvitePolicy._specific_members_validator, 'other': MemberSendInvitePolicy._other_validator, } MemberSendInvitePolicy.disabled = MemberSendInvitePolicy('disabled') -MemberSendInvitePolicy.specific_members = MemberSendInvitePolicy('specific_members') MemberSendInvitePolicy.everyone = MemberSendInvitePolicy('everyone') +MemberSendInvitePolicy.specific_members = MemberSendInvitePolicy('specific_members') MemberSendInvitePolicy.other = MemberSendInvitePolicy('other') MemberSendInvitePolicyChangedDetails._new_value_validator = MemberSendInvitePolicy_validator @@ -101042,29 +103805,29 @@ def __repr__(self): MemberSpaceLimitsRemoveExceptionType._all_field_names_ = set(['description']) MemberSpaceLimitsRemoveExceptionType._all_fields_ = [('description', MemberSpaceLimitsRemoveExceptionType._description_validator)] -MemberStatus._not_joined_validator = bv.Void() -MemberStatus._invited_validator = bv.Void() MemberStatus._active_validator = bv.Void() -MemberStatus._suspended_validator = bv.Void() -MemberStatus._removed_validator = bv.Void() +MemberStatus._invited_validator = bv.Void() MemberStatus._moved_to_another_team_validator = bv.Void() +MemberStatus._not_joined_validator = bv.Void() +MemberStatus._removed_validator = bv.Void() +MemberStatus._suspended_validator = bv.Void() MemberStatus._other_validator = bv.Void() MemberStatus._tagmap = { - 'not_joined': MemberStatus._not_joined_validator, - 'invited': MemberStatus._invited_validator, 'active': MemberStatus._active_validator, - 'suspended': MemberStatus._suspended_validator, - 'removed': MemberStatus._removed_validator, + 'invited': MemberStatus._invited_validator, 'moved_to_another_team': MemberStatus._moved_to_another_team_validator, + 'not_joined': MemberStatus._not_joined_validator, + 'removed': MemberStatus._removed_validator, + 'suspended': MemberStatus._suspended_validator, 'other': MemberStatus._other_validator, } -MemberStatus.not_joined = MemberStatus('not_joined') -MemberStatus.invited = MemberStatus('invited') MemberStatus.active = MemberStatus('active') -MemberStatus.suspended = MemberStatus('suspended') -MemberStatus.removed = MemberStatus('removed') +MemberStatus.invited = MemberStatus('invited') MemberStatus.moved_to_another_team = MemberStatus('moved_to_another_team') +MemberStatus.not_joined = MemberStatus('not_joined') +MemberStatus.removed = MemberStatus('removed') +MemberStatus.suspended = MemberStatus('suspended') MemberStatus.other = MemberStatus('other') MemberSuggestDetails._suggested_members_validator = bv.List(EmailAddress_validator) @@ -101404,20 +104167,20 @@ def __repr__(self): OutdatedLinkViewReportFailedType._all_field_names_ = set(['description']) OutdatedLinkViewReportFailedType._all_fields_ = [('description', OutdatedLinkViewReportFailedType._description_validator)] -PaperAccessType._viewer_validator = bv.Void() PaperAccessType._commenter_validator = bv.Void() PaperAccessType._editor_validator = bv.Void() +PaperAccessType._viewer_validator = bv.Void() PaperAccessType._other_validator = bv.Void() PaperAccessType._tagmap = { - 'viewer': PaperAccessType._viewer_validator, 'commenter': PaperAccessType._commenter_validator, 'editor': PaperAccessType._editor_validator, + 'viewer': PaperAccessType._viewer_validator, 'other': PaperAccessType._other_validator, } -PaperAccessType.viewer = PaperAccessType('viewer') PaperAccessType.commenter = PaperAccessType('commenter') PaperAccessType.editor = PaperAccessType('editor') +PaperAccessType.viewer = PaperAccessType('viewer') PaperAccessType.other = PaperAccessType('other') PaperAdminExportStartDetails._all_field_names_ = set([]) @@ -102054,31 +104817,31 @@ def __repr__(self): PaperPublishedLinkViewType._all_field_names_ = set(['description']) PaperPublishedLinkViewType._all_fields_ = [('description', PaperPublishedLinkViewType._description_validator)] -ParticipantLogInfo._user_validator = UserLogInfo_validator ParticipantLogInfo._group_validator = GroupLogInfo_validator +ParticipantLogInfo._user_validator = UserLogInfo_validator ParticipantLogInfo._other_validator = bv.Void() ParticipantLogInfo._tagmap = { - 'user': ParticipantLogInfo._user_validator, 'group': ParticipantLogInfo._group_validator, + 'user': ParticipantLogInfo._user_validator, 'other': ParticipantLogInfo._other_validator, } ParticipantLogInfo.other = ParticipantLogInfo('other') -PassPolicy._enabled_validator = bv.Void() PassPolicy._allow_validator = bv.Void() PassPolicy._disabled_validator = bv.Void() +PassPolicy._enabled_validator = bv.Void() PassPolicy._other_validator = bv.Void() PassPolicy._tagmap = { - 'enabled': PassPolicy._enabled_validator, 'allow': PassPolicy._allow_validator, 'disabled': PassPolicy._disabled_validator, + 'enabled': PassPolicy._enabled_validator, 'other': PassPolicy._other_validator, } -PassPolicy.enabled = PassPolicy('enabled') PassPolicy.allow = PassPolicy('allow') PassPolicy.disabled = PassPolicy('disabled') +PassPolicy.enabled = PassPolicy('enabled') PassPolicy.other = PassPolicy('other') PasswordChangeDetails._all_field_names_ = set([]) @@ -102170,6 +104933,16 @@ def __repr__(self): PlacementRestriction.none = PlacementRestriction('none') PlacementRestriction.other = PlacementRestriction('other') +PolicyType._retention_validator = bv.Void() +PolicyType._other_validator = bv.Void() +PolicyType._tagmap = { + 'retention': PolicyType._retention_validator, + 'other': PolicyType._other_validator, +} + +PolicyType.retention = PolicyType('retention') +PolicyType.other = PolicyType('other') + PrimaryTeamRequestAcceptedDetails._secondary_team_validator = bv.String() PrimaryTeamRequestAcceptedDetails._sent_by_validator = bv.String() PrimaryTeamRequestAcceptedDetails._all_field_names_ = set([ @@ -103022,17 +105795,17 @@ def __repr__(self): SharedFolderDeclineInvitationType._all_field_names_ = set(['description']) SharedFolderDeclineInvitationType._all_fields_ = [('description', SharedFolderDeclineInvitationType._description_validator)] -SharedFolderMembersInheritancePolicy._inherit_members_validator = bv.Void() SharedFolderMembersInheritancePolicy._dont_inherit_members_validator = bv.Void() +SharedFolderMembersInheritancePolicy._inherit_members_validator = bv.Void() SharedFolderMembersInheritancePolicy._other_validator = bv.Void() SharedFolderMembersInheritancePolicy._tagmap = { - 'inherit_members': SharedFolderMembersInheritancePolicy._inherit_members_validator, 'dont_inherit_members': SharedFolderMembersInheritancePolicy._dont_inherit_members_validator, + 'inherit_members': SharedFolderMembersInheritancePolicy._inherit_members_validator, 'other': SharedFolderMembersInheritancePolicy._other_validator, } -SharedFolderMembersInheritancePolicy.inherit_members = SharedFolderMembersInheritancePolicy('inherit_members') SharedFolderMembersInheritancePolicy.dont_inherit_members = SharedFolderMembersInheritancePolicy('dont_inherit_members') +SharedFolderMembersInheritancePolicy.inherit_members = SharedFolderMembersInheritancePolicy('inherit_members') SharedFolderMembersInheritancePolicy.other = SharedFolderMembersInheritancePolicy('other') SharedFolderMountDetails._all_field_names_ = set([]) @@ -103471,6 +106244,22 @@ def __repr__(self): SharingMemberPolicy.forbid_with_exclusions = SharingMemberPolicy('forbid_with_exclusions') SharingMemberPolicy.other = SharingMemberPolicy('other') +ShmodelDisableDownloadsDetails._shared_link_owner_validator = bv.Nullable(UserLogInfo_validator) +ShmodelDisableDownloadsDetails._all_field_names_ = set(['shared_link_owner']) +ShmodelDisableDownloadsDetails._all_fields_ = [('shared_link_owner', ShmodelDisableDownloadsDetails._shared_link_owner_validator)] + +ShmodelDisableDownloadsType._description_validator = bv.String() +ShmodelDisableDownloadsType._all_field_names_ = set(['description']) +ShmodelDisableDownloadsType._all_fields_ = [('description', ShmodelDisableDownloadsType._description_validator)] + +ShmodelEnableDownloadsDetails._shared_link_owner_validator = bv.Nullable(UserLogInfo_validator) +ShmodelEnableDownloadsDetails._all_field_names_ = set(['shared_link_owner']) +ShmodelEnableDownloadsDetails._all_fields_ = [('shared_link_owner', ShmodelEnableDownloadsDetails._shared_link_owner_validator)] + +ShmodelEnableDownloadsType._description_validator = bv.String() +ShmodelEnableDownloadsType._all_field_names_ = set(['description']) +ShmodelEnableDownloadsType._all_fields_ = [('description', ShmodelEnableDownloadsType._description_validator)] + ShmodelGroupShareDetails._all_field_names_ = set([]) ShmodelGroupShareDetails._all_fields_ = [] @@ -103917,20 +106706,20 @@ def __repr__(self): SpaceCapsType.soft = SpaceCapsType('soft') SpaceCapsType.other = SpaceCapsType('other') -SpaceLimitsStatus._within_quota_validator = bv.Void() SpaceLimitsStatus._near_quota_validator = bv.Void() SpaceLimitsStatus._over_quota_validator = bv.Void() +SpaceLimitsStatus._within_quota_validator = bv.Void() SpaceLimitsStatus._other_validator = bv.Void() SpaceLimitsStatus._tagmap = { - 'within_quota': SpaceLimitsStatus._within_quota_validator, 'near_quota': SpaceLimitsStatus._near_quota_validator, 'over_quota': SpaceLimitsStatus._over_quota_validator, + 'within_quota': SpaceLimitsStatus._within_quota_validator, 'other': SpaceLimitsStatus._other_validator, } -SpaceLimitsStatus.within_quota = SpaceLimitsStatus('within_quota') SpaceLimitsStatus.near_quota = SpaceLimitsStatus('near_quota') SpaceLimitsStatus.over_quota = SpaceLimitsStatus('over_quota') +SpaceLimitsStatus.within_quota = SpaceLimitsStatus('within_quota') SpaceLimitsStatus.other = SpaceLimitsStatus('other') SsoAddCertDetails._certificate_details_validator = Certificate_validator @@ -104214,8 +107003,15 @@ def __repr__(self): TeamFolderRenameType._all_fields_ = [('description', TeamFolderRenameType._description_validator)] TeamInviteDetails._invite_method_validator = InviteMethod_validator -TeamInviteDetails._all_field_names_ = set(['invite_method']) -TeamInviteDetails._all_fields_ = [('invite_method', TeamInviteDetails._invite_method_validator)] +TeamInviteDetails._additional_license_purchase_validator = bv.Nullable(bv.Boolean()) +TeamInviteDetails._all_field_names_ = set([ + 'invite_method', + 'additional_license_purchase', +]) +TeamInviteDetails._all_fields_ = [ + ('invite_method', TeamInviteDetails._invite_method_validator), + ('additional_license_purchase', TeamInviteDetails._additional_license_purchase_validator), +] TeamLinkedAppLogInfo._field_names_ = set([]) TeamLinkedAppLogInfo._all_field_names_ = AppLogInfo._all_field_names_.union(TeamLinkedAppLogInfo._field_names_) @@ -104242,17 +107038,17 @@ def __repr__(self): ] TeamMemberLogInfo._all_fields_ = UserLogInfo._all_fields_ + TeamMemberLogInfo._fields_ -TeamMembershipType._full_validator = bv.Void() TeamMembershipType._free_validator = bv.Void() +TeamMembershipType._full_validator = bv.Void() TeamMembershipType._other_validator = bv.Void() TeamMembershipType._tagmap = { - 'full': TeamMembershipType._full_validator, 'free': TeamMembershipType._free_validator, + 'full': TeamMembershipType._full_validator, 'other': TeamMembershipType._other_validator, } -TeamMembershipType.full = TeamMembershipType('full') TeamMembershipType.free = TeamMembershipType('free') +TeamMembershipType.full = TeamMembershipType('full') TeamMembershipType.other = TeamMembershipType('other') TeamMergeFromDetails._team_name_validator = bv.String() @@ -104696,23 +107492,23 @@ def __repr__(self): TfaChangeStatusType._all_field_names_ = set(['description']) TfaChangeStatusType._all_fields_ = [('description', TfaChangeStatusType._description_validator)] +TfaConfiguration._authenticator_validator = bv.Void() TfaConfiguration._disabled_validator = bv.Void() TfaConfiguration._enabled_validator = bv.Void() TfaConfiguration._sms_validator = bv.Void() -TfaConfiguration._authenticator_validator = bv.Void() TfaConfiguration._other_validator = bv.Void() TfaConfiguration._tagmap = { + 'authenticator': TfaConfiguration._authenticator_validator, 'disabled': TfaConfiguration._disabled_validator, 'enabled': TfaConfiguration._enabled_validator, 'sms': TfaConfiguration._sms_validator, - 'authenticator': TfaConfiguration._authenticator_validator, 'other': TfaConfiguration._other_validator, } +TfaConfiguration.authenticator = TfaConfiguration('authenticator') TfaConfiguration.disabled = TfaConfiguration('disabled') TfaConfiguration.enabled = TfaConfiguration('enabled') TfaConfiguration.sms = TfaConfiguration('sms') -TfaConfiguration.authenticator = TfaConfiguration('authenticator') TfaConfiguration.other = TfaConfiguration('other') TfaRemoveBackupPhoneDetails._all_field_names_ = set([]) @@ -104743,34 +107539,34 @@ def __repr__(self): TfaResetType._all_field_names_ = set(['description']) TfaResetType._all_fields_ = [('description', TfaResetType._description_validator)] +TimeUnit._days_validator = bv.Void() +TimeUnit._hours_validator = bv.Void() TimeUnit._milliseconds_validator = bv.Void() -TimeUnit._seconds_validator = bv.Void() TimeUnit._minutes_validator = bv.Void() -TimeUnit._hours_validator = bv.Void() -TimeUnit._days_validator = bv.Void() -TimeUnit._weeks_validator = bv.Void() TimeUnit._months_validator = bv.Void() +TimeUnit._seconds_validator = bv.Void() +TimeUnit._weeks_validator = bv.Void() TimeUnit._years_validator = bv.Void() TimeUnit._other_validator = bv.Void() TimeUnit._tagmap = { + 'days': TimeUnit._days_validator, + 'hours': TimeUnit._hours_validator, 'milliseconds': TimeUnit._milliseconds_validator, - 'seconds': TimeUnit._seconds_validator, 'minutes': TimeUnit._minutes_validator, - 'hours': TimeUnit._hours_validator, - 'days': TimeUnit._days_validator, - 'weeks': TimeUnit._weeks_validator, 'months': TimeUnit._months_validator, + 'seconds': TimeUnit._seconds_validator, + 'weeks': TimeUnit._weeks_validator, 'years': TimeUnit._years_validator, 'other': TimeUnit._other_validator, } +TimeUnit.days = TimeUnit('days') +TimeUnit.hours = TimeUnit('hours') TimeUnit.milliseconds = TimeUnit('milliseconds') -TimeUnit.seconds = TimeUnit('seconds') TimeUnit.minutes = TimeUnit('minutes') -TimeUnit.hours = TimeUnit('hours') -TimeUnit.days = TimeUnit('days') -TimeUnit.weeks = TimeUnit('weeks') TimeUnit.months = TimeUnit('months') +TimeUnit.seconds = TimeUnit('seconds') +TimeUnit.weeks = TimeUnit('weeks') TimeUnit.years = TimeUnit('years') TimeUnit.other = TimeUnit('other') @@ -104787,39 +107583,39 @@ def __repr__(self): ] TrustedNonTeamMemberLogInfo._all_fields_ = UserLogInfo._all_fields_ + TrustedNonTeamMemberLogInfo._fields_ -TrustedNonTeamMemberType._multi_instance_admin_validator = bv.Void() TrustedNonTeamMemberType._enterprise_admin_validator = bv.Void() +TrustedNonTeamMemberType._multi_instance_admin_validator = bv.Void() TrustedNonTeamMemberType._other_validator = bv.Void() TrustedNonTeamMemberType._tagmap = { - 'multi_instance_admin': TrustedNonTeamMemberType._multi_instance_admin_validator, 'enterprise_admin': TrustedNonTeamMemberType._enterprise_admin_validator, + 'multi_instance_admin': TrustedNonTeamMemberType._multi_instance_admin_validator, 'other': TrustedNonTeamMemberType._other_validator, } -TrustedNonTeamMemberType.multi_instance_admin = TrustedNonTeamMemberType('multi_instance_admin') TrustedNonTeamMemberType.enterprise_admin = TrustedNonTeamMemberType('enterprise_admin') +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._expired_validator = bv.Void() +TrustedTeamsRequestAction._invited_validator = bv.Void() +TrustedTeamsRequestAction._revoked_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, + 'expired': TrustedTeamsRequestAction._expired_validator, + 'invited': TrustedTeamsRequestAction._invited_validator, + 'revoked': TrustedTeamsRequestAction._revoked_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.expired = TrustedTeamsRequestAction('expired') +TrustedTeamsRequestAction.invited = TrustedTeamsRequestAction('invited') +TrustedTeamsRequestAction.revoked = TrustedTeamsRequestAction('revoked') TrustedTeamsRequestAction.other = TrustedTeamsRequestAction('other') TrustedTeamsRequestState._invited_validator = bv.Void() diff --git a/dropbox/team_policies.py b/dropbox/team_policies.py index 9d219d5b..060553be 100644 --- a/dropbox/team_policies.py +++ b/dropbox/team_policies.py @@ -1155,6 +1155,58 @@ def __repr__(self): SsoPolicy_validator = bv.Union(SsoPolicy) +class SuggestMembersPolicy(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.SuggestMembersPolicy.disabled: Suggest members is + disabled. + :ivar team_policies.SuggestMembersPolicy.enabled: Suggest members is + enabled. + """ + + _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(SuggestMembersPolicy, self)._process_custom_annotations(annotation_type, field_path, processor) + + def __repr__(self): + return 'SuggestMembersPolicy(%r, %r)' % (self._tag, self._value) + +SuggestMembersPolicy_validator = bv.Union(SuggestMembersPolicy) + class TeamMemberPolicies(bb.Struct): """ Policies governing team members. @@ -1169,6 +1221,9 @@ class TeamMemberPolicies(bb.Struct): documentation. :ivar team_policies.TeamMemberPolicies.office_addin: The admin policy around the Dropbox Office Add-In for this team. + :ivar team_policies.TeamMemberPolicies.suggest_members_policy: The team + policy on if teammembers are allowed to suggest users for admins to + invite to the team. """ __slots__ = [ @@ -1178,6 +1233,8 @@ class TeamMemberPolicies(bb.Struct): '_emm_state_present', '_office_addin_value', '_office_addin_present', + '_suggest_members_policy_value', + '_suggest_members_policy_present', ] _has_required_fields = True @@ -1185,19 +1242,24 @@ class TeamMemberPolicies(bb.Struct): def __init__(self, sharing=None, emm_state=None, - office_addin=None): + office_addin=None, + suggest_members_policy=None): self._sharing_value = None self._sharing_present = False self._emm_state_value = None self._emm_state_present = False self._office_addin_value = None self._office_addin_present = False + self._suggest_members_policy_value = None + self._suggest_members_policy_present = False if sharing is not None: self.sharing = sharing if emm_state is not None: self.emm_state = emm_state if office_addin is not None: self.office_addin = office_addin + if suggest_members_policy is not None: + self.suggest_members_policy = suggest_members_policy @property def sharing(self): @@ -1273,14 +1335,39 @@ def office_addin(self): self._office_addin_value = None self._office_addin_present = False + @property + def suggest_members_policy(self): + """ + The team policy on if teammembers are allowed to suggest users for + admins to invite to the team. + + :rtype: SuggestMembersPolicy + """ + if self._suggest_members_policy_present: + return self._suggest_members_policy_value + else: + raise AttributeError("missing required field 'suggest_members_policy'") + + @suggest_members_policy.setter + def suggest_members_policy(self, val): + self._suggest_members_policy_validator.validate_type_only(val) + self._suggest_members_policy_value = val + self._suggest_members_policy_present = True + + @suggest_members_policy.deleter + def suggest_members_policy(self): + self._suggest_members_policy_value = None + self._suggest_members_policy_present = False + 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( + return 'TeamMemberPolicies(sharing={!r}, emm_state={!r}, office_addin={!r}, suggest_members_policy={!r})'.format( self._sharing_value, self._emm_state_value, self._office_addin_value, + self._suggest_members_policy_value, ) TeamMemberPolicies_validator = bv.Struct(TeamMemberPolicies) @@ -1807,18 +1894,34 @@ def __repr__(self): SsoPolicy.required = SsoPolicy('required') SsoPolicy.other = SsoPolicy('other') +SuggestMembersPolicy._disabled_validator = bv.Void() +SuggestMembersPolicy._enabled_validator = bv.Void() +SuggestMembersPolicy._other_validator = bv.Void() +SuggestMembersPolicy._tagmap = { + 'disabled': SuggestMembersPolicy._disabled_validator, + 'enabled': SuggestMembersPolicy._enabled_validator, + 'other': SuggestMembersPolicy._other_validator, +} + +SuggestMembersPolicy.disabled = SuggestMembersPolicy('disabled') +SuggestMembersPolicy.enabled = SuggestMembersPolicy('enabled') +SuggestMembersPolicy.other = SuggestMembersPolicy('other') + TeamMemberPolicies._sharing_validator = TeamSharingPolicies_validator TeamMemberPolicies._emm_state_validator = EmmState_validator TeamMemberPolicies._office_addin_validator = OfficeAddInPolicy_validator +TeamMemberPolicies._suggest_members_policy_validator = SuggestMembersPolicy_validator TeamMemberPolicies._all_field_names_ = set([ 'sharing', 'emm_state', 'office_addin', + 'suggest_members_policy', ]) TeamMemberPolicies._all_fields_ = [ ('sharing', TeamMemberPolicies._sharing_validator), ('emm_state', TeamMemberPolicies._emm_state_validator), ('office_addin', TeamMemberPolicies._office_addin_validator), + ('suggest_members_policy', TeamMemberPolicies._suggest_members_policy_validator), ] TeamSharingPolicies._shared_folder_member_policy_validator = SharedFolderMemberPolicy_validator diff --git a/dropbox/users.py b/dropbox/users.py index 9634e232..11368945 100644 --- a/dropbox/users.py +++ b/dropbox/users.py @@ -36,11 +36,11 @@ class Account(bb.Struct): :ivar users.Account.account_id: The user's unique Dropbox ID. :ivar users.Account.name: Details of a user's name. - :ivar users.Account.email: The user's e-mail address. Do not rely on this + :ivar users.Account.email: The user's email address. Do not rely on this without checking the ``email_verified`` field. Even then, it's possible - that the user has since lost access to their e-mail. + that the user has since lost access to their email. :ivar users.Account.email_verified: Whether the user has verified their - e-mail address. + email address. :ivar users.Account.profile_photo_url: URL for the photo representing the user, if one is set. :ivar users.Account.disabled: Whether the user has been disabled. @@ -144,9 +144,9 @@ def name(self): @property def email(self): """ - The user's e-mail address. Do not rely on this without checking the + The user's email address. Do not rely on this without checking the ``email_verified`` field. Even then, it's possible that the user has - since lost access to their e-mail. + since lost access to their email. :rtype: str """ @@ -169,7 +169,7 @@ def email(self): @property def email_verified(self): """ - Whether the user has verified their e-mail address. + Whether the user has verified their email address. :rtype: bool """ diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..48e341a0 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3 @@ +{ + "lockfileVersion": 1 +} diff --git a/spec b/spec index 8eabdf93..333278e7 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 8eabdf930352bcc2d5913765fd62c6f742d7c5bf +Subproject commit 333278e77e8104e31e544aecac5338a350537ed5