/usr/lib/python2.6/site-packages/openstack/database/v1
Edit: /usr/lib/python2.6/site-packages/openstack/database/v1/_proxy.pyc (12801B)
5
Wc @ sm d d k l Z d d k l Z d d k l Z d d k l Z d d k l
Z
d e
i f d YZ d S( i( t database( t flavor( t instance( t user( t proxyt Proxyc B s e Z d Z e d Z e d Z d Z d Z e d Z d Z d Z
d Z e d Z e d
Z
d Z d Z d
Z d Z e d Z e d Z d Z d Z RS( c K s | i t i | S( s Create a new database from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.database.v1.database.Database`,
comprised of the properties on the Database class.
:returns: The results of server creation
:rtype: :class:`~openstack.database.v1.database.Database`
( t _createt _databaset Database( t selft attrs( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt create_database s
c C s | i t i | d | d S( s Delete a database
:param database: The value can be either the ID of a database or a
:class:`~openstack.database.v1.database.Database` instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the database does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent database.
:returns: ``None``
t ignore_missingN( t _deleteR R ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt delete_database" s
c C s | i t i | d | S( s Find a single database
:param name_or_id: The name or ID of a database.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the resource does not exist.
When set to ``True``, None will be returned when
attempting to find a nonexistent resource.
:returns: One :class:`~openstack.database.v1.database.Database` or None
R ( t _findR R ( R t
name_or_idR ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt
find_database2 s c K s | i t i d t | S( s, Return a generator of databases
:param kwargs \*\*query: Optional query parameters to be sent to limit
the resources being returned.
:returns: A generator of database objects
:rtype: :class:`~openstack.database.v1.database.Database`
t paginated( t _listR R t False( R t query( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt databases@ s c C s | i t i | S( s Get a single database
:param database: The value can be the ID of a database or a
:class:`~openstack.database.v1.database.Database`
instance.
:returns: One :class:`~openstack.database.v1.database.Database`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( t _getR R ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt get_databaseK s c C s | i t i | d | S( s Find a single flavor
:param name_or_id: The name or ID of a flavor.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the resource does not exist.
When set to ``True``, None will be returned when
attempting to find a nonexistent resource.
:returns: One :class:`~openstack.database.v1.flavor.Flavor` or None
R ( R t _flavort Flavor( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt find_flavorX s c C s | i t i | S( sb Get a single flavor
:param flavor: The value can be the ID of a flavor or a
:class:`~openstack.database.v1.flavor.Flavor` instance.
:returns: One :class:`~openstack.database.v1.flavor.Flavor`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( R R R ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt
get_flavorf s
c K s | i t i d t | S( s$ Return a generator of flavors
:param kwargs \*\*query: Optional query parameters to be sent to limit
the resources being returned.
:returns: A generator of flavor objects
:rtype: :class:`~openstack.database.v1.flavor.Flavor`
R ( R R R R ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt flavorsr s c K s | i t i | S( s Create a new instance from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.database.v1.instance.Instance`,
comprised of the properties on the Instance class.
:returns: The results of server creation
:rtype: :class:`~openstack.database.v1.instance.Instance`
( R t _instancet Instance( R R
( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt create_instance} s
c C s | i t i | d | d S( s Delete an instance
:param instance: The value can be either the ID of an instance or a
:class:`~openstack.database.v1.instance.Instance` instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the instance does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent instance.
:returns: ``None``
R N( R
R R ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt delete_instance s
c C s | i t i | d | S( s Find a single instance
:param name_or_id: The name or ID of a instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the resource does not exist.
When set to ``True``, None will be returned when
attempting to find a nonexistent resource.
:returns: One :class:`~openstack.database.v1.instance.Instance` or None
R ( R R R ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt
find_instance s c C s | i t i | S( s Get a single instance
:param instance: The value can be the ID of an instance or a
:class:`~openstack.database.v1.instance.Instance`
instance.
:returns: One :class:`~openstack.database.v1.instance.Instance`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( R R R ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt get_instance s c K s | i t i d t | S( s, Return a generator of instances
:param kwargs \*\*query: Optional query parameters to be sent to limit
the resources being returned.
:returns: A generator of instance objects
:rtype: :class:`~openstack.database.v1.instance.Instance`
R ( R R R R ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt instances s c K s | i t i | | S( s Update a instance
:param instance: Either the id of a instance or a
:class:`~openstack.database.v1.instance.Instance`
instance.
:attrs kwargs: The attributes to update on the instance represented
by ``value``.
:returns: The updated instance
:rtype: :class:`~openstack.database.v1.instance.Instance`
( t _updateR R ( R R R
( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt update_instance s c K s | i t i | S( ss Create a new user from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.database.v1.user.User`,
comprised of the properties on the User class.
:returns: The results of server creation
:rtype: :class:`~openstack.database.v1.user.User`
( R t _usert User( R R
( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt create_user s
c C s | i t i | d | d S( s Delete a user
:param user: The value can be either the ID of a user or a
:class:`~openstack.database.v1.user.User` instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the user does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent user.
:returns: ``None``
R N( R
R' R( ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt delete_user s
c C s | i t i | d | S( s Find a single user
:param name_or_id: The name or ID of a user.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the resource does not exist.
When set to ``True``, None will be returned when
attempting to find a nonexistent resource.
:returns: One :class:`~openstack.database.v1.user.User` or None
R ( R R' R( ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt find_user s c K s | i t i d t | S( s Return a generator of users
:param kwargs \*\*query: Optional query parameters to be sent to limit
the resources being returned.
:returns: A generator of user objects
:rtype: :class:`~openstack.database.v1.user.User`
R ( R R' R( R ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt users s c C s | i t i | S( sR Get a single user
:param user: The value can be the ID of a user or a
:class:`~openstack.database.v1.user.User` instance.
:returns: One :class:`~openstack.database.v1.user.User`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( R R' R( ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/database/v1/_proxy.pyt get_user s
( t __name__t
__module__R t TrueR R R R R R R R R! R" R# R$ R&