
    Bvh                     B    d Z ddlZddlZddlZddlmZ  G d de      Zy)z
    Kubernetes

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: release-1.33
    Generated by: https://openapi-generator.tech
    N)Configurationc                   $   e Zd ZdZ	 dddddZdddd	dZddZed        Zej                  d        Zed        Z
e
j                  d        Z
ed        Zej                  d        Zed        Zej                  d        Zd Zd Zd Zd Zd Zy
)V1VolumeAttachmentStatuszNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    V1VolumeErrorboolzdict(str, str))attach_errorattachedattachment_metadatadetach_errorattachErrorr	   attachmentMetadatadetachErrorNc                     |
t               }|| _        d| _        d| _        d| _        d| _        d| _        ||| _        || _        ||| _	        ||| _
        yy)z5V1VolumeAttachmentStatus - a model defined in OpenAPIN)r   local_vars_configuration_attach_error	_attached_attachment_metadata_detach_errordiscriminatorr   r	   r
   r   )selfr   r	   r
   r   r   s         ^/RAG/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_volume_attachment_status.py__init__z!V1VolumeAttachmentStatus.__init__1   su    #+'4$(@%!$(!!!# ,D *':D$# ,D $    c                     | j                   S )zGets the attach_error of this V1VolumeAttachmentStatus.  # noqa: E501


        :return: The attach_error of this V1VolumeAttachmentStatus.  # noqa: E501
        :rtype: V1VolumeError
        r   r   s    r   r   z%V1VolumeAttachmentStatus.attach_errorE        !!!r   c                     || _         y)zSets the attach_error of this V1VolumeAttachmentStatus.


        :param attach_error: The attach_error of this V1VolumeAttachmentStatus.  # noqa: E501
        :type: V1VolumeError
        Nr   )r   r   s     r   r   z%V1VolumeAttachmentStatus.attach_errorO        *r   c                     | j                   S )ad  Gets the attached of this V1VolumeAttachmentStatus.  # noqa: E501

        attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.  # noqa: E501

        :return: The attached of this V1VolumeAttachmentStatus.  # noqa: E501
        :rtype: bool
        )r   r   s    r   r	   z!V1VolumeAttachmentStatus.attachedZ   s     ~~r   c                 X    | j                   j                  r|t        d      || _        y)a]  Sets the attached of this V1VolumeAttachmentStatus.

        attached indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.  # noqa: E501

        :param attached: The attached of this V1VolumeAttachmentStatus.  # noqa: E501
        :type: bool
        Nz0Invalid value for `attached`, must not be `None`)r   client_side_validation
ValueErrorr   )r   r	   s     r   r	   z!V1VolumeAttachmentStatus.attachede   s+     ((??HDTOPP!r   c                     | j                   S )a  Gets the attachment_metadata of this V1VolumeAttachmentStatus.  # noqa: E501

        attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.  # noqa: E501

        :return: The attachment_metadata of this V1VolumeAttachmentStatus.  # noqa: E501
        :rtype: dict(str, str)
        r   r   s    r   r
   z,V1VolumeAttachmentStatus.attachment_metadatas   s     (((r   c                     || _         y)a  Sets the attachment_metadata of this V1VolumeAttachmentStatus.

        attachmentMetadata is populated with any information returned by the attach operation, upon successful attach, that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.  # noqa: E501

        :param attachment_metadata: The attachment_metadata of this V1VolumeAttachmentStatus.  # noqa: E501
        :type: dict(str, str)
        Nr%   )r   r
   s     r   r
   z,V1VolumeAttachmentStatus.attachment_metadata~   s     %8!r   c                     | j                   S )zGets the detach_error of this V1VolumeAttachmentStatus.  # noqa: E501


        :return: The detach_error of this V1VolumeAttachmentStatus.  # noqa: E501
        :rtype: V1VolumeError
        r   r   s    r   r   z%V1VolumeAttachmentStatus.detach_error   r   r   c                     || _         y)zSets the detach_error of this V1VolumeAttachmentStatus.


        :param detach_error: The detach_error of this V1VolumeAttachmentStatus.  # noqa: E501
        :type: V1VolumeError
        Nr(   )r   r   s     r   r   z%V1VolumeAttachmentStatus.detach_error   r   r   c                 ~   i }t        j                  | j                        D ]  \  }}t        | |      }t	        |t
              rt        t        d |            ||<   <t        |d      r|j                         ||<   \t	        |t              r(t        t        d |j                                     ||<   |||<    |S )z&Returns the model properties as a dictc                 >    t        | d      r| j                         S | S )Nto_dicthasattrr,   )xs    r   <lambda>z2V1VolumeAttachmentStatus.to_dict.<locals>.<lambda>   s    WQ	-BaiikIIr   r,   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   r,   r   r-   )items    r   r0   z2V1VolumeAttachmentStatus.to_dict.<locals>.<lambda>   s6    tAw	2 #'q'47??+<!= "=8<"=r   )six	iteritemsopenapi_typesgetattr
isinstancelistmapr.   r,   dictitems)r   resultattr_values        r   r,   z V1VolumeAttachmentStatus.to_dict   s    }}T%7%78GD!D$'E%&#CI%  t 	*$}}tE4(#C=KKM%  t  %t! 9$ r   c                 H    t        j                  | j                               S )z.Returns the string representation of the model)pprintpformatr,   r   s    r   to_strzV1VolumeAttachmentStatus.to_str   s    ~~dlln--r   c                 "    | j                         S )zFor `print` and `pprint`)rD   r   s    r   __repr__z!V1VolumeAttachmentStatus.__repr__   s    {{}r   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFr8   r   r,   r   others     r   __eq__zV1VolumeAttachmentStatus.__eq__   s'    %!9:||~00r   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrH   rI   s     r   __ne__zV1VolumeAttachmentStatus.__ne__   s'    %!9:||~00r   )NNNNN)__name__
__module____qualname____doc__r6   attribute_mapr   propertyr   setterr	   r
   r   r,   rD   rF   rK   rM    r   r   r   r      s
    (/'	M &3%	M-( " " * *   __" " ) ) 	8  	8 " " * *0.11r   r   )rQ   rB   rer4   kubernetes.client.configurationr   objectr   rU   r   r   <module>rY      s&     	 
 9v1v v1r   