+ async def set_annotations(self, annotations):
+ """Set annotations on this application.
+
+ :param annotations map[string]string: the annotations as key/value
+ pairs.
+
+ """
+ log.debug('Updating annotations on application %s', self.name)
+
+ self.ann_facade = client.AnnotationsFacade()
+ self.ann_facade.connect(model.connection)
+
+ ann = client.EntityAnnotations(
+ entity=self.name,
+ annotations=annotations,
+ )
+ return await self.ann_facade.Set([ann])
+