@@ -129,6 +129,8 @@ class ActionFacade(Type):
129129 'applications' : {'items' : {'type' : 'string' },
130130 'type' : 'array' },
131131 'limit' : {'type' : 'integer' },
132+ 'machines' : {'items' : {'type' : 'string' },
133+ 'type' : 'array' },
132134 'offset' : {'type' : 'integer' },
133135 'status' : {'items' : {'type' : 'string' },
134136 'type' : 'array' },
@@ -541,13 +543,14 @@ async def ListCompleted(self, entities=None):
541543
542544
543545 @ReturnMapping (OperationResults )
544- async def ListOperations (self , actions = None , applications = None , limit = None , offset = None , status = None , units = None ):
546+ async def ListOperations (self , actions = None , applications = None , limit = None , machines = None , offset = None , status = None , units = None ):
545547 '''
546548 ListOperations fetches the called actions for specified apps/units.
547549
548550 actions : typing.Sequence[str]
549551 applications : typing.Sequence[str]
550552 limit : int
553+ machines : typing.Sequence[str]
551554 offset : int
552555 status : typing.Sequence[str]
553556 units : typing.Sequence[str]
@@ -562,6 +565,9 @@ async def ListOperations(self, actions=None, applications=None, limit=None, offs
562565 if limit is not None and not isinstance (limit , int ):
563566 raise Exception ("Expected limit to be a int, received: {}" .format (type (limit )))
564567
568+ if machines is not None and not isinstance (machines , (bytes , str , list )):
569+ raise Exception ("Expected machines to be a Sequence, received: {}" .format (type (machines )))
570+
565571 if offset is not None and not isinstance (offset , int ):
566572 raise Exception ("Expected offset to be a int, received: {}" .format (type (offset )))
567573
@@ -580,6 +586,7 @@ async def ListOperations(self, actions=None, applications=None, limit=None, offs
580586 _params ['actions' ] = actions
581587 _params ['applications' ] = applications
582588 _params ['limit' ] = limit
589+ _params ['machines' ] = machines
583590 _params ['offset' ] = offset
584591 _params ['status' ] = status
585592 _params ['units' ] = units
0 commit comments