https://t.me/RX1948
Server : nginx/1.24.0
System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
Directory :  /lib/python3/dist-packages/botocore/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/botocore/__pycache__/serialize.cpython-312.pyc
�

P��eb���Z�dZddlZddlZddlZddlZddlZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZmZmZmZdZd	Zd
Zej,d�Zdd�ZGd
�d�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�dee�ZGd�de�Zeeeeed�Z y)a�Protocol input serializes.

This module contains classes that implement input serialization
for the various AWS protocol types.

These classes essentially take user input, a model object that
represents what the expected input should look like, and it returns
a dictionary that contains the various parts of a request.  A few
high level design decisions:


* Each protocol type maps to a separate class, all inherit from
  ``Serializer``.
* The return value for ``serialize_to_request`` (the main entry
  point) returns a dictionary that represents a request.  This
  will have keys like ``url_path``, ``query_string``, etc.  This
  is done so that it's a) easy to test and b) not tied to a
  particular HTTP library.  See the ``serialize_to_request`` docstring
  for more details.

Unicode
-------

The input to the serializers should be text (str/unicode), not bytes,
with the exception of blob types.  Those are assumed to be binary,
and if a str/unicode type is passed in, it will be encoded as utf-8.
�N)�ElementTree)�validate)�
formatdate)�ParamValidationError)�
has_header�is_json_value_header�parse_to_aware_datetime�percent_encode�iso8601z%Y-%m-%dT%H:%M:%SZz%Y-%m-%dT%H:%M:%S.%fZz^[A-Za-z0-9\.\-]+$c�x�t|�}|r*tj�}tj||�}|S�N)�SERIALIZERSr�ParamValidator�ParamValidationDecorator)�
protocol_name�include_validation�
serializer�	validators    �4/usr/lib/python3/dist-packages/botocore/serialize.py�create_serializerrAs8���]�+�-�J���+�+�-�	��6�6�y�*�M�
���c�P�eZdZdZeZdZd�Zd�Zd�Z	d�Z
d�Zd
d	�Zd
�Z
d�Zd�Zy)�
Serializer�POSTzutf-8c��td��)a�Serialize parameters into an HTTP request.

        This method takes user provided parameters and a shape
        model and serializes the parameters to an HTTP request.
        More specifically, this method returns information about
        parts of the HTTP request, it does not enforce a particular
        interface or standard for an HTTP request.  It instead returns
        a dictionary of:

            * 'url_path'
            * 'host_prefix'
            * 'query_string'
            * 'headers'
            * 'body'
            * 'method'

        It is then up to consumers to decide how to map this to a Request
        object of their HTTP library of choice.  Below is an example
        return value::

            {'body': {'Action': 'OperationName',
                      'Bar': 'val2',
                      'Foo': 'val1',
                      'Version': '2014-01-01'},
             'headers': {},
             'method': 'POST',
             'query_string': '',
             'host_prefix': 'value.',
             'url_path': '/'}

        :param parameters: The dictionary input parameters for the
            operation (i.e the user input).
        :param operation_model: The OperationModel object that describes
            the operation.
        �serialize_to_request��NotImplementedError)�self�
parameters�operation_models   rrzSerializer.serialize_to_requestSs��H"�"8�9�9rc�*�dd|jidd�}|S)N�/�r)�url_path�query_string�method�headers�body)�DEFAULT_METHOD)r�
serializeds  r�_create_default_requestz"Serializer._create_default_requestys(�����)�)���

