def _CreateRegisterRequest(device_dict=None, auth_info_dict=None, synchronous=True, version=message.MAX_SUPPORTED_MESSAGE_VERSION):
 request_dict = {'headers': {'version': version}}
 util.SetIfNotNone(request_dict, 'device', device_dict)
 util.SetIfNotNone(request_dict, 'auth_info', auth_info_dict)
 if synchronous:
  request_dict['headers']['synchronous'] = True
 return request_dict

def _CreateRegisterRequest ( device_dict = None , auth_info_dict = None , synchronous = True , version = message . MAX_SUPPORTED_MESSAGE_VERSION ) : request_dict = { 'headers' : { 'version' : version } } util . SetIfNotNone ( request_dict , 'device' , device_dict ) util . SetIfNotNone ( request_dict , 'auth_info' , auth_info_dict ) if synchronous : request_dict [ 'headers' ] [ 'synchronous' ] = True return request_dict
returns a new auth_request dict that has been populated with information from the specified dicts .