Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/openstack/baremetal_introspection/v1/__pycache__/_proxy.cpython-39.pyc
Ðазад
a t�h~ � @ s\ d dl mZ d dlmZ d dlmZ d dl mZ d dl m Z e� d�ZG dd� de j�Zd S ) � )�_log)�node)� introspection)� exceptions)�proxy� openstackc @ sD e Zd Zdd� Zddd�Zdd� Zdd d �Zddd�Zddd�ZdS )�Proxyc K s t jj| fi |��S )a Retrieve a generator of introspection records. :param dict query: Optional query parameters to be sent to restrict the records to be returned. Available parameters include: * ``fields``: A list containing one or more fields to be returned in the response. This may lead to some performance gain because other fields of the resource are not refreshed. * ``limit``: Requests at most the specified number of items be returned from the query. * ``marker``: Specifies the ID of the last-seen introspection. Use the ``limit`` parameter to make an initial limited request and use the ID of the last-seen introspection from the response as the ``marker`` value in a subsequent limited request. * ``sort_dir``: Sorts the response by the requested sort direction. A valid value is ``asc`` (ascending) or ``desc`` (descending). Default is ``asc``. You can specify multiple pairs of sort key and sort direction query parameters. If you omit the sort direction in a pair, the API uses the natural sorting direction of the server attribute that is provided as the ``sort_key``. * ``sort_key``: Sorts the response by the this attribute value. Default is ``id``. You can specify multiple pairs of sort key and sort direction query parameters. If you omit the sort direction in a pair, the API uses the natural sorting direction of the server attribute that is provided as the ``sort_key``. :returns: A generator of :class:`~.introspection.Introspection` objects )�_introspect� Introspection�list)�self�query� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/openstack/baremetal_introspection/v1/_proxy.py�introspections s zProxy.introspectionsNc C sJ | � tj|�}tjj| �� |jd�}i }|dur8||d<