�
��rc�\�|jdkDrt}nt}|j|�S)Nr)�microsecond�
ISO8601_MICRO�ISO8601�strftime)r�value�timestamp_formats   r�_timestamp_iso8601zSerializer._timestamp_iso8601�s,�����q� �,��&���~�~�.�/�/rc�Z�ttj|j���Sr
)�int�calendar�timegm�	timetuple�rr2s  r�_timestamp_unixtimestampz#Serializer._timestamp_unixtimestamp�s���8�?�?�5�?�?�#4�5�6�6rc�r�t|tj�r|j|�}t|d��S)NT)�usegmt)�
isinstance�datetimer;rr:s  r�_timestamp_rfc822zSerializer._timestamp_rfc822�s/���e�X�.�.�/��1�1�%�8�E��%��-�-rNc��|�|j}|j�}t|�}t|d|���}||�}|S)N�_timestamp_)�TIMESTAMP_FORMAT�lowerr	�getattr)rr2r3�datetime_obj�	converter�final_values      r�_convert_timestamp_to_strz$Serializer._convert_timestamp_to_str�sR���#�#�4�4��+�1�1�3��.�u�5���D�K�0@�/A�"B�C�	���-���rc�:�|jjd|�S�N�name��
serialization�get)r�shape�default_names   r�_get_serialized_namezSerializer._get_serialized_name�s���"�"�&�&�v�|�<�<rc���t|t�r|j|j�}t	j
|�j
�j|j�Sr
)r>�str�encode�DEFAULT_ENCODING�base64�	b64encode�strip�decoder:s  r�_get_base64zSerializer._get_base64�sM���e�S�!��L�L��!6�!6�7�E�����&�,�,�.�5�5�d�6K�6K�L�Lrc��|j}|�d|vry|d}|jj}|j�D��cgc]"\}}|jjd�r|��$}}}i}	g}
|D]2}||}tj|�s|
j|�||	|<�4|
rtddj|
��d����|jdi|	��Scc}}w)N�
hostPrefix�	hostLabelz Invalid value for parameter(s): z, z?. Must contain only alphanumeric characters, hyphen, or period.)�report�)�endpoint�input_shape�members�itemsrNrO�HOST_PREFIX_RE�match�appendr�join�format)
rr r!�operation_endpoint�host_prefix_expression�
input_members�memberrP�host_labels�
format_kwargs�
bad_labelsrL�params
             r�_expand_host_prefixzSerializer._expand_host_prefix�s��,�5�5���&��#5�5��!3�L�!A��'�3�3�;�;�
