
    <g7                     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.32
    Generated by: https://openapi-generator.tech
    N)Configurationc                      e Zd ZdZ	 ddddddddddddZdd	d
dddddddddZd0d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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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)1V1ISCSIVolumeSourcezNOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    boolstrintz	list[str]V1LocalObjectReference)chap_auth_discoverychap_auth_sessionfs_typeinitiator_nameiqniscsi_interfacelunportals	read_only
secret_reftarget_portalchapAuthDiscoverychapAuthSessionfsTypeinitiatorNamer   iscsiInterfacer   r   readOnly	secretReftargetPortalNc                    |
t               }|| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        d| _        d| _        ||| _        ||| _        ||| _        ||| _        || _        ||| _        || _        ||| _        |	|	| _        |
|
| _        || _        y)z0V1ISCSIVolumeSource - a model defined in OpenAPIN)r   local_vars_configuration_chap_auth_discovery_chap_auth_session_fs_type_initiator_name_iqn_iscsi_interface_lun_portals
_read_only_secret_ref_target_portaldiscriminatorr
   r   r   r   r   r   r   r   r   r   r   )selfr
   r   r   r   r   r   r   r   r   r   r   r   s                d/var/www/openai/venv/lib/python3.12/site-packages/kubernetes/client/models/v1_iscsi_volume_source.py__init__zV1ISCSIVolumeSource.__init__?   s    #+'4$(@%$(!"&#	 $	"!*':D$(%6D""DL%"0D&#2D "DL &DN!(DO*    c                     | j                   S )a  Gets the chap_auth_discovery of this V1ISCSIVolumeSource.  # noqa: E501

        chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication  # noqa: E501

        :return: The chap_auth_discovery of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: bool
        r   r+   s    r,   r
   z'V1ISCSIVolumeSource.chap_auth_discoveryf   s     (((r.   c                     || _         y)a#  Sets the chap_auth_discovery of this V1ISCSIVolumeSource.

        chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication  # noqa: E501

        :param chap_auth_discovery: The chap_auth_discovery of this V1ISCSIVolumeSource.  # noqa: E501
        :type: bool
        Nr0   )r+   r
   s     r,   r
   z'V1ISCSIVolumeSource.chap_auth_discoveryq   s     %8!r.   c                     | j                   S )a  Gets the chap_auth_session of this V1ISCSIVolumeSource.  # noqa: E501

        chapAuthSession defines whether support iSCSI Session CHAP authentication  # noqa: E501

        :return: The chap_auth_session of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: bool
        r    r1   s    r,   r   z%V1ISCSIVolumeSource.chap_auth_session}   s     &&&r.   c                     || _         y)a  Sets the chap_auth_session of this V1ISCSIVolumeSource.

        chapAuthSession defines whether support iSCSI Session CHAP authentication  # noqa: E501

        :param chap_auth_session: The chap_auth_session of this V1ISCSIVolumeSource.  # noqa: E501
        :type: bool
        Nr4   )r+   r   s     r,   r   z%V1ISCSIVolumeSource.chap_auth_session   s     #4r.   c                     | j                   S )a  Gets the fs_type of this V1ISCSIVolumeSource.  # noqa: E501

        fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi  # noqa: E501

        :return: The fs_type of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: str
        r!   r1   s    r,   r   zV1ISCSIVolumeSource.fs_type        }}r.   c                     || _         y)a  Sets the fs_type of this V1ISCSIVolumeSource.

        fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi  # noqa: E501

        :param fs_type: The fs_type of this V1ISCSIVolumeSource.  # noqa: E501
        :type: str
        Nr7   )r+   r   s     r,   r   zV1ISCSIVolumeSource.fs_type         r.   c                     | j                   S )a  Gets the initiator_name of this V1ISCSIVolumeSource.  # noqa: E501

        initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.  # noqa: E501

        :return: The initiator_name of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: str
        r"   r1   s    r,   r   z"V1ISCSIVolumeSource.initiator_name   s     ###r.   c                     || _         y)a  Sets the initiator_name of this V1ISCSIVolumeSource.

        initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection.  # noqa: E501

        :param initiator_name: The initiator_name of this V1ISCSIVolumeSource.  # noqa: E501
        :type: str
        Nr<   )r+   r   s     r,   r   z"V1ISCSIVolumeSource.initiator_name   s      .r.   c                     | j                   S )zGets the iqn of this V1ISCSIVolumeSource.  # noqa: E501

        iqn is the target iSCSI Qualified Name.  # noqa: E501

        :return: The iqn of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: str
        )r#   r1   s    r,   r   zV1ISCSIVolumeSource.iqn        yyr.   c                 X    | j                   j                  r|t        d      || _        y)zSets the iqn of this V1ISCSIVolumeSource.

        iqn is the target iSCSI Qualified Name.  # noqa: E501

        :param iqn: The iqn of this V1ISCSIVolumeSource.  # noqa: E501
        :type: str
        Nz+Invalid value for `iqn`, must not be `None`)r   client_side_validation
ValueErrorr#   )r+   r   s     r,   r   zV1ISCSIVolumeSource.iqn   *     ((??CKJKK	r.   c                     | j                   S )a(  Gets the iscsi_interface of this V1ISCSIVolumeSource.  # noqa: E501

        iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).  # noqa: E501

        :return: The iscsi_interface of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: str
        r$   r1   s    r,   r   z#V1ISCSIVolumeSource.iscsi_interface   s     $$$r.   c                     || _         y)a(  Sets the iscsi_interface of this V1ISCSIVolumeSource.

        iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).  # noqa: E501

        :param iscsi_interface: The iscsi_interface of this V1ISCSIVolumeSource.  # noqa: E501
        :type: str
        NrE   )r+   r   s     r,   r   z#V1ISCSIVolumeSource.iscsi_interface   s     !0r.   c                     | j                   S )zGets the lun of this V1ISCSIVolumeSource.  # noqa: E501

        lun represents iSCSI Target Lun number.  # noqa: E501

        :return: The lun of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: int
        )r%   r1   s    r,   r   zV1ISCSIVolumeSource.lun   r?   r.   c                 X    | j                   j                  r|t        d      || _        y)zSets the lun of this V1ISCSIVolumeSource.

        lun represents iSCSI Target Lun number.  # noqa: E501

        :param lun: The lun of this V1ISCSIVolumeSource.  # noqa: E501
        :type: int
        Nz+Invalid value for `lun`, must not be `None`)r   rA   rB   r%   )r+   r   s     r,   r   zV1ISCSIVolumeSource.lun   rC   r.   c                     | j                   S )aX  Gets the portals of this V1ISCSIVolumeSource.  # noqa: E501

        portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).  # noqa: E501

        :return: The portals of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: list[str]
        r&   r1   s    r,   r   zV1ISCSIVolumeSource.portals  r8   r.   c                     || _         y)aP  Sets the portals of this V1ISCSIVolumeSource.

        portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).  # noqa: E501

        :param portals: The portals of this V1ISCSIVolumeSource.  # noqa: E501
        :type: list[str]
        NrJ   )r+   r   s     r,   r   zV1ISCSIVolumeSource.portals  r:   r.   c                     | j                   S )a  Gets the read_only of this V1ISCSIVolumeSource.  # noqa: E501

        readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.  # noqa: E501

        :return: The read_only of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: bool
        r'   r1   s    r,   r   zV1ISCSIVolumeSource.read_only"  s     r.   c                     || _         y)a	  Sets the read_only of this V1ISCSIVolumeSource.

        readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.  # noqa: E501

        :param read_only: The read_only of this V1ISCSIVolumeSource.  # noqa: E501
        :type: bool
        NrM   )r+   r   s     r,   r   zV1ISCSIVolumeSource.read_only-  s     $r.   c                     | j                   S )zGets the secret_ref of this V1ISCSIVolumeSource.  # noqa: E501


        :return: The secret_ref of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: V1LocalObjectReference
        r(   r1   s    r,   r   zV1ISCSIVolumeSource.secret_ref9  s     r.   c                     || _         y)zSets the secret_ref of this V1ISCSIVolumeSource.


        :param secret_ref: The secret_ref of this V1ISCSIVolumeSource.  # noqa: E501
        :type: V1LocalObjectReference
        NrP   )r+   r   s     r,   r   zV1ISCSIVolumeSource.secret_refC  s     &r.   c                     | j                   S )aZ  Gets the target_portal of this V1ISCSIVolumeSource.  # noqa: E501

        targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).  # noqa: E501

        :return: The target_portal of this V1ISCSIVolumeSource.  # noqa: E501
        :rtype: str
        )r)   r1   s    r,   r   z!V1ISCSIVolumeSource.target_portalN  s     """r.   c                 X    | j                   j                  r|t        d      || _        y)aX  Sets the target_portal of this V1ISCSIVolumeSource.

        targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).  # noqa: E501

        :param target_portal: The target_portal of this V1ISCSIVolumeSource.  # noqa: E501
        :type: str
        Nz5Invalid value for `target_portal`, must not be `None`)r   rA   rB   r)   )r+   r   s     r,   r   z!V1ISCSIVolumeSource.target_portalY  s,     ((??MDYTUU+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hasattrrV   )xs    r,   <lambda>z-V1ISCSIVolumeSource.to_dict.<locals>.<lambda>o  s    WQ	-BaiikIIr.   rV   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rV   r   rW   )items    r,   rZ   z-V1ISCSIVolumeSource.to_dict.<locals>.<lambda>v  s6    tAw	2 #'q'47??+<!= "=8<"=r.   )six	iteritemsopenapi_typesgetattr
isinstancelistmaprX   rV   dictitems)r+   resultattr_values        r,   rV   zV1ISCSIVolumeSource.to_dictg  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pformatrV   r1   s    r,   to_strzV1ISCSIVolumeSource.to_str  s    ~~dlln--r.   c                 "    | j                         S )zFor `print` and `pprint`)rn   r1   s    r,   __repr__zV1ISCSIVolumeSource.__repr__  s    {{}r.   c                 f    t        |t              sy| j                         |j                         k(  S )z&Returns true if both objects are equalFrb   r   rV   r+   others     r,   __eq__zV1ISCSIVolumeSource.__eq__  s'    %!45||~00r.   c                 f    t        |t              sy| j                         |j                         k7  S )z*Returns true if both objects are not equalTrr   rs   s     r,   __ne__zV1ISCSIVolumeSource.__ne__  s'    %!45||~00r.   )NNNNNNNNNNNN)__name__
__module____qualname____doc__r`   attribute_mapr-   propertyr
   setterr   r   r   r   r   r   r   r   r   r   rV   rn   rp   ru   rw    r.   r,   r   r      sq     &# .M  3.)+!'M%+N ) ) 	8  	8 ' ' 	4 	4   ^^	  	  $ $ 	. 	.   	ZZ  % % 	0 	0   	ZZ    ^^	  	    	$ 	$     & & # # , ,0.11r.   r   )r{   rl   rer^   kubernetes.client.configurationr   objectr   r   r.   r,   <module>r      s&     	 
 9~1& ~1r.   