示例#1
0
  def GetState(self) -> vfs_pb2.ApiGetVfsFileContentUpdateStateResult.State:
    args = vfs_pb2.ApiGetVfsFileContentUpdateStateArgs(
        client_id=self.client_id, operation_id=self.operation_id)

    response = self._context.SendRequest("GetVfsFileContentUpdateState", args)
    if not isinstance(response, vfs_pb2.ApiGetVfsFileContentUpdateStateResult):
      raise TypeError(f"Unexpected response type: {type(response)}")

    return response.state
示例#2
0
文件: vfs.py 项目: kshithijiyer/grr
 def GetState(self):
     args = vfs_pb2.ApiGetVfsFileContentUpdateStateArgs(
         client_id=self.client_id, operation_id=self.operation_id)
     return self._context.SendRequest("GetVfsFileContentUpdateState",
                                      args).state