From ed5204d49632bb8de18e92b914519c82a22daf99 Mon Sep 17 00:00:00 2001 From: "dropbox-sdk-updater[bot]" <306210582+dropbox-sdk-updater[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 06:03:08 +0000 Subject: [PATCH] Automated Spec Update 0d994ebe9e86f741b380a75a5267819aeb7eb63e Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com> --- dropbox/team_log.py | 1198 +++++++++++++++++++++++++++++++++++++++++++ spec | 2 +- 2 files changed, 1199 insertions(+), 1 deletion(-) diff --git a/dropbox/team_log.py b/dropbox/team_log.py index d38eeee..ec0cbd8 100644 --- a/dropbox/team_log.py +++ b/dropbox/team_log.py @@ -16201,6 +16201,17 @@ def protect_policy_updated_details(cls, val): """ return cls("protect_policy_updated_details", val) + @classmethod + def protect_report_view_details(cls, val): + """ + Create an instance of this class set to the + ``protect_report_view_details`` tag with value ``val``. + + :param ProtectReportViewDetails val: + :rtype: EventDetails + """ + return cls("protect_report_view_details", val) + @classmethod def classification_create_report_details(cls, val): """ @@ -22340,6 +22351,14 @@ def is_protect_policy_updated_details(self): """ return self._tag == "protect_policy_updated_details" + def is_protect_report_view_details(self): + """ + Check if the union tag is ``protect_report_view_details``. + + :rtype: bool + """ + return self._tag == "protect_report_view_details" + def is_classification_create_report_details(self): """ Check if the union tag is ``classification_create_report_details``. @@ -27988,6 +28007,16 @@ def get_protect_policy_updated_details(self): raise AttributeError("tag 'protect_policy_updated_details' not set") return self._value + def get_protect_report_view_details(self): + """ + Only call this if :meth:`is_protect_report_view_details` is true. + + :rtype: ProtectReportViewDetails + """ + if not self.is_protect_report_view_details(): + raise AttributeError("tag 'protect_report_view_details' not set") + return self._value + def get_classification_create_report_details(self): """ Only call this if :meth:`is_classification_create_report_details` is true. @@ -32370,6 +32399,9 @@ class EventType(bb.Union): :ivar EventType.protect_policy_updated: (protect) Updated a Dropbox Protect policy :vartype EventType.protect_policy_updated: ProtectPolicyUpdatedType + :ivar EventType.protect_report_view: + (protect) Viewed a Dropbox Protect report + :vartype EventType.protect_report_view: ProtectReportViewType :ivar EventType.classification_create_report: (reports) Created Classification report :vartype EventType.classification_create_report: ClassificationCreateReportType @@ -36652,6 +36684,17 @@ def protect_policy_updated(cls, val): """ return cls("protect_policy_updated", val) + @classmethod + def protect_report_view(cls, val): + """ + Create an instance of this class set to the ``protect_report_view`` tag + with value ``val``. + + :param ProtectReportViewType val: + :rtype: EventType + """ + return cls("protect_report_view", val) + @classmethod def classification_create_report(cls, val): """ @@ -42737,6 +42780,14 @@ def is_protect_policy_updated(self): """ return self._tag == "protect_policy_updated" + def is_protect_report_view(self): + """ + Check if the union tag is ``protect_report_view``. + + :rtype: bool + """ + return self._tag == "protect_report_view" + def is_classification_create_report(self): """ Check if the union tag is ``classification_create_report``. @@ -48958,6 +49009,18 @@ def get_protect_policy_updated(self): raise AttributeError("tag 'protect_policy_updated' not set") return self._value + def get_protect_report_view(self): + """ + (protect) Viewed a Dropbox Protect report + + Only call this if :meth:`is_protect_report_view` is true. + + :rtype: ProtectReportViewType + """ + if not self.is_protect_report_view(): + raise AttributeError("tag 'protect_report_view' not set") + return self._value + def get_classification_create_report(self): """ (reports) Created Classification report @@ -53739,6 +53802,8 @@ class EventTypeArg(bb.Union): (protect) Scheduled a Dropbox Protect policy :ivar EventTypeArg.protect_policy_updated: (protect) Updated a Dropbox Protect policy + :ivar EventTypeArg.protect_report_view: + (protect) Viewed a Dropbox Protect report :ivar EventTypeArg.classification_create_report: (reports) Created Classification report :ivar EventTypeArg.classification_create_report_fail: @@ -55072,6 +55137,8 @@ class EventTypeArg(bb.Union): # Attribute is overwritten below the class definition protect_policy_updated = None # Attribute is overwritten below the class definition + protect_report_view = None + # Attribute is overwritten below the class definition classification_create_report = None # Attribute is overwritten below the class definition classification_create_report_fail = None @@ -58068,6 +58135,14 @@ def is_protect_policy_updated(self): """ return self._tag == "protect_policy_updated" + def is_protect_report_view(self): + """ + Check if the union tag is ``protect_report_view``. + + :rtype: bool + """ + return self._tag == "protect_report_view" + def is_classification_create_report(self): """ Check if the union tag is ``classification_create_report``. @@ -80727,6 +80802,809 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ProtectPolicyUpdatedType_validator = bv.Struct(ProtectPolicyUpdatedType) +class ProtectReportCategory(bb.Union): + """ + The category that a Dropbox Protect report belongs to + + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + """ + + _catch_all = "other" + # Attribute is overwritten below the class definition + overview = None + # Attribute is overwritten below the class definition + stale_access = None + # Attribute is overwritten below the class definition + other = None + + def is_overview(self): + """ + Check if the union tag is ``overview``. + + :rtype: bool + """ + return self._tag == "overview" + + def is_stale_access(self): + """ + Check if the union tag is ``stale_access``. + + :rtype: bool + """ + return self._tag == "stale_access" + + 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(ProtectReportCategory, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectReportCategory_validator = bv.Union(ProtectReportCategory) + + +class ProtectReportMetric(bb.Union): + """ + The metric that a Dropbox Protect report corresponds to + + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + """ + + _catch_all = "other" + # Attribute is overwritten below the class definition + external_modified_over_1_year = None + # Attribute is overwritten below the class definition + external_modified_over_1_year_company = None + # Attribute is overwritten below the class definition + external_modified_over_1_year_outside = None + # Attribute is overwritten below the class definition + external_modified_over_1_year_personal = None + # Attribute is overwritten below the class definition + external_modified_over_1_year_public = None + # Attribute is overwritten below the class definition + external_modified_over_2_years = None + # Attribute is overwritten below the class definition + external_modified_over_2_years_company = None + # Attribute is overwritten below the class definition + external_modified_over_2_years_outside = None + # Attribute is overwritten below the class definition + external_modified_over_2_years_personal = None + # Attribute is overwritten below the class definition + external_modified_over_2_years_public = None + # Attribute is overwritten below the class definition + external_modified_over_3_years = None + # Attribute is overwritten below the class definition + external_modified_over_3_years_company = None + # Attribute is overwritten below the class definition + external_modified_over_3_years_outside = None + # Attribute is overwritten below the class definition + external_modified_over_3_years_personal = None + # Attribute is overwritten below the class definition + external_modified_over_3_years_public = None + # Attribute is overwritten below the class definition + external_modified_over_5_years = None + # Attribute is overwritten below the class definition + external_modified_over_5_years_company = None + # Attribute is overwritten below the class definition + external_modified_over_5_years_outside = None + # Attribute is overwritten below the class definition + external_modified_over_5_years_personal = None + # Attribute is overwritten below the class definition + external_modified_over_5_years_public = None + # Attribute is overwritten below the class definition + folders_company = None + # Attribute is overwritten below the class definition + folders_internal = None + # Attribute is overwritten below the class definition + folders_outside = None + # Attribute is overwritten below the class definition + folders_personal = None + # Attribute is overwritten below the class definition + folders_public = None + # Attribute is overwritten below the class definition + internal_modified_over_1_year = None + # Attribute is overwritten below the class definition + internal_modified_over_1_year_company = None + # Attribute is overwritten below the class definition + internal_modified_over_1_year_outside = None + # Attribute is overwritten below the class definition + internal_modified_over_1_year_personal = None + # Attribute is overwritten below the class definition + internal_modified_over_1_year_public = None + # Attribute is overwritten below the class definition + internal_modified_over_2_years = None + # Attribute is overwritten below the class definition + internal_modified_over_2_years_company = None + # Attribute is overwritten below the class definition + internal_modified_over_2_years_outside = None + # Attribute is overwritten below the class definition + internal_modified_over_2_years_personal = None + # Attribute is overwritten below the class definition + internal_modified_over_2_years_public = None + # Attribute is overwritten below the class definition + internal_modified_over_3_years = None + # Attribute is overwritten below the class definition + internal_modified_over_3_years_company = None + # Attribute is overwritten below the class definition + internal_modified_over_3_years_outside = None + # Attribute is overwritten below the class definition + internal_modified_over_3_years_personal = None + # Attribute is overwritten below the class definition + internal_modified_over_3_years_public = None + # Attribute is overwritten below the class definition + internal_modified_over_5_years = None + # Attribute is overwritten below the class definition + internal_modified_over_5_years_company = None + # Attribute is overwritten below the class definition + internal_modified_over_5_years_outside = None + # Attribute is overwritten below the class definition + internal_modified_over_5_years_personal = None + # Attribute is overwritten below the class definition + internal_modified_over_5_years_public = None + # Attribute is overwritten below the class definition + items_all = None + # Attribute is overwritten below the class definition + items_company_access = None + # Attribute is overwritten below the class definition + items_internally_owned = None + # Attribute is overwritten below the class definition + items_modified_over_1_year = None + # Attribute is overwritten below the class definition + items_modified_over_3_years = None + # Attribute is overwritten below the class definition + items_outside_access = None + # Attribute is overwritten below the class definition + items_personal_access = None + # Attribute is overwritten below the class definition + items_public_links = None + # Attribute is overwritten below the class definition + other_folders = None + # Attribute is overwritten below the class definition + other_shared_drives = None + # Attribute is overwritten below the class definition + shared_drives_internal = None + # Attribute is overwritten below the class definition + shared_drives_outside = None + # Attribute is overwritten below the class definition + shared_drives_personal = None + # Attribute is overwritten below the class definition + other = None + + def is_external_modified_over_1_year(self): + """ + Check if the union tag is ``external_modified_over_1_year``. + + :rtype: bool + """ + return self._tag == "external_modified_over_1_year" + + def is_external_modified_over_1_year_company(self): + """ + Check if the union tag is ``external_modified_over_1_year_company``. + + :rtype: bool + """ + return self._tag == "external_modified_over_1_year_company" + + def is_external_modified_over_1_year_outside(self): + """ + Check if the union tag is ``external_modified_over_1_year_outside``. + + :rtype: bool + """ + return self._tag == "external_modified_over_1_year_outside" + + def is_external_modified_over_1_year_personal(self): + """ + Check if the union tag is ``external_modified_over_1_year_personal``. + + :rtype: bool + """ + return self._tag == "external_modified_over_1_year_personal" + + def is_external_modified_over_1_year_public(self): + """ + Check if the union tag is ``external_modified_over_1_year_public``. + + :rtype: bool + """ + return self._tag == "external_modified_over_1_year_public" + + def is_external_modified_over_2_years(self): + """ + Check if the union tag is ``external_modified_over_2_years``. + + :rtype: bool + """ + return self._tag == "external_modified_over_2_years" + + def is_external_modified_over_2_years_company(self): + """ + Check if the union tag is ``external_modified_over_2_years_company``. + + :rtype: bool + """ + return self._tag == "external_modified_over_2_years_company" + + def is_external_modified_over_2_years_outside(self): + """ + Check if the union tag is ``external_modified_over_2_years_outside``. + + :rtype: bool + """ + return self._tag == "external_modified_over_2_years_outside" + + def is_external_modified_over_2_years_personal(self): + """ + Check if the union tag is ``external_modified_over_2_years_personal``. + + :rtype: bool + """ + return self._tag == "external_modified_over_2_years_personal" + + def is_external_modified_over_2_years_public(self): + """ + Check if the union tag is ``external_modified_over_2_years_public``. + + :rtype: bool + """ + return self._tag == "external_modified_over_2_years_public" + + def is_external_modified_over_3_years(self): + """ + Check if the union tag is ``external_modified_over_3_years``. + + :rtype: bool + """ + return self._tag == "external_modified_over_3_years" + + def is_external_modified_over_3_years_company(self): + """ + Check if the union tag is ``external_modified_over_3_years_company``. + + :rtype: bool + """ + return self._tag == "external_modified_over_3_years_company" + + def is_external_modified_over_3_years_outside(self): + """ + Check if the union tag is ``external_modified_over_3_years_outside``. + + :rtype: bool + """ + return self._tag == "external_modified_over_3_years_outside" + + def is_external_modified_over_3_years_personal(self): + """ + Check if the union tag is ``external_modified_over_3_years_personal``. + + :rtype: bool + """ + return self._tag == "external_modified_over_3_years_personal" + + def is_external_modified_over_3_years_public(self): + """ + Check if the union tag is ``external_modified_over_3_years_public``. + + :rtype: bool + """ + return self._tag == "external_modified_over_3_years_public" + + def is_external_modified_over_5_years(self): + """ + Check if the union tag is ``external_modified_over_5_years``. + + :rtype: bool + """ + return self._tag == "external_modified_over_5_years" + + def is_external_modified_over_5_years_company(self): + """ + Check if the union tag is ``external_modified_over_5_years_company``. + + :rtype: bool + """ + return self._tag == "external_modified_over_5_years_company" + + def is_external_modified_over_5_years_outside(self): + """ + Check if the union tag is ``external_modified_over_5_years_outside``. + + :rtype: bool + """ + return self._tag == "external_modified_over_5_years_outside" + + def is_external_modified_over_5_years_personal(self): + """ + Check if the union tag is ``external_modified_over_5_years_personal``. + + :rtype: bool + """ + return self._tag == "external_modified_over_5_years_personal" + + def is_external_modified_over_5_years_public(self): + """ + Check if the union tag is ``external_modified_over_5_years_public``. + + :rtype: bool + """ + return self._tag == "external_modified_over_5_years_public" + + def is_folders_company(self): + """ + Check if the union tag is ``folders_company``. + + :rtype: bool + """ + return self._tag == "folders_company" + + def is_folders_internal(self): + """ + Check if the union tag is ``folders_internal``. + + :rtype: bool + """ + return self._tag == "folders_internal" + + def is_folders_outside(self): + """ + Check if the union tag is ``folders_outside``. + + :rtype: bool + """ + return self._tag == "folders_outside" + + def is_folders_personal(self): + """ + Check if the union tag is ``folders_personal``. + + :rtype: bool + """ + return self._tag == "folders_personal" + + def is_folders_public(self): + """ + Check if the union tag is ``folders_public``. + + :rtype: bool + """ + return self._tag == "folders_public" + + def is_internal_modified_over_1_year(self): + """ + Check if the union tag is ``internal_modified_over_1_year``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_1_year" + + def is_internal_modified_over_1_year_company(self): + """ + Check if the union tag is ``internal_modified_over_1_year_company``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_1_year_company" + + def is_internal_modified_over_1_year_outside(self): + """ + Check if the union tag is ``internal_modified_over_1_year_outside``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_1_year_outside" + + def is_internal_modified_over_1_year_personal(self): + """ + Check if the union tag is ``internal_modified_over_1_year_personal``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_1_year_personal" + + def is_internal_modified_over_1_year_public(self): + """ + Check if the union tag is ``internal_modified_over_1_year_public``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_1_year_public" + + def is_internal_modified_over_2_years(self): + """ + Check if the union tag is ``internal_modified_over_2_years``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_2_years" + + def is_internal_modified_over_2_years_company(self): + """ + Check if the union tag is ``internal_modified_over_2_years_company``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_2_years_company" + + def is_internal_modified_over_2_years_outside(self): + """ + Check if the union tag is ``internal_modified_over_2_years_outside``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_2_years_outside" + + def is_internal_modified_over_2_years_personal(self): + """ + Check if the union tag is ``internal_modified_over_2_years_personal``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_2_years_personal" + + def is_internal_modified_over_2_years_public(self): + """ + Check if the union tag is ``internal_modified_over_2_years_public``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_2_years_public" + + def is_internal_modified_over_3_years(self): + """ + Check if the union tag is ``internal_modified_over_3_years``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_3_years" + + def is_internal_modified_over_3_years_company(self): + """ + Check if the union tag is ``internal_modified_over_3_years_company``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_3_years_company" + + def is_internal_modified_over_3_years_outside(self): + """ + Check if the union tag is ``internal_modified_over_3_years_outside``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_3_years_outside" + + def is_internal_modified_over_3_years_personal(self): + """ + Check if the union tag is ``internal_modified_over_3_years_personal``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_3_years_personal" + + def is_internal_modified_over_3_years_public(self): + """ + Check if the union tag is ``internal_modified_over_3_years_public``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_3_years_public" + + def is_internal_modified_over_5_years(self): + """ + Check if the union tag is ``internal_modified_over_5_years``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_5_years" + + def is_internal_modified_over_5_years_company(self): + """ + Check if the union tag is ``internal_modified_over_5_years_company``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_5_years_company" + + def is_internal_modified_over_5_years_outside(self): + """ + Check if the union tag is ``internal_modified_over_5_years_outside``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_5_years_outside" + + def is_internal_modified_over_5_years_personal(self): + """ + Check if the union tag is ``internal_modified_over_5_years_personal``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_5_years_personal" + + def is_internal_modified_over_5_years_public(self): + """ + Check if the union tag is ``internal_modified_over_5_years_public``. + + :rtype: bool + """ + return self._tag == "internal_modified_over_5_years_public" + + def is_items_all(self): + """ + Check if the union tag is ``items_all``. + + :rtype: bool + """ + return self._tag == "items_all" + + def is_items_company_access(self): + """ + Check if the union tag is ``items_company_access``. + + :rtype: bool + """ + return self._tag == "items_company_access" + + def is_items_internally_owned(self): + """ + Check if the union tag is ``items_internally_owned``. + + :rtype: bool + """ + return self._tag == "items_internally_owned" + + def is_items_modified_over_1_year(self): + """ + Check if the union tag is ``items_modified_over_1_year``. + + :rtype: bool + """ + return self._tag == "items_modified_over_1_year" + + def is_items_modified_over_3_years(self): + """ + Check if the union tag is ``items_modified_over_3_years``. + + :rtype: bool + """ + return self._tag == "items_modified_over_3_years" + + def is_items_outside_access(self): + """ + Check if the union tag is ``items_outside_access``. + + :rtype: bool + """ + return self._tag == "items_outside_access" + + def is_items_personal_access(self): + """ + Check if the union tag is ``items_personal_access``. + + :rtype: bool + """ + return self._tag == "items_personal_access" + + def is_items_public_links(self): + """ + Check if the union tag is ``items_public_links``. + + :rtype: bool + """ + return self._tag == "items_public_links" + + def is_other_folders(self): + """ + Check if the union tag is ``other_folders``. + + :rtype: bool + """ + return self._tag == "other_folders" + + def is_other_shared_drives(self): + """ + Check if the union tag is ``other_shared_drives``. + + :rtype: bool + """ + return self._tag == "other_shared_drives" + + def is_shared_drives_internal(self): + """ + Check if the union tag is ``shared_drives_internal``. + + :rtype: bool + """ + return self._tag == "shared_drives_internal" + + def is_shared_drives_outside(self): + """ + Check if the union tag is ``shared_drives_outside``. + + :rtype: bool + """ + return self._tag == "shared_drives_outside" + + def is_shared_drives_personal(self): + """ + Check if the union tag is ``shared_drives_personal``. + + :rtype: bool + """ + return self._tag == "shared_drives_personal" + + 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(ProtectReportMetric, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectReportMetric_validator = bv.Union(ProtectReportMetric) + + +class ProtectReportSection(bb.Union): + """ + The section that a Dropbox Protect report belongs to + + This class acts as a tagged union. Only one of the ``is_*`` methods will + return true. To get the associated value of a tag (if one exists), use the + corresponding ``get_*`` method. + """ + + _catch_all = "other" + # Attribute is overwritten below the class definition + items = None + # Attribute is overwritten below the class definition + overview_other = None + # Attribute is overwritten below the class definition + owned_externally = None + # Attribute is overwritten below the class definition + owned_internally = None + # Attribute is overwritten below the class definition + other = None + + def is_items(self): + """ + Check if the union tag is ``items``. + + :rtype: bool + """ + return self._tag == "items" + + def is_overview_other(self): + """ + Check if the union tag is ``overview_other``. + + :rtype: bool + """ + return self._tag == "overview_other" + + def is_owned_externally(self): + """ + Check if the union tag is ``owned_externally``. + + :rtype: bool + """ + return self._tag == "owned_externally" + + def is_owned_internally(self): + """ + Check if the union tag is ``owned_internally``. + + :rtype: bool + """ + return self._tag == "owned_internally" + + 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(ProtectReportSection, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectReportSection_validator = bv.Union(ProtectReportSection) + + +class ProtectReportViewDetails(bb.Struct): + """ + Viewed a Dropbox Protect report. + + :ivar ProtectReportViewDetails.report_category: + The category of the report that was viewed. + :ivar ProtectReportViewDetails.report_section: + The section of the report that was viewed. + :ivar ProtectReportViewDetails.report_metric: + The metric of the report that was viewed. + """ + + __slots__ = [ + "_report_category_value", + "_report_section_value", + "_report_metric_value", + ] + + _has_required_fields = True + + def __init__(self, report_category=None, report_section=None, report_metric=None): + self._report_category_value = bb.NOT_SET + self._report_section_value = bb.NOT_SET + self._report_metric_value = bb.NOT_SET + if report_category is not None: + self.report_category = report_category + if report_section is not None: + self.report_section = report_section + if report_metric is not None: + self.report_metric = report_metric + + # Instance attribute type: ProtectReportCategory (validator is set below) + report_category = bb.Attribute("report_category", user_defined=True) + + # Instance attribute type: ProtectReportSection (validator is set below) + report_section = bb.Attribute("report_section", nullable=True, user_defined=True) + + # Instance attribute type: ProtectReportMetric (validator is set below) + report_metric = bb.Attribute("report_metric", nullable=True, user_defined=True) + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectReportViewDetails, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectReportViewDetails_validator = bv.Struct(ProtectReportViewDetails) + + +class ProtectReportViewType(bb.Struct): + __slots__ = [ + "_description_value", + ] + + _has_required_fields = True + + def __init__(self, description=None): + self._description_value = bb.NOT_SET + if description is not None: + self.description = description + + # Instance attribute type: str (validator is set below) + description = bb.Attribute("description") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectReportViewType, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectReportViewType_validator = bv.Struct(ProtectReportViewType) + + class QuickActionType(bb.Union): """ Quick action type. @@ -103371,6 +104249,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ) EventDetails._protect_policy_scheduled_details_validator = ProtectPolicyScheduledDetails_validator EventDetails._protect_policy_updated_details_validator = ProtectPolicyUpdatedDetails_validator +EventDetails._protect_report_view_details_validator = ProtectReportViewDetails_validator EventDetails._classification_create_report_details_validator = ( ClassificationCreateReportDetails_validator ) @@ -104448,6 +105327,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "protect_policy_deactivated_details": EventDetails._protect_policy_deactivated_details_validator, "protect_policy_scheduled_details": EventDetails._protect_policy_scheduled_details_validator, "protect_policy_updated_details": EventDetails._protect_policy_updated_details_validator, + "protect_report_view_details": EventDetails._protect_report_view_details_validator, "classification_create_report_details": EventDetails._classification_create_report_details_validator, "classification_create_report_fail_details": EventDetails._classification_create_report_fail_details_validator, "emm_create_exceptions_report_details": EventDetails._emm_create_exceptions_report_details_validator, @@ -105182,6 +106062,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventType._protect_policy_deactivated_validator = ProtectPolicyDeactivatedType_validator EventType._protect_policy_scheduled_validator = ProtectPolicyScheduledType_validator EventType._protect_policy_updated_validator = ProtectPolicyUpdatedType_validator +EventType._protect_report_view_validator = ProtectReportViewType_validator EventType._classification_create_report_validator = ClassificationCreateReportType_validator EventType._classification_create_report_fail_validator = ( ClassificationCreateReportFailType_validator @@ -106022,6 +106903,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "protect_policy_deactivated": EventType._protect_policy_deactivated_validator, "protect_policy_scheduled": EventType._protect_policy_scheduled_validator, "protect_policy_updated": EventType._protect_policy_updated_validator, + "protect_report_view": EventType._protect_report_view_validator, "classification_create_report": EventType._classification_create_report_validator, "classification_create_report_fail": EventType._classification_create_report_fail_validator, "emm_create_exceptions_report": EventType._emm_create_exceptions_report_validator, @@ -106657,6 +107539,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventTypeArg._protect_policy_deactivated_validator = bv.Void() EventTypeArg._protect_policy_scheduled_validator = bv.Void() EventTypeArg._protect_policy_updated_validator = bv.Void() +EventTypeArg._protect_report_view_validator = bv.Void() EventTypeArg._classification_create_report_validator = bv.Void() EventTypeArg._classification_create_report_fail_validator = bv.Void() EventTypeArg._emm_create_exceptions_report_validator = bv.Void() @@ -107289,6 +108172,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "protect_policy_deactivated": EventTypeArg._protect_policy_deactivated_validator, "protect_policy_scheduled": EventTypeArg._protect_policy_scheduled_validator, "protect_policy_updated": EventTypeArg._protect_policy_updated_validator, + "protect_report_view": EventTypeArg._protect_report_view_validator, "classification_create_report": EventTypeArg._classification_create_report_validator, "classification_create_report_fail": EventTypeArg._classification_create_report_fail_validator, "emm_create_exceptions_report": EventTypeArg._emm_create_exceptions_report_validator, @@ -108000,6 +108884,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventTypeArg.protect_policy_deactivated = EventTypeArg("protect_policy_deactivated") EventTypeArg.protect_policy_scheduled = EventTypeArg("protect_policy_scheduled") EventTypeArg.protect_policy_updated = EventTypeArg("protect_policy_updated") +EventTypeArg.protect_report_view = EventTypeArg("protect_report_view") EventTypeArg.classification_create_report = EventTypeArg("classification_create_report") EventTypeArg.classification_create_report_fail = EventTypeArg("classification_create_report_fail") EventTypeArg.emm_create_exceptions_report = EventTypeArg("emm_create_exceptions_report") @@ -113759,6 +114644,319 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("description", ProtectPolicyUpdatedType.description.validator) ] +ProtectReportCategory._overview_validator = bv.Void() +ProtectReportCategory._stale_access_validator = bv.Void() +ProtectReportCategory._other_validator = bv.Void() +ProtectReportCategory._tagmap = { + "overview": ProtectReportCategory._overview_validator, + "stale_access": ProtectReportCategory._stale_access_validator, + "other": ProtectReportCategory._other_validator, +} + +ProtectReportCategory.overview = ProtectReportCategory("overview") +ProtectReportCategory.stale_access = ProtectReportCategory("stale_access") +ProtectReportCategory.other = ProtectReportCategory("other") + +ProtectReportMetric._external_modified_over_1_year_validator = bv.Void() +ProtectReportMetric._external_modified_over_1_year_company_validator = bv.Void() +ProtectReportMetric._external_modified_over_1_year_outside_validator = bv.Void() +ProtectReportMetric._external_modified_over_1_year_personal_validator = bv.Void() +ProtectReportMetric._external_modified_over_1_year_public_validator = bv.Void() +ProtectReportMetric._external_modified_over_2_years_validator = bv.Void() +ProtectReportMetric._external_modified_over_2_years_company_validator = bv.Void() +ProtectReportMetric._external_modified_over_2_years_outside_validator = bv.Void() +ProtectReportMetric._external_modified_over_2_years_personal_validator = bv.Void() +ProtectReportMetric._external_modified_over_2_years_public_validator = bv.Void() +ProtectReportMetric._external_modified_over_3_years_validator = bv.Void() +ProtectReportMetric._external_modified_over_3_years_company_validator = bv.Void() +ProtectReportMetric._external_modified_over_3_years_outside_validator = bv.Void() +ProtectReportMetric._external_modified_over_3_years_personal_validator = bv.Void() +ProtectReportMetric._external_modified_over_3_years_public_validator = bv.Void() +ProtectReportMetric._external_modified_over_5_years_validator = bv.Void() +ProtectReportMetric._external_modified_over_5_years_company_validator = bv.Void() +ProtectReportMetric._external_modified_over_5_years_outside_validator = bv.Void() +ProtectReportMetric._external_modified_over_5_years_personal_validator = bv.Void() +ProtectReportMetric._external_modified_over_5_years_public_validator = bv.Void() +ProtectReportMetric._folders_company_validator = bv.Void() +ProtectReportMetric._folders_internal_validator = bv.Void() +ProtectReportMetric._folders_outside_validator = bv.Void() +ProtectReportMetric._folders_personal_validator = bv.Void() +ProtectReportMetric._folders_public_validator = bv.Void() +ProtectReportMetric._internal_modified_over_1_year_validator = bv.Void() +ProtectReportMetric._internal_modified_over_1_year_company_validator = bv.Void() +ProtectReportMetric._internal_modified_over_1_year_outside_validator = bv.Void() +ProtectReportMetric._internal_modified_over_1_year_personal_validator = bv.Void() +ProtectReportMetric._internal_modified_over_1_year_public_validator = bv.Void() +ProtectReportMetric._internal_modified_over_2_years_validator = bv.Void() +ProtectReportMetric._internal_modified_over_2_years_company_validator = bv.Void() +ProtectReportMetric._internal_modified_over_2_years_outside_validator = bv.Void() +ProtectReportMetric._internal_modified_over_2_years_personal_validator = bv.Void() +ProtectReportMetric._internal_modified_over_2_years_public_validator = bv.Void() +ProtectReportMetric._internal_modified_over_3_years_validator = bv.Void() +ProtectReportMetric._internal_modified_over_3_years_company_validator = bv.Void() +ProtectReportMetric._internal_modified_over_3_years_outside_validator = bv.Void() +ProtectReportMetric._internal_modified_over_3_years_personal_validator = bv.Void() +ProtectReportMetric._internal_modified_over_3_years_public_validator = bv.Void() +ProtectReportMetric._internal_modified_over_5_years_validator = bv.Void() +ProtectReportMetric._internal_modified_over_5_years_company_validator = bv.Void() +ProtectReportMetric._internal_modified_over_5_years_outside_validator = bv.Void() +ProtectReportMetric._internal_modified_over_5_years_personal_validator = bv.Void() +ProtectReportMetric._internal_modified_over_5_years_public_validator = bv.Void() +ProtectReportMetric._items_all_validator = bv.Void() +ProtectReportMetric._items_company_access_validator = bv.Void() +ProtectReportMetric._items_internally_owned_validator = bv.Void() +ProtectReportMetric._items_modified_over_1_year_validator = bv.Void() +ProtectReportMetric._items_modified_over_3_years_validator = bv.Void() +ProtectReportMetric._items_outside_access_validator = bv.Void() +ProtectReportMetric._items_personal_access_validator = bv.Void() +ProtectReportMetric._items_public_links_validator = bv.Void() +ProtectReportMetric._other_folders_validator = bv.Void() +ProtectReportMetric._other_shared_drives_validator = bv.Void() +ProtectReportMetric._shared_drives_internal_validator = bv.Void() +ProtectReportMetric._shared_drives_outside_validator = bv.Void() +ProtectReportMetric._shared_drives_personal_validator = bv.Void() +ProtectReportMetric._other_validator = bv.Void() +ProtectReportMetric._tagmap = { + "external_modified_over_1_year": ProtectReportMetric._external_modified_over_1_year_validator, + "external_modified_over_1_year_company": ProtectReportMetric._external_modified_over_1_year_company_validator, + "external_modified_over_1_year_outside": ProtectReportMetric._external_modified_over_1_year_outside_validator, + "external_modified_over_1_year_personal": ProtectReportMetric._external_modified_over_1_year_personal_validator, + "external_modified_over_1_year_public": ProtectReportMetric._external_modified_over_1_year_public_validator, + "external_modified_over_2_years": ProtectReportMetric._external_modified_over_2_years_validator, + "external_modified_over_2_years_company": ProtectReportMetric._external_modified_over_2_years_company_validator, + "external_modified_over_2_years_outside": ProtectReportMetric._external_modified_over_2_years_outside_validator, + "external_modified_over_2_years_personal": ProtectReportMetric._external_modified_over_2_years_personal_validator, + "external_modified_over_2_years_public": ProtectReportMetric._external_modified_over_2_years_public_validator, + "external_modified_over_3_years": ProtectReportMetric._external_modified_over_3_years_validator, + "external_modified_over_3_years_company": ProtectReportMetric._external_modified_over_3_years_company_validator, + "external_modified_over_3_years_outside": ProtectReportMetric._external_modified_over_3_years_outside_validator, + "external_modified_over_3_years_personal": ProtectReportMetric._external_modified_over_3_years_personal_validator, + "external_modified_over_3_years_public": ProtectReportMetric._external_modified_over_3_years_public_validator, + "external_modified_over_5_years": ProtectReportMetric._external_modified_over_5_years_validator, + "external_modified_over_5_years_company": ProtectReportMetric._external_modified_over_5_years_company_validator, + "external_modified_over_5_years_outside": ProtectReportMetric._external_modified_over_5_years_outside_validator, + "external_modified_over_5_years_personal": ProtectReportMetric._external_modified_over_5_years_personal_validator, + "external_modified_over_5_years_public": ProtectReportMetric._external_modified_over_5_years_public_validator, + "folders_company": ProtectReportMetric._folders_company_validator, + "folders_internal": ProtectReportMetric._folders_internal_validator, + "folders_outside": ProtectReportMetric._folders_outside_validator, + "folders_personal": ProtectReportMetric._folders_personal_validator, + "folders_public": ProtectReportMetric._folders_public_validator, + "internal_modified_over_1_year": ProtectReportMetric._internal_modified_over_1_year_validator, + "internal_modified_over_1_year_company": ProtectReportMetric._internal_modified_over_1_year_company_validator, + "internal_modified_over_1_year_outside": ProtectReportMetric._internal_modified_over_1_year_outside_validator, + "internal_modified_over_1_year_personal": ProtectReportMetric._internal_modified_over_1_year_personal_validator, + "internal_modified_over_1_year_public": ProtectReportMetric._internal_modified_over_1_year_public_validator, + "internal_modified_over_2_years": ProtectReportMetric._internal_modified_over_2_years_validator, + "internal_modified_over_2_years_company": ProtectReportMetric._internal_modified_over_2_years_company_validator, + "internal_modified_over_2_years_outside": ProtectReportMetric._internal_modified_over_2_years_outside_validator, + "internal_modified_over_2_years_personal": ProtectReportMetric._internal_modified_over_2_years_personal_validator, + "internal_modified_over_2_years_public": ProtectReportMetric._internal_modified_over_2_years_public_validator, + "internal_modified_over_3_years": ProtectReportMetric._internal_modified_over_3_years_validator, + "internal_modified_over_3_years_company": ProtectReportMetric._internal_modified_over_3_years_company_validator, + "internal_modified_over_3_years_outside": ProtectReportMetric._internal_modified_over_3_years_outside_validator, + "internal_modified_over_3_years_personal": ProtectReportMetric._internal_modified_over_3_years_personal_validator, + "internal_modified_over_3_years_public": ProtectReportMetric._internal_modified_over_3_years_public_validator, + "internal_modified_over_5_years": ProtectReportMetric._internal_modified_over_5_years_validator, + "internal_modified_over_5_years_company": ProtectReportMetric._internal_modified_over_5_years_company_validator, + "internal_modified_over_5_years_outside": ProtectReportMetric._internal_modified_over_5_years_outside_validator, + "internal_modified_over_5_years_personal": ProtectReportMetric._internal_modified_over_5_years_personal_validator, + "internal_modified_over_5_years_public": ProtectReportMetric._internal_modified_over_5_years_public_validator, + "items_all": ProtectReportMetric._items_all_validator, + "items_company_access": ProtectReportMetric._items_company_access_validator, + "items_internally_owned": ProtectReportMetric._items_internally_owned_validator, + "items_modified_over_1_year": ProtectReportMetric._items_modified_over_1_year_validator, + "items_modified_over_3_years": ProtectReportMetric._items_modified_over_3_years_validator, + "items_outside_access": ProtectReportMetric._items_outside_access_validator, + "items_personal_access": ProtectReportMetric._items_personal_access_validator, + "items_public_links": ProtectReportMetric._items_public_links_validator, + "other_folders": ProtectReportMetric._other_folders_validator, + "other_shared_drives": ProtectReportMetric._other_shared_drives_validator, + "shared_drives_internal": ProtectReportMetric._shared_drives_internal_validator, + "shared_drives_outside": ProtectReportMetric._shared_drives_outside_validator, + "shared_drives_personal": ProtectReportMetric._shared_drives_personal_validator, + "other": ProtectReportMetric._other_validator, +} + +ProtectReportMetric.external_modified_over_1_year = ProtectReportMetric( + "external_modified_over_1_year" +) +ProtectReportMetric.external_modified_over_1_year_company = ProtectReportMetric( + "external_modified_over_1_year_company" +) +ProtectReportMetric.external_modified_over_1_year_outside = ProtectReportMetric( + "external_modified_over_1_year_outside" +) +ProtectReportMetric.external_modified_over_1_year_personal = ProtectReportMetric( + "external_modified_over_1_year_personal" +) +ProtectReportMetric.external_modified_over_1_year_public = ProtectReportMetric( + "external_modified_over_1_year_public" +) +ProtectReportMetric.external_modified_over_2_years = ProtectReportMetric( + "external_modified_over_2_years" +) +ProtectReportMetric.external_modified_over_2_years_company = ProtectReportMetric( + "external_modified_over_2_years_company" +) +ProtectReportMetric.external_modified_over_2_years_outside = ProtectReportMetric( + "external_modified_over_2_years_outside" +) +ProtectReportMetric.external_modified_over_2_years_personal = ProtectReportMetric( + "external_modified_over_2_years_personal" +) +ProtectReportMetric.external_modified_over_2_years_public = ProtectReportMetric( + "external_modified_over_2_years_public" +) +ProtectReportMetric.external_modified_over_3_years = ProtectReportMetric( + "external_modified_over_3_years" +) +ProtectReportMetric.external_modified_over_3_years_company = ProtectReportMetric( + "external_modified_over_3_years_company" +) +ProtectReportMetric.external_modified_over_3_years_outside = ProtectReportMetric( + "external_modified_over_3_years_outside" +) +ProtectReportMetric.external_modified_over_3_years_personal = ProtectReportMetric( + "external_modified_over_3_years_personal" +) +ProtectReportMetric.external_modified_over_3_years_public = ProtectReportMetric( + "external_modified_over_3_years_public" +) +ProtectReportMetric.external_modified_over_5_years = ProtectReportMetric( + "external_modified_over_5_years" +) +ProtectReportMetric.external_modified_over_5_years_company = ProtectReportMetric( + "external_modified_over_5_years_company" +) +ProtectReportMetric.external_modified_over_5_years_outside = ProtectReportMetric( + "external_modified_over_5_years_outside" +) +ProtectReportMetric.external_modified_over_5_years_personal = ProtectReportMetric( + "external_modified_over_5_years_personal" +) +ProtectReportMetric.external_modified_over_5_years_public = ProtectReportMetric( + "external_modified_over_5_years_public" +) +ProtectReportMetric.folders_company = ProtectReportMetric("folders_company") +ProtectReportMetric.folders_internal = ProtectReportMetric("folders_internal") +ProtectReportMetric.folders_outside = ProtectReportMetric("folders_outside") +ProtectReportMetric.folders_personal = ProtectReportMetric("folders_personal") +ProtectReportMetric.folders_public = ProtectReportMetric("folders_public") +ProtectReportMetric.internal_modified_over_1_year = ProtectReportMetric( + "internal_modified_over_1_year" +) +ProtectReportMetric.internal_modified_over_1_year_company = ProtectReportMetric( + "internal_modified_over_1_year_company" +) +ProtectReportMetric.internal_modified_over_1_year_outside = ProtectReportMetric( + "internal_modified_over_1_year_outside" +) +ProtectReportMetric.internal_modified_over_1_year_personal = ProtectReportMetric( + "internal_modified_over_1_year_personal" +) +ProtectReportMetric.internal_modified_over_1_year_public = ProtectReportMetric( + "internal_modified_over_1_year_public" +) +ProtectReportMetric.internal_modified_over_2_years = ProtectReportMetric( + "internal_modified_over_2_years" +) +ProtectReportMetric.internal_modified_over_2_years_company = ProtectReportMetric( + "internal_modified_over_2_years_company" +) +ProtectReportMetric.internal_modified_over_2_years_outside = ProtectReportMetric( + "internal_modified_over_2_years_outside" +) +ProtectReportMetric.internal_modified_over_2_years_personal = ProtectReportMetric( + "internal_modified_over_2_years_personal" +) +ProtectReportMetric.internal_modified_over_2_years_public = ProtectReportMetric( + "internal_modified_over_2_years_public" +) +ProtectReportMetric.internal_modified_over_3_years = ProtectReportMetric( + "internal_modified_over_3_years" +) +ProtectReportMetric.internal_modified_over_3_years_company = ProtectReportMetric( + "internal_modified_over_3_years_company" +) +ProtectReportMetric.internal_modified_over_3_years_outside = ProtectReportMetric( + "internal_modified_over_3_years_outside" +) +ProtectReportMetric.internal_modified_over_3_years_personal = ProtectReportMetric( + "internal_modified_over_3_years_personal" +) +ProtectReportMetric.internal_modified_over_3_years_public = ProtectReportMetric( + "internal_modified_over_3_years_public" +) +ProtectReportMetric.internal_modified_over_5_years = ProtectReportMetric( + "internal_modified_over_5_years" +) +ProtectReportMetric.internal_modified_over_5_years_company = ProtectReportMetric( + "internal_modified_over_5_years_company" +) +ProtectReportMetric.internal_modified_over_5_years_outside = ProtectReportMetric( + "internal_modified_over_5_years_outside" +) +ProtectReportMetric.internal_modified_over_5_years_personal = ProtectReportMetric( + "internal_modified_over_5_years_personal" +) +ProtectReportMetric.internal_modified_over_5_years_public = ProtectReportMetric( + "internal_modified_over_5_years_public" +) +ProtectReportMetric.items_all = ProtectReportMetric("items_all") +ProtectReportMetric.items_company_access = ProtectReportMetric("items_company_access") +ProtectReportMetric.items_internally_owned = ProtectReportMetric("items_internally_owned") +ProtectReportMetric.items_modified_over_1_year = ProtectReportMetric("items_modified_over_1_year") +ProtectReportMetric.items_modified_over_3_years = ProtectReportMetric("items_modified_over_3_years") +ProtectReportMetric.items_outside_access = ProtectReportMetric("items_outside_access") +ProtectReportMetric.items_personal_access = ProtectReportMetric("items_personal_access") +ProtectReportMetric.items_public_links = ProtectReportMetric("items_public_links") +ProtectReportMetric.other_folders = ProtectReportMetric("other_folders") +ProtectReportMetric.other_shared_drives = ProtectReportMetric("other_shared_drives") +ProtectReportMetric.shared_drives_internal = ProtectReportMetric("shared_drives_internal") +ProtectReportMetric.shared_drives_outside = ProtectReportMetric("shared_drives_outside") +ProtectReportMetric.shared_drives_personal = ProtectReportMetric("shared_drives_personal") +ProtectReportMetric.other = ProtectReportMetric("other") + +ProtectReportSection._items_validator = bv.Void() +ProtectReportSection._overview_other_validator = bv.Void() +ProtectReportSection._owned_externally_validator = bv.Void() +ProtectReportSection._owned_internally_validator = bv.Void() +ProtectReportSection._other_validator = bv.Void() +ProtectReportSection._tagmap = { + "items": ProtectReportSection._items_validator, + "overview_other": ProtectReportSection._overview_other_validator, + "owned_externally": ProtectReportSection._owned_externally_validator, + "owned_internally": ProtectReportSection._owned_internally_validator, + "other": ProtectReportSection._other_validator, +} + +ProtectReportSection.items = ProtectReportSection("items") +ProtectReportSection.overview_other = ProtectReportSection("overview_other") +ProtectReportSection.owned_externally = ProtectReportSection("owned_externally") +ProtectReportSection.owned_internally = ProtectReportSection("owned_internally") +ProtectReportSection.other = ProtectReportSection("other") + +ProtectReportViewDetails.report_category.validator = ProtectReportCategory_validator +ProtectReportViewDetails.report_section.validator = bv.Nullable(ProtectReportSection_validator) +ProtectReportViewDetails.report_metric.validator = bv.Nullable(ProtectReportMetric_validator) +ProtectReportViewDetails._all_field_names_ = set( + [ + "report_category", + "report_section", + "report_metric", + ] +) +ProtectReportViewDetails._all_fields_ = [ + ("report_category", ProtectReportViewDetails.report_category.validator), + ("report_section", ProtectReportViewDetails.report_section.validator), + ("report_metric", ProtectReportViewDetails.report_metric.validator), +] + +ProtectReportViewType.description.validator = bv.String() +ProtectReportViewType._all_field_names_ = set(["description"]) +ProtectReportViewType._all_fields_ = [("description", ProtectReportViewType.description.validator)] + QuickActionType._delete_shared_link_validator = bv.Void() QuickActionType._reset_password_validator = bv.Void() QuickActionType._restore_file_or_folder_validator = bv.Void() diff --git a/spec b/spec index 16dfea0..0d994eb 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit 16dfea0418d5c2f61afd971e5b74bda26ca80eff +Subproject commit 0d994ebe9e86f741b380a75a5267819aeb7eb63e