code: def maintenance(self, on=True):
          
  
          r = self._h._http_resource(
              method='POST',
              resource=('apps', self.name, 'server', 'maintenance'),
              data={'maintenance_mode': int(on)}
          )
          return r.ok
docs: Toggles maintenance mode.