�"/�!4�!4�!6�
�����"�"�&�&�{�3�
�
��
�
�
��
��	(�D��t�$�E�!�'�'��.��!�!�$�'�"'�M�$��		(�
�&�6�t�y�y��7L�6M�N!�!��
�-�%�,�,�=�}�=�=��)
s�'Cr
)�__name__�
__module__�__qualname__r*�dict�MAP_TYPErVrr,r4r;r@rIrRr[rrr`rrrrJsC���N�
�H���$:�L�0�7�.�
�=�
M�>rrc�\�eZdZdZd�Zd
d�Zd
d�Zd
d�Zd
d�Zd
d�Z	d
d�Z
d
d	�Zd
d
�Zd�Z
y)�QuerySerializerrc�f�|j}|j�}|jjd|j�|d<ddi|d<|j�}|j|d<|jd|d<|�|j|||�||d<|j||�}|�||d	<|S)
Nr'�Content-Typez0application/x-www-form-urlencoded; charset=utf-8r(�Action�
apiVersion�Versionr)�host_prefix)
rbr,�httprOr*rwrL�metadata�
_serializerr)rr r!rPr+�body_paramsrs       rrz$QuerySerializer.serialize_to_request�s����+�+���1�1�3�
�.�3�3�7�7��d�)�)� 
�
�8��
�N�!
�
�9��
�m�m�o�� /� 4� 4��H��!0�!9�!9�,�!G��I�����O�O�K��U�;�(�
�6���.�.�z�?�K���"�(3�J�}�%��rc�d�t|d|j��|j�}|||||��y)N�_serialize_type_)�prefix�rE�	type_name�_default_serialize)rr+r2rPr�r's      rr�zQuerySerializer._serialize�s9�����u���/�0��#�#�
��
	�z�5�%��7rc��|j}|j�D]9\}}||}|j||�}|r|�d|��}|j||||��;y)N�.)rcrdrRr�)	rr+r2rPr�rc�key�member_shape�
member_prefixs	         r�_serialize_type_structurez)QuerySerializer._serialize_type_structure�sf���-�-���+�+�-�	L�J�C��"�3�<�L� �5�5�l�C�H�M��#)�(�!�M�?� ;�
��O�O�J��|�]�K�	Lrc���|sd||<y|j|�rl|}|jjjd�rr|j	|jd��}dj|j
d�dd|gz�}n-|jjjdd�}|�d|��}t|d�D],\}}	|�d|��}
|j}|j||	||
��.y)Nr$rL�rQr����rm�)	�_is_shape_flattenedrmrNrOrRrh�split�	enumerater�)rr+r2rPr��list_prefixrL�	list_name�i�element�element_prefix�
element_shapes            r�_serialize_type_listz$QuerySerializer._serialize_type_lists����!#�J�v����#�#�E�*� �K��|�|�)�)�-�-�f�5��0�0����B�0�O��!�h�h�v�|�|�C�'8��"�'=���'F�G�����2�2�6�6�v�x�H�I�#�H�A�i�[�1�K�#�E�1�-�	P�J�A�w� +�}�A�a�S�1�N�!�L�L�M��O�O�J����O�	Prc��|j|�r|}nd|z}|dz}|j}|j}|j|d��}	|j|d�}
t	|d�D]V\}}|j||	��}
|j||
��}|j
||||
�|j
|||||��Xy)Nz%s.entryz
.{i}.{suffix}r�r�r2r�)r��suffix)r�r�r2rRr�rir�)rr+r2rPr��full_prefix�template�	key_shape�value_shape�
key_suffix�value_suffixr�r��
key_prefix�value_prefixs               r�_serialize_type_mapz#QuerySerializer._serialize_type_maps����#�#�E�*� �K�$�v�-�K���0���I�I�	��k�k���.�.�y�u�.�M�
��0�0��g�F����q�)�	O�F�A�s�!���1�Z��@�J�#�?�?�Q�|�?�D�L��O�O�J��Y�
�C��O�O�J��c�
�K��N�		Orc�,�|j|�||<yr
�r[�rr+r2rPr�s     r�_serialize_type_blobz$QuerySerializer._serialize_type_blob$s��!�-�-�e�4�
�6�rc�`�|j||jjd��||<y�N�timestampFormat�rIrNrOr�s     r�_serialize_type_timestampz)QuerySerializer._serialize_type_timestamp(s.��!�;�;��5�&�&�*�*�+<�=�
�
�6�rc��|rd||<yd||<y�N�true�falser`r�s     r�_serialize_type_booleanz'QuerySerializer._serialize_type_boolean-s���!'�J�v��!(�J�v�rc��|||<yr
r`r�s     rr�z"QuerySerializer._default_serialize3s��"�
�6�rc�8�|jjd�S)N�	flattenedrM�rrPs  rr�z#QuerySerializer._is_shape_flattened6s���"�"�&�&�{�3�3rN�r$)rsrtrurCrr�r�r�r�r�r�r�r�r�r`rrryry�s=�� ���0
8�L�P�&O� 5�
�
)�#�4rryc��eZdZdZd�Zdd�Zy)�
EC2SerializeraUEC2 specific customizations to the query protocol serializers.

    The EC2 model is almost, but not exactly, similar to the query protocol
    serializer.  This class encapsulates those differences.  The model
    will have be marked with a ``protocol`` of ``ec2``, so you don't need
    to worry about wiring this class up correctly.

    c��d|jvr|jdSd|jvr(|jd}|dj�|ddzS|S)N�	queryNamerLrr�)rN�upper)rrPrQrLs    rrRz"EC2Serializer._get_serialized_nameDsd���%�-�-�-��&�&�{�3�3�
