Exemple #1
0
    def __repr__(self):
        return 'TeamSpaceAllocation(used={!r}, allocated={!r})'.format(
            self._used_value,
            self._allocated_value,
        )


TeamSpaceAllocation_validator = bv.Struct(TeamSpaceAllocation)

AccountId_validator = bv.String(min_length=40, max_length=40)
GetAccountBatchResult_validator = bv.List(BasicAccount_validator)
Account._account_id_validator = AccountId_validator
Account._name_validator = Name_validator
Account._email_validator = bv.String()
Account._email_verified_validator = bv.Boolean()
Account._profile_photo_url_validator = bv.Nullable(bv.String())
Account._disabled_validator = bv.Boolean()
Account._all_field_names_ = set([
    'account_id',
    'name',
    'email',
    'email_verified',
    'profile_photo_url',
    'disabled',
])
Account._all_fields_ = [
    ('account_id', Account._account_id_validator),
    ('name', Account._name_validator),
    ('email', Account._email_validator),
    ('email_verified', Account._email_verified_validator),
Exemple #2
0
    return true. To get the associated value of a tag (if one exists), use the
    corresponding ``get_*`` method.
    """
    def __repr__(self):
        return 'UpdateFileRequestError(%r, %r)' % (self._tag, self._value)


UpdateFileRequestError_validator = bv.Union(UpdateFileRequestError)

FileRequestId_validator = bv.String(min_length=1, pattern=u'[-_0-9a-zA-Z]+')
FileRequestValidationError_validator = bv.Nullable(bv.String())
CreateFileRequestArgs._title_validator = bv.String(min_length=1)
CreateFileRequestArgs._destination_validator = files.Path_validator
CreateFileRequestArgs._deadline_validator = bv.Nullable(
    FileRequestDeadline_validator)
CreateFileRequestArgs._open_validator = bv.Boolean()
CreateFileRequestArgs._all_field_names_ = set([
    'title',
    'destination',
    'deadline',
    'open',
])
CreateFileRequestArgs._all_fields_ = [
    ('title', CreateFileRequestArgs._title_validator),
    ('destination', CreateFileRequestArgs._destination_validator),
    ('deadline', CreateFileRequestArgs._deadline_validator),
    ('open', CreateFileRequestArgs._open_validator),
]

GeneralFileRequestsError._disabled_for_team_validator = bv.Void()
GeneralFileRequestsError._other_validator = bv.Void()
        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 = {}