Skip to content

Commit 8e0608f

Browse files
Automated Spec Update (#575)
b45a911a6c8bf71335b4a51798a21dabcee892ca Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com> Co-authored-by: dropbox-sdk-updater[bot] <306210582+dropbox-sdk-updater[bot]@users.noreply.github.com>
1 parent ebd3d3c commit 8e0608f

2 files changed

Lines changed: 150 additions & 1 deletion

File tree

dropbox/team_log.py

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16179,6 +16179,17 @@ def protect_policy_deactivated_details(cls, val):
1617916179
"""
1618016180
return cls("protect_policy_deactivated_details", val)
1618116181

16182+
@classmethod
16183+
def protect_policy_scheduled_details(cls, val):
16184+
"""
16185+
Create an instance of this class set to the
16186+
``protect_policy_scheduled_details`` tag with value ``val``.
16187+
16188+
:param ProtectPolicyScheduledDetails val:
16189+
:rtype: EventDetails
16190+
"""
16191+
return cls("protect_policy_scheduled_details", val)
16192+
1618216193
@classmethod
1618316194
def protect_policy_updated_details(cls, val):
1618416195
"""
@@ -22313,6 +22324,14 @@ def is_protect_policy_deactivated_details(self):
2231322324
"""
2231422325
return self._tag == "protect_policy_deactivated_details"
2231522326

22327+
def is_protect_policy_scheduled_details(self):
22328+
"""
22329+
Check if the union tag is ``protect_policy_scheduled_details``.
22330+
22331+
:rtype: bool
22332+
"""
22333+
return self._tag == "protect_policy_scheduled_details"
22334+
2231622335
def is_protect_policy_updated_details(self):
2231722336
"""
2231822337
Check if the union tag is ``protect_policy_updated_details``.
@@ -27949,6 +27968,16 @@ def get_protect_policy_deactivated_details(self):
2794927968
raise AttributeError("tag 'protect_policy_deactivated_details' not set")
2795027969
return self._value
2795127970

27971+
def get_protect_policy_scheduled_details(self):
27972+
"""
27973+
Only call this if :meth:`is_protect_policy_scheduled_details` is true.
27974+
27975+
:rtype: ProtectPolicyScheduledDetails
27976+
"""
27977+
if not self.is_protect_policy_scheduled_details():
27978+
raise AttributeError("tag 'protect_policy_scheduled_details' not set")
27979+
return self._value
27980+
2795227981
def get_protect_policy_updated_details(self):
2795327982
"""
2795427983
Only call this if :meth:`is_protect_policy_updated_details` is true.
@@ -32335,6 +32364,9 @@ class EventType(bb.Union):
3233532364
:ivar EventType.protect_policy_deactivated:
3233632365
(protect) Deactivated a Dropbox Protect policy
3233732366
:vartype EventType.protect_policy_deactivated: ProtectPolicyDeactivatedType
32367+
:ivar EventType.protect_policy_scheduled:
32368+
(protect) Scheduled a Dropbox Protect policy
32369+
:vartype EventType.protect_policy_scheduled: ProtectPolicyScheduledType
3233832370
:ivar EventType.protect_policy_updated:
3233932371
(protect) Updated a Dropbox Protect policy
3234032372
:vartype EventType.protect_policy_updated: ProtectPolicyUpdatedType
@@ -36598,6 +36630,17 @@ def protect_policy_deactivated(cls, val):
3659836630
"""
3659936631
return cls("protect_policy_deactivated", val)
3660036632

36633+
@classmethod
36634+
def protect_policy_scheduled(cls, val):
36635+
"""
36636+
Create an instance of this class set to the ``protect_policy_scheduled``
36637+
tag with value ``val``.
36638+
36639+
:param ProtectPolicyScheduledType val:
36640+
:rtype: EventType
36641+
"""
36642+
return cls("protect_policy_scheduled", val)
36643+
3660136644
@classmethod
3660236645
def protect_policy_updated(cls, val):
3660336646
"""
@@ -42678,6 +42721,14 @@ def is_protect_policy_deactivated(self):
4267842721
"""
4267942722
return self._tag == "protect_policy_deactivated"
4268042723

42724+
def is_protect_policy_scheduled(self):
42725+
"""
42726+
Check if the union tag is ``protect_policy_scheduled``.
42727+
42728+
:rtype: bool
42729+
"""
42730+
return self._tag == "protect_policy_scheduled"
42731+
4268142732
def is_protect_policy_updated(self):
4268242733
"""
4268342734
Check if the union tag is ``protect_policy_updated``.
@@ -48883,6 +48934,18 @@ def get_protect_policy_deactivated(self):
4888348934
raise AttributeError("tag 'protect_policy_deactivated' not set")
4888448935
return self._value
4888548936

48937+
def get_protect_policy_scheduled(self):
48938+
"""
48939+
(protect) Scheduled a Dropbox Protect policy
48940+
48941+
Only call this if :meth:`is_protect_policy_scheduled` is true.
48942+
48943+
:rtype: ProtectPolicyScheduledType
48944+
"""
48945+
if not self.is_protect_policy_scheduled():
48946+
raise AttributeError("tag 'protect_policy_scheduled' not set")
48947+
return self._value
48948+
4888648949
def get_protect_policy_updated(self):
4888748950
"""
4888848951
(protect) Updated a Dropbox Protect policy
@@ -53672,6 +53735,8 @@ class EventTypeArg(bb.Union):
5367253735
(protect) Activated a Dropbox Protect policy
5367353736
:ivar EventTypeArg.protect_policy_deactivated:
5367453737
(protect) Deactivated a Dropbox Protect policy
53738+
:ivar EventTypeArg.protect_policy_scheduled:
53739+
(protect) Scheduled a Dropbox Protect policy
5367553740
:ivar EventTypeArg.protect_policy_updated:
5367653741
(protect) Updated a Dropbox Protect policy
5367753742
:ivar EventTypeArg.classification_create_report:
@@ -55003,6 +55068,8 @@ class EventTypeArg(bb.Union):
5500355068
# Attribute is overwritten below the class definition
5500455069
protect_policy_deactivated = None
5500555070
# Attribute is overwritten below the class definition
55071+
protect_policy_scheduled = None
55072+
# Attribute is overwritten below the class definition
5500655073
protect_policy_updated = None
5500755074
# Attribute is overwritten below the class definition
5500855075
classification_create_report = None
@@ -57985,6 +58052,14 @@ def is_protect_policy_deactivated(self):
5798558052
"""
5798658053
return self._tag == "protect_policy_deactivated"
5798758054

58055+
def is_protect_policy_scheduled(self):
58056+
"""
58057+
Check if the union tag is ``protect_policy_scheduled``.
58058+
58059+
:rtype: bool
58060+
"""
58061+
return self._tag == "protect_policy_scheduled"
58062+
5798858063
def is_protect_policy_updated(self):
5798958064
"""
5799058065
Check if the union tag is ``protect_policy_updated``.
@@ -80542,6 +80617,61 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
8054280617
ProtectPolicyDeactivatedType_validator = bv.Struct(ProtectPolicyDeactivatedType)
8054380618

8054480619

80620+
class ProtectPolicyScheduledDetails(bb.Struct):
80621+
"""
80622+
Scheduled a Dropbox Protect policy.
80623+
80624+
:ivar ProtectPolicyScheduledDetails.policy_id:
80625+
Policy ID.
80626+
"""
80627+
80628+
__slots__ = [
80629+
"_policy_id_value",
80630+
]
80631+
80632+
_has_required_fields = True
80633+
80634+
def __init__(self, policy_id=None):
80635+
self._policy_id_value = bb.NOT_SET
80636+
if policy_id is not None:
80637+
self.policy_id = policy_id
80638+
80639+
# Instance attribute type: str (validator is set below)
80640+
policy_id = bb.Attribute("policy_id")
80641+
80642+
def _process_custom_annotations(self, annotation_type, field_path, processor):
80643+
super(ProtectPolicyScheduledDetails, self)._process_custom_annotations(
80644+
annotation_type, field_path, processor
80645+
)
80646+
80647+
80648+
ProtectPolicyScheduledDetails_validator = bv.Struct(ProtectPolicyScheduledDetails)
80649+
80650+
80651+
class ProtectPolicyScheduledType(bb.Struct):
80652+
__slots__ = [
80653+
"_description_value",
80654+
]
80655+
80656+
_has_required_fields = True
80657+
80658+
def __init__(self, description=None):
80659+
self._description_value = bb.NOT_SET
80660+
if description is not None:
80661+
self.description = description
80662+
80663+
# Instance attribute type: str (validator is set below)
80664+
description = bb.Attribute("description")
80665+
80666+
def _process_custom_annotations(self, annotation_type, field_path, processor):
80667+
super(ProtectPolicyScheduledType, self)._process_custom_annotations(
80668+
annotation_type, field_path, processor
80669+
)
80670+
80671+
80672+
ProtectPolicyScheduledType_validator = bv.Struct(ProtectPolicyScheduledType)
80673+
80674+
8054580675
class ProtectPolicyUpdatedDetails(bb.Struct):
8054680676
"""
8054780677
Updated a Dropbox Protect policy.
@@ -103239,6 +103369,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
103239103369
EventDetails._protect_policy_deactivated_details_validator = (
103240103370
ProtectPolicyDeactivatedDetails_validator
103241103371
)
103372+
EventDetails._protect_policy_scheduled_details_validator = ProtectPolicyScheduledDetails_validator
103242103373
EventDetails._protect_policy_updated_details_validator = ProtectPolicyUpdatedDetails_validator
103243103374
EventDetails._classification_create_report_details_validator = (
103244103375
ClassificationCreateReportDetails_validator
@@ -104315,6 +104446,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
104315104446
"protect_internal_domains_changed_details": EventDetails._protect_internal_domains_changed_details_validator,
104316104447
"protect_policy_activated_details": EventDetails._protect_policy_activated_details_validator,
104317104448
"protect_policy_deactivated_details": EventDetails._protect_policy_deactivated_details_validator,
104449+
"protect_policy_scheduled_details": EventDetails._protect_policy_scheduled_details_validator,
104318104450
"protect_policy_updated_details": EventDetails._protect_policy_updated_details_validator,
104319104451
"classification_create_report_details": EventDetails._classification_create_report_details_validator,
104320104452
"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):
105048105180
EventType._protect_internal_domains_changed_validator = ProtectInternalDomainsChangedType_validator
105049105181
EventType._protect_policy_activated_validator = ProtectPolicyActivatedType_validator
105050105182
EventType._protect_policy_deactivated_validator = ProtectPolicyDeactivatedType_validator
105183+
EventType._protect_policy_scheduled_validator = ProtectPolicyScheduledType_validator
105051105184
EventType._protect_policy_updated_validator = ProtectPolicyUpdatedType_validator
105052105185
EventType._classification_create_report_validator = ClassificationCreateReportType_validator
105053105186
EventType._classification_create_report_fail_validator = (
@@ -105887,6 +106020,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
105887106020
"protect_internal_domains_changed": EventType._protect_internal_domains_changed_validator,
105888106021
"protect_policy_activated": EventType._protect_policy_activated_validator,
105889106022
"protect_policy_deactivated": EventType._protect_policy_deactivated_validator,
106023+
"protect_policy_scheduled": EventType._protect_policy_scheduled_validator,
105890106024
"protect_policy_updated": EventType._protect_policy_updated_validator,
105891106025
"classification_create_report": EventType._classification_create_report_validator,
105892106026
"classification_create_report_fail": EventType._classification_create_report_fail_validator,
@@ -106521,6 +106655,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
106521106655
EventTypeArg._protect_internal_domains_changed_validator = bv.Void()
106522106656
EventTypeArg._protect_policy_activated_validator = bv.Void()
106523106657
EventTypeArg._protect_policy_deactivated_validator = bv.Void()
106658+
EventTypeArg._protect_policy_scheduled_validator = bv.Void()
106524106659
EventTypeArg._protect_policy_updated_validator = bv.Void()
106525106660
EventTypeArg._classification_create_report_validator = bv.Void()
106526106661
EventTypeArg._classification_create_report_fail_validator = bv.Void()
@@ -107152,6 +107287,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
107152107287
"protect_internal_domains_changed": EventTypeArg._protect_internal_domains_changed_validator,
107153107288
"protect_policy_activated": EventTypeArg._protect_policy_activated_validator,
107154107289
"protect_policy_deactivated": EventTypeArg._protect_policy_deactivated_validator,
107290+
"protect_policy_scheduled": EventTypeArg._protect_policy_scheduled_validator,
107155107291
"protect_policy_updated": EventTypeArg._protect_policy_updated_validator,
107156107292
"classification_create_report": EventTypeArg._classification_create_report_validator,
107157107293
"classification_create_report_fail": EventTypeArg._classification_create_report_fail_validator,
@@ -107862,6 +107998,7 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
107862107998
EventTypeArg.protect_internal_domains_changed = EventTypeArg("protect_internal_domains_changed")
107863107999
EventTypeArg.protect_policy_activated = EventTypeArg("protect_policy_activated")
107864108000
EventTypeArg.protect_policy_deactivated = EventTypeArg("protect_policy_deactivated")
108001+
EventTypeArg.protect_policy_scheduled = EventTypeArg("protect_policy_scheduled")
107865108002
EventTypeArg.protect_policy_updated = EventTypeArg("protect_policy_updated")
107866108003
EventTypeArg.classification_create_report = EventTypeArg("classification_create_report")
107867108004
EventTypeArg.classification_create_report_fail = EventTypeArg("classification_create_report_fail")
@@ -113598,6 +113735,18 @@ def _process_custom_annotations(self, annotation_type, field_path, processor):
113598113735
("description", ProtectPolicyDeactivatedType.description.validator)
113599113736
]
113600113737

113738+
ProtectPolicyScheduledDetails.policy_id.validator = bv.String()
113739+
ProtectPolicyScheduledDetails._all_field_names_ = set(["policy_id"])
113740+
ProtectPolicyScheduledDetails._all_fields_ = [
113741+
("policy_id", ProtectPolicyScheduledDetails.policy_id.validator)
113742+
]
113743+
113744+
ProtectPolicyScheduledType.description.validator = bv.String()
113745+
ProtectPolicyScheduledType._all_field_names_ = set(["description"])
113746+
ProtectPolicyScheduledType._all_fields_ = [
113747+
("description", ProtectPolicyScheduledType.description.validator)
113748+
]
113749+
113601113750
ProtectPolicyUpdatedDetails.policy_id.validator = bv.String()
113602113751
ProtectPolicyUpdatedDetails._all_field_names_ = set(["policy_id"])
113603113752
ProtectPolicyUpdatedDetails._all_fields_ = [

spec

Submodule spec updated 1 file

0 commit comments

Comments
 (0)