kubernetes_asyncio.client.models.v1_iscsi_persistent_volume_source module

Kubernetes

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

The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech

class kubernetes_asyncio.client.models.v1_iscsi_persistent_volume_source.V1ISCSIPersistentVolumeSource(chap_auth_discovery=None, chap_auth_session=None, fs_type=None, initiator_name=None, iqn=None, iscsi_interface=None, lun=None, portals=None, read_only=None, secret_ref=None, target_portal=None, local_vars_configuration=None)

Bases: object

NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech

Do not edit the class manually.

attribute_map = {'chap_auth_discovery': 'chapAuthDiscovery', 'chap_auth_session': 'chapAuthSession', 'fs_type': 'fsType', 'initiator_name': 'initiatorName', 'iqn': 'iqn', 'iscsi_interface': 'iscsiInterface', 'lun': 'lun', 'portals': 'portals', 'read_only': 'readOnly', 'secret_ref': 'secretRef', 'target_portal': 'targetPortal'}
property chap_auth_discovery

Gets the chap_auth_discovery of this V1ISCSIPersistentVolumeSource. # noqa: E501

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

Returns:

The chap_auth_discovery of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

bool

property chap_auth_session

Gets the chap_auth_session of this V1ISCSIPersistentVolumeSource. # noqa: E501

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

Returns:

The chap_auth_session of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

bool

property fs_type

Gets the fs_type of this V1ISCSIPersistentVolumeSource. # 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

Returns:

The fs_type of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

str

property initiator_name

Gets the initiator_name of this V1ISCSIPersistentVolumeSource. # 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

Returns:

The initiator_name of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

str

property iqn

Gets the iqn of this V1ISCSIPersistentVolumeSource. # noqa: E501

iqn is Target iSCSI Qualified Name. # noqa: E501

Returns:

The iqn of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

str

property iscsi_interface

Gets the iscsi_interface of this V1ISCSIPersistentVolumeSource. # noqa: E501

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

Returns:

The iscsi_interface of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

str

property lun

Gets the lun of this V1ISCSIPersistentVolumeSource. # noqa: E501

lun is iSCSI Target Lun number. # noqa: E501

Returns:

The lun of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

int

openapi_types = {'chap_auth_discovery': 'bool', 'chap_auth_session': 'bool', 'fs_type': 'str', 'initiator_name': 'str', 'iqn': 'str', 'iscsi_interface': 'str', 'lun': 'int', 'portals': 'list[str]', 'read_only': 'bool', 'secret_ref': 'V1SecretReference', 'target_portal': 'str'}
property portals

Gets the portals of this V1ISCSIPersistentVolumeSource. # 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

Returns:

The portals of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

list[str]

property read_only

Gets the read_only of this V1ISCSIPersistentVolumeSource. # noqa: E501

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

Returns:

The read_only of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

bool

property secret_ref

Gets the secret_ref of this V1ISCSIPersistentVolumeSource. # noqa: E501

Returns:

The secret_ref of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

V1SecretReference

property target_portal

Gets the target_portal of this V1ISCSIPersistentVolumeSource. # 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

Returns:

The target_portal of this V1ISCSIPersistentVolumeSource. # noqa: E501

Return type:

str

to_dict(serialize=False)

Returns the model properties as a dict

to_str()

Returns the string representation of the model