�u�*�*�
*��&�&�v�.�D���7�=�=�?�T�!�"�X�-�-��rc�z�t|d�D],\}}|�d|��}|j}|j||||��.y)Nr�r�)r�rmr�)	rr+r2rPr�r�r�r�r�s	         rr�z"EC2Serializer._serialize_type_listQsH��#�E�1�-�	P�J�A�w� &�x�q���_�N�!�L�L�M��O�O�J����O�	PrNr�)rsrtru�__doc__rRr�r`rrr�r�:s��� �Prr�c�B�eZdZdZd�Zdd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zy)�JSONSerializer�
unixtimestampc���dj|jd|j�}|jd}|j�}|jjd|j�|d<|d|zd�|d<|j�}|j}|�|j|||�tj|�j|j�|d<|j||�}|�||d	<|S)
Nz{}.{}�targetPrefix�jsonVersionr'zapplication/x-amz-json-%s)zX-Amz-Targetr{r(r)r)rir�rLr,r�rOr*rwrbr��json�dumpsrUrVrr)	rr r!�target�json_versionr+r)rbrs	         rrz#JSONSerializer.serialize_to_request[s������$�$�^�4�� � �
��'�/�/�
�>���1�1�3�
�.�3�3�7�7��d�)�)� 
�
�8��#�7�,�F�!
�
�9���}�}���%�1�1���"��O�O�D�*�k�:�!�Z�Z��-�4�4�T�5J�5J�K�
�6���.�.�z�?�K���"�(3�J�}�%��rNc�b�t|d|jz|j�}|||||�y�Nz_serialize_type_%sr�)rr+r2rPr�r's      rr�zJSONSerializer._serializeus4���� �5�?�?�2��#�#�
��
	�z�5�%��-rc��|jr|||<y|�|j�}|||<|}|j}|j�D];\}}||}	d|	jvr|	jd}|j|||	|��=yrK)�is_document_typerwrcrdrNr�)
rr+r2rPr��new_serializedrc�
member_key�member_valuer�s
          rr�z(JSONSerializer._serialize_type_structure}s����!�!�#�J�s�O���"&�����"0�
�3��+�
��m�m�G�,1�K�K�M�
�(�
�L�&�z�2���\�7�7�7�!-�!;�!;�F�!C�J������l�J��	
rc��|j�}|||<|j�D]#\}}|j|||j|��%yr
)rwrdr�r2)rr+r2rPr��map_obj�sub_key�	sub_values        rr�z"JSONSerializer._serialize_type_map�sH���-�-�/��!�
�3��"'�+�+�-�	F��G�Y��O�O�G�Y����W�E�	Frc��g}|||<|D]6}i}|j|||jd�|j|d��8y)N�__current__)r�rmrg)rr+r2rPr��list_obj�	list_item�wrappers        rr�z#JSONSerializer._serialize_type_list�sM����"�
�3���	4�I��G�

