def do_upload(self, uri, path): cmd = gu_rest_api.Command( upload_file=gu_rest_api.UploadFileCommand(uri=uri, file_path=path)) self._cmds.append(cmd) return self
def do_exec(self, executable, *args): cmd = gu_rest_api.Command( _exec=gu_rest_api.ExecCommand(executable=executable, args=args)) self._cmds.append(cmd) return self
def do_wait(self): cmd = gu_rest_api.Command(wait=NONE_IT) self._cmds.append(cmd) return self
def do_close(self): cmd = gu_rest_api.Command(close=NONE_IT) self._cmds.append(cmd) return self
def do_open(self): cmd = gu_rest_api.Command(open=NONE_IT) self._cmds.append(cmd) return self