Exemple #1
0
    def AddLabels(self, labels):
        if not labels:
            raise ValueError("labels list can't be empty")

        args = client_pb2.ApiAddClientsLabelsArgs(client_ids=[self.client_id],
                                                  labels=labels)
        self._context.SendRequest("AddClientsLabels", args)
Exemple #2
0
    def AddLabels(self, labels):
        labels = self._ProcessLabels(labels)

        args = client_pb2.ApiAddClientsLabelsArgs(client_ids=[self.client_id],
                                                  labels=labels)
        self._context.SendRequest("AddClientsLabels", args)