Exemple #1
0
    def Get(self):
        """Fetch client's data and return a proper Client object."""

        args = api_pb2.ApiGetClientArgs(client_id=self.client_id)
        result = self._context.SendRequest("GetClient", args)
        return Client(data=result, context=self._context)
Exemple #2
0
    def Get(self):
        """Fetch flow's data and return proper Flow object."""

        args = api_pb2.ApiGetClientArgs(client_id=self.client_id)
        return self.context.SendRequest("GetClient", args)