@staticmethod<EOL><INDENT>def factory(cfg, login, pswd, request_type):<DEDENT>
if request_type == ExportRequest.TYPE_SET_FIELD_VALUE:<EOL><INDENT>return SetFieldValueRequest(cfg, login, pswd)<EOL><DEDENT>elif request_type == ExportRequest.TYPE_CREATE_ENTITY:<EOL><INDENT>return CreateEntityRequest(cfg, login, pswd)<EOL><DEDENT>elif request_type == ExportRequest.TYPE_DELETE_ENTITY:<EOL><INDENT>return DeleteEntityRequest(cfg, login, pswd)<EOL><DEDENT>elif request_type == ExportRequest.TYPE_CREATE_RELATION:<EOL><INDENT>return CreateRelationRequest(cfg, login, pswd)<EOL><DEDENT>else:<EOL><INDENT>raise NotImplementedError('<STR_LIT>'.format(request_type))<EOL><DEDENT>
Instantiate ExportRequest
:param cfg: request configuration, should consist of request description (url and optional parameters)
:param login:
:param pswd:
:param request_type: TYPE_SET_FIELD_VALUE || TYPE_CREATE_ENTITY || TYPE_DELETE_ENTITY || TYPE_CREATE_RELATION
:return: ExportRequest instance