Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
149 changes: 149 additions & 0 deletions dropbox/team_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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``.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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``.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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``.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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 = (
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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_ = [
Expand Down
2 changes: 1 addition & 1 deletion spec
Submodule spec updated 1 files
+19 −0 team_log.stone
Loading