403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.11/site-packages/ansible/playbook/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/playbook/__pycache__/attribute.cpython-311.pyc
�

���c����ddlmZmZmZeZddlmZmZddlm	Z	e
d��ZGd�d��ZGd�de��Z
Gd	�d
e��ZGd�de��Zd
S)�)�absolute_import�division�print_function)�copy�deepcopy)�Sentinel)�list�dict�setc�h�eZdZ										dd�Zd�Zd�Zd�Zd�Zd	�Zd
�Z	d�Z
dd�Zd
�Zd�Z
dS)�	AttributeNFrc��||_||_||_||_||_||_||_||_|	|_|
|_	|�,|jtvr t|��std���dSdSdS)a�
        :class:`Attribute` specifies constraints for attributes of objects which
        derive from playbook data.  The attributes of the object are basically
        a schema for the yaml playbook.

        :kwarg isa: The type of the attribute.  Allowable values are a string
            representation of any yaml basic datatype, python class, or percent.
            (Enforced at post-validation time).
        :kwarg private: Not used at runtime.  The docs playbook keyword dumper uses it to determine
            that a keyword should not be documented.  mpdehaan had plans to remove attributes marked
            private from the ds so they would not have been available at all.
        :kwarg default: Default value if unspecified in the YAML document.
        :kwarg required: Whether or not the YAML document must contain this field.
            If the attribute is None when post-validated, an error will be raised.
        :kwarg listof: If isa is set to "list", this can optionally be set to
            ensure that all elements in the list are of the given type. Valid
            values here are the same as those for isa.
        :kwarg priority: The order in which the fields should be parsed. Generally
            this does not need to be set, it is for rare situations where another
            field depends on the fact that another field was parsed first.
        :kwarg class_type: If isa is set to "class", this can be optionally set to
            a class (not a string name). The YAML data for this field will be
            passed to the __init__ method of that class during post validation and
            the field will be an instance of that class.
        :kwarg always_post_validate: Controls whether a field should be post
            validated or not (default: False).
        :kwarg alias: An alias to use for the attribute name, for situations where
            the attribute name may conflict with a Python reserved word.
        NzQdefaults for FieldAttribute may not be mutable, please provide a callable instead)
�isa�private�default�required�listof�priority�
class_type�always_post_validate�alias�static�_CONTAINERS�callable�	TypeError)�selfrrrrrrrrrrs           �?/usr/lib/python3.11/site-packages/ansible/playbook/attribute.py�__init__zAttribute.__init__s���X��������� ��
���� ��
�$���$8��!���
������4�8�{�#:�#:�8�G�CT�CT�#:��o�p�p�p���#:�#:�#:�#:�c��||_dS�N)�name)r�ownerr"s   r�__set_name__zAttribute.__set_name__Ys
����	�	�	rc�"�|j|jkSr!�r�r�others  r�__eq__zAttribute.__eq__\����~���.�.rc�"�|j|jkSr!r&r's  r�__ne__zAttribute.__ne___r*rc�"�|j|jkSr!r&r's  r�__lt__zAttribute.__lt__d����~��
�-�-rc�"�|j|jkSr!r&r's  r�__gt__zAttribute.__gt__gr/rc�"�|j|jkSr!r&r's  r�__le__zAttribute.__le__jr*rc�"�|j|jkSr!r&r's  r�__ge__zAttribute.__ge__mr*rc��d|j��}t||��rIt|dd��rt|d|j��t��}n7t||����}nt|d|j��t��}|tur9|j}t|��r#|��}t
|d|j��|��|S)N�
_get_attr_�	_squashedF�_)r"�hasattr�getattrrrr�setattr)r�obj�obj_type�method�values     r�__get__zAttribute.__get__ps���)�d�i�)�)���3����
	<�
�s�K��/�/�
/���_���_�_�h�?�?���,���V�,�,�.�.����C��T�Y���(�;�;�E��H����L�E�����
5��������_���_�_�e�4�4�4��rc�|�t|d|j��|��|j�t|d|j��|��dSdS�Nr9)r<r"r)rr=r@s   r�__set__zAttribute.__set__�sO����_���_�_�e�,�,�,��:�!��C�)�T�Z�)�)�5�1�1�1�1�1�"�!rc�6�t|d|j����dSrC)�delattrr")rr=s  r�
__delete__zAttribute.__delete__�s ����_���_�_�%�%�%�%�%r)
NFNFNrNFNFr!)�__name__�
__module__�__qualname__rr$r)r,r.r1r3r5rArDrG�rrr
r
s�������
�������"���8q�8q�8q�8q�t���/�/�/�/�/�/�
.�.�.�.�.�.�/�/�/�/�/�/�����,2�2�2�&�&�&�&�&rr
c��eZdZdS)�NonInheritableFieldAttributeN)rHrIrJrKrrrMrM�s�������CrrMc�(��eZdZd�fd�	Zdd�Z�xZS)�FieldAttributeFc�V��t��jdi|��||_||_dS)NrK)�superr�extend�prepend)rrRrS�kwargs�	__class__s    �rrzFieldAttribute.__init__�s2��������"�"�6�"�"�"��������rNc�f�t|dd��st|dd��rt|d|j��t��}n�	|�|j��}n�#t$r�d|j��}t||��rIt|dd��rt|d|j��t��}n7t||����}nt|d|j��t��}YnwxYw|tur9|j}t|��r#|��}t|d|j��|��|S)Nr8F�
_finalizedr9r7)	r;r"r�_get_parent_attribute�AttributeErrorr:rrr<)rr=r>r@r?s     rrAzFieldAttribute.__get__�sU���3��U�+�+�	D�w�s�L�%�/P�/P�	D��C��T�Y���(�;�;�E�E�
D��1�1�$�)�<�<����!�
D�
D�
D�1�d�i�1�1���3��'�'�
D�
�s�K��7�7�7� '��_���_�_�h� G� G��� 4���V� 4� 4� 6� 6���#�C��T�Y���(�C�C�E���
D�����H����L�E�����
5��������_���_�_�e�4�4�4��s�A�BC,�+C,)FFr!)rHrIrJrrA�
__classcell__�rUs@rrOrO�sQ��������������������rrOc� ��eZdZd�fd�	Z�xZS)�ConnectionFieldAttributeNc���ddlm}ddlm}t	���||��}|dkrd}|d��s|�d}n
|dkr|�d}|S)Nr)�paramiko)�check_for_controlpersist�smart�sshr_�
persistent)�$ansible.module_utils.compat.paramikor_�ansible.utils.ssh_functionsr`rQrA)rr=r>r_r`r@rUs      �rrAz ConnectionFieldAttribute.__get__�s����A�A�A�A�A�A�H�H�H�H�H�H�������X�.�.���G����E�+�+�E�2�2�
#�x�7K�"����l�
"�
"�x�';��E��rr!)rHrIrJrArZr[s@rr]r]�s=����������������rr]N)�
__future__rrr�type�
__metaclass__rr�ansible.utils.sentinelr�	frozensetrr
rMrOr]rKrr�<module>rks��&C�B�B�B�B�B�B�B�B�B��
���������+�+�+�+�+�+��i�/�0�0��r&�r&�r&�r&�r&�r&�r&�r&�j�����9����!�!�!�!�!�Y�!�!�!�H�����~�����r

Youez - 2016 - github.com/yon3zu
LinuXploit