From a67df969a6f68e7055e480464483d5f4080f901c Mon Sep 17 00:00:00 2001 From: "dropbox-sdk-updater[bot]" <306210582+dropbox-sdk-updater[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 12:02:32 +0000 Subject: [PATCH] Automated Spec Update b45a911a6c8bf71335b4a51798a21dabcee892ca Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com> --- dropbox/team_log.py | 149 ++++++++++++++++++++++++++++++++++++++++++++ spec | 2 +- 2 files changed, 150 insertions(+), 1 deletion(-) diff --git a/dropbox/team_log.py b/dropbox/team_log.py index 53c28fb..d38eeee 100644 --- a/dropbox/team_log.py +++ b/dropbox/team_log.py @@ -16179,6 +16179,17 @@ def protect_policy_deactivated_details(cls, val): """ return cls("protect_policy_deactivated_details", val) + @classmethod + def protect_policy_scheduled_details(cls, val): + """ + Create an instance of this class set to the + ``protect_policy_scheduled_details`` tag with value ``val``. + + :param ProtectPolicyScheduledDetails val: + :rtype: EventDetails + """ + return cls("protect_policy_scheduled_details", val) + @classmethod def protect_policy_updated_details(cls, val): """ @@ -22313,6 +22324,14 @@ def is_protect_policy_deactivated_details(self): """ return self._tag == "protect_policy_deactivated_details" + def is_protect_policy_scheduled_details(self): + """ + Check if the union tag is ``protect_policy_scheduled_details``. + + :rtype: bool + """ + return self._tag == "protect_policy_scheduled_details" + def is_protect_policy_updated_details(self): """ Check if the union tag is ``protect_policy_updated_details``. @@ -27949,6 +27968,16 @@ def get_protect_policy_deactivated_details(self): raise AttributeError("tag 'protect_policy_deactivated_details' not set") return self._value + def get_protect_policy_scheduled_details(self): + """ + Only call this if :meth:`is_protect_policy_scheduled_details` is true. + + :rtype: ProtectPolicyScheduledDetails + """ + if not self.is_protect_policy_scheduled_details(): + raise AttributeError("tag 'protect_policy_scheduled_details' not set") + return self._value + def get_protect_policy_updated_details(self): """ Only call this if :meth:`is_protect_policy_updated_details` is true. @@ -32335,6 +32364,9 @@ class EventType(bb.Union): :ivar EventType.protect_policy_deactivated: (protect) Deactivated a Dropbox Protect policy :vartype EventType.protect_policy_deactivated: ProtectPolicyDeactivatedType + :ivar EventType.protect_policy_scheduled: + (protect) Scheduled a Dropbox Protect policy + :vartype EventType.protect_policy_scheduled: ProtectPolicyScheduledType :ivar EventType.protect_policy_updated: (protect) Updated a Dropbox Protect policy :vartype EventType.protect_policy_updated: ProtectPolicyUpdatedType @@ -36598,6 +36630,17 @@ def protect_policy_deactivated(cls, val): """ return cls("protect_policy_deactivated", val) + @classmethod + def protect_policy_scheduled(cls, val): + """ + Create an instance of this class set to the ``protect_policy_scheduled`` + tag with value ``val``. + + :param ProtectPolicyScheduledType val: + :rtype: EventType + """ + return cls("protect_policy_scheduled", val) + @classmethod def protect_policy_updated(cls, val): """ @@ -42678,6 +42721,14 @@ def is_protect_policy_deactivated(self): """ return self._tag == "protect_policy_deactivated" + def is_protect_policy_scheduled(self): + """ + Check if the union tag is ``protect_policy_scheduled``. + + :rtype: bool + """ + return self._tag == "protect_policy_scheduled" + def is_protect_policy_updated(self): """ Check if the union tag is ``protect_policy_updated``. @@ -48883,6 +48934,18 @@ def get_protect_policy_deactivated(self): raise AttributeError("tag 'protect_policy_deactivated' not set") return self._value + def get_protect_policy_scheduled(self): + """ + (protect) Scheduled a Dropbox Protect policy + + Only call this if :meth:`is_protect_policy_scheduled` is true. + + :rtype: ProtectPolicyScheduledType + """ + if not self.is_protect_policy_scheduled(): + raise AttributeError("tag 'protect_policy_scheduled' not set") + return self._value + def get_protect_policy_updated(self): """ (protect) Updated a Dropbox Protect policy @@ -53672,6 +53735,8 @@ class EventTypeArg(bb.Union): (protect) Activated a Dropbox Protect policy :ivar EventTypeArg.protect_policy_deactivated: (protect) Deactivated a Dropbox Protect policy + :ivar EventTypeArg.protect_policy_scheduled: + (protect) Scheduled a Dropbox Protect policy :ivar EventTypeArg.protect_policy_updated: (protect) Updated a Dropbox Protect policy :ivar EventTypeArg.classification_create_report: @@ -55003,6 +55068,8 @@ class EventTypeArg(bb.Union): # Attribute is overwritten below the class definition protect_policy_deactivated = None # Attribute is overwritten below the class definition + protect_policy_scheduled = None + # Attribute is overwritten below the class definition protect_policy_updated = None # Attribute is overwritten below the class definition classification_create_report = None @@ -57985,6 +58052,14 @@ def is_protect_policy_deactivated(self): """ return self._tag == "protect_policy_deactivated" + def is_protect_policy_scheduled(self): + """ + Check if the union tag is ``protect_policy_scheduled``. + + :rtype: bool + """ + return self._tag == "protect_policy_scheduled" + def is_protect_policy_updated(self): """ Check if the union tag is ``protect_policy_updated``. @@ -80542,6 +80617,61 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ProtectPolicyDeactivatedType_validator = bv.Struct(ProtectPolicyDeactivatedType) +class ProtectPolicyScheduledDetails(bb.Struct): + """ + Scheduled a Dropbox Protect policy. + + :ivar ProtectPolicyScheduledDetails.policy_id: + Policy ID. + """ + + __slots__ = [ + "_policy_id_value", + ] + + _has_required_fields = True + + def __init__(self, policy_id=None): + self._policy_id_value = bb.NOT_SET + if policy_id is not None: + self.policy_id = policy_id + + # Instance attribute type: str (validator is set below) + policy_id = bb.Attribute("policy_id") + + def _process_custom_annotations(self, annotation_type, field_path, processor): + super(ProtectPolicyScheduledDetails, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectPolicyScheduledDetails_validator = bv.Struct(ProtectPolicyScheduledDetails) + + +class ProtectPolicyScheduledType(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(ProtectPolicyScheduledType, self)._process_custom_annotations( + annotation_type, field_path, processor + ) + + +ProtectPolicyScheduledType_validator = bv.Struct(ProtectPolicyScheduledType) + + class ProtectPolicyUpdatedDetails(bb.Struct): """ Updated a Dropbox Protect policy. @@ -103239,6 +103369,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventDetails._protect_policy_deactivated_details_validator = ( ProtectPolicyDeactivatedDetails_validator ) +EventDetails._protect_policy_scheduled_details_validator = ProtectPolicyScheduledDetails_validator EventDetails._protect_policy_updated_details_validator = ProtectPolicyUpdatedDetails_validator EventDetails._classification_create_report_details_validator = ( ClassificationCreateReportDetails_validator @@ -104315,6 +104446,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "protect_internal_domains_changed_details": EventDetails._protect_internal_domains_changed_details_validator, "protect_policy_activated_details": EventDetails._protect_policy_activated_details_validator, "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, "classification_create_report_details": EventDetails._classification_create_report_details_validator, "classification_create_report_fail_details": EventDetails._classification_create_report_fail_details_validator, @@ -105048,6 +105180,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventType._protect_internal_domains_changed_validator = ProtectInternalDomainsChangedType_validator EventType._protect_policy_activated_validator = ProtectPolicyActivatedType_validator EventType._protect_policy_deactivated_validator = ProtectPolicyDeactivatedType_validator +EventType._protect_policy_scheduled_validator = ProtectPolicyScheduledType_validator EventType._protect_policy_updated_validator = ProtectPolicyUpdatedType_validator EventType._classification_create_report_validator = ClassificationCreateReportType_validator EventType._classification_create_report_fail_validator = ( @@ -105887,6 +106020,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "protect_internal_domains_changed": EventType._protect_internal_domains_changed_validator, "protect_policy_activated": EventType._protect_policy_activated_validator, "protect_policy_deactivated": EventType._protect_policy_deactivated_validator, + "protect_policy_scheduled": EventType._protect_policy_scheduled_validator, "protect_policy_updated": EventType._protect_policy_updated_validator, "classification_create_report": EventType._classification_create_report_validator, "classification_create_report_fail": EventType._classification_create_report_fail_validator, @@ -106521,6 +106655,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventTypeArg._protect_internal_domains_changed_validator = bv.Void() EventTypeArg._protect_policy_activated_validator = bv.Void() EventTypeArg._protect_policy_deactivated_validator = bv.Void() +EventTypeArg._protect_policy_scheduled_validator = bv.Void() EventTypeArg._protect_policy_updated_validator = bv.Void() EventTypeArg._classification_create_report_validator = bv.Void() EventTypeArg._classification_create_report_fail_validator = bv.Void() @@ -107152,6 +107287,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): "protect_internal_domains_changed": EventTypeArg._protect_internal_domains_changed_validator, "protect_policy_activated": EventTypeArg._protect_policy_activated_validator, "protect_policy_deactivated": EventTypeArg._protect_policy_deactivated_validator, + "protect_policy_scheduled": EventTypeArg._protect_policy_scheduled_validator, "protect_policy_updated": EventTypeArg._protect_policy_updated_validator, "classification_create_report": EventTypeArg._classification_create_report_validator, "classification_create_report_fail": EventTypeArg._classification_create_report_fail_validator, @@ -107862,6 +107998,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): EventTypeArg.protect_internal_domains_changed = EventTypeArg("protect_internal_domains_changed") EventTypeArg.protect_policy_activated = EventTypeArg("protect_policy_activated") 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.classification_create_report = EventTypeArg("classification_create_report") EventTypeArg.classification_create_report_fail = EventTypeArg("classification_create_report_fail") @@ -113598,6 +113735,18 @@ def _process_custom_annotations(self, annotation_type, field_path, processor): ("description", ProtectPolicyDeactivatedType.description.validator) ] +ProtectPolicyScheduledDetails.policy_id.validator = bv.String() +ProtectPolicyScheduledDetails._all_field_names_ = set(["policy_id"]) +ProtectPolicyScheduledDetails._all_fields_ = [ + ("policy_id", ProtectPolicyScheduledDetails.policy_id.validator) +] + +ProtectPolicyScheduledType.description.validator = bv.String() +ProtectPolicyScheduledType._all_field_names_ = set(["description"]) +ProtectPolicyScheduledType._all_fields_ = [ + ("description", ProtectPolicyScheduledType.description.validator) +] + ProtectPolicyUpdatedDetails.policy_id.validator = bv.String() ProtectPolicyUpdatedDetails._all_field_names_ = set(["policy_id"]) ProtectPolicyUpdatedDetails._all_fields_ = [ diff --git a/spec b/spec index c2df3ee..b45a911 160000 --- a/spec +++ b/spec @@ -1 +1 @@ -Subproject commit c2df3ee5dccc76a21bfa5b4139bff050cea53de7 +Subproject commit b45a911a6c8bf71335b4a51798a21dabcee892ca