Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
v1alpha1_storage_version.py233 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 V1alpha1StorageVersion(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        'api_version': 'str',37        'kind': 'str',38        'metadata': 'V1ObjectMeta',39        'spec': 'object',40        'status': 'V1alpha1StorageVersionStatus'41    }42 43    attribute_map = {44        'api_version': 'apiVersion',45        'kind': 'kind',46        'metadata': 'metadata',47        'spec': 'spec',48        'status': 'status'49    }50 51    def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None):  # noqa: E50152        """V1alpha1StorageVersion - 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._api_version = None58        self._kind = None59        self._metadata = None60        self._spec = None61        self._status = None62        self.discriminator = None63 64        if api_version is not None:65            self.api_version = api_version66        if kind is not None:67            self.kind = kind68        if metadata is not None:69            self.metadata = metadata70        self.spec = spec71        self.status = status72 73    @property74    def api_version(self):75        """Gets the api_version of this V1alpha1StorageVersion.  # noqa: E50176 77        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources  # noqa: E50178 79        :return: The api_version of this V1alpha1StorageVersion.  # noqa: E50180        :rtype: str81        """82        return self._api_version83 84    @api_version.setter85    def api_version(self, api_version):86        """Sets the api_version of this V1alpha1StorageVersion.87 88        APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources  # noqa: E50189 90        :param api_version: The api_version of this V1alpha1StorageVersion.  # noqa: E50191        :type: str92        """93 94        self._api_version = api_version95 96    @property97    def kind(self):98        """Gets the kind of this V1alpha1StorageVersion.  # noqa: E50199 100        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds  # noqa: E501101 102        :return: The kind of this V1alpha1StorageVersion.  # noqa: E501103        :rtype: str104        """105        return self._kind106 107    @kind.setter108    def kind(self, kind):109        """Sets the kind of this V1alpha1StorageVersion.110 111        Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds  # noqa: E501112 113        :param kind: The kind of this V1alpha1StorageVersion.  # noqa: E501114        :type: str115        """116 117        self._kind = kind118 119    @property120    def metadata(self):121        """Gets the metadata of this V1alpha1StorageVersion.  # noqa: E501122 123 124        :return: The metadata of this V1alpha1StorageVersion.  # noqa: E501125        :rtype: V1ObjectMeta126        """127        return self._metadata128 129    @metadata.setter130    def metadata(self, metadata):131        """Sets the metadata of this V1alpha1StorageVersion.132 133 134        :param metadata: The metadata of this V1alpha1StorageVersion.  # noqa: E501135        :type: V1ObjectMeta136        """137 138        self._metadata = metadata139 140    @property141    def spec(self):142        """Gets the spec of this V1alpha1StorageVersion.  # noqa: E501143 144        Spec is an empty spec. It is here to comply with Kubernetes API style.  # noqa: E501145 146        :return: The spec of this V1alpha1StorageVersion.  # noqa: E501147        :rtype: object148        """149        return self._spec150 151    @spec.setter152    def spec(self, spec):153        """Sets the spec of this V1alpha1StorageVersion.154 155        Spec is an empty spec. It is here to comply with Kubernetes API style.  # noqa: E501156 157        :param spec: The spec of this V1alpha1StorageVersion.  # noqa: E501158        :type: object159        """160        if self.local_vars_configuration.client_side_validation and spec is None:  # noqa: E501161            raise ValueError("Invalid value for `spec`, must not be `None`")  # noqa: E501162 163        self._spec = spec164 165    @property166    def status(self):167        """Gets the status of this V1alpha1StorageVersion.  # noqa: E501168 169 170        :return: The status of this V1alpha1StorageVersion.  # noqa: E501171        :rtype: V1alpha1StorageVersionStatus172        """173        return self._status174 175    @status.setter176    def status(self, status):177        """Sets the status of this V1alpha1StorageVersion.178 179 180        :param status: The status of this V1alpha1StorageVersion.  # noqa: E501181        :type: V1alpha1StorageVersionStatus182        """183        if self.local_vars_configuration.client_side_validation and status is None:  # noqa: E501184            raise ValueError("Invalid value for `status`, must not be `None`")  # noqa: E501185 186        self._status = status187 188    def to_dict(self):189        """Returns the model properties as a dict"""190        result = {}191 192        for attr, _ in six.iteritems(self.openapi_types):193            value = getattr(self, attr)194            if isinstance(value, list):195                result[attr] = list(map(196                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,197                    value198                ))199            elif hasattr(value, "to_dict"):200                result[attr] = value.to_dict()201            elif isinstance(value, dict):202                result[attr] = dict(map(203                    lambda item: (item[0], item[1].to_dict())204                    if hasattr(item[1], "to_dict") else item,205                    value.items()206                ))207            else:208                result[attr] = value209 210        return result211 212    def to_str(self):213        """Returns the string representation of the model"""214        return pprint.pformat(self.to_dict())215 216    def __repr__(self):217        """For `print` and `pprint`"""218        return self.to_str()219 220    def __eq__(self, other):221        """Returns true if both objects are equal"""222        if not isinstance(other, V1alpha1StorageVersion):223            return False224 225        return self.to_dict() == other.to_dict()226 227    def __ne__(self, other):228        """Returns true if both objects are not equal"""229        if not isinstance(other, V1alpha1StorageVersion):230            return True231 232        return self.to_dict() != other.to_dict()233 
codekingpro/portable-devtools · Team Ai