Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
v1_volume_mount_status.py209 linesDownload Raw Back to models
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 V1VolumeMountStatus(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        'mount_path': 'str',37        'name': 'str',38        'read_only': 'bool',39        'recursive_read_only': 'str'40    }41 42    attribute_map = {43        'mount_path': 'mountPath',44        'name': 'name',45        'read_only': 'readOnly',46        'recursive_read_only': 'recursiveReadOnly'47    }48 49    def __init__(self, mount_path=None, name=None, read_only=None, recursive_read_only=None, local_vars_configuration=None):  # noqa: E50150        """V1VolumeMountStatus - a model defined in OpenAPI"""  # noqa: E50151        if local_vars_configuration is None:52            local_vars_configuration = Configuration()53        self.local_vars_configuration = local_vars_configuration54 55        self._mount_path = None56        self._name = None57        self._read_only = None58        self._recursive_read_only = None59        self.discriminator = None60 61        self.mount_path = mount_path62        self.name = name63        if read_only is not None:64            self.read_only = read_only65        if recursive_read_only is not None:66            self.recursive_read_only = recursive_read_only67 68    @property69    def mount_path(self):70        """Gets the mount_path of this V1VolumeMountStatus.  # noqa: E50171 72        MountPath corresponds to the original VolumeMount.  # noqa: E50173 74        :return: The mount_path of this V1VolumeMountStatus.  # noqa: E50175        :rtype: str76        """77        return self._mount_path78 79    @mount_path.setter80    def mount_path(self, mount_path):81        """Sets the mount_path of this V1VolumeMountStatus.82 83        MountPath corresponds to the original VolumeMount.  # noqa: E50184 85        :param mount_path: The mount_path of this V1VolumeMountStatus.  # noqa: E50186        :type: str87        """88        if self.local_vars_configuration.client_side_validation and mount_path is None:  # noqa: E50189            raise ValueError("Invalid value for `mount_path`, must not be `None`")  # noqa: E50190 91        self._mount_path = mount_path92 93    @property94    def name(self):95        """Gets the name of this V1VolumeMountStatus.  # noqa: E50196 97        Name corresponds to the name of the original VolumeMount.  # noqa: E50198 99        :return: The name of this V1VolumeMountStatus.  # noqa: E501100        :rtype: str101        """102        return self._name103 104    @name.setter105    def name(self, name):106        """Sets the name of this V1VolumeMountStatus.107 108        Name corresponds to the name of the original VolumeMount.  # noqa: E501109 110        :param name: The name of this V1VolumeMountStatus.  # noqa: E501111        :type: str112        """113        if self.local_vars_configuration.client_side_validation and name is None:  # noqa: E501114            raise ValueError("Invalid value for `name`, must not be `None`")  # noqa: E501115 116        self._name = name117 118    @property119    def read_only(self):120        """Gets the read_only of this V1VolumeMountStatus.  # noqa: E501121 122        ReadOnly corresponds to the original VolumeMount.  # noqa: E501123 124        :return: The read_only of this V1VolumeMountStatus.  # noqa: E501125        :rtype: bool126        """127        return self._read_only128 129    @read_only.setter130    def read_only(self, read_only):131        """Sets the read_only of this V1VolumeMountStatus.132 133        ReadOnly corresponds to the original VolumeMount.  # noqa: E501134 135        :param read_only: The read_only of this V1VolumeMountStatus.  # noqa: E501136        :type: bool137        """138 139        self._read_only = read_only140 141    @property142    def recursive_read_only(self):143        """Gets the recursive_read_only of this V1VolumeMountStatus.  # noqa: E501144 145        RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.  # noqa: E501146 147        :return: The recursive_read_only of this V1VolumeMountStatus.  # noqa: E501148        :rtype: str149        """150        return self._recursive_read_only151 152    @recursive_read_only.setter153    def recursive_read_only(self, recursive_read_only):154        """Sets the recursive_read_only of this V1VolumeMountStatus.155 156        RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.  # noqa: E501157 158        :param recursive_read_only: The recursive_read_only of this V1VolumeMountStatus.  # noqa: E501159        :type: str160        """161 162        self._recursive_read_only = recursive_read_only163 164    def to_dict(self):165        """Returns the model properties as a dict"""166        result = {}167 168        for attr, _ in six.iteritems(self.openapi_types):169            value = getattr(self, attr)170            if isinstance(value, list):171                result[attr] = list(map(172                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,173                    value174                ))175            elif hasattr(value, "to_dict"):176                result[attr] = value.to_dict()177            elif isinstance(value, dict):178                result[attr] = dict(map(179                    lambda item: (item[0], item[1].to_dict())180                    if hasattr(item[1], "to_dict") else item,181                    value.items()182                ))183            else:184                result[attr] = value185 186        return result187 188    def to_str(self):189        """Returns the string representation of the model"""190        return pprint.pformat(self.to_dict())191 192    def __repr__(self):193        """For `print` and `pprint`"""194        return self.to_str()195 196    def __eq__(self, other):197        """Returns true if both objects are equal"""198        if not isinstance(other, V1VolumeMountStatus):199            return False200 201        return self.to_dict() == other.to_dict()202 203    def __ne__(self, other):204        """Returns true if both objects are not equal"""205        if not isinstance(other, V1VolumeMountStatus):206            return True207 208        return self.to_dict() != other.to_dict()209 
codekingpro/portable-devtools · Team Ai