�O�O�G�Y����m�L��O�O�G�M�2�3�	4rc��|||<yr
r`�rr+r2rPr�s     rr�z!JSONSerializer._default_serialize�s���
�3�rc�`�|j||jjd��||<yr�r�r�s     rr�z(JSONSerializer._serialize_type_timestamp�s-���8�8��5�&�&�*�*�+<�=�
�
�3�rc�,�|j|�||<yr
r�r�s     rr�z#JSONSerializer._serialize_type_blob�s���*�*�5�1�
�3�rr
)rsrtrurCrr�r�r�r�r�r�r�r`rrr�r�Xs1��&���4.��,F�
4� �
�
2rr�c�h�eZdZdZdZdZgd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zy)�BaseRestSerializera=Base class for rest protocols.

    The only variance between the various rest protocols is the
    way that the body is serialized.  All other aspects (headers, uri, etc.)
    are the same and logic for serializing those aspects lives here.

    Subclasses must implement the ``_serialize_body_params`` method.

    r�rfc822)�uri�querystring�headerr(c��|j�}|jjd|j�|d<|j}|�|jd|d<|S|j
}|j
�|j
�|j
�|j
�d�}|j�D]\}}|��	|j||||��|j|jd|d�|d<d|jvr%|j|jd|d�|d<|d|d	<|d
r|d
|d
<|j|||||�|j|||�|j||�}	|	�|	|d<|S)Nr'�
requestUrir%)�uri_path_kwargs�query_string_kwargs�body_kwargsr(r��authPath�	auth_pathr�r&r(r)
r,r�rOr*rbrcrwrd�_partition_parameters�_render_uri_template�_serialize_payload�_serialize_content_typerr)
rr r!r+rP�
shape_members�partitioned�
param_name�param_valuers
          rrz'BaseRestSerializer.serialize_to_request�s����1�1�3�
�.�3�3�7�7��d�)�)� 
�
�8�� �+�+���=�%4�%9�%9�,�%G�J�z�"����
�
�
� $�}�}��#'�=�=�?��=�=�?��}�}��	
��(2�'7�'7�'9�	�#�J���"���&�&��Z��m�
�		�"&�!:�!:�� � ��.��<M�0N�"
�
�:����-�-�-�&*�&?�&?��$�$�Z�0��-�.�'�J�{�#�&1�1F�%G�
�>�"��y�!�$/�	�$:�J�y�!������Z��
�	
�	
�$�$�Z��
�F��.�.�z�?�K���"�(3�J�}�%��rc���i}tjd|�D];}|jd�rt||ddd��||<�+t||�||<�=|jdi|��S)Nz{(.*?)}�+r�z/~)�safer`)�re�findall�endswithr
ri)r�uri_template�params�encoded_params�template_params     rr�z'BaseRestSerializer._render_uri_template�s����� �j�j��\�B�	�N��&�&�s�+�1?��>�#�2�.�/�d�2��~�.�2@��>�*�2��~�.�
	�#�|�"�"�4�^�4�4rc��|jjd�}|j||�r)|j|d�}|j|�}||d<y|�@|j|�}|�|j	|||�|d<y|j�|d<y|dr|j	|d|�|d<y|j
|�r|j�|d<yy)N�payloadrr)r�)rNrO�_has_streaming_payload�_encode_payload�_serialize_body_params�_serialize_empty_body�_requires_empty_body)	rr�r r+rPr��payload_member�body_payloadr�s	         rr�z%BaseRestSerializer._serialize_payloads����,�,�0�0��;���&�&�~�}�E�&�>�>�.�#�>�L��/�/��=�L�!-�J�v��
�
'�%�.�.��8�K��&�%)�%@�%@���~�!>�&�
�6�"�&*�%?�%?�%A�
�6�"�
��
'�!%�!<�!<��M�*�E�"�J�v���
&�
&�u�
-�!%�!;�!;�!=�J�v��.rc��y)Nrr`�rs rrz(BaseRestSerializer._serialize_empty_body1s��rc��y)z�
        Some protocols require varied Content-Type headers
        depending on user input. This allows subclasses to apply
        this conditionally.
        Nr`)rr+rPr�s    rr�z*BaseRestSerializer._serialize_content_type4s��	
