Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
v1_linux_container_user.py181 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 V1LinuxContainerUser(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        'gid': 'int',37        'supplemental_groups': 'list[int]',38        'uid': 'int'39    }40 41    attribute_map = {42        'gid': 'gid',43        'supplemental_groups': 'supplementalGroups',44        'uid': 'uid'45    }46 47    def __init__(self, gid=None, supplemental_groups=None, uid=None, local_vars_configuration=None):  # noqa: E50148        """V1LinuxContainerUser - a model defined in OpenAPI"""  # noqa: E50149        if local_vars_configuration is None:50            local_vars_configuration = Configuration()51        self.local_vars_configuration = local_vars_configuration52 53        self._gid = None54        self._supplemental_groups = None55        self._uid = None56        self.discriminator = None57 58        self.gid = gid59        if supplemental_groups is not None:60            self.supplemental_groups = supplemental_groups61        self.uid = uid62 63    @property64    def gid(self):65        """Gets the gid of this V1LinuxContainerUser.  # noqa: E50166 67        GID is the primary gid initially attached to the first process in the container  # noqa: E50168 69        :return: The gid of this V1LinuxContainerUser.  # noqa: E50170        :rtype: int71        """72        return self._gid73 74    @gid.setter75    def gid(self, gid):76        """Sets the gid of this V1LinuxContainerUser.77 78        GID is the primary gid initially attached to the first process in the container  # noqa: E50179 80        :param gid: The gid of this V1LinuxContainerUser.  # noqa: E50181        :type: int82        """83        if self.local_vars_configuration.client_side_validation and gid is None:  # noqa: E50184            raise ValueError("Invalid value for `gid`, must not be `None`")  # noqa: E50185 86        self._gid = gid87 88    @property89    def supplemental_groups(self):90        """Gets the supplemental_groups of this V1LinuxContainerUser.  # noqa: E50191 92        SupplementalGroups are the supplemental groups initially attached to the first process in the container  # noqa: E50193 94        :return: The supplemental_groups of this V1LinuxContainerUser.  # noqa: E50195        :rtype: list[int]96        """97        return self._supplemental_groups98 99    @supplemental_groups.setter100    def supplemental_groups(self, supplemental_groups):101        """Sets the supplemental_groups of this V1LinuxContainerUser.102 103        SupplementalGroups are the supplemental groups initially attached to the first process in the container  # noqa: E501104 105        :param supplemental_groups: The supplemental_groups of this V1LinuxContainerUser.  # noqa: E501106        :type: list[int]107        """108 109        self._supplemental_groups = supplemental_groups110 111    @property112    def uid(self):113        """Gets the uid of this V1LinuxContainerUser.  # noqa: E501114 115        UID is the primary uid initially attached to the first process in the container  # noqa: E501116 117        :return: The uid of this V1LinuxContainerUser.  # noqa: E501118        :rtype: int119        """120        return self._uid121 122    @uid.setter123    def uid(self, uid):124        """Sets the uid of this V1LinuxContainerUser.125 126        UID is the primary uid initially attached to the first process in the container  # noqa: E501127 128        :param uid: The uid of this V1LinuxContainerUser.  # noqa: E501129        :type: int130        """131        if self.local_vars_configuration.client_side_validation and uid is None:  # noqa: E501132            raise ValueError("Invalid value for `uid`, must not be `None`")  # noqa: E501133 134        self._uid = uid135 136    def to_dict(self):137        """Returns the model properties as a dict"""138        result = {}139 140        for attr, _ in six.iteritems(self.openapi_types):141            value = getattr(self, attr)142            if isinstance(value, list):143                result[attr] = list(map(144                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,145                    value146                ))147            elif hasattr(value, "to_dict"):148                result[attr] = value.to_dict()149            elif isinstance(value, dict):150                result[attr] = dict(map(151                    lambda item: (item[0], item[1].to_dict())152                    if hasattr(item[1], "to_dict") else item,153                    value.items()154                ))155            else:156                result[attr] = value157 158        return result159 160    def to_str(self):161        """Returns the string representation of the model"""162        return pprint.pformat(self.to_dict())163 164    def __repr__(self):165        """For `print` and `pprint`"""166        return self.to_str()167 168    def __eq__(self, other):169        """Returns true if both objects are equal"""170        if not isinstance(other, V1LinuxContainerUser):171            return False172 173        return self.to_dict() == other.to_dict()174 175    def __ne__(self, other):176        """Returns true if both objects are not equal"""177        if not isinstance(other, V1LinuxContainerUser):178            return True179 180        return self.to_dict() != other.to_dict()181 
codekingpro/portable-devtools · Team Ai