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 V1ListMeta(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 '_continue': 'str',37 'remaining_item_count': 'int',38 'resource_version': 'str',39 'self_link': 'str'40 }41 42 attribute_map = {43 '_continue': 'continue',44 'remaining_item_count': 'remainingItemCount',45 'resource_version': 'resourceVersion',46 'self_link': 'selfLink'47 }48 49 def __init__(self, _continue=None, remaining_item_count=None, resource_version=None, self_link=None, local_vars_configuration=None): # noqa: E50150 """V1ListMeta - 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.__continue = None56 self._remaining_item_count = None57 self._resource_version = None58 self._self_link = None59 self.discriminator = None60 61 if _continue is not None:62 self._continue = _continue63 if remaining_item_count is not None:64 self.remaining_item_count = remaining_item_count65 if resource_version is not None:66 self.resource_version = resource_version67 if self_link is not None:68 self.self_link = self_link69 70 @property71 def _continue(self):72 """Gets the _continue of this V1ListMeta. # noqa: E50173 74 continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. # noqa: E50175 76 :return: The _continue of this V1ListMeta. # noqa: E50177 :rtype: str78 """79 return self.__continue80 81 @_continue.setter82 def _continue(self, _continue):83 """Sets the _continue of this V1ListMeta.84 85 continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. # noqa: E50186 87 :param _continue: The _continue of this V1ListMeta. # noqa: E50188 :type: str89 """90 91 self.__continue = _continue92 93 @property94 def remaining_item_count(self):95 """Gets the remaining_item_count of this V1ListMeta. # noqa: E50196 97 remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. # noqa: E50198 99 :return: The remaining_item_count of this V1ListMeta. # noqa: E501100 :rtype: int101 """102 return self._remaining_item_count103 104 @remaining_item_count.setter105 def remaining_item_count(self, remaining_item_count):106 """Sets the remaining_item_count of this V1ListMeta.107 108 remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. # noqa: E501109 110 :param remaining_item_count: The remaining_item_count of this V1ListMeta. # noqa: E501111 :type: int112 """113 114 self._remaining_item_count = remaining_item_count115 116 @property117 def resource_version(self):118 """Gets the resource_version of this V1ListMeta. # noqa: E501119 120 String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency # noqa: E501121 122 :return: The resource_version of this V1ListMeta. # noqa: E501123 :rtype: str124 """125 return self._resource_version126 127 @resource_version.setter128 def resource_version(self, resource_version):129 """Sets the resource_version of this V1ListMeta.130 131 String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency # noqa: E501132 133 :param resource_version: The resource_version of this V1ListMeta. # noqa: E501134 :type: str135 """136 137 self._resource_version = resource_version138 139 @property140 def self_link(self):141 """Gets the self_link of this V1ListMeta. # noqa: E501142 143 Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. # noqa: E501144 145 :return: The self_link of this V1ListMeta. # noqa: E501146 :rtype: str147 """148 return self._self_link149 150 @self_link.setter151 def self_link(self, self_link):152 """Sets the self_link of this V1ListMeta.153 154 Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. # noqa: E501155 156 :param self_link: The self_link of this V1ListMeta. # noqa: E501157 :type: str158 """159 160 self._self_link = self_link161 162 def to_dict(self):163 """Returns the model properties as a dict"""164 result = {}165 166 for attr, _ in six.iteritems(self.openapi_types):167 value = getattr(self, attr)168 if isinstance(value, list):169 result[attr] = list(map(170 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,171 value172 ))173 elif hasattr(value, "to_dict"):174 result[attr] = value.to_dict()175 elif isinstance(value, dict):176 result[attr] = dict(map(177 lambda item: (item[0], item[1].to_dict())178 if hasattr(item[1], "to_dict") else item,179 value.items()180 ))181 else:182 result[attr] = value183 184 return result185 186 def to_str(self):187 """Returns the string representation of the model"""188 return pprint.pformat(self.to_dict())189 190 def __repr__(self):191 """For `print` and `pprint`"""192 return self.to_str()193 194 def __eq__(self, other):195 """Returns true if both objects are equal"""196 if not isinstance(other, V1ListMeta):197 return False198 199 return self.to_dict() == other.to_dict()200 201 def __ne__(self, other):202 """Returns true if both objects are not equal"""203 if not isinstance(other, V1ListMeta):204 return True205 206 return self.to_dict() != other.to_dict()207 