rc��y)z�
        Some protocols require a specific body to represent an empty
        payload. This allows subclasses to apply this conditionally.
        Fr`r�s  rrz'BaseRestSerializer._requires_empty_body<s��
rc�0�|duxr||jdvS)z5Determine if payload is streaming (a blob or string).N)�blob�string)r�)rrr�s   rrz)BaseRestSerializer._has_streaming_payloadCs,���d�"�
�}�W�'=�'G�'G�L
�(
�	
rc�\�t|t�r|j|j�S|Sr
)r>rTrUrV)rr)s  rrz"BaseRestSerializer._encode_payloadJs&���d�C� ��;�;�t�4�4�5�5��rc���||}|jjd�}|jjd|�}|dk(r	||d|<y|dk(r�t|t�r|dj	|�yt|t
�r"t
|�j�}||d|<y|jdk(rA|jjd|j�}	|j||	�}
|
|d|<y||d|<y|d	k(r;||}|s|jd
k(ry|j||�}t
|�|d|<y|dk(r|}
|j|
|d|�y||d|<y)
N�locationrLr�r�r�r��	timestampr�r��listr(r�)
rNrOr>rv�update�boolrTrDr��QUERY_STRING_TIMESTAMP_FORMATrI�_convert_header_value�_do_serialize_header_map)rr�r�r�r�rmr�key_name�bool_strr3rrPr2�
header_prefixs              rr�z(BaseRestSerializer._partition_parametersOs����z�*���'�'�+�+�J�7���'�'�+�+�F�J�?���u��7B�K�)�*�8�4�
��
&��+�t�,��1�2�9�9�+�F��K��.��{�+�1�1�3��?G��1�2�8�<��!�!�[�0�#)�#7�#7�#;�#;�%�t�'I�'I�$� �!�:�:��!1��	�@I��1�2�8�<�?J��1�2�8�<�
��
!�!�*�-�E��5�?�?�f�#<���.�.�u�k�B�E�/2�5�z�K�	�"�8�,�
��
"�%�M�

�)�)��{�9�5�{�
�6A�K�
�&�z�2rc�H�|j�D]\}}||z}|||<�yr
)rd)rrr(�
user_inputr��val�full_keys       rrz+BaseRestSerializer._do_serialize_header_map�s2��"�(�(�*�	$�H�C��$�s�*�H� #�G�H��	$rc��td��)Nrr)rr�rPs   rrz)BaseRestSerializer._serialize_body_params�s��!�":�;�;rc���|jdk(rft|�}tj|j	��}|j
j
d|j�}|j||�S|jdk(r<|D�cgc] }|�|j|j|���"}}dj|�St|�r&|jtj|d���S|Scc}w)Nrr�r�,)r#�:)�
separators)r�r	r7r8�utctimetuplerNrO�HEADER_TIMESTAMP_FORMATrIrrmrhrr[r�r�)rrPr2rFrr3�v�converted_values        rrz(BaseRestSerializer._convert_header_value�s����?�?�k�)�2�5�9�L� ����(A�(A�(C�D�I�$�2�2�6�6�!�4�#?�#?� ���1�1�)�=M�N�N�
�_�_��
&�����=��*�*�5�<�<��;��O��
�8�8�O�,�,�
!�%�
(��#�#�D�J�J�u��$L�M�M��L��s�	%C4N)rsrtrur�rr'�KNOWN_LOCATIONSrr�r�rr�rrrr�rrrr`rrr�r��s]���%.�!�&��B�O�9�v5�&>�@�
��
��
/A�b$�
<�rr�c�$�eZdZd�Zd�Zd�Zd�Zy)�RestJSONSerializerc��y)Ns{}r`r
s rrz(RestJSONSerializer._serialize_empty_body�s��rc�h�|jj�D]\}}d|jvs�yy)zq
        Serialize an empty JSON object whenever the shape has
        members not targeting a location.
        rTF)rcrdrN)rrPrmrs    rrz'RestJSONSerializer._requires_empty_body�s:��
!�=�=�.�.�0�	�K�F�C���!2�!2�2��	�rc��|jjd�}|j||�ry|ddk7}td|d�}|r|s	d|dd<yyy)z?Set Content-Type to application/json for all structured bodies.rNr)rr{r(zapplication/json)rNrOrr)rr+rPr�r�has_body�has_content_types       rr�z*RestJSONSerializer._serialize_content_type�sh���%�%�)�)�)�4���&�&�w�
�>���f�%��,��%�n�j��6K�L���,�4F�J�y�!�.�1�-�8rc��|j�}|j|||�tj|�j	|j
�Sr
)rwr�r�r�rUrV)rr�rP�serialized_bodys    rrz)RestJSONSerializer._serialize_body_params�s=���-�-�/��������7��z�z�/�*�1�1�$�2G�2G�H�HrN)rsrtrurrr�rr`rrr,r,�s����
G�Irr,c�F�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zy)�RestXMLSerializerrc���|jd}tjd�}|j||||�t	|�d}tj
||j��S)NrLr$r)�encoding)rNr�Elementr�r�tostringrV)rr�rP�	root_name�pseudo_root�	real_roots      rrz(RestXMLSerializer._serialize_body_params�s\���'�'��/�	�!�)�)�"�-������v�{�I�>���%�a�(�	��#�#�I��8M�8M�N�Nrc�b�t|d|jz|j�}|||||�yr�r�)rrPr��xmlnoderLr's      rr�zRestXMLSerializer._serialize�s4���� �5�?�?�2��#�#�
��
	�w���t�,rc���tj||�}d|jvr?|jd}d}|jd�r|d|dzz
}|d|j|<|j�D]�\}}	|j|}
|
jjd|�}|	�y|
jjd�r|
jd}|	|j|<�o|j|
|	||���y)N�xmlNamespace�xmlnsr�z:%sr�rL�xmlAttribute)r�
SubElementrNrO�attribrdrcr�)
rr>r�rPrL�structure_node�namespace_metadata�attribute_namer�r2r��member_name�xml_attribute_names
             rr�z+RestXMLSerializer._serialize_type_structure�s��$�/�/���>���U�0�0�0�!&�!4�!4�^�!D��$�N�!�%�%�h�/��%�*<�X�*F�"F�F��4F�u�4M�N�!�!�.�1� �,�,�.�	N�J�C�� �=�=��-�L�&�4�4�8�8���E�K�
�}���)�)�-�-�n�=�%1�%?�%?��%G�"�<A��%�%�&8�9���O�O�L�%���M�	Nrc��|j}|jjd�r|}|}n2|jjdd�}tj||�}|D]}|j||||��y)Nr�rLrm)rmrNrOrrCr�)	rr>r�rPrLr��element_name�	list_node�items	         rr�z&RestXMLSerializer._serialize_type_list�sv���|�|�����"�"�;�/��L��I�'�5�5�9�9�&�(�K�L�#�.�.�w��=�I��	I�D��O�O�L�$�	�<�H�	Irc�x�tj||�}|j�D]�\}}tj|d�}|j|jd��}	|j|j
d��}
|j
|j|||	�|j
|j
|||
���y)N�entryr�r�r2)rrCrdrRr�r2r�)rr>r�rPrL�noder�r2�
entry_noder�val_names           rr�z%RestXMLSerializer._serialize_type_map�s����%�%�g�t�4�� �,�,�.�	F�J�C��$�/�/��g�>�J��0�0�����0�O�H��0�0����'�1��H�
�O�O�E�I�I�s�J��A��O�O�E�K�K��
�H�E�	Frc�Z�tj||�}|r
d}||_yd}||_yr�)rrC�text)rr>r�rPrLrP�	str_values       rr�z)RestXMLSerializer._serialize_type_boolean
s5���%�%�g�t�4����I���	� �I���	rc�\�tj||�}|j|�|_yr
)rrCr[rT�rr>r�rPrLrPs      rr�z&RestXMLSerializer._serialize_type_blobs&���%�%�g�t�4���$�$�V�,��	rc��tj||�}|j||jj	d��|_yr�)rrCrIrNrOrTrWs      rr�z+RestXMLSerializer._serialize_type_timestamps=���%�%�g�t�4���2�2��E�'�'�+�+�,=�>�
��	rc�P�tj||�}t|�|_yr
)rrCrTrTrWs      rr�z$RestXMLSerializer._default_serializes���%�%�g�t�4����K��	rN)
rsrtrurCrr�r�r�r�r�r�r�r�r`rrr5r5�s9�� ��O�-�N�4	I�F�(	�-�
� rr5)�ec2�queryr�z	rest-jsonzrest-xml)T)!r�rWr7r?r�r��	xml.etreer�botocorer�botocore.compatr�botocore.exceptionsr�botocore.utilsrrr	r
�DEFAULT_TIMESTAMP_FORMATr0r/�compilererrryr�r�r�r,r5rr`rr�<module>rcs����6����	�!��&�4���%��
��'�
�����1�2���A>�A>�Hi4�j�i4�XP�O�P�<V2�Z�V2�rk��k�\I�+�^�I�@b �*�b �L�
��#�!��r

https://t.me/RX1948 - 2025