Current File : //proc/self/root/lib/python3/dist-packages/boto3/resources/__pycache__/response.cpython-312.pyc |
�
��e�- � �` � d dl Z d dlmZ ddlmZ d� Zdd�Zd� Z G d� d � Z G d
� d� Z y)
� N)�
xform_name� )�get_data_memberc � � | D ] }|�� y y)z�
Return True if all elements of the iterable are not None (or if the
iterable is empty). This is like the built-in ``all``, except checks
against None, so 0 and False are allowable values.
FT� )�iterable�elements �:/usr/lib/python3/dist-packages/boto3/resources/response.py�all_not_noner s � � � ���?��� � c �� � g }| D ]� }|j }|j }|dk( r!t j |j |� }n{|dk( r!t j |j |� }nU|dk( r t |t
|j � � }n0|dk( rt ||j � }n|dk( r��t d|� �� �|j t
|� |f� �� |S )a�
Builds a mapping of identifier names to values based on the
identifier source location, type, and target. Identifier
values may be scalars or lists depending on the source type
and location.
:type identifiers: list
:param identifiers: List of :py:class:`~boto3.resources.model.Parameter`
definitions
:type parent: ServiceResource
:param parent: The resource instance to which this action is attached.
:type params: dict
:param params: Request parameters sent to the service.
:type raw_response: dict
:param raw_response: Low-level operation response.
:rtype: list
:return: An ordered list of ``(name, value)`` identifier tuples.
�response�requestParameter�
identifier�data�inputzUnsupported source type: )�source�target�jmespath�search�path�getattrr �namer �NotImplementedError�append) �identifiers�parent�params�raw_response�resultsr r r �values r
�build_identifiersr"