common.EmailAddress_validator) DeleteManualContactsError._other_validator = bv.Void() DeleteManualContactsError._tagmap = { 'contacts_not_found': DeleteManualContactsError._contacts_not_found_validator, 'other': DeleteManualContactsError._other_validator, } DeleteManualContactsError.other = DeleteManualContactsError('other') delete_manual_contacts = bb.Route( 'delete_manual_contacts', 1, False, bv.Void(), bv.Void(), bv.Void(), { 'host': u'api', 'style': u'rpc' }, ) delete_manual_contacts_batch = bb.Route( 'delete_manual_contacts_batch', 1, False, DeleteManualContactsArg_validator, bv.Void(), DeleteManualContactsError_validator, { 'host': u'api', 'style': u'rpc'
TeamSpaceAllocation._allocated_validator = bv.UInt64() TeamSpaceAllocation._all_field_names_ = set([ 'used', 'allocated', ]) TeamSpaceAllocation._all_fields_ = [ ('used', TeamSpaceAllocation._used_validator), ('allocated', TeamSpaceAllocation._allocated_validator), ] get_account = bb.Route( 'get_account', False, GetAccountArg_validator, BasicAccount_validator, GetAccountError_validator, { 'host': u'api', 'style': u'rpc' }, ) get_account_batch = bb.Route( 'get_account_batch', False, GetAccountBatchArg_validator, GetAccountBatchResult_validator, GetAccountBatchError_validator, { 'host': u'api', 'style': u'rpc' },
'update': UpdateFileRequestDeadline._update_validator, 'other': UpdateFileRequestDeadline._other_validator, } UpdateFileRequestDeadline.no_update = UpdateFileRequestDeadline('no_update') UpdateFileRequestDeadline.other = UpdateFileRequestDeadline('other') UpdateFileRequestError._tagmap = {} UpdateFileRequestError._tagmap.update(FileRequestError._tagmap) create = bb.Route( 'create', False, CreateFileRequestArgs_validator, FileRequest_validator, CreateFileRequestError_validator, { 'host': u'api', 'style': u'rpc' }, ) get = bb.Route( 'get', False, GetFileRequestArgs_validator, FileRequest_validator, GetFileRequestError_validator, { 'host': u'api', 'style': u'rpc' },
'other': TokenFromOAuth1Error._other_validator, } TokenFromOAuth1Error.invalid_oauth1_token_info = TokenFromOAuth1Error('invalid_oauth1_token_info') TokenFromOAuth1Error.app_id_mismatch = TokenFromOAuth1Error('app_id_mismatch') TokenFromOAuth1Error.other = TokenFromOAuth1Error('other') TokenFromOAuth1Result._oauth2_token_validator = bv.String(min_length=1) TokenFromOAuth1Result._all_field_names_ = set(['oauth2_token']) TokenFromOAuth1Result._all_fields_ = [('oauth2_token', TokenFromOAuth1Result._oauth2_token_validator)] token_from_oauth1 = bb.Route( 'token/from_oauth1', False, TokenFromOAuth1Arg_validator, TokenFromOAuth1Result_validator, TokenFromOAuth1Error_validator, {'host': u'api', 'style': u'rpc'}, ) token_revoke = bb.Route( 'token/revoke', False, bv.Void(), bv.Void(), bv.Void(), {'host': u'api', 'style': u'rpc'}, ) ROUTES = {
('retry_after', RateLimitError._retry_after_validator), ] RateLimitReason._too_many_requests_validator = bv.Void() RateLimitReason._too_many_write_operations_validator = bv.Void() RateLimitReason._other_validator = bv.Void() RateLimitReason._tagmap = { 'too_many_requests': RateLimitReason._too_many_requests_validator, 'too_many_write_operations': RateLimitReason._too_many_write_operations_validator, 'other': RateLimitReason._other_validator, } RateLimitReason.too_many_requests = RateLimitReason('too_many_requests') RateLimitReason.too_many_write_operations = RateLimitReason('too_many_write_operations') RateLimitReason.other = RateLimitReason('other') token_revoke = bb.Route( 'token/revoke', False, bv.Void(), bv.Void(), bv.Void(), {'host': u'api', 'style': u'rpc'}, ) ROUTES = { 'token/revoke': token_revoke, }
EchoResult_validator = bv.Struct(EchoResult) EchoArg._query_validator = bv.String() EchoArg._all_field_names_ = set(['query']) EchoArg._all_fields_ = [('query', EchoArg._query_validator)] EchoResult._result_validator = bv.String() EchoResult._all_field_names_ = set(['result']) EchoResult._all_fields_ = [('result', EchoResult._result_validator)] app = bb.Route( 'app', 1, False, EchoArg_validator, EchoResult_validator, bv.Void(), { 'host': u'api', 'style': u'rpc' }, ) user = bb.Route( 'user', 1, False, EchoArg_validator, EchoResult_validator, bv.Void(), { 'host': u'api', 'style': u'rpc'
AuthError_validator = bv.Union(AuthError) AuthError._invalid_access_token_validator = bv.Void() AuthError._invalid_select_user_validator = bv.Void() AuthError._other_validator = bv.Void() AuthError._tagmap = { 'invalid_access_token': AuthError._invalid_access_token_validator, 'invalid_select_user': AuthError._invalid_select_user_validator, 'other': AuthError._other_validator, } AuthError.invalid_access_token = AuthError('invalid_access_token') AuthError.invalid_select_user = AuthError('invalid_select_user') AuthError.other = AuthError('other') token_revoke = bb.Route( 'token/revoke', False, bv.Void(), bv.Void(), bv.Void(), { 'host': None, 'style': None }, ) ROUTES = { 'token/revoke': token_revoke, }
SetProfilePhotoError.file_type_error = SetProfilePhotoError('file_type_error') SetProfilePhotoError.file_size_error = SetProfilePhotoError('file_size_error') SetProfilePhotoError.dimension_error = SetProfilePhotoError('dimension_error') SetProfilePhotoError.thumbnail_error = SetProfilePhotoError('thumbnail_error') SetProfilePhotoError.transient_error = SetProfilePhotoError('transient_error') SetProfilePhotoError.other = SetProfilePhotoError('other') SetProfilePhotoResult._profile_photo_url_validator = bv.String() SetProfilePhotoResult._all_field_names_ = set(['profile_photo_url']) SetProfilePhotoResult._all_fields_ = [ ('profile_photo_url', SetProfilePhotoResult._profile_photo_url_validator) ] set_profile_photo = bb.Route( 'set_profile_photo', 1, False, SetProfilePhotoArg_validator, SetProfilePhotoResult_validator, SetProfilePhotoError_validator, { 'host': u'api', 'style': u'rpc' }, ) ROUTES = { 'set_profile_photo': set_profile_photo, }
UpdateSubAccountResult._stone__id_validator = bv.String() UpdateSubAccountResult._stone_message_validator = bv.String() UpdateSubAccountResult._all_field_names_ = set([ '_id', 'message', ]) UpdateSubAccountResult._all_fields_ = [ ('_id', UpdateSubAccountResult._stone__id_validator), ('message', UpdateSubAccountResult._stone_message_validator), ] create = bb.Route( 'create', False, CreateSubAccountArg_validator, CreateSubAccountResult_validator, common.RequestError_validator, {'url_param': None, 'query_params': None, 'has_body': True}, ) delete = bb.Route( 'delete', False, DeleteSubAccountArg_validator, DeleteSubAccountResult_validator, common.RequestError_validator, {'url_param': '_id', 'query_params': None, 'has_body': False}, ) get = bb.Route(
def __repr__(self): return 'GetAirWaybillResult(data={!r})'.format( self._stone_data_value, ) GetAirWaybillResult_validator = bv.Struct(GetAirWaybillResult) GetAirWaybillArg._stone__id_validator = bv.String() GetAirWaybillArg._all_field_names_ = set(['_id']) GetAirWaybillArg._all_fields_ = [('_id', GetAirWaybillArg._stone__id_validator)] GetAirWaybillResult._stone_data_validator = bv.String() GetAirWaybillResult._all_field_names_ = set(['data']) GetAirWaybillResult._all_fields_ = [('data', GetAirWaybillResult._stone_data_validator)] get = bb.Route( 'get', False, GetAirWaybillArg_validator, GetAirWaybillResult_validator, common.RequestError_validator, {'url_param': '_id', 'query_params': None, 'has_body': False}, ) ROUTES = { 'get': get, }