
    1                     >    d Z ddlmZ ddlmZ ddlZ G d de      Zy)z
    Kubernetes

    No description provided (generated by Swagger Codegen
    https://github.com/swagger-api/swagger-codegen)

    OpenAPI spec version: v1.14.4

    Generated by: https://github.com/swagger-api/swagger-codegen.git
    )pformat)	iteritemsNc                      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V1ISCSIVolumeSourcezw
    NOTE: This class is auto generated by the swagger code generator program.
    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                 f   d| _         d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _        d| _	        d| _
        d| _        ||| _        ||| _        ||| _        ||| _        || _        ||| _        || _        ||| _        |	|	| _        |
|
| _        || _        y)zB
        V1ISCSIVolumeSource - a model defined in Swagger
        N)_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   s               Blib/third_party/kubernetes/client/models/v1_iscsi_volume_source.py__init__zV1ISCSIVolumeSource.__init__:   s      !%D"DDMDDI DDIDMDODDD&!4d$0ddl!*dDH",dDHdl dn"do&D    c                     | j                   S )z
        Gets the chap_auth_discovery of this V1ISCSIVolumeSource.
        whether support iSCSI Discovery CHAP authentication

        :return: The chap_auth_discovery of this V1ISCSIVolumeSource.
        :rtype: bool
        r   r+   s    r,   r   z'V1ISCSIVolumeSource.chap_auth_discoveryk   s     $$$r.   c                     || _         y)z
        Sets the chap_auth_discovery of this V1ISCSIVolumeSource.
        whether support iSCSI Discovery CHAP authentication

        :param chap_auth_discovery: The chap_auth_discovery of this
        V1ISCSIVolumeSource.
        :type: bool
        Nr0   )r+   r   s     r,   r   z'V1ISCSIVolumeSource.chap_auth_discoveryv   s     !4Dr.   c                     | j                   S )z
        Gets the chap_auth_session of this V1ISCSIVolumeSource.
        whether support iSCSI Session CHAP authentication

        :return: The chap_auth_session of this V1ISCSIVolumeSource.
        :rtype: bool
        r    r1   s    r,   r   z%V1ISCSIVolumeSource.chap_auth_session   s     """r.   c                     || _         y)z
        Sets the chap_auth_session of this V1ISCSIVolumeSource.
        whether support iSCSI Session CHAP authentication

        :param chap_auth_session: The chap_auth_session of this
        V1ISCSIVolumeSource.
        :type: bool
        Nr4   )r+   r   s     r,   r   z%V1ISCSIVolumeSource.chap_auth_session   s     0Dr.   c                     | j                   S )a  
        Gets the fs_type of this V1ISCSIVolumeSource.
        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

        :return: The fs_type of this V1ISCSIVolumeSource.
        :rtype: str
        r!   r1   s    r,   r   zV1ISCSIVolumeSource.fs_type   s     ==r.   c                     || _         y)a  
        Sets the fs_type of this V1ISCSIVolumeSource.
        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

        :param fs_type: The fs_type of this V1ISCSIVolumeSource.
        :type: str
        Nr7   )r+   r   s     r,   r   zV1ISCSIVolumeSource.fs_type   s     DMr.   c                     | j                   S )ai  
        Gets the initiator_name of this V1ISCSIVolumeSource.
        Custom iSCSI Initiator Name. If initiatorName is specified with
        iscsiInterface simultaneously, new iSCSI interface <target
        portal>:<volume name> will be created for the connection.

        :return: The initiator_name of this V1ISCSIVolumeSource.
        :rtype: str
        r"   r1   s    r,   r   z"V1ISCSIVolumeSource.initiator_name   s     r.   c                     || _         y)av  
        Sets the initiator_name of this V1ISCSIVolumeSource.
        Custom iSCSI Initiator Name. If initiatorName is specified with
        iscsiInterface simultaneously, new iSCSI interface <target
        portal>:<volume name> will be created for the connection.

        :param initiator_name: The initiator_name of this V1ISCSIVolumeSource.
        :type: str
        Nr:   )r+   r   s     r,   r   z"V1ISCSIVolumeSource.initiator_name   s     *Dr.   c                     | j                   S )z
        Gets the iqn of this V1ISCSIVolumeSource.
        Target iSCSI Qualified Name.

        :return: The iqn of this V1ISCSIVolumeSource.
        :rtype: str
        )r#   r1   s    r,   r   zV1ISCSIVolumeSource.iqn        99r.   c                 ,    |t        d      || _        y)z
        Sets the iqn of this V1ISCSIVolumeSource.
        Target iSCSI Qualified Name.

        :param iqn: The iqn of this V1ISCSIVolumeSource.
        :type: str
        Nz+Invalid value for `iqn`, must not be `None`)
ValueErrorr#   )r+   r   s     r,   r   zV1ISCSIVolumeSource.iqn        {DEEDIr.   c                     | j                   S )z
        Gets the iscsi_interface of this V1ISCSIVolumeSource.
        iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default'
        (tcp).

        :return: The iscsi_interface of this V1ISCSIVolumeSource.
        :rtype: str
        r$   r1   s    r,   r   z#V1ISCSIVolumeSource.iscsi_interface   s        r.   c                     || _         y)a  
        Sets the iscsi_interface of this V1ISCSIVolumeSource.
        iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default'
        (tcp).

        :param iscsi_interface: The iscsi_interface of this V1ISCSIVolumeSource.
        :type: str
        NrB   )r+   r   s     r,   r   z#V1ISCSIVolumeSource.iscsi_interface   s     ,Dr.   c                     | j                   S )z
        Gets the lun of this V1ISCSIVolumeSource.
        iSCSI Target Lun number.

        :return: The lun of this V1ISCSIVolumeSource.
        :rtype: int
        )r%   r1   s    r,   r   zV1ISCSIVolumeSource.lun  r=   r.   c                 ,    |t        d      || _        y)z
        Sets the lun of this V1ISCSIVolumeSource.
        iSCSI Target Lun number.

        :param lun: The lun of this V1ISCSIVolumeSource.
        :type: int
        Nz+Invalid value for `lun`, must not be `None`)r?   r%   )r+   r   s     r,   r   zV1ISCSIVolumeSource.lun  r@   r.   c                     | j                   S )a/  
        Gets the portals of this V1ISCSIVolumeSource.
        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).

        :return: The portals of this V1ISCSIVolumeSource.
        :rtype: list[str]
        r&   r1   s    r,   r   zV1ISCSIVolumeSource.portals   s     ==r.   c                     || _         y)a5  
        Sets the portals of this V1ISCSIVolumeSource.
        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).

        :param portals: The portals of this V1ISCSIVolumeSource.
        :type: list[str]
        NrG   )r+   r   s     r,   r   zV1ISCSIVolumeSource.portals,  s     DMr.   c                     | j                   S )z
        Gets the read_only of this V1ISCSIVolumeSource.
        ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults
        to false.

        :return: The read_only of this V1ISCSIVolumeSource.
        :rtype: bool
        r'   r1   s    r,   r   zV1ISCSIVolumeSource.read_only9  s     ??r.   c                     || _         y)z
        Sets the read_only of this V1ISCSIVolumeSource.
        ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults
        to false.

        :param read_only: The read_only of this V1ISCSIVolumeSource.
        :type: bool
        NrJ   )r+   r   s     r,   r   zV1ISCSIVolumeSource.read_onlyE  s      DOr.   c                     | j                   S )z
        Gets the secret_ref of this V1ISCSIVolumeSource.
        CHAP Secret for iSCSI target and initiator authentication

        :return: The secret_ref of this V1ISCSIVolumeSource.
        :rtype: V1LocalObjectReference
        r(   r1   s    r,   r   zV1ISCSIVolumeSource.secret_refR  s     r.   c                     || _         y)z
        Sets the secret_ref of this V1ISCSIVolumeSource.
        CHAP Secret for iSCSI target and initiator authentication

        :param secret_ref: The secret_ref of this V1ISCSIVolumeSource.
        :type: V1LocalObjectReference
        NrM   )r+   r   s     r,   r   zV1ISCSIVolumeSource.secret_ref]  s     "Dr.   c                     | j                   S )a0  
        Gets the target_portal of this V1ISCSIVolumeSource.
        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).

        :return: The target_portal of this V1ISCSIVolumeSource.
        :rtype: str
        )r)   r1   s    r,   r   z!V1ISCSIVolumeSource.target_portali  s     r.   c                 ,    |t        d      || _        y)a<  
        Sets the target_portal of this V1ISCSIVolumeSource.
        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).

        :param target_portal: The target_portal of this V1ISCSIVolumeSource.
        :type: str
        Nz5Invalid value for `target_portal`, must not be `None`)r?   r)   )r+   r   s     r,   r   z!V1ISCSIVolumeSource.target_portalu  s     NOO'Dr.   c                 j   i }t        | j                        D ]  \  }}t        | |      }t        |t              rt	        t        d |            ||<   <t        |d      r|j                         ||<   \t        |t              r(t        t        d |j                                     ||<   |||<    |S )z8
        Returns the model properties as a dict
        c                 >    t        | d      r| j                         S | S )Nto_dicthasattrrS   )xs    r,   <lambda>z-V1ISCSIVolumeSource.to_dict.<locals>.<lambda>  s    I)>!))+EAEr.   rS   c                 T    t        | d   d      r| d   | d   j                         fS | S )N   rS   r   rT   )items    r,   rW   z-V1ISCSIVolumeSource.to_dict.<locals>.<lambda>  s6    47I. #1gtAw'89 9489r.   )
r   swagger_typesgetattr
isinstancelistmaprU   rS   dictitems)r+   resultattr_values        r,   rS   zV1ISCSIVolumeSource.to_dict  s     FT//0adD!e	E4	 EuMOt5)$}}teT"9:?++-IJt
 t 1 Mr.   c                 4    t        | j                               S )z@
        Returns the string representation of the model
        )r   rS   r1   s    r,   to_strzV1ISCSIVolumeSource.to_str  s     4<<>""r.   c                 "    | j                         S )z*
        For `print` and `pprint`
        )rg   r1   s    r,   __repr__zV1ISCSIVolumeSource.__repr__  s     ;;=r.   c                 V    t        |t              sy| j                  |j                  k(  S )z8
        Returns true if both objects are equal
        F)r]   r   __dict__r+   others     r,   __eq__zV1ISCSIVolumeSource.__eq__  s%     e01==ENN**r.   c                     | |k(   S )z<
        Returns true if both objects are not equal
         rl   s     r,   __ne__zV1ISCSIVolumeSource.__ne__  s     u}r.   )NNNNNNNNNNN)__name__
__module____qualname____doc__r[   attribute_mapr-   propertyr   setterr   r   r   r   r   r   r   r   r   r   rS   rg   ri   rn   rq   rp   r.   r,   r   r      s    $!,- 1,')%- $(!%"#!/'b % % 
4 
4 # # 
0 
0   >>  
  
  * *   ::  	! 	! 
, 
,   ::  	 	 >>
 
 	 	 
  
    	" 	" 	 	 ( (.#+r.   r   )ru   pprintr   sixr   reobjectr   rp   r.   r,   <module>r}      s#   	   	b& br.   