

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

dataset/ETHPy150Open kennethreitz-archive/python-github3/github3/models.py App.maintenance/original