-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change Notes: Team Legal Holds Namespace: - Added comments to legalHoldPolicy struct - Add more detailed comments to LegalHoldsListHeldRevisionResult - Fix misc typos in comments Team Log Namespace: - Add optional EventTypeArg event_type to GetTeamEventsArg struct - Add invalid_filters to GetTeamEventsError union Team Log Generated Namespace: - Add deprecated tag to was_linked_apps_truncated, was_linked_devices_truncated, was_link_shared_folders_truncated parameters in JoinTeamDetails struct - Added the EventTypeArg union Team Members Namespace: - Update comment for retain_team_shares arg of MembersRemoveArg
- Loading branch information
Showing
7 changed files
with
6,953 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
secondary_emails, | ||
seen_state, | ||
sharing, | ||
stone_fixtures, | ||
team, | ||
team_common, | ||
team_log, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,139 @@ | ||
# -*- coding: utf-8 -*- | ||
# Auto-generated by Stone, do not modify. | ||
# @generated | ||
# flake8: noqa | ||
# pylint: skip-file | ||
try: | ||
from . import stone_validators as bv | ||
from . import stone_base as bb | ||
except (ImportError, SystemError, ValueError): | ||
# Catch errors raised when importing a relative module when not in a package. | ||
# This makes testing this file directly (outside of a package) easier. | ||
import stone_validators as bv | ||
import stone_base as bb | ||
|
||
class EmptyContainer(bb.Struct): | ||
""" | ||
This struct left intentionally empty | ||
""" | ||
|
||
__slots__ = [ | ||
] | ||
|
||
_has_required_fields = False | ||
|
||
def __init__(self): | ||
pass | ||
|
||
def _process_custom_annotations(self, annotation_type, field_path, processor): | ||
super(EmptyContainer, self)._process_custom_annotations(annotation_type, field_path, processor) | ||
|
||
def __repr__(self): | ||
return 'EmptyContainer()' | ||
|
||
EmptyContainer_validator = bv.Struct(EmptyContainer) | ||
|
||
class MixedInternalOnlyContainer(bb.Struct): | ||
|
||
__slots__ = [ | ||
'_public_value_value', | ||
'_public_value_present', | ||
] | ||
|
||
_has_required_fields = False | ||
|
||
def __init__(self, | ||
public_value=None): | ||
self._public_value_value = None | ||
self._public_value_present = False | ||
if public_value is not None: | ||
self.public_value = public_value | ||
|
||
@property | ||
def public_value(self): | ||
""" | ||
:rtype: int | ||
""" | ||
if self._public_value_present: | ||
return self._public_value_value | ||
else: | ||
return 0 | ||
|
||
@public_value.setter | ||
def public_value(self, val): | ||
val = self._public_value_validator.validate(val) | ||
self._public_value_value = val | ||
self._public_value_present = True | ||
|
||
@public_value.deleter | ||
def public_value(self): | ||
self._public_value_value = None | ||
self._public_value_present = False | ||
|
||
def _process_custom_annotations(self, annotation_type, field_path, processor): | ||
super(MixedInternalOnlyContainer, self)._process_custom_annotations(annotation_type, field_path, processor) | ||
|
||
def __repr__(self): | ||
return 'MixedInternalOnlyContainer(public_value={!r})'.format( | ||
self._public_value_value, | ||
) | ||
|
||
MixedInternalOnlyContainer_validator = bv.Struct(MixedInternalOnlyContainer) | ||
|
||
class MixedInternalOnlyEnum(bb.Union): | ||
""" | ||
This class acts as a tagged union. Only one of the ``is_*`` methods will | ||
return true. To get the associated value of a tag (if one exists), use the | ||
corresponding ``get_*`` method. | ||
""" | ||
|
||
_catch_all = 'other' | ||
# Attribute is overwritten below the class definition | ||
public = None | ||
# Attribute is overwritten below the class definition | ||
other = None | ||
|
||
def is_public(self): | ||
""" | ||
Check if the union tag is ``public``. | ||
:rtype: bool | ||
""" | ||
return self._tag == 'public' | ||
|
||
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(MixedInternalOnlyEnum, self)._process_custom_annotations(annotation_type, field_path, processor) | ||
|
||
def __repr__(self): | ||
return 'MixedInternalOnlyEnum(%r, %r)' % (self._tag, self._value) | ||
|
||
MixedInternalOnlyEnum_validator = bv.Union(MixedInternalOnlyEnum) | ||
|
||
EmptyContainer._all_field_names_ = set([]) | ||
EmptyContainer._all_fields_ = [] | ||
|
||
MixedInternalOnlyContainer._public_value_validator = bv.Int32() | ||
MixedInternalOnlyContainer._all_field_names_ = set(['public_value']) | ||
MixedInternalOnlyContainer._all_fields_ = [('public_value', MixedInternalOnlyContainer._public_value_validator)] | ||
|
||
MixedInternalOnlyEnum._public_validator = bv.Void() | ||
MixedInternalOnlyEnum._other_validator = bv.Void() | ||
MixedInternalOnlyEnum._tagmap = { | ||
'public': MixedInternalOnlyEnum._public_validator, | ||
'other': MixedInternalOnlyEnum._other_validator, | ||
} | ||
|
||
MixedInternalOnlyEnum.public = MixedInternalOnlyEnum('public') | ||
MixedInternalOnlyEnum.other = MixedInternalOnlyEnum('other') | ||
|
||
ROUTES = { | ||
} | ||
|
Oops, something went wrong.