code: async def set_constraints(self, constraints):
          
          app_facade = client.ApplicationFacade.from_connection(self.connection)
  
          log.debug(
              'Setting constraints for %s: %s', self.name, constraints)
  
          return await app_facade.SetConstraints(self.name, constraints)
docs: Set machine constraints for this application.
  
          :param dict constraints: Dict of machine constraints