Statistics
| Branch: | Tag: | Revision:

root / lib / rapi / __init__.py @ 364c350f

History | View | Annotate | Download (958 Bytes)

1 8c229cc7 Oleksiy Mishchenko
#
2 8c229cc7 Oleksiy Mishchenko
#
3 8c229cc7 Oleksiy Mishchenko
4 b8028dcf Michael Hanselmann
# Copyright (C) 2007, 2008, 2012 Google Inc.
5 8c229cc7 Oleksiy Mishchenko
#
6 8c229cc7 Oleksiy Mishchenko
# This program is free software; you can redistribute it and/or modify
7 8c229cc7 Oleksiy Mishchenko
# it under the terms of the GNU General Public License as published by
8 8c229cc7 Oleksiy Mishchenko
# the Free Software Foundation; either version 2 of the License, or
9 8c229cc7 Oleksiy Mishchenko
# (at your option) any later version.
10 8c229cc7 Oleksiy Mishchenko
#
11 8c229cc7 Oleksiy Mishchenko
# This program is distributed in the hope that it will be useful, but
12 8c229cc7 Oleksiy Mishchenko
# WITHOUT ANY WARRANTY; without even the implied warranty of
13 8c229cc7 Oleksiy Mishchenko
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 8c229cc7 Oleksiy Mishchenko
# General Public License for more details.
15 8c229cc7 Oleksiy Mishchenko
#
16 8c229cc7 Oleksiy Mishchenko
# You should have received a copy of the GNU General Public License
17 8c229cc7 Oleksiy Mishchenko
# along with this program; if not, write to the Free Software
18 8c229cc7 Oleksiy Mishchenko
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 8c229cc7 Oleksiy Mishchenko
# 02110-1301, USA.
20 8c229cc7 Oleksiy Mishchenko
21 7260cfbe Iustin Pop
"""Ganeti RAPI module"""
22 8c229cc7 Oleksiy Mishchenko
23 b8028dcf Michael Hanselmann
from ganeti import compat
24 b8028dcf Michael Hanselmann
25 b8028dcf Michael Hanselmann
26 b5b67ef9 Michael Hanselmann
RAPI_ACCESS_WRITE = "write"
27 5e12acfe Michael Hanselmann
RAPI_ACCESS_READ = "read"
28 5e12acfe Michael Hanselmann
29 b8028dcf Michael Hanselmann
RAPI_ACCESS_ALL = compat.UniqueFrozenset([
30 5e12acfe Michael Hanselmann
  RAPI_ACCESS_WRITE,
31 5e12acfe Michael Hanselmann
  RAPI_ACCESS_READ,
32 5e12acfe Michael Hanselmann
  ])