Module ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults NameLoad body FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad vararg kwarg body If BoolOpAnd NameLoad CompareIsNot NameLoad NameLoad UnaryOpNot Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str AttributeLoad NameLoad attr orelse If BoolOpAnd Call NameLoad NameLoad AttributeLoad NameLoad attr UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad orelse If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore Dict AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If NameLoad body Return NameLoad orelse Raise Call AttributeLoad NameLoad attr keyword BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return NameLoad decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad TryExcept body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call AttributeLoad NameLoad attr keyword BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults ListLoad Num Num body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num Num body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A openstack exceptions openstack resource _check_resource N/A N/A strict N/A False N/A wrap N/A N/A method N/A N/A check N/A N/A self expected actual N/A None args kwargs N/A N/A N/A strict N/A actual None N/A N/A isinstance actual N/A resource Resource N/A N/A N/A ValueError N/A A %s must be passed N/A expected __name__ N/A N/A N/A N/A isinstance actual N/A resource Resource N/A N/A isinstance actual expected N/A N/A N/A ValueError N/A Expected %s but received %s N/A N/A expected __name__ N/A N/A actual __class__ __name__ N/A N/A method self expected actual args kwargs N/A N/A check N/A N/A wrap N/A BaseProxy N/A object N/A __init__ N/A N/A self session N/A N/A N/A N/A self session session N/A _get_resource N/A N/A self resource_type value path_args N/A None N/A N/A Get a resource object to work on

        :param resource_type: The type of resource to operate on. This should
                              be a subclass of
                              :class:`~openstack.resource.Resource` with a
                              ``from_id`` method.
        :param value: The ID of a resource or an object of ``resource_type``
                      class if using an existing instance, or None to create a
                      new instance.
        :param path_args: A dict containing arguments for forming the request
                          URL, if needed.
         N/A N/A value None N/A N/A res N/A resource_type N/A N/A N/A N/A isinstance value resource_type N/A N/A args N/A N/A resource_type id_attribute N/A N/A N/A resource Resource get_id value N/A res N/A N/A resource_type existing args N/A N/A res value N/A N/A path_args None N/A N/A N/A N/A res update_attrs ignore_none True path_args N/A res N/A _find N/A N/A self resource_type name_or_id path_args ignore_missing N/A None True N/A N/A Find a resource

        :param name_or_id: The name or ID of a resource to find.
        :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: An instance of ``resource_type`` or None
         N/A N/A N/A resource_type find N/A self session name_or_id path_args path_args ignore_missing ignore_missing N/A _delete N/A N/A self resource_type value path_args ignore_missing N/A None True N/A N/A Delete a resource

        :param resource_type: The type of resource to delete. This should
                              be a :class:`~openstack.resource.Resource`
                              subclass with a ``from_id`` method.
        :param value: The value to delete. Can be either the ID of a
                      resource or a :class:`~openstack.resource.Resource`
                      subclass.
        :param path_args: A dict containing arguments for forming the request
                          URL, if needed.
        :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``, no exception will be set when
                    attempting to delete a nonexistent resource.

        :returns: The result of the ``delete``
        :raises: ``ValueError`` if ``value`` is a
                 :class:`~openstack.resource.Resource` that doesn't match
                 the ``resource_type``.
                 :class:`~openstack.exceptions.ResourceNotFound` when
                 ignore_missing if ``False`` and a nonexistent resource
                 is attempted to be deleted.

         N/A res N/A N/A self _get_resource resource_type value path_args N/A N/A N/A rv N/A N/A res delete N/A self session N/A N/A N/A N/A exceptions NotFoundException N/A e N/A N/A ignore_missing N/A N/A None N/A N/A N/A N/A exceptions ResourceNotFound message N/A No %s found for %s N/A N/A resource_type __name__ value details N/A e details response N/A e response request_id N/A e request_id url N/A e url method N/A e method http_status N/A e http_status cause N/A e cause N/A rv N/A N/A _check_resource strict False _update N/A N/A self resource_type value path_args N/A None attrs N/A N/A Update a resource

        :param resource_type: The type of resource to update.
        :type resource_type: :class:`~openstack.resource.Resource`
        :param value: The resource to update. This must either be a
                      :class:`~openstack.resource.Resource` or an id
                      that corresponds to a resource.
        :param path_args: A dict containing arguments for forming the request
                          URL, if needed.
        :param **attrs: Attributes to update on a Resource object.
                        These attributes will be used in conjunction with
                        ``resource_type``.

        :returns: The result of the ``update``
        :rtype: :class:`~openstack.resource.Resource`
         N/A res N/A N/A self _get_resource resource_type value path_args N/A N/A N/A res update_attrs attrs N/A N/A N/A res update N/A self session N/A N/A _check_resource strict False _create N/A N/A self resource_type path_args N/A None attrs N/A N/A Create a resource from attributes

        :param resource_type: The type of resource to create.
        :type resource_type: :class:`~openstack.resource.Resource`
        :param path_args: A dict containing arguments for forming the request
                          URL, if needed.
        :param **attrs: Attributes from which to create a Resource object.
                        These attributes will be used in conjunction with
                        ``resource_type``.

        :returns: The result of the ``create``
        :rtype: :class:`~openstack.resource.Resource`
         N/A res N/A N/A resource_type new attrs N/A N/A path_args None N/A N/A N/A N/A res update_attrs path_args N/A N/A N/A res create N/A self session N/A _get N/A N/A self resource_type value path_args args N/A None None None N/A N/A Get a resource

        :param resource_type: The type of resource to get.
        :type resource_type: :class:`~openstack.resource.Resource`
        :param value: The value to get. Can be either the ID of a
                      resource or a :class:`~openstack.resource.Resource`
                      subclass.
        :param path_args: A dict containing arguments for forming the request
                          URL, if needed.
        :param args: A optional dict containing arguments that will be
            translated into query strings when forming the request URL.

        :returns: The result of the ``get``
        :rtype: :class:`~openstack.resource.Resource`
         N/A res N/A N/A self _get_resource resource_type value path_args N/A N/A N/A N/A N/A res get N/A self session args args N/A N/A N/A N/A exceptions NotFoundException N/A e N/A N/A N/A N/A exceptions ResourceNotFound message N/A No %s found for %s N/A N/A resource_type __name__ value details N/A e details response N/A e response request_id N/A e request_id url N/A e url method N/A e method http_status N/A e http_status cause N/A e cause N/A N/A _check_resource strict False _list N/A N/A self resource_type value paginated path_args N/A None False None query N/A N/A List a resource

        :param resource_type: The type of resource to delete. This should
                              be a :class:`~openstack.resource.Resource`
                              subclass with a ``from_id`` method.
        :param value: The resource to list. It can be the ID of a resource, or
                      a :class:`~openstack.resource.Resource` object. When set
                      to None, a new bare resource is created.
        :param bool paginated: When set to ``False``, expect all of the data
                               to be returned in one response. When set to
                               ``True``, the resource supports data being
                               returned across multiple pages.
        :param path_args: A dictionary containing arguments for use when
                          forming the request URL for resource retrieval.
        :param kwargs **query: Keyword arguments that are sent to the list
                               method, which are then attached as query
                               parameters on the request URL.

        :returns: A generator of Resource objects.
        :raises: ``ValueError`` if ``value`` is a
                 :class:`~openstack.resource.Resource` that doesn't match
                 the ``resource_type``.
         N/A res N/A N/A self _get_resource resource_type value path_args N/A query N/A N/A res convert_ids query N/A N/A N/A res list N/A self session path_args path_args paginated paginated params query N/A _head N/A N/A self resource_type value path_args N/A None None N/A N/A Retrieve a resource's header

        :param resource_type: The type of resource to retrieve.
        :type resource_type: :class:`~openstack.resource.Resource`
        :param value: The value of a specific resource to retreive headers
                      for. Can be either the ID of a resource,
                      a :class:`~openstack.resource.Resource` subclass,
                      or ``None``.
        :param path_args: A dict containing arguments for forming the request
                          URL, if needed.

        :returns: The result of the ``head`` call
        :rtype: :class:`~openstack.resource.Resource`
         N/A res N/A N/A self _get_resource resource_type value path_args N/A N/A N/A res head N/A self session N/A wait_for_status N/A N/A self value status failures interval wait N/A N/A 2 120 N/A N/A Wait for a resource to be in a particular status.

        :param value: The resource to wait on to reach the status. The
                      resource must have a status attribute.
        :type value: :class:`~openstack.resource.Resource`
        :param status: Desired status of the resource.
        :param list failures: Statuses that would indicate the transition
                              failed such as 'ERROR'.
        :param interval: Number of seconds to wait between checks.
        :param wait: Maximum number of seconds to wait for the change.

        :return: Method returns resource on success.
        :raises: :class:`~openstack.exceptions.ResourceTimeout` transition
                 to status failed to occur in wait seconds.
        :raises: :class:`~openstack.exceptions.ResourceFailure` resource
                 transitioned to one of the failure states.
        :raises: :class:`~AttributeError` if the resource does not have a
                 status attribute
         N/A N/A N/A resource wait_for_status N/A self session value status failures interval wait N/A wait_for_delete N/A N/A self value interval wait N/A 2 120 N/A N/A Wait for the resource to be deleted.

        :param value: The resource to wait on to be deleted.
        :type value: :class:`~openstack.resource.Resource`
        :param interval: Number of seconds to wait between checks.
        :param wait: Maximum number of seconds to wait for the delete.

        :return: Method returns resource on success.
        :raises: :class:`~openstack.exceptions.ResourceTimeout` transition
                 to delete failed to occur in wait seconds.
         N/A N/A N/A resource wait_for_delete N/A self session value interval wait N/A N/A