codekingpro/portable-devtools
114k
1# coding: utf-82 3"""4 Kubernetes5 6 No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E5017 8 The version of the OpenAPI document: release-1.359 Generated by: https://openapi-generator.tech10"""11 12 13import pprint14import re # noqa: F40115 16import six17 18from kubernetes.client.configuration import Configuration19 20 21class V1FCVolumeSource(object):22 """NOTE: This class is auto generated by OpenAPI Generator.23 Ref: https://openapi-generator.tech24 25 Do not edit the class manually.26 """27 28 """29 Attributes:30 openapi_types (dict): The key is attribute name31 and the value is attribute type.32 attribute_map (dict): The key is attribute name33 and the value is json key in definition.34 """35 openapi_types = {36 'fs_type': 'str',37 'lun': 'int',38 'read_only': 'bool',39 'target_ww_ns': 'list[str]',40 'wwids': 'list[str]'41 }42 43 attribute_map = {44 'fs_type': 'fsType',45 'lun': 'lun',46 'read_only': 'readOnly',47 'target_ww_ns': 'targetWWNs',48 'wwids': 'wwids'49 }50 51 def __init__(self, fs_type=None, lun=None, read_only=None, target_ww_ns=None, wwids=None, local_vars_configuration=None): # noqa: E50152 """V1FCVolumeSource - a model defined in OpenAPI""" # noqa: E50153 if local_vars_configuration is None:54 local_vars_configuration = Configuration()55 self.local_vars_configuration = local_vars_configuration56 57 self._fs_type = None58 self._lun = None59 self._read_only = None60 self._target_ww_ns = None61 self._wwids = None62 self.discriminator = None63 64 if fs_type is not None:65 self.fs_type = fs_type66 if lun is not None:67 self.lun = lun68 if read_only is not None:69 self.read_only = read_only70 if target_ww_ns is not None:71 self.target_ww_ns = target_ww_ns72 if wwids is not None:73 self.wwids = wwids74 75 @property76 def fs_type(self):77 """Gets the fs_type of this V1FCVolumeSource. # noqa: E50178 79 fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E50180 81 :return: The fs_type of this V1FCVolumeSource. # noqa: E50182 :rtype: str83 """84 return self._fs_type85 86 @fs_type.setter87 def fs_type(self, fs_type):88 """Sets the fs_type of this V1FCVolumeSource.89 90 fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E50191 92 :param fs_type: The fs_type of this V1FCVolumeSource. # noqa: E50193 :type: str94 """95 96 self._fs_type = fs_type97 98 @property99 def lun(self):100 """Gets the lun of this V1FCVolumeSource. # noqa: E501101 102 lun is Optional: FC target lun number # noqa: E501103 104 :return: The lun of this V1FCVolumeSource. # noqa: E501105 :rtype: int106 """107 return self._lun108 109 @lun.setter110 def lun(self, lun):111 """Sets the lun of this V1FCVolumeSource.112 113 lun is Optional: FC target lun number # noqa: E501114 115 :param lun: The lun of this V1FCVolumeSource. # noqa: E501116 :type: int117 """118 119 self._lun = lun120 121 @property122 def read_only(self):123 """Gets the read_only of this V1FCVolumeSource. # noqa: E501124 125 readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501126 127 :return: The read_only of this V1FCVolumeSource. # noqa: E501128 :rtype: bool129 """130 return self._read_only131 132 @read_only.setter133 def read_only(self, read_only):134 """Sets the read_only of this V1FCVolumeSource.135 136 readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. # noqa: E501137 138 :param read_only: The read_only of this V1FCVolumeSource. # noqa: E501139 :type: bool140 """141 142 self._read_only = read_only143 144 @property145 def target_ww_ns(self):146 """Gets the target_ww_ns of this V1FCVolumeSource. # noqa: E501147 148 targetWWNs is Optional: FC target worldwide names (WWNs) # noqa: E501149 150 :return: The target_ww_ns of this V1FCVolumeSource. # noqa: E501151 :rtype: list[str]152 """153 return self._target_ww_ns154 155 @target_ww_ns.setter156 def target_ww_ns(self, target_ww_ns):157 """Sets the target_ww_ns of this V1FCVolumeSource.158 159 targetWWNs is Optional: FC target worldwide names (WWNs) # noqa: E501160 161 :param target_ww_ns: The target_ww_ns of this V1FCVolumeSource. # noqa: E501162 :type: list[str]163 """164 165 self._target_ww_ns = target_ww_ns166 167 @property168 def wwids(self):169 """Gets the wwids of this V1FCVolumeSource. # noqa: E501170 171 wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. # noqa: E501172 173 :return: The wwids of this V1FCVolumeSource. # noqa: E501174 :rtype: list[str]175 """176 return self._wwids177 178 @wwids.setter179 def wwids(self, wwids):180 """Sets the wwids of this V1FCVolumeSource.181 182 wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. # noqa: E501183 184 :param wwids: The wwids of this V1FCVolumeSource. # noqa: E501185 :type: list[str]186 """187 188 self._wwids = wwids189 190 def to_dict(self):191 """Returns the model properties as a dict"""192 result = {}193 194 for attr, _ in six.iteritems(self.openapi_types):195 value = getattr(self, attr)196 if isinstance(value, list):197 result[attr] = list(map(198 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,199 value200 ))201 elif hasattr(value, "to_dict"):202 result[attr] = value.to_dict()203 elif isinstance(value, dict):204 result[attr] = dict(map(205 lambda item: (item[0], item[1].to_dict())206 if hasattr(item[1], "to_dict") else item,207 value.items()208 ))209 else:210 result[attr] = value211 212 return result213 214 def to_str(self):215 """Returns the string representation of the model"""216 return pprint.pformat(self.to_dict())217 218 def __repr__(self):219 """For `print` and `pprint`"""220 return self.to_str()221 222 def __eq__(self, other):223 """Returns true if both objects are equal"""224 if not isinstance(other, V1FCVolumeSource):225 return False226 227 return self.to_dict() == other.to_dict()228 229 def __ne__(self, other):230 """Returns true if both objects are not equal"""231 if not isinstance(other, V1FCVolumeSource):232 return True233 234 return self.to_dict() != other.to_dict()235 