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 V1QuobyteVolumeSource(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 'group': 'str',37 'read_only': 'bool',38 'registry': 'str',39 'tenant': 'str',40 'user': 'str',41 'volume': 'str'42 }43 44 attribute_map = {45 'group': 'group',46 'read_only': 'readOnly',47 'registry': 'registry',48 'tenant': 'tenant',49 'user': 'user',50 'volume': 'volume'51 }52 53 def __init__(self, group=None, read_only=None, registry=None, tenant=None, user=None, volume=None, local_vars_configuration=None): # noqa: E50154 """V1QuobyteVolumeSource - a model defined in OpenAPI""" # noqa: E50155 if local_vars_configuration is None:56 local_vars_configuration = Configuration()57 self.local_vars_configuration = local_vars_configuration58 59 self._group = None60 self._read_only = None61 self._registry = None62 self._tenant = None63 self._user = None64 self._volume = None65 self.discriminator = None66 67 if group is not None:68 self.group = group69 if read_only is not None:70 self.read_only = read_only71 self.registry = registry72 if tenant is not None:73 self.tenant = tenant74 if user is not None:75 self.user = user76 self.volume = volume77 78 @property79 def group(self):80 """Gets the group of this V1QuobyteVolumeSource. # noqa: E50181 82 group to map volume access to Default is no group # noqa: E50183 84 :return: The group of this V1QuobyteVolumeSource. # noqa: E50185 :rtype: str86 """87 return self._group88 89 @group.setter90 def group(self, group):91 """Sets the group of this V1QuobyteVolumeSource.92 93 group to map volume access to Default is no group # noqa: E50194 95 :param group: The group of this V1QuobyteVolumeSource. # noqa: E50196 :type: str97 """98 99 self._group = group100 101 @property102 def read_only(self):103 """Gets the read_only of this V1QuobyteVolumeSource. # noqa: E501104 105 readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. # noqa: E501106 107 :return: The read_only of this V1QuobyteVolumeSource. # noqa: E501108 :rtype: bool109 """110 return self._read_only111 112 @read_only.setter113 def read_only(self, read_only):114 """Sets the read_only of this V1QuobyteVolumeSource.115 116 readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. # noqa: E501117 118 :param read_only: The read_only of this V1QuobyteVolumeSource. # noqa: E501119 :type: bool120 """121 122 self._read_only = read_only123 124 @property125 def registry(self):126 """Gets the registry of this V1QuobyteVolumeSource. # noqa: E501127 128 registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes # noqa: E501129 130 :return: The registry of this V1QuobyteVolumeSource. # noqa: E501131 :rtype: str132 """133 return self._registry134 135 @registry.setter136 def registry(self, registry):137 """Sets the registry of this V1QuobyteVolumeSource.138 139 registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes # noqa: E501140 141 :param registry: The registry of this V1QuobyteVolumeSource. # noqa: E501142 :type: str143 """144 if self.local_vars_configuration.client_side_validation and registry is None: # noqa: E501145 raise ValueError("Invalid value for `registry`, must not be `None`") # noqa: E501146 147 self._registry = registry148 149 @property150 def tenant(self):151 """Gets the tenant of this V1QuobyteVolumeSource. # noqa: E501152 153 tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin # noqa: E501154 155 :return: The tenant of this V1QuobyteVolumeSource. # noqa: E501156 :rtype: str157 """158 return self._tenant159 160 @tenant.setter161 def tenant(self, tenant):162 """Sets the tenant of this V1QuobyteVolumeSource.163 164 tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin # noqa: E501165 166 :param tenant: The tenant of this V1QuobyteVolumeSource. # noqa: E501167 :type: str168 """169 170 self._tenant = tenant171 172 @property173 def user(self):174 """Gets the user of this V1QuobyteVolumeSource. # noqa: E501175 176 user to map volume access to Defaults to serivceaccount user # noqa: E501177 178 :return: The user of this V1QuobyteVolumeSource. # noqa: E501179 :rtype: str180 """181 return self._user182 183 @user.setter184 def user(self, user):185 """Sets the user of this V1QuobyteVolumeSource.186 187 user to map volume access to Defaults to serivceaccount user # noqa: E501188 189 :param user: The user of this V1QuobyteVolumeSource. # noqa: E501190 :type: str191 """192 193 self._user = user194 195 @property196 def volume(self):197 """Gets the volume of this V1QuobyteVolumeSource. # noqa: E501198 199 volume is a string that references an already created Quobyte volume by name. # noqa: E501200 201 :return: The volume of this V1QuobyteVolumeSource. # noqa: E501202 :rtype: str203 """204 return self._volume205 206 @volume.setter207 def volume(self, volume):208 """Sets the volume of this V1QuobyteVolumeSource.209 210 volume is a string that references an already created Quobyte volume by name. # noqa: E501211 212 :param volume: The volume of this V1QuobyteVolumeSource. # noqa: E501213 :type: str214 """215 if self.local_vars_configuration.client_side_validation and volume is None: # noqa: E501216 raise ValueError("Invalid value for `volume`, must not be `None`") # noqa: E501217 218 self._volume = volume219 220 def to_dict(self):221 """Returns the model properties as a dict"""222 result = {}223 224 for attr, _ in six.iteritems(self.openapi_types):225 value = getattr(self, attr)226 if isinstance(value, list):227 result[attr] = list(map(228 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,229 value230 ))231 elif hasattr(value, "to_dict"):232 result[attr] = value.to_dict()233 elif isinstance(value, dict):234 result[attr] = dict(map(235 lambda item: (item[0], item[1].to_dict())236 if hasattr(item[1], "to_dict") else item,237 value.items()238 ))239 else:240 result[attr] = value241 242 return result243 244 def to_str(self):245 """Returns the string representation of the model"""246 return pprint.pformat(self.to_dict())247 248 def __repr__(self):249 """For `print` and `pprint`"""250 return self.to_str()251 252 def __eq__(self, other):253 """Returns true if both objects are equal"""254 if not isinstance(other, V1QuobyteVolumeSource):255 return False256 257 return self.to_dict() == other.to_dict()258 259 def __ne__(self, other):260 """Returns true if both objects are not equal"""261 if not isinstance(other, V1QuobyteVolumeSource):262 return True263 264 return self.to_dict() != other.to_dict()265 