def template_id(self, val): val = self._template_id_validator.validate(val) self._template_id_value = val self._template_id_present = True @template_id.deleter def template_id(self): self._template_id_value = None self._template_id_present = False def __repr__(self): return 'GetPropertyTemplateArg(template_id={!r})'.format( self._template_id_value, ) GetPropertyTemplateArg_validator = bv.Struct(GetPropertyTemplateArg) class PropertyGroupTemplate(object): """ Describes property templates that can be filled and associated with a file. :ivar name: A display name for the property template. Property template names can be up to 256 bytes. :ivar description: Description for new property template. Property template descriptions can be up to 1024 bytes. :ivar fields: This is a list of custom properties associated with a property template. There can be up to 64 properties in a single property template. """
self._office_addin_value = val self._office_addin_present = True @office_addin.deleter def office_addin(self): self._office_addin_value = None self._office_addin_present = False def __repr__(self): return 'TeamMemberPolicies(sharing={!r}, emm_state={!r}, office_addin={!r})'.format( self._sharing_value, self._emm_state_value, self._office_addin_value, ) TeamMemberPolicies_validator = bv.Struct(TeamMemberPolicies) class TeamSharingPolicies(object): """ Policies governing sharing within and outside of the team. :ivar shared_folder_member_policy: Who can join folders shared by team members. :ivar shared_folder_join_policy: Which shared folders team members can join. :ivar shared_link_create_policy: Who can view shared links owned by team members. """ __slots__ = [ '_shared_folder_member_policy_value', '_shared_folder_member_policy_present',
@open.deleter def open(self): self._open_value = None self._open_present = False def __repr__(self): return 'CreateFileRequestArgs(title={!r}, destination={!r}, deadline={!r}, open={!r})'.format( self._title_value, self._destination_value, self._deadline_value, self._open_value, ) CreateFileRequestArgs_validator = bv.Struct(CreateFileRequestArgs) class GeneralFileRequestsError(bb.Union): """ There is an error accessing the file requests functionality. 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. :ivar disabled_for_team: This user's Dropbox Business team doesn't allow file requests. """ _catch_all = 'other'
val = self._retry_after_validator.validate(val) self._retry_after_value = val self._retry_after_present = True @retry_after.deleter def retry_after(self): self._retry_after_value = None self._retry_after_present = False def __repr__(self): return 'RateLimitError(reason={!r}, retry_after={!r})'.format( self._reason_value, self._retry_after_value, ) RateLimitError_validator = bv.Struct(RateLimitError) class RateLimitReason(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. :ivar too_many_requests: You are making too many requests in the past few minutes. :ivar too_many_write_operations: There are currently too many write operations happening in the user's Dropbox. """ _catch_all = 'other' # Attribute is overwritten below the class definition
def disabled(self): self._disabled_value = None self._disabled_present = False def __repr__(self): return 'Account(account_id={!r}, name={!r}, email={!r}, email_verified={!r}, disabled={!r}, profile_photo_url={!r})'.format( self._account_id_value, self._name_value, self._email_value, self._email_verified_value, self._disabled_value, self._profile_photo_url_value, ) Account_validator = bv.Struct(Account) class AccountType(bb.Union): """ What type of account this user has. 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. :ivar basic: The basic account type. :ivar pro: The Dropbox Pro account type. :ivar business: The Dropbox Business account type. """
@async_job_id.setter def async_job_id(self, val): val = self._async_job_id_validator.validate(val) self._async_job_id_value = val self._async_job_id_present = True @async_job_id.deleter def async_job_id(self): self._async_job_id_value = None self._async_job_id_present = False def __repr__(self): return 'PollArg(async_job_id={!r})'.format(self._async_job_id_value, ) PollArg_validator = bv.Struct(PollArg) class PollResultBase(bb.Union): """ Result returned by methods that poll for the status of an asynchronous job. Unions that extend this union should add a 'complete' field with a type of the information returned upon job completion. See :class:`PollEmptyResult` for an example. 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. :ivar in_progress: The asynchronous job is still in progress. """
@group_management_type.deleter def group_management_type(self): self._group_management_type_value = None self._group_management_type_present = False def __repr__(self): return 'GroupSummary(group_name={!r}, group_id={!r}, group_management_type={!r}, group_external_id={!r}, member_count={!r})'.format( self._group_name_value, self._group_id_value, self._group_management_type_value, self._group_external_id_value, self._member_count_value, ) GroupSummary_validator = bv.Struct(GroupSummary) class GroupType(bb.Union): """ The group type determines how a group is created and managed. 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. :ivar team: A group to which team members are automatically added. Applicable to `team folders <https://www.dropbox.com/help/986>`_ only. :ivar user_managed: A group is created and managed by a user. """
@query.deleter def query(self): self._query_value = None self._query_present = False def _process_custom_annotations(self, annotation_type, field_path, processor): super(EchoArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'EchoArg(query={!r})'.format(self._query_value, ) EchoArg_validator = bv.Struct(EchoArg) class EchoResult(bb.Struct): """ EchoResult contains the result returned from the Dropbox servers. :ivar check.EchoResult.result: If everything worked correctly, this would be the same as query. """ __slots__ = [ '_result_value', '_result_present', ]
def district(self): self._stone_district_value = None self._stone_district_present = False def __repr__(self): return 'BaseAddress(firstLine={!r}, secondLine={!r}, floor={!r}, apartment={!r}, zone={!r}, district={!r})'.format( self._stone_firstLine_value, self._stone_secondLine_value, self._stone_floor_value, self._stone_apartment_value, self._stone_zone_value, self._stone_district_value, ) BaseAddress_validator = bv.Struct(BaseAddress) class Address(BaseAddress): """ Address for requests. :ivar geoLocation: Latitude and Longitude. :ivar city: City code where the address belongs to. """ __slots__ = [ '_stone_geoLocation_value', '_stone_geoLocation_present', '_stone_city_value', '_stone_city_present',
@photo.deleter def photo(self): self._photo_value = None self._photo_present = False def _process_custom_annotations(self, annotation_type, field_path, processor): super(SetProfilePhotoArg, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SetProfilePhotoArg(photo={!r})'.format(self._photo_value, ) SetProfilePhotoArg_validator = bv.Struct(SetProfilePhotoArg) class SetProfilePhotoError(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. :ivar account.SetProfilePhotoError.file_type_error: File cannot be set as profile photo. :ivar account.SetProfilePhotoError.file_size_error: File cannot exceed 10 MB. :ivar account.SetProfilePhotoError.dimension_error: Image must be larger than 128 x 128. :ivar account.SetProfilePhotoError.thumbnail_error: Image could not be
self._member_count_present = True @member_count.deleter def member_count(self): self._member_count_value = None self._member_count_present = False def __repr__(self): return 'GroupSummary(group_name={!r}, group_id={!r}, group_external_id={!r}, member_count={!r})'.format( self._group_name_value, self._group_id_value, self._group_external_id_value, self._member_count_value, ) GroupSummary_validator = bv.Struct(GroupSummary) class AlphaGroupSummary(GroupSummary): """ Information about a group. :ivar group_management_type: Who is allowed to manage the group. """ __slots__ = [ '_group_management_type_value', '_group_management_type_present', ] _has_required_fields = True
self._stone_address_value = val self._stone_address_present = True @address.deleter def address(self): self._stone_address_value = None self._stone_address_present = False def __repr__(self): return 'CreateSubAccountArg(name={!r}, phone={!r}, address={!r})'.format( self._stone_name_value, self._stone_phone_value, self._stone_address_value, ) CreateSubAccountArg_validator = bv.Struct(CreateSubAccountArg) class CreateSubAccountResult(object): """ :ivar _id: ID of the created sub account. :ivar message: Success message. """ __slots__ = [ '_stone__id_value', '_stone__id_present', '_stone_message_value', '_stone_message_present', ] _has_required_fields = True
_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._home_path_value = None self._home_path_present = False def _process_custom_annotations(self, annotation_type, processor): super(TeamRootInfo, self)._process_custom_annotations(annotation_type, processor) def __repr__(self): return 'TeamRootInfo(root_namespace_id={!r}, home_namespace_id={!r}, home_path={!r})'.format( self._root_namespace_id_value, self._home_namespace_id_value, self._home_path_value, ) TeamRootInfo_validator = bv.Struct(TeamRootInfo) class UserRootInfo(RootInfo): """ Root info when user is not member of a team or the user is a member of a team and the team does not have a separate root namespace. """ __slots__ = [] _has_required_fields = True def __init__(self, root_namespace_id=None, home_namespace_id=None): super(UserRootInfo, self).__init__(root_namespace_id, home_namespace_id)
@email_addresses.deleter def email_addresses(self): self._email_addresses_value = None self._email_addresses_present = False def _process_custom_annotations(self, annotation_type, processor): super(DeleteManualContactsArg, self)._process_custom_annotations(annotation_type, processor) def __repr__(self): return 'DeleteManualContactsArg(email_addresses={!r})'.format( self._email_addresses_value, ) DeleteManualContactsArg_validator = bv.Struct(DeleteManualContactsArg) class DeleteManualContactsError(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. :ivar list of [str] contacts_not_found: Can't delete contacts from this list. Make sure the list only has manually added contacts. The deletion was cancelled. """ _catch_all = 'other' # Attribute is overwritten below the class definition
self._is_verified_value = None self._is_verified_present = False def _process_custom_annotations(self, annotation_type, field_path, processor): super(SecondaryEmail, self)._process_custom_annotations(annotation_type, field_path, processor) def __repr__(self): return 'SecondaryEmail(email={!r}, is_verified={!r})'.format( self._email_value, self._is_verified_value, ) SecondaryEmail_validator = bv.Struct(SecondaryEmail) SecondaryEmail._email_validator = common.EmailAddress_validator SecondaryEmail._is_verified_validator = bv.Boolean() SecondaryEmail._all_field_names_ = set([ 'email', 'is_verified', ]) SecondaryEmail._all_fields_ = [ ('email', SecondaryEmail._email_validator), ('is_verified', SecondaryEmail._is_verified_validator), ] ROUTES = {}
return val = self._path_root_validator.validate(val) self._path_root_value = val self._path_root_present = True @path_root.deleter def path_root(self): self._path_root_value = None self._path_root_present = False def __repr__(self): return 'InvalidPathRootError(path_root={!r})'.format( self._path_root_value, ) InvalidPathRootError_validator = bv.Struct(InvalidPathRootError) class PathRoot(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. :ivar home: Paths are relative to the authenticating user's home directory, whether or not that user belongs to a team. :ivar member_home: Paths are relative to the authenticating team member's home directory. (This results in :field:`PathRootError.invalid' if the user does not belong to a team.) :ivar str team: Paths are relative to the given team directory. (This results in :field:`PathRootError.invalid` if the user is not a member of the team associated with that path root id.)
def _id(self, val): val = self._stone__id_validator.validate(val) self._stone__id_value = val self._stone__id_present = True @_id.deleter def _id(self): self._stone__id_value = None self._stone__id_present = False def __repr__(self): return 'GetAirWaybillArg(_id={!r})'.format( self._stone__id_value, ) GetAirWaybillArg_validator = bv.Struct(GetAirWaybillArg) class GetAirWaybillResult(object): """ :ivar data: Base64 encoded string that represents the air waybill in PDF format. """ __slots__ = [ '_stone_data_value', '_stone_data_present', ] _has_required_fields = True def __init__(self,