/usr/lib/python2.6/site-packages/openstack/identity/v2
Edit: /usr/lib/python2.6/site-packages/openstack/identity/v2/_proxy.pyc (11775B)
5
Wc @ s] 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 role( t tenant( t user( t proxyt Proxyc B s e 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
d Z d Z e d
Z e d Z d Z d Z d Z RS( c K s | i t i | S( sq Create a new role from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.identity.v2.role.Role`,
comprised of the properties on the Role class.
:returns: The results of role creation
:rtype: :class:`~openstack.identity.v2.role.Role`
( t _createt _rolet Role( t selft attrs( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt create_role s
c C s | i t i | d | d S( s Delete a role
:param role: The value can be either the ID of a role or a
:class:`~openstack.identity.v2.role.Role` instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the role does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent role.
:returns: ``None``
t ignore_missingN( t _deleteR R ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt delete_role! s
c C s | i t i | d | S( s Find a single role
:param name_or_id: The name or ID of a role.
: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.identity.v2.role.Role` or None
R ( t _findR R ( R t
name_or_idR ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt find_role0 s c C s | i t i | S( sR Get a single role
:param role: The value can be the ID of a role or a
:class:`~openstack.identity.v2.role.Role` instance.
:returns: One :class:`~openstack.identity.v2.role.Role`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( t _getR R ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt get_role> s
c K s | i t i d t | S( s! Retrieve a generator of roles
:param kwargs \*\*query: Optional query parameters to be sent to limit
the resources being returned.
:returns: A generator of role instances.
:rtype: :class:`~openstack.identity.v2.role.Role`
t paginated( t _listR R t True( R t query( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt rolesJ s c K s | i t i | | S( s] Update a role
:param role: Either the ID of a role or a
:class:`~openstack.identity.v2.role.Role` instance.
:attrs kwargs: The attributes to update on the role represented
by ``value``.
:returns: The updated role
:rtype: :class:`~openstack.identity.v2.role.Role`
( t _updateR R ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt update_roleU s c K s | i t i | S( s Create a new tenant from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.identity.v2.tenant.Tenant`,
comprised of the properties on the Tenant class.
:returns: The results of tenant creation
:rtype: :class:`~openstack.identity.v2.tenant.Tenant`
( R t _tenantt Tenant( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt
create_tenantb s
c C s | i t i | d | d S( s Delete a tenant
:param tenant: The value can be either the ID of a tenant or a
:class:`~openstack.identity.v2.tenant.Tenant` instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the tenant does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent tenant.
:returns: ``None``
R N( R R R ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt
delete_tenantn s
c C s | i t i | d | S( s Find a single tenant
:param name_or_id: The name or ID of a tenant.
: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.identity.v2.tenant.Tenant` or None
R ( R R R ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt find_tenant} s c C s | i t i | S( sb Get a single tenant
:param tenant: The value can be the ID of a tenant or a
:class:`~openstack.identity.v2.tenant.Tenant` instance.
:returns: One :class:`~openstack.identity.v2.tenant.Tenant`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( R R R ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt
get_tenant s
c K s | i t i d t | S( s) Retrieve a generator of tenants
:param kwargs \*\*query: Optional query parameters to be sent to limit
the resources being returned.
:returns: A generator of tenant instances.
:rtype: :class:`~openstack.identity.v2.tenant.Tenant`
R ( R R R R ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt tenants s c K s | i t i | | S( sp Update a tenant
:param tenant: Either the ID of a tenant or a
:class:`~openstack.identity.v2.tenant.Tenant` instance.
:attrs kwargs: The attributes to update on the tenant represented
by ``value``.
:returns: The updated tenant
:rtype: :class:`~openstack.identity.v2.tenant.Tenant`
( R R R ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt
update_tenant s c K s | i t i | S( sq Create a new user from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.identity.v2.user.User`,
comprised of the properties on the User class.
:returns: The results of user creation
:rtype: :class:`~openstack.identity.v2.user.User`
( R t _usert User( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_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.identity.v2.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/identity/v2/_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.identity.v2.user.User` or None
R ( R R" R# ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt find_user 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.identity.v2.user.User` instance.
:returns: One :class:`~openstack.identity.v2.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/identity/v2/_proxy.pyt get_user s
c K s | i t i d t | S( s! Retrieve a generator of users
:param kwargs \*\*query: Optional query parameters to be sent to limit
the resources being returned.
:returns: A generator of user instances.
:rtype: :class:`~openstack.identity.v2.user.User`
R ( R R" R# R ( R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt users s c K s | i t i | | S( s] Update a user
:param user: Either the ID of a user or a
:class:`~openstack.identity.v2.user.User` instance.
:attrs kwargs: The attributes to update on the user represented
by ``value``.
:returns: The updated user
:rtype: :class:`~openstack.identity.v2.user.User`
( R R" R# ( R R R ( ( sB /tmp/pip-build-wCUybK/openstacksdk/openstack/identity/v2/_proxy.pyt update_user s ( t __name__t
__module__R
R R
R R R R R R R R R R! R$ R% R&