Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_list_meta.py +206 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_load_balancer_ingress.py +206 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_load_balancer_status.py +122 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_object_reference.py +122 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_subject_access_review.py +229 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_volume_source.py +151 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_managed_fields_entry.py +290 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_match_condition.py +152 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_match_resources.py +230 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_modify_volume_status.py +151 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook.py +428 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook_configuration.py +204 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook_configuration_list.py +205 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_named_rule_with_operations.py +262 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace.py +228 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_condition.py +236 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_list.py +205 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_spec.py +122 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_status.py +150 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_device_data.py +178 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy.py +202 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_egress_rule.py +150 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_ingress_rule.py +150 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_list.py +205 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_peer.py +172 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_port.py +178 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_spec.py +204 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_nfs_volume_source.py +180 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node.py +228 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_address.py +152 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_affinity.py +148 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_condition.py +264 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_config_source.py +120 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_config_status.py +200 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_daemon_endpoints.py +120 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_features.py +122 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_list.py +205 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_runtime_handler.py +148 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_runtime_handler_features.py +150 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector.py +123 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector_requirement.py +180 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector_term.py +150 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_spec.py +288 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_status.py +478 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_swap_status.py +122 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_system_info.py +410 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_attributes.py +150 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_policy_rule.py +152 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_rule.py +151 -0
- python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_field_selector.py +151 -0
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_list_meta.py
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1ListMeta(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
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: E501
|
| 50 |
+
"""V1ListMeta - a model defined in OpenAPI""" # noqa: E501
|
| 51 |
+
if local_vars_configuration is None:
|
| 52 |
+
local_vars_configuration = Configuration()
|
| 53 |
+
self.local_vars_configuration = local_vars_configuration
|
| 54 |
+
|
| 55 |
+
self.__continue = None
|
| 56 |
+
self._remaining_item_count = None
|
| 57 |
+
self._resource_version = None
|
| 58 |
+
self._self_link = None
|
| 59 |
+
self.discriminator = None
|
| 60 |
+
|
| 61 |
+
if _continue is not None:
|
| 62 |
+
self._continue = _continue
|
| 63 |
+
if remaining_item_count is not None:
|
| 64 |
+
self.remaining_item_count = remaining_item_count
|
| 65 |
+
if resource_version is not None:
|
| 66 |
+
self.resource_version = resource_version
|
| 67 |
+
if self_link is not None:
|
| 68 |
+
self.self_link = self_link
|
| 69 |
+
|
| 70 |
+
@property
|
| 71 |
+
def _continue(self):
|
| 72 |
+
"""Gets the _continue of this V1ListMeta. # noqa: E501
|
| 73 |
+
|
| 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: E501
|
| 75 |
+
|
| 76 |
+
:return: The _continue of this V1ListMeta. # noqa: E501
|
| 77 |
+
:rtype: str
|
| 78 |
+
"""
|
| 79 |
+
return self.__continue
|
| 80 |
+
|
| 81 |
+
@_continue.setter
|
| 82 |
+
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: E501
|
| 86 |
+
|
| 87 |
+
:param _continue: The _continue of this V1ListMeta. # noqa: E501
|
| 88 |
+
:type: str
|
| 89 |
+
"""
|
| 90 |
+
|
| 91 |
+
self.__continue = _continue
|
| 92 |
+
|
| 93 |
+
@property
|
| 94 |
+
def remaining_item_count(self):
|
| 95 |
+
"""Gets the remaining_item_count of this V1ListMeta. # noqa: E501
|
| 96 |
+
|
| 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: E501
|
| 98 |
+
|
| 99 |
+
:return: The remaining_item_count of this V1ListMeta. # noqa: E501
|
| 100 |
+
:rtype: int
|
| 101 |
+
"""
|
| 102 |
+
return self._remaining_item_count
|
| 103 |
+
|
| 104 |
+
@remaining_item_count.setter
|
| 105 |
+
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: E501
|
| 109 |
+
|
| 110 |
+
:param remaining_item_count: The remaining_item_count of this V1ListMeta. # noqa: E501
|
| 111 |
+
:type: int
|
| 112 |
+
"""
|
| 113 |
+
|
| 114 |
+
self._remaining_item_count = remaining_item_count
|
| 115 |
+
|
| 116 |
+
@property
|
| 117 |
+
def resource_version(self):
|
| 118 |
+
"""Gets the resource_version of this V1ListMeta. # noqa: E501
|
| 119 |
+
|
| 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: E501
|
| 121 |
+
|
| 122 |
+
:return: The resource_version of this V1ListMeta. # noqa: E501
|
| 123 |
+
:rtype: str
|
| 124 |
+
"""
|
| 125 |
+
return self._resource_version
|
| 126 |
+
|
| 127 |
+
@resource_version.setter
|
| 128 |
+
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: E501
|
| 132 |
+
|
| 133 |
+
:param resource_version: The resource_version of this V1ListMeta. # noqa: E501
|
| 134 |
+
:type: str
|
| 135 |
+
"""
|
| 136 |
+
|
| 137 |
+
self._resource_version = resource_version
|
| 138 |
+
|
| 139 |
+
@property
|
| 140 |
+
def self_link(self):
|
| 141 |
+
"""Gets the self_link of this V1ListMeta. # noqa: E501
|
| 142 |
+
|
| 143 |
+
Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. # noqa: E501
|
| 144 |
+
|
| 145 |
+
:return: The self_link of this V1ListMeta. # noqa: E501
|
| 146 |
+
:rtype: str
|
| 147 |
+
"""
|
| 148 |
+
return self._self_link
|
| 149 |
+
|
| 150 |
+
@self_link.setter
|
| 151 |
+
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: E501
|
| 155 |
+
|
| 156 |
+
:param self_link: The self_link of this V1ListMeta. # noqa: E501
|
| 157 |
+
:type: str
|
| 158 |
+
"""
|
| 159 |
+
|
| 160 |
+
self._self_link = self_link
|
| 161 |
+
|
| 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 |
+
value
|
| 172 |
+
))
|
| 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] = value
|
| 183 |
+
|
| 184 |
+
return result
|
| 185 |
+
|
| 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 False
|
| 198 |
+
|
| 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 True
|
| 205 |
+
|
| 206 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_load_balancer_ingress.py
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1LoadBalancerIngress(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'hostname': 'str',
|
| 37 |
+
'ip': 'str',
|
| 38 |
+
'ip_mode': 'str',
|
| 39 |
+
'ports': 'list[V1PortStatus]'
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
attribute_map = {
|
| 43 |
+
'hostname': 'hostname',
|
| 44 |
+
'ip': 'ip',
|
| 45 |
+
'ip_mode': 'ipMode',
|
| 46 |
+
'ports': 'ports'
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
def __init__(self, hostname=None, ip=None, ip_mode=None, ports=None, local_vars_configuration=None): # noqa: E501
|
| 50 |
+
"""V1LoadBalancerIngress - a model defined in OpenAPI""" # noqa: E501
|
| 51 |
+
if local_vars_configuration is None:
|
| 52 |
+
local_vars_configuration = Configuration()
|
| 53 |
+
self.local_vars_configuration = local_vars_configuration
|
| 54 |
+
|
| 55 |
+
self._hostname = None
|
| 56 |
+
self._ip = None
|
| 57 |
+
self._ip_mode = None
|
| 58 |
+
self._ports = None
|
| 59 |
+
self.discriminator = None
|
| 60 |
+
|
| 61 |
+
if hostname is not None:
|
| 62 |
+
self.hostname = hostname
|
| 63 |
+
if ip is not None:
|
| 64 |
+
self.ip = ip
|
| 65 |
+
if ip_mode is not None:
|
| 66 |
+
self.ip_mode = ip_mode
|
| 67 |
+
if ports is not None:
|
| 68 |
+
self.ports = ports
|
| 69 |
+
|
| 70 |
+
@property
|
| 71 |
+
def hostname(self):
|
| 72 |
+
"""Gets the hostname of this V1LoadBalancerIngress. # noqa: E501
|
| 73 |
+
|
| 74 |
+
Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) # noqa: E501
|
| 75 |
+
|
| 76 |
+
:return: The hostname of this V1LoadBalancerIngress. # noqa: E501
|
| 77 |
+
:rtype: str
|
| 78 |
+
"""
|
| 79 |
+
return self._hostname
|
| 80 |
+
|
| 81 |
+
@hostname.setter
|
| 82 |
+
def hostname(self, hostname):
|
| 83 |
+
"""Sets the hostname of this V1LoadBalancerIngress.
|
| 84 |
+
|
| 85 |
+
Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) # noqa: E501
|
| 86 |
+
|
| 87 |
+
:param hostname: The hostname of this V1LoadBalancerIngress. # noqa: E501
|
| 88 |
+
:type: str
|
| 89 |
+
"""
|
| 90 |
+
|
| 91 |
+
self._hostname = hostname
|
| 92 |
+
|
| 93 |
+
@property
|
| 94 |
+
def ip(self):
|
| 95 |
+
"""Gets the ip of this V1LoadBalancerIngress. # noqa: E501
|
| 96 |
+
|
| 97 |
+
IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) # noqa: E501
|
| 98 |
+
|
| 99 |
+
:return: The ip of this V1LoadBalancerIngress. # noqa: E501
|
| 100 |
+
:rtype: str
|
| 101 |
+
"""
|
| 102 |
+
return self._ip
|
| 103 |
+
|
| 104 |
+
@ip.setter
|
| 105 |
+
def ip(self, ip):
|
| 106 |
+
"""Sets the ip of this V1LoadBalancerIngress.
|
| 107 |
+
|
| 108 |
+
IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) # noqa: E501
|
| 109 |
+
|
| 110 |
+
:param ip: The ip of this V1LoadBalancerIngress. # noqa: E501
|
| 111 |
+
:type: str
|
| 112 |
+
"""
|
| 113 |
+
|
| 114 |
+
self._ip = ip
|
| 115 |
+
|
| 116 |
+
@property
|
| 117 |
+
def ip_mode(self):
|
| 118 |
+
"""Gets the ip_mode of this V1LoadBalancerIngress. # noqa: E501
|
| 119 |
+
|
| 120 |
+
IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing. # noqa: E501
|
| 121 |
+
|
| 122 |
+
:return: The ip_mode of this V1LoadBalancerIngress. # noqa: E501
|
| 123 |
+
:rtype: str
|
| 124 |
+
"""
|
| 125 |
+
return self._ip_mode
|
| 126 |
+
|
| 127 |
+
@ip_mode.setter
|
| 128 |
+
def ip_mode(self, ip_mode):
|
| 129 |
+
"""Sets the ip_mode of this V1LoadBalancerIngress.
|
| 130 |
+
|
| 131 |
+
IPMode specifies how the load-balancer IP behaves, and may only be specified when the ip field is specified. Setting this to \"VIP\" indicates that traffic is delivered to the node with the destination set to the load-balancer's IP and port. Setting this to \"Proxy\" indicates that traffic is delivered to the node or pod with the destination set to the node's IP and node port or the pod's IP and port. Service implementations may use this information to adjust traffic routing. # noqa: E501
|
| 132 |
+
|
| 133 |
+
:param ip_mode: The ip_mode of this V1LoadBalancerIngress. # noqa: E501
|
| 134 |
+
:type: str
|
| 135 |
+
"""
|
| 136 |
+
|
| 137 |
+
self._ip_mode = ip_mode
|
| 138 |
+
|
| 139 |
+
@property
|
| 140 |
+
def ports(self):
|
| 141 |
+
"""Gets the ports of this V1LoadBalancerIngress. # noqa: E501
|
| 142 |
+
|
| 143 |
+
Ports is a list of records of service ports If used, every port defined in the service should have an entry in it # noqa: E501
|
| 144 |
+
|
| 145 |
+
:return: The ports of this V1LoadBalancerIngress. # noqa: E501
|
| 146 |
+
:rtype: list[V1PortStatus]
|
| 147 |
+
"""
|
| 148 |
+
return self._ports
|
| 149 |
+
|
| 150 |
+
@ports.setter
|
| 151 |
+
def ports(self, ports):
|
| 152 |
+
"""Sets the ports of this V1LoadBalancerIngress.
|
| 153 |
+
|
| 154 |
+
Ports is a list of records of service ports If used, every port defined in the service should have an entry in it # noqa: E501
|
| 155 |
+
|
| 156 |
+
:param ports: The ports of this V1LoadBalancerIngress. # noqa: E501
|
| 157 |
+
:type: list[V1PortStatus]
|
| 158 |
+
"""
|
| 159 |
+
|
| 160 |
+
self._ports = ports
|
| 161 |
+
|
| 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 |
+
value
|
| 172 |
+
))
|
| 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] = value
|
| 183 |
+
|
| 184 |
+
return result
|
| 185 |
+
|
| 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, V1LoadBalancerIngress):
|
| 197 |
+
return False
|
| 198 |
+
|
| 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, V1LoadBalancerIngress):
|
| 204 |
+
return True
|
| 205 |
+
|
| 206 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_load_balancer_status.py
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1LoadBalancerStatus(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'ingress': 'list[V1LoadBalancerIngress]'
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
attribute_map = {
|
| 40 |
+
'ingress': 'ingress'
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
def __init__(self, ingress=None, local_vars_configuration=None): # noqa: E501
|
| 44 |
+
"""V1LoadBalancerStatus - a model defined in OpenAPI""" # noqa: E501
|
| 45 |
+
if local_vars_configuration is None:
|
| 46 |
+
local_vars_configuration = Configuration()
|
| 47 |
+
self.local_vars_configuration = local_vars_configuration
|
| 48 |
+
|
| 49 |
+
self._ingress = None
|
| 50 |
+
self.discriminator = None
|
| 51 |
+
|
| 52 |
+
if ingress is not None:
|
| 53 |
+
self.ingress = ingress
|
| 54 |
+
|
| 55 |
+
@property
|
| 56 |
+
def ingress(self):
|
| 57 |
+
"""Gets the ingress of this V1LoadBalancerStatus. # noqa: E501
|
| 58 |
+
|
| 59 |
+
Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. # noqa: E501
|
| 60 |
+
|
| 61 |
+
:return: The ingress of this V1LoadBalancerStatus. # noqa: E501
|
| 62 |
+
:rtype: list[V1LoadBalancerIngress]
|
| 63 |
+
"""
|
| 64 |
+
return self._ingress
|
| 65 |
+
|
| 66 |
+
@ingress.setter
|
| 67 |
+
def ingress(self, ingress):
|
| 68 |
+
"""Sets the ingress of this V1LoadBalancerStatus.
|
| 69 |
+
|
| 70 |
+
Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. # noqa: E501
|
| 71 |
+
|
| 72 |
+
:param ingress: The ingress of this V1LoadBalancerStatus. # noqa: E501
|
| 73 |
+
:type: list[V1LoadBalancerIngress]
|
| 74 |
+
"""
|
| 75 |
+
|
| 76 |
+
self._ingress = ingress
|
| 77 |
+
|
| 78 |
+
def to_dict(self):
|
| 79 |
+
"""Returns the model properties as a dict"""
|
| 80 |
+
result = {}
|
| 81 |
+
|
| 82 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 83 |
+
value = getattr(self, attr)
|
| 84 |
+
if isinstance(value, list):
|
| 85 |
+
result[attr] = list(map(
|
| 86 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 87 |
+
value
|
| 88 |
+
))
|
| 89 |
+
elif hasattr(value, "to_dict"):
|
| 90 |
+
result[attr] = value.to_dict()
|
| 91 |
+
elif isinstance(value, dict):
|
| 92 |
+
result[attr] = dict(map(
|
| 93 |
+
lambda item: (item[0], item[1].to_dict())
|
| 94 |
+
if hasattr(item[1], "to_dict") else item,
|
| 95 |
+
value.items()
|
| 96 |
+
))
|
| 97 |
+
else:
|
| 98 |
+
result[attr] = value
|
| 99 |
+
|
| 100 |
+
return result
|
| 101 |
+
|
| 102 |
+
def to_str(self):
|
| 103 |
+
"""Returns the string representation of the model"""
|
| 104 |
+
return pprint.pformat(self.to_dict())
|
| 105 |
+
|
| 106 |
+
def __repr__(self):
|
| 107 |
+
"""For `print` and `pprint`"""
|
| 108 |
+
return self.to_str()
|
| 109 |
+
|
| 110 |
+
def __eq__(self, other):
|
| 111 |
+
"""Returns true if both objects are equal"""
|
| 112 |
+
if not isinstance(other, V1LoadBalancerStatus):
|
| 113 |
+
return False
|
| 114 |
+
|
| 115 |
+
return self.to_dict() == other.to_dict()
|
| 116 |
+
|
| 117 |
+
def __ne__(self, other):
|
| 118 |
+
"""Returns true if both objects are not equal"""
|
| 119 |
+
if not isinstance(other, V1LoadBalancerStatus):
|
| 120 |
+
return True
|
| 121 |
+
|
| 122 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_object_reference.py
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1LocalObjectReference(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'name': 'str'
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
attribute_map = {
|
| 40 |
+
'name': 'name'
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
def __init__(self, name=None, local_vars_configuration=None): # noqa: E501
|
| 44 |
+
"""V1LocalObjectReference - a model defined in OpenAPI""" # noqa: E501
|
| 45 |
+
if local_vars_configuration is None:
|
| 46 |
+
local_vars_configuration = Configuration()
|
| 47 |
+
self.local_vars_configuration = local_vars_configuration
|
| 48 |
+
|
| 49 |
+
self._name = None
|
| 50 |
+
self.discriminator = None
|
| 51 |
+
|
| 52 |
+
if name is not None:
|
| 53 |
+
self.name = name
|
| 54 |
+
|
| 55 |
+
@property
|
| 56 |
+
def name(self):
|
| 57 |
+
"""Gets the name of this V1LocalObjectReference. # noqa: E501
|
| 58 |
+
|
| 59 |
+
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
| 60 |
+
|
| 61 |
+
:return: The name of this V1LocalObjectReference. # noqa: E501
|
| 62 |
+
:rtype: str
|
| 63 |
+
"""
|
| 64 |
+
return self._name
|
| 65 |
+
|
| 66 |
+
@name.setter
|
| 67 |
+
def name(self, name):
|
| 68 |
+
"""Sets the name of this V1LocalObjectReference.
|
| 69 |
+
|
| 70 |
+
Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501
|
| 71 |
+
|
| 72 |
+
:param name: The name of this V1LocalObjectReference. # noqa: E501
|
| 73 |
+
:type: str
|
| 74 |
+
"""
|
| 75 |
+
|
| 76 |
+
self._name = name
|
| 77 |
+
|
| 78 |
+
def to_dict(self):
|
| 79 |
+
"""Returns the model properties as a dict"""
|
| 80 |
+
result = {}
|
| 81 |
+
|
| 82 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 83 |
+
value = getattr(self, attr)
|
| 84 |
+
if isinstance(value, list):
|
| 85 |
+
result[attr] = list(map(
|
| 86 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 87 |
+
value
|
| 88 |
+
))
|
| 89 |
+
elif hasattr(value, "to_dict"):
|
| 90 |
+
result[attr] = value.to_dict()
|
| 91 |
+
elif isinstance(value, dict):
|
| 92 |
+
result[attr] = dict(map(
|
| 93 |
+
lambda item: (item[0], item[1].to_dict())
|
| 94 |
+
if hasattr(item[1], "to_dict") else item,
|
| 95 |
+
value.items()
|
| 96 |
+
))
|
| 97 |
+
else:
|
| 98 |
+
result[attr] = value
|
| 99 |
+
|
| 100 |
+
return result
|
| 101 |
+
|
| 102 |
+
def to_str(self):
|
| 103 |
+
"""Returns the string representation of the model"""
|
| 104 |
+
return pprint.pformat(self.to_dict())
|
| 105 |
+
|
| 106 |
+
def __repr__(self):
|
| 107 |
+
"""For `print` and `pprint`"""
|
| 108 |
+
return self.to_str()
|
| 109 |
+
|
| 110 |
+
def __eq__(self, other):
|
| 111 |
+
"""Returns true if both objects are equal"""
|
| 112 |
+
if not isinstance(other, V1LocalObjectReference):
|
| 113 |
+
return False
|
| 114 |
+
|
| 115 |
+
return self.to_dict() == other.to_dict()
|
| 116 |
+
|
| 117 |
+
def __ne__(self, other):
|
| 118 |
+
"""Returns true if both objects are not equal"""
|
| 119 |
+
if not isinstance(other, V1LocalObjectReference):
|
| 120 |
+
return True
|
| 121 |
+
|
| 122 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_subject_access_review.py
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1LocalSubjectAccessReview(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'kind': 'str',
|
| 38 |
+
'metadata': 'V1ObjectMeta',
|
| 39 |
+
'spec': 'V1SubjectAccessReviewSpec',
|
| 40 |
+
'status': 'V1SubjectAccessReviewStatus'
|
| 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: E501
|
| 52 |
+
"""V1LocalSubjectAccessReview - a model defined in OpenAPI""" # noqa: E501
|
| 53 |
+
if local_vars_configuration is None:
|
| 54 |
+
local_vars_configuration = Configuration()
|
| 55 |
+
self.local_vars_configuration = local_vars_configuration
|
| 56 |
+
|
| 57 |
+
self._api_version = None
|
| 58 |
+
self._kind = None
|
| 59 |
+
self._metadata = None
|
| 60 |
+
self._spec = None
|
| 61 |
+
self._status = None
|
| 62 |
+
self.discriminator = None
|
| 63 |
+
|
| 64 |
+
if api_version is not None:
|
| 65 |
+
self.api_version = api_version
|
| 66 |
+
if kind is not None:
|
| 67 |
+
self.kind = kind
|
| 68 |
+
if metadata is not None:
|
| 69 |
+
self.metadata = metadata
|
| 70 |
+
self.spec = spec
|
| 71 |
+
if status is not None:
|
| 72 |
+
self.status = status
|
| 73 |
+
|
| 74 |
+
@property
|
| 75 |
+
def api_version(self):
|
| 76 |
+
"""Gets the api_version of this V1LocalSubjectAccessReview. # noqa: E501
|
| 77 |
+
|
| 78 |
+
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: E501
|
| 79 |
+
|
| 80 |
+
:return: The api_version of this V1LocalSubjectAccessReview. # noqa: E501
|
| 81 |
+
:rtype: str
|
| 82 |
+
"""
|
| 83 |
+
return self._api_version
|
| 84 |
+
|
| 85 |
+
@api_version.setter
|
| 86 |
+
def api_version(self, api_version):
|
| 87 |
+
"""Sets the api_version of this V1LocalSubjectAccessReview.
|
| 88 |
+
|
| 89 |
+
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: E501
|
| 90 |
+
|
| 91 |
+
:param api_version: The api_version of this V1LocalSubjectAccessReview. # noqa: E501
|
| 92 |
+
:type: str
|
| 93 |
+
"""
|
| 94 |
+
|
| 95 |
+
self._api_version = api_version
|
| 96 |
+
|
| 97 |
+
@property
|
| 98 |
+
def kind(self):
|
| 99 |
+
"""Gets the kind of this V1LocalSubjectAccessReview. # noqa: E501
|
| 100 |
+
|
| 101 |
+
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: E501
|
| 102 |
+
|
| 103 |
+
:return: The kind of this V1LocalSubjectAccessReview. # noqa: E501
|
| 104 |
+
:rtype: str
|
| 105 |
+
"""
|
| 106 |
+
return self._kind
|
| 107 |
+
|
| 108 |
+
@kind.setter
|
| 109 |
+
def kind(self, kind):
|
| 110 |
+
"""Sets the kind of this V1LocalSubjectAccessReview.
|
| 111 |
+
|
| 112 |
+
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: E501
|
| 113 |
+
|
| 114 |
+
:param kind: The kind of this V1LocalSubjectAccessReview. # noqa: E501
|
| 115 |
+
:type: str
|
| 116 |
+
"""
|
| 117 |
+
|
| 118 |
+
self._kind = kind
|
| 119 |
+
|
| 120 |
+
@property
|
| 121 |
+
def metadata(self):
|
| 122 |
+
"""Gets the metadata of this V1LocalSubjectAccessReview. # noqa: E501
|
| 123 |
+
|
| 124 |
+
|
| 125 |
+
:return: The metadata of this V1LocalSubjectAccessReview. # noqa: E501
|
| 126 |
+
:rtype: V1ObjectMeta
|
| 127 |
+
"""
|
| 128 |
+
return self._metadata
|
| 129 |
+
|
| 130 |
+
@metadata.setter
|
| 131 |
+
def metadata(self, metadata):
|
| 132 |
+
"""Sets the metadata of this V1LocalSubjectAccessReview.
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
:param metadata: The metadata of this V1LocalSubjectAccessReview. # noqa: E501
|
| 136 |
+
:type: V1ObjectMeta
|
| 137 |
+
"""
|
| 138 |
+
|
| 139 |
+
self._metadata = metadata
|
| 140 |
+
|
| 141 |
+
@property
|
| 142 |
+
def spec(self):
|
| 143 |
+
"""Gets the spec of this V1LocalSubjectAccessReview. # noqa: E501
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
:return: The spec of this V1LocalSubjectAccessReview. # noqa: E501
|
| 147 |
+
:rtype: V1SubjectAccessReviewSpec
|
| 148 |
+
"""
|
| 149 |
+
return self._spec
|
| 150 |
+
|
| 151 |
+
@spec.setter
|
| 152 |
+
def spec(self, spec):
|
| 153 |
+
"""Sets the spec of this V1LocalSubjectAccessReview.
|
| 154 |
+
|
| 155 |
+
|
| 156 |
+
:param spec: The spec of this V1LocalSubjectAccessReview. # noqa: E501
|
| 157 |
+
:type: V1SubjectAccessReviewSpec
|
| 158 |
+
"""
|
| 159 |
+
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
|
| 160 |
+
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
|
| 161 |
+
|
| 162 |
+
self._spec = spec
|
| 163 |
+
|
| 164 |
+
@property
|
| 165 |
+
def status(self):
|
| 166 |
+
"""Gets the status of this V1LocalSubjectAccessReview. # noqa: E501
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
:return: The status of this V1LocalSubjectAccessReview. # noqa: E501
|
| 170 |
+
:rtype: V1SubjectAccessReviewStatus
|
| 171 |
+
"""
|
| 172 |
+
return self._status
|
| 173 |
+
|
| 174 |
+
@status.setter
|
| 175 |
+
def status(self, status):
|
| 176 |
+
"""Sets the status of this V1LocalSubjectAccessReview.
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
:param status: The status of this V1LocalSubjectAccessReview. # noqa: E501
|
| 180 |
+
:type: V1SubjectAccessReviewStatus
|
| 181 |
+
"""
|
| 182 |
+
|
| 183 |
+
self._status = status
|
| 184 |
+
|
| 185 |
+
def to_dict(self):
|
| 186 |
+
"""Returns the model properties as a dict"""
|
| 187 |
+
result = {}
|
| 188 |
+
|
| 189 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 190 |
+
value = getattr(self, attr)
|
| 191 |
+
if isinstance(value, list):
|
| 192 |
+
result[attr] = list(map(
|
| 193 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 194 |
+
value
|
| 195 |
+
))
|
| 196 |
+
elif hasattr(value, "to_dict"):
|
| 197 |
+
result[attr] = value.to_dict()
|
| 198 |
+
elif isinstance(value, dict):
|
| 199 |
+
result[attr] = dict(map(
|
| 200 |
+
lambda item: (item[0], item[1].to_dict())
|
| 201 |
+
if hasattr(item[1], "to_dict") else item,
|
| 202 |
+
value.items()
|
| 203 |
+
))
|
| 204 |
+
else:
|
| 205 |
+
result[attr] = value
|
| 206 |
+
|
| 207 |
+
return result
|
| 208 |
+
|
| 209 |
+
def to_str(self):
|
| 210 |
+
"""Returns the string representation of the model"""
|
| 211 |
+
return pprint.pformat(self.to_dict())
|
| 212 |
+
|
| 213 |
+
def __repr__(self):
|
| 214 |
+
"""For `print` and `pprint`"""
|
| 215 |
+
return self.to_str()
|
| 216 |
+
|
| 217 |
+
def __eq__(self, other):
|
| 218 |
+
"""Returns true if both objects are equal"""
|
| 219 |
+
if not isinstance(other, V1LocalSubjectAccessReview):
|
| 220 |
+
return False
|
| 221 |
+
|
| 222 |
+
return self.to_dict() == other.to_dict()
|
| 223 |
+
|
| 224 |
+
def __ne__(self, other):
|
| 225 |
+
"""Returns true if both objects are not equal"""
|
| 226 |
+
if not isinstance(other, V1LocalSubjectAccessReview):
|
| 227 |
+
return True
|
| 228 |
+
|
| 229 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_local_volume_source.py
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1LocalVolumeSource(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'fs_type': 'str',
|
| 37 |
+
'path': 'str'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'fs_type': 'fsType',
|
| 42 |
+
'path': 'path'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, fs_type=None, path=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1LocalVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._fs_type = None
|
| 52 |
+
self._path = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if fs_type is not None:
|
| 56 |
+
self.fs_type = fs_type
|
| 57 |
+
self.path = path
|
| 58 |
+
|
| 59 |
+
@property
|
| 60 |
+
def fs_type(self):
|
| 61 |
+
"""Gets the fs_type of this V1LocalVolumeSource. # noqa: E501
|
| 62 |
+
|
| 63 |
+
fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified. # noqa: E501
|
| 64 |
+
|
| 65 |
+
:return: The fs_type of this V1LocalVolumeSource. # noqa: E501
|
| 66 |
+
:rtype: str
|
| 67 |
+
"""
|
| 68 |
+
return self._fs_type
|
| 69 |
+
|
| 70 |
+
@fs_type.setter
|
| 71 |
+
def fs_type(self, fs_type):
|
| 72 |
+
"""Sets the fs_type of this V1LocalVolumeSource.
|
| 73 |
+
|
| 74 |
+
fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified. # noqa: E501
|
| 75 |
+
|
| 76 |
+
:param fs_type: The fs_type of this V1LocalVolumeSource. # noqa: E501
|
| 77 |
+
:type: str
|
| 78 |
+
"""
|
| 79 |
+
|
| 80 |
+
self._fs_type = fs_type
|
| 81 |
+
|
| 82 |
+
@property
|
| 83 |
+
def path(self):
|
| 84 |
+
"""Gets the path of this V1LocalVolumeSource. # noqa: E501
|
| 85 |
+
|
| 86 |
+
path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). # noqa: E501
|
| 87 |
+
|
| 88 |
+
:return: The path of this V1LocalVolumeSource. # noqa: E501
|
| 89 |
+
:rtype: str
|
| 90 |
+
"""
|
| 91 |
+
return self._path
|
| 92 |
+
|
| 93 |
+
@path.setter
|
| 94 |
+
def path(self, path):
|
| 95 |
+
"""Sets the path of this V1LocalVolumeSource.
|
| 96 |
+
|
| 97 |
+
path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). # noqa: E501
|
| 98 |
+
|
| 99 |
+
:param path: The path of this V1LocalVolumeSource. # noqa: E501
|
| 100 |
+
:type: str
|
| 101 |
+
"""
|
| 102 |
+
if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501
|
| 103 |
+
raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501
|
| 104 |
+
|
| 105 |
+
self._path = path
|
| 106 |
+
|
| 107 |
+
def to_dict(self):
|
| 108 |
+
"""Returns the model properties as a dict"""
|
| 109 |
+
result = {}
|
| 110 |
+
|
| 111 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 112 |
+
value = getattr(self, attr)
|
| 113 |
+
if isinstance(value, list):
|
| 114 |
+
result[attr] = list(map(
|
| 115 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 116 |
+
value
|
| 117 |
+
))
|
| 118 |
+
elif hasattr(value, "to_dict"):
|
| 119 |
+
result[attr] = value.to_dict()
|
| 120 |
+
elif isinstance(value, dict):
|
| 121 |
+
result[attr] = dict(map(
|
| 122 |
+
lambda item: (item[0], item[1].to_dict())
|
| 123 |
+
if hasattr(item[1], "to_dict") else item,
|
| 124 |
+
value.items()
|
| 125 |
+
))
|
| 126 |
+
else:
|
| 127 |
+
result[attr] = value
|
| 128 |
+
|
| 129 |
+
return result
|
| 130 |
+
|
| 131 |
+
def to_str(self):
|
| 132 |
+
"""Returns the string representation of the model"""
|
| 133 |
+
return pprint.pformat(self.to_dict())
|
| 134 |
+
|
| 135 |
+
def __repr__(self):
|
| 136 |
+
"""For `print` and `pprint`"""
|
| 137 |
+
return self.to_str()
|
| 138 |
+
|
| 139 |
+
def __eq__(self, other):
|
| 140 |
+
"""Returns true if both objects are equal"""
|
| 141 |
+
if not isinstance(other, V1LocalVolumeSource):
|
| 142 |
+
return False
|
| 143 |
+
|
| 144 |
+
return self.to_dict() == other.to_dict()
|
| 145 |
+
|
| 146 |
+
def __ne__(self, other):
|
| 147 |
+
"""Returns true if both objects are not equal"""
|
| 148 |
+
if not isinstance(other, V1LocalVolumeSource):
|
| 149 |
+
return True
|
| 150 |
+
|
| 151 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_managed_fields_entry.py
ADDED
|
@@ -0,0 +1,290 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1ManagedFieldsEntry(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'fields_type': 'str',
|
| 38 |
+
'fields_v1': 'object',
|
| 39 |
+
'manager': 'str',
|
| 40 |
+
'operation': 'str',
|
| 41 |
+
'subresource': 'str',
|
| 42 |
+
'time': 'datetime'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
attribute_map = {
|
| 46 |
+
'api_version': 'apiVersion',
|
| 47 |
+
'fields_type': 'fieldsType',
|
| 48 |
+
'fields_v1': 'fieldsV1',
|
| 49 |
+
'manager': 'manager',
|
| 50 |
+
'operation': 'operation',
|
| 51 |
+
'subresource': 'subresource',
|
| 52 |
+
'time': 'time'
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=None, operation=None, subresource=None, time=None, local_vars_configuration=None): # noqa: E501
|
| 56 |
+
"""V1ManagedFieldsEntry - a model defined in OpenAPI""" # noqa: E501
|
| 57 |
+
if local_vars_configuration is None:
|
| 58 |
+
local_vars_configuration = Configuration()
|
| 59 |
+
self.local_vars_configuration = local_vars_configuration
|
| 60 |
+
|
| 61 |
+
self._api_version = None
|
| 62 |
+
self._fields_type = None
|
| 63 |
+
self._fields_v1 = None
|
| 64 |
+
self._manager = None
|
| 65 |
+
self._operation = None
|
| 66 |
+
self._subresource = None
|
| 67 |
+
self._time = None
|
| 68 |
+
self.discriminator = None
|
| 69 |
+
|
| 70 |
+
if api_version is not None:
|
| 71 |
+
self.api_version = api_version
|
| 72 |
+
if fields_type is not None:
|
| 73 |
+
self.fields_type = fields_type
|
| 74 |
+
if fields_v1 is not None:
|
| 75 |
+
self.fields_v1 = fields_v1
|
| 76 |
+
if manager is not None:
|
| 77 |
+
self.manager = manager
|
| 78 |
+
if operation is not None:
|
| 79 |
+
self.operation = operation
|
| 80 |
+
if subresource is not None:
|
| 81 |
+
self.subresource = subresource
|
| 82 |
+
if time is not None:
|
| 83 |
+
self.time = time
|
| 84 |
+
|
| 85 |
+
@property
|
| 86 |
+
def api_version(self):
|
| 87 |
+
"""Gets the api_version of this V1ManagedFieldsEntry. # noqa: E501
|
| 88 |
+
|
| 89 |
+
APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. # noqa: E501
|
| 90 |
+
|
| 91 |
+
:return: The api_version of this V1ManagedFieldsEntry. # noqa: E501
|
| 92 |
+
:rtype: str
|
| 93 |
+
"""
|
| 94 |
+
return self._api_version
|
| 95 |
+
|
| 96 |
+
@api_version.setter
|
| 97 |
+
def api_version(self, api_version):
|
| 98 |
+
"""Sets the api_version of this V1ManagedFieldsEntry.
|
| 99 |
+
|
| 100 |
+
APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. # noqa: E501
|
| 101 |
+
|
| 102 |
+
:param api_version: The api_version of this V1ManagedFieldsEntry. # noqa: E501
|
| 103 |
+
:type: str
|
| 104 |
+
"""
|
| 105 |
+
|
| 106 |
+
self._api_version = api_version
|
| 107 |
+
|
| 108 |
+
@property
|
| 109 |
+
def fields_type(self):
|
| 110 |
+
"""Gets the fields_type of this V1ManagedFieldsEntry. # noqa: E501
|
| 111 |
+
|
| 112 |
+
FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" # noqa: E501
|
| 113 |
+
|
| 114 |
+
:return: The fields_type of this V1ManagedFieldsEntry. # noqa: E501
|
| 115 |
+
:rtype: str
|
| 116 |
+
"""
|
| 117 |
+
return self._fields_type
|
| 118 |
+
|
| 119 |
+
@fields_type.setter
|
| 120 |
+
def fields_type(self, fields_type):
|
| 121 |
+
"""Sets the fields_type of this V1ManagedFieldsEntry.
|
| 122 |
+
|
| 123 |
+
FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\" # noqa: E501
|
| 124 |
+
|
| 125 |
+
:param fields_type: The fields_type of this V1ManagedFieldsEntry. # noqa: E501
|
| 126 |
+
:type: str
|
| 127 |
+
"""
|
| 128 |
+
|
| 129 |
+
self._fields_type = fields_type
|
| 130 |
+
|
| 131 |
+
@property
|
| 132 |
+
def fields_v1(self):
|
| 133 |
+
"""Gets the fields_v1 of this V1ManagedFieldsEntry. # noqa: E501
|
| 134 |
+
|
| 135 |
+
FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. # noqa: E501
|
| 136 |
+
|
| 137 |
+
:return: The fields_v1 of this V1ManagedFieldsEntry. # noqa: E501
|
| 138 |
+
:rtype: object
|
| 139 |
+
"""
|
| 140 |
+
return self._fields_v1
|
| 141 |
+
|
| 142 |
+
@fields_v1.setter
|
| 143 |
+
def fields_v1(self, fields_v1):
|
| 144 |
+
"""Sets the fields_v1 of this V1ManagedFieldsEntry.
|
| 145 |
+
|
| 146 |
+
FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type. # noqa: E501
|
| 147 |
+
|
| 148 |
+
:param fields_v1: The fields_v1 of this V1ManagedFieldsEntry. # noqa: E501
|
| 149 |
+
:type: object
|
| 150 |
+
"""
|
| 151 |
+
|
| 152 |
+
self._fields_v1 = fields_v1
|
| 153 |
+
|
| 154 |
+
@property
|
| 155 |
+
def manager(self):
|
| 156 |
+
"""Gets the manager of this V1ManagedFieldsEntry. # noqa: E501
|
| 157 |
+
|
| 158 |
+
Manager is an identifier of the workflow managing these fields. # noqa: E501
|
| 159 |
+
|
| 160 |
+
:return: The manager of this V1ManagedFieldsEntry. # noqa: E501
|
| 161 |
+
:rtype: str
|
| 162 |
+
"""
|
| 163 |
+
return self._manager
|
| 164 |
+
|
| 165 |
+
@manager.setter
|
| 166 |
+
def manager(self, manager):
|
| 167 |
+
"""Sets the manager of this V1ManagedFieldsEntry.
|
| 168 |
+
|
| 169 |
+
Manager is an identifier of the workflow managing these fields. # noqa: E501
|
| 170 |
+
|
| 171 |
+
:param manager: The manager of this V1ManagedFieldsEntry. # noqa: E501
|
| 172 |
+
:type: str
|
| 173 |
+
"""
|
| 174 |
+
|
| 175 |
+
self._manager = manager
|
| 176 |
+
|
| 177 |
+
@property
|
| 178 |
+
def operation(self):
|
| 179 |
+
"""Gets the operation of this V1ManagedFieldsEntry. # noqa: E501
|
| 180 |
+
|
| 181 |
+
Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. # noqa: E501
|
| 182 |
+
|
| 183 |
+
:return: The operation of this V1ManagedFieldsEntry. # noqa: E501
|
| 184 |
+
:rtype: str
|
| 185 |
+
"""
|
| 186 |
+
return self._operation
|
| 187 |
+
|
| 188 |
+
@operation.setter
|
| 189 |
+
def operation(self, operation):
|
| 190 |
+
"""Sets the operation of this V1ManagedFieldsEntry.
|
| 191 |
+
|
| 192 |
+
Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. # noqa: E501
|
| 193 |
+
|
| 194 |
+
:param operation: The operation of this V1ManagedFieldsEntry. # noqa: E501
|
| 195 |
+
:type: str
|
| 196 |
+
"""
|
| 197 |
+
|
| 198 |
+
self._operation = operation
|
| 199 |
+
|
| 200 |
+
@property
|
| 201 |
+
def subresource(self):
|
| 202 |
+
"""Gets the subresource of this V1ManagedFieldsEntry. # noqa: E501
|
| 203 |
+
|
| 204 |
+
Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. # noqa: E501
|
| 205 |
+
|
| 206 |
+
:return: The subresource of this V1ManagedFieldsEntry. # noqa: E501
|
| 207 |
+
:rtype: str
|
| 208 |
+
"""
|
| 209 |
+
return self._subresource
|
| 210 |
+
|
| 211 |
+
@subresource.setter
|
| 212 |
+
def subresource(self, subresource):
|
| 213 |
+
"""Sets the subresource of this V1ManagedFieldsEntry.
|
| 214 |
+
|
| 215 |
+
Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. # noqa: E501
|
| 216 |
+
|
| 217 |
+
:param subresource: The subresource of this V1ManagedFieldsEntry. # noqa: E501
|
| 218 |
+
:type: str
|
| 219 |
+
"""
|
| 220 |
+
|
| 221 |
+
self._subresource = subresource
|
| 222 |
+
|
| 223 |
+
@property
|
| 224 |
+
def time(self):
|
| 225 |
+
"""Gets the time of this V1ManagedFieldsEntry. # noqa: E501
|
| 226 |
+
|
| 227 |
+
Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. # noqa: E501
|
| 228 |
+
|
| 229 |
+
:return: The time of this V1ManagedFieldsEntry. # noqa: E501
|
| 230 |
+
:rtype: datetime
|
| 231 |
+
"""
|
| 232 |
+
return self._time
|
| 233 |
+
|
| 234 |
+
@time.setter
|
| 235 |
+
def time(self, time):
|
| 236 |
+
"""Sets the time of this V1ManagedFieldsEntry.
|
| 237 |
+
|
| 238 |
+
Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. # noqa: E501
|
| 239 |
+
|
| 240 |
+
:param time: The time of this V1ManagedFieldsEntry. # noqa: E501
|
| 241 |
+
:type: datetime
|
| 242 |
+
"""
|
| 243 |
+
|
| 244 |
+
self._time = time
|
| 245 |
+
|
| 246 |
+
def to_dict(self):
|
| 247 |
+
"""Returns the model properties as a dict"""
|
| 248 |
+
result = {}
|
| 249 |
+
|
| 250 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 251 |
+
value = getattr(self, attr)
|
| 252 |
+
if isinstance(value, list):
|
| 253 |
+
result[attr] = list(map(
|
| 254 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 255 |
+
value
|
| 256 |
+
))
|
| 257 |
+
elif hasattr(value, "to_dict"):
|
| 258 |
+
result[attr] = value.to_dict()
|
| 259 |
+
elif isinstance(value, dict):
|
| 260 |
+
result[attr] = dict(map(
|
| 261 |
+
lambda item: (item[0], item[1].to_dict())
|
| 262 |
+
if hasattr(item[1], "to_dict") else item,
|
| 263 |
+
value.items()
|
| 264 |
+
))
|
| 265 |
+
else:
|
| 266 |
+
result[attr] = value
|
| 267 |
+
|
| 268 |
+
return result
|
| 269 |
+
|
| 270 |
+
def to_str(self):
|
| 271 |
+
"""Returns the string representation of the model"""
|
| 272 |
+
return pprint.pformat(self.to_dict())
|
| 273 |
+
|
| 274 |
+
def __repr__(self):
|
| 275 |
+
"""For `print` and `pprint`"""
|
| 276 |
+
return self.to_str()
|
| 277 |
+
|
| 278 |
+
def __eq__(self, other):
|
| 279 |
+
"""Returns true if both objects are equal"""
|
| 280 |
+
if not isinstance(other, V1ManagedFieldsEntry):
|
| 281 |
+
return False
|
| 282 |
+
|
| 283 |
+
return self.to_dict() == other.to_dict()
|
| 284 |
+
|
| 285 |
+
def __ne__(self, other):
|
| 286 |
+
"""Returns true if both objects are not equal"""
|
| 287 |
+
if not isinstance(other, V1ManagedFieldsEntry):
|
| 288 |
+
return True
|
| 289 |
+
|
| 290 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_match_condition.py
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1MatchCondition(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'expression': 'str',
|
| 37 |
+
'name': 'str'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'expression': 'expression',
|
| 42 |
+
'name': 'name'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, expression=None, name=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1MatchCondition - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._expression = None
|
| 52 |
+
self._name = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
self.expression = expression
|
| 56 |
+
self.name = name
|
| 57 |
+
|
| 58 |
+
@property
|
| 59 |
+
def expression(self):
|
| 60 |
+
"""Gets the expression of this V1MatchCondition. # noqa: E501
|
| 61 |
+
|
| 62 |
+
Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. # noqa: E501
|
| 63 |
+
|
| 64 |
+
:return: The expression of this V1MatchCondition. # noqa: E501
|
| 65 |
+
:rtype: str
|
| 66 |
+
"""
|
| 67 |
+
return self._expression
|
| 68 |
+
|
| 69 |
+
@expression.setter
|
| 70 |
+
def expression(self, expression):
|
| 71 |
+
"""Sets the expression of this V1MatchCondition.
|
| 72 |
+
|
| 73 |
+
Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. # noqa: E501
|
| 74 |
+
|
| 75 |
+
:param expression: The expression of this V1MatchCondition. # noqa: E501
|
| 76 |
+
:type: str
|
| 77 |
+
"""
|
| 78 |
+
if self.local_vars_configuration.client_side_validation and expression is None: # noqa: E501
|
| 79 |
+
raise ValueError("Invalid value for `expression`, must not be `None`") # noqa: E501
|
| 80 |
+
|
| 81 |
+
self._expression = expression
|
| 82 |
+
|
| 83 |
+
@property
|
| 84 |
+
def name(self):
|
| 85 |
+
"""Gets the name of this V1MatchCondition. # noqa: E501
|
| 86 |
+
|
| 87 |
+
Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. # noqa: E501
|
| 88 |
+
|
| 89 |
+
:return: The name of this V1MatchCondition. # noqa: E501
|
| 90 |
+
:rtype: str
|
| 91 |
+
"""
|
| 92 |
+
return self._name
|
| 93 |
+
|
| 94 |
+
@name.setter
|
| 95 |
+
def name(self, name):
|
| 96 |
+
"""Sets the name of this V1MatchCondition.
|
| 97 |
+
|
| 98 |
+
Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. # noqa: E501
|
| 99 |
+
|
| 100 |
+
:param name: The name of this V1MatchCondition. # noqa: E501
|
| 101 |
+
:type: str
|
| 102 |
+
"""
|
| 103 |
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
| 104 |
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
| 105 |
+
|
| 106 |
+
self._name = name
|
| 107 |
+
|
| 108 |
+
def to_dict(self):
|
| 109 |
+
"""Returns the model properties as a dict"""
|
| 110 |
+
result = {}
|
| 111 |
+
|
| 112 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 113 |
+
value = getattr(self, attr)
|
| 114 |
+
if isinstance(value, list):
|
| 115 |
+
result[attr] = list(map(
|
| 116 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 117 |
+
value
|
| 118 |
+
))
|
| 119 |
+
elif hasattr(value, "to_dict"):
|
| 120 |
+
result[attr] = value.to_dict()
|
| 121 |
+
elif isinstance(value, dict):
|
| 122 |
+
result[attr] = dict(map(
|
| 123 |
+
lambda item: (item[0], item[1].to_dict())
|
| 124 |
+
if hasattr(item[1], "to_dict") else item,
|
| 125 |
+
value.items()
|
| 126 |
+
))
|
| 127 |
+
else:
|
| 128 |
+
result[attr] = value
|
| 129 |
+
|
| 130 |
+
return result
|
| 131 |
+
|
| 132 |
+
def to_str(self):
|
| 133 |
+
"""Returns the string representation of the model"""
|
| 134 |
+
return pprint.pformat(self.to_dict())
|
| 135 |
+
|
| 136 |
+
def __repr__(self):
|
| 137 |
+
"""For `print` and `pprint`"""
|
| 138 |
+
return self.to_str()
|
| 139 |
+
|
| 140 |
+
def __eq__(self, other):
|
| 141 |
+
"""Returns true if both objects are equal"""
|
| 142 |
+
if not isinstance(other, V1MatchCondition):
|
| 143 |
+
return False
|
| 144 |
+
|
| 145 |
+
return self.to_dict() == other.to_dict()
|
| 146 |
+
|
| 147 |
+
def __ne__(self, other):
|
| 148 |
+
"""Returns true if both objects are not equal"""
|
| 149 |
+
if not isinstance(other, V1MatchCondition):
|
| 150 |
+
return True
|
| 151 |
+
|
| 152 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_match_resources.py
ADDED
|
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1MatchResources(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'exclude_resource_rules': 'list[V1NamedRuleWithOperations]',
|
| 37 |
+
'match_policy': 'str',
|
| 38 |
+
'namespace_selector': 'V1LabelSelector',
|
| 39 |
+
'object_selector': 'V1LabelSelector',
|
| 40 |
+
'resource_rules': 'list[V1NamedRuleWithOperations]'
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
attribute_map = {
|
| 44 |
+
'exclude_resource_rules': 'excludeResourceRules',
|
| 45 |
+
'match_policy': 'matchPolicy',
|
| 46 |
+
'namespace_selector': 'namespaceSelector',
|
| 47 |
+
'object_selector': 'objectSelector',
|
| 48 |
+
'resource_rules': 'resourceRules'
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
def __init__(self, exclude_resource_rules=None, match_policy=None, namespace_selector=None, object_selector=None, resource_rules=None, local_vars_configuration=None): # noqa: E501
|
| 52 |
+
"""V1MatchResources - a model defined in OpenAPI""" # noqa: E501
|
| 53 |
+
if local_vars_configuration is None:
|
| 54 |
+
local_vars_configuration = Configuration()
|
| 55 |
+
self.local_vars_configuration = local_vars_configuration
|
| 56 |
+
|
| 57 |
+
self._exclude_resource_rules = None
|
| 58 |
+
self._match_policy = None
|
| 59 |
+
self._namespace_selector = None
|
| 60 |
+
self._object_selector = None
|
| 61 |
+
self._resource_rules = None
|
| 62 |
+
self.discriminator = None
|
| 63 |
+
|
| 64 |
+
if exclude_resource_rules is not None:
|
| 65 |
+
self.exclude_resource_rules = exclude_resource_rules
|
| 66 |
+
if match_policy is not None:
|
| 67 |
+
self.match_policy = match_policy
|
| 68 |
+
if namespace_selector is not None:
|
| 69 |
+
self.namespace_selector = namespace_selector
|
| 70 |
+
if object_selector is not None:
|
| 71 |
+
self.object_selector = object_selector
|
| 72 |
+
if resource_rules is not None:
|
| 73 |
+
self.resource_rules = resource_rules
|
| 74 |
+
|
| 75 |
+
@property
|
| 76 |
+
def exclude_resource_rules(self):
|
| 77 |
+
"""Gets the exclude_resource_rules of this V1MatchResources. # noqa: E501
|
| 78 |
+
|
| 79 |
+
ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) # noqa: E501
|
| 80 |
+
|
| 81 |
+
:return: The exclude_resource_rules of this V1MatchResources. # noqa: E501
|
| 82 |
+
:rtype: list[V1NamedRuleWithOperations]
|
| 83 |
+
"""
|
| 84 |
+
return self._exclude_resource_rules
|
| 85 |
+
|
| 86 |
+
@exclude_resource_rules.setter
|
| 87 |
+
def exclude_resource_rules(self, exclude_resource_rules):
|
| 88 |
+
"""Sets the exclude_resource_rules of this V1MatchResources.
|
| 89 |
+
|
| 90 |
+
ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) # noqa: E501
|
| 91 |
+
|
| 92 |
+
:param exclude_resource_rules: The exclude_resource_rules of this V1MatchResources. # noqa: E501
|
| 93 |
+
:type: list[V1NamedRuleWithOperations]
|
| 94 |
+
"""
|
| 95 |
+
|
| 96 |
+
self._exclude_resource_rules = exclude_resource_rules
|
| 97 |
+
|
| 98 |
+
@property
|
| 99 |
+
def match_policy(self):
|
| 100 |
+
"""Gets the match_policy of this V1MatchResources. # noqa: E501
|
| 101 |
+
|
| 102 |
+
matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" # noqa: E501
|
| 103 |
+
|
| 104 |
+
:return: The match_policy of this V1MatchResources. # noqa: E501
|
| 105 |
+
:rtype: str
|
| 106 |
+
"""
|
| 107 |
+
return self._match_policy
|
| 108 |
+
|
| 109 |
+
@match_policy.setter
|
| 110 |
+
def match_policy(self, match_policy):
|
| 111 |
+
"""Sets the match_policy of this V1MatchResources.
|
| 112 |
+
|
| 113 |
+
matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" # noqa: E501
|
| 114 |
+
|
| 115 |
+
:param match_policy: The match_policy of this V1MatchResources. # noqa: E501
|
| 116 |
+
:type: str
|
| 117 |
+
"""
|
| 118 |
+
|
| 119 |
+
self._match_policy = match_policy
|
| 120 |
+
|
| 121 |
+
@property
|
| 122 |
+
def namespace_selector(self):
|
| 123 |
+
"""Gets the namespace_selector of this V1MatchResources. # noqa: E501
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
:return: The namespace_selector of this V1MatchResources. # noqa: E501
|
| 127 |
+
:rtype: V1LabelSelector
|
| 128 |
+
"""
|
| 129 |
+
return self._namespace_selector
|
| 130 |
+
|
| 131 |
+
@namespace_selector.setter
|
| 132 |
+
def namespace_selector(self, namespace_selector):
|
| 133 |
+
"""Sets the namespace_selector of this V1MatchResources.
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
:param namespace_selector: The namespace_selector of this V1MatchResources. # noqa: E501
|
| 137 |
+
:type: V1LabelSelector
|
| 138 |
+
"""
|
| 139 |
+
|
| 140 |
+
self._namespace_selector = namespace_selector
|
| 141 |
+
|
| 142 |
+
@property
|
| 143 |
+
def object_selector(self):
|
| 144 |
+
"""Gets the object_selector of this V1MatchResources. # noqa: E501
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
:return: The object_selector of this V1MatchResources. # noqa: E501
|
| 148 |
+
:rtype: V1LabelSelector
|
| 149 |
+
"""
|
| 150 |
+
return self._object_selector
|
| 151 |
+
|
| 152 |
+
@object_selector.setter
|
| 153 |
+
def object_selector(self, object_selector):
|
| 154 |
+
"""Sets the object_selector of this V1MatchResources.
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
:param object_selector: The object_selector of this V1MatchResources. # noqa: E501
|
| 158 |
+
:type: V1LabelSelector
|
| 159 |
+
"""
|
| 160 |
+
|
| 161 |
+
self._object_selector = object_selector
|
| 162 |
+
|
| 163 |
+
@property
|
| 164 |
+
def resource_rules(self):
|
| 165 |
+
"""Gets the resource_rules of this V1MatchResources. # noqa: E501
|
| 166 |
+
|
| 167 |
+
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. # noqa: E501
|
| 168 |
+
|
| 169 |
+
:return: The resource_rules of this V1MatchResources. # noqa: E501
|
| 170 |
+
:rtype: list[V1NamedRuleWithOperations]
|
| 171 |
+
"""
|
| 172 |
+
return self._resource_rules
|
| 173 |
+
|
| 174 |
+
@resource_rules.setter
|
| 175 |
+
def resource_rules(self, resource_rules):
|
| 176 |
+
"""Sets the resource_rules of this V1MatchResources.
|
| 177 |
+
|
| 178 |
+
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. # noqa: E501
|
| 179 |
+
|
| 180 |
+
:param resource_rules: The resource_rules of this V1MatchResources. # noqa: E501
|
| 181 |
+
:type: list[V1NamedRuleWithOperations]
|
| 182 |
+
"""
|
| 183 |
+
|
| 184 |
+
self._resource_rules = resource_rules
|
| 185 |
+
|
| 186 |
+
def to_dict(self):
|
| 187 |
+
"""Returns the model properties as a dict"""
|
| 188 |
+
result = {}
|
| 189 |
+
|
| 190 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 191 |
+
value = getattr(self, attr)
|
| 192 |
+
if isinstance(value, list):
|
| 193 |
+
result[attr] = list(map(
|
| 194 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 195 |
+
value
|
| 196 |
+
))
|
| 197 |
+
elif hasattr(value, "to_dict"):
|
| 198 |
+
result[attr] = value.to_dict()
|
| 199 |
+
elif isinstance(value, dict):
|
| 200 |
+
result[attr] = dict(map(
|
| 201 |
+
lambda item: (item[0], item[1].to_dict())
|
| 202 |
+
if hasattr(item[1], "to_dict") else item,
|
| 203 |
+
value.items()
|
| 204 |
+
))
|
| 205 |
+
else:
|
| 206 |
+
result[attr] = value
|
| 207 |
+
|
| 208 |
+
return result
|
| 209 |
+
|
| 210 |
+
def to_str(self):
|
| 211 |
+
"""Returns the string representation of the model"""
|
| 212 |
+
return pprint.pformat(self.to_dict())
|
| 213 |
+
|
| 214 |
+
def __repr__(self):
|
| 215 |
+
"""For `print` and `pprint`"""
|
| 216 |
+
return self.to_str()
|
| 217 |
+
|
| 218 |
+
def __eq__(self, other):
|
| 219 |
+
"""Returns true if both objects are equal"""
|
| 220 |
+
if not isinstance(other, V1MatchResources):
|
| 221 |
+
return False
|
| 222 |
+
|
| 223 |
+
return self.to_dict() == other.to_dict()
|
| 224 |
+
|
| 225 |
+
def __ne__(self, other):
|
| 226 |
+
"""Returns true if both objects are not equal"""
|
| 227 |
+
if not isinstance(other, V1MatchResources):
|
| 228 |
+
return True
|
| 229 |
+
|
| 230 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_modify_volume_status.py
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1ModifyVolumeStatus(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'status': 'str',
|
| 37 |
+
'target_volume_attributes_class_name': 'str'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'status': 'status',
|
| 42 |
+
'target_volume_attributes_class_name': 'targetVolumeAttributesClassName'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, status=None, target_volume_attributes_class_name=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1ModifyVolumeStatus - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._status = None
|
| 52 |
+
self._target_volume_attributes_class_name = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
self.status = status
|
| 56 |
+
if target_volume_attributes_class_name is not None:
|
| 57 |
+
self.target_volume_attributes_class_name = target_volume_attributes_class_name
|
| 58 |
+
|
| 59 |
+
@property
|
| 60 |
+
def status(self):
|
| 61 |
+
"""Gets the status of this V1ModifyVolumeStatus. # noqa: E501
|
| 62 |
+
|
| 63 |
+
status is the status of the ControllerModifyVolume operation. It can be in any of following states: - Pending Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing. - InProgress InProgress indicates that the volume is being modified. - Infeasible Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified. Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. # noqa: E501
|
| 64 |
+
|
| 65 |
+
:return: The status of this V1ModifyVolumeStatus. # noqa: E501
|
| 66 |
+
:rtype: str
|
| 67 |
+
"""
|
| 68 |
+
return self._status
|
| 69 |
+
|
| 70 |
+
@status.setter
|
| 71 |
+
def status(self, status):
|
| 72 |
+
"""Sets the status of this V1ModifyVolumeStatus.
|
| 73 |
+
|
| 74 |
+
status is the status of the ControllerModifyVolume operation. It can be in any of following states: - Pending Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing. - InProgress InProgress indicates that the volume is being modified. - Infeasible Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified. Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. # noqa: E501
|
| 75 |
+
|
| 76 |
+
:param status: The status of this V1ModifyVolumeStatus. # noqa: E501
|
| 77 |
+
:type: str
|
| 78 |
+
"""
|
| 79 |
+
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
|
| 80 |
+
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
| 81 |
+
|
| 82 |
+
self._status = status
|
| 83 |
+
|
| 84 |
+
@property
|
| 85 |
+
def target_volume_attributes_class_name(self):
|
| 86 |
+
"""Gets the target_volume_attributes_class_name of this V1ModifyVolumeStatus. # noqa: E501
|
| 87 |
+
|
| 88 |
+
targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled # noqa: E501
|
| 89 |
+
|
| 90 |
+
:return: The target_volume_attributes_class_name of this V1ModifyVolumeStatus. # noqa: E501
|
| 91 |
+
:rtype: str
|
| 92 |
+
"""
|
| 93 |
+
return self._target_volume_attributes_class_name
|
| 94 |
+
|
| 95 |
+
@target_volume_attributes_class_name.setter
|
| 96 |
+
def target_volume_attributes_class_name(self, target_volume_attributes_class_name):
|
| 97 |
+
"""Sets the target_volume_attributes_class_name of this V1ModifyVolumeStatus.
|
| 98 |
+
|
| 99 |
+
targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled # noqa: E501
|
| 100 |
+
|
| 101 |
+
:param target_volume_attributes_class_name: The target_volume_attributes_class_name of this V1ModifyVolumeStatus. # noqa: E501
|
| 102 |
+
:type: str
|
| 103 |
+
"""
|
| 104 |
+
|
| 105 |
+
self._target_volume_attributes_class_name = target_volume_attributes_class_name
|
| 106 |
+
|
| 107 |
+
def to_dict(self):
|
| 108 |
+
"""Returns the model properties as a dict"""
|
| 109 |
+
result = {}
|
| 110 |
+
|
| 111 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 112 |
+
value = getattr(self, attr)
|
| 113 |
+
if isinstance(value, list):
|
| 114 |
+
result[attr] = list(map(
|
| 115 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 116 |
+
value
|
| 117 |
+
))
|
| 118 |
+
elif hasattr(value, "to_dict"):
|
| 119 |
+
result[attr] = value.to_dict()
|
| 120 |
+
elif isinstance(value, dict):
|
| 121 |
+
result[attr] = dict(map(
|
| 122 |
+
lambda item: (item[0], item[1].to_dict())
|
| 123 |
+
if hasattr(item[1], "to_dict") else item,
|
| 124 |
+
value.items()
|
| 125 |
+
))
|
| 126 |
+
else:
|
| 127 |
+
result[attr] = value
|
| 128 |
+
|
| 129 |
+
return result
|
| 130 |
+
|
| 131 |
+
def to_str(self):
|
| 132 |
+
"""Returns the string representation of the model"""
|
| 133 |
+
return pprint.pformat(self.to_dict())
|
| 134 |
+
|
| 135 |
+
def __repr__(self):
|
| 136 |
+
"""For `print` and `pprint`"""
|
| 137 |
+
return self.to_str()
|
| 138 |
+
|
| 139 |
+
def __eq__(self, other):
|
| 140 |
+
"""Returns true if both objects are equal"""
|
| 141 |
+
if not isinstance(other, V1ModifyVolumeStatus):
|
| 142 |
+
return False
|
| 143 |
+
|
| 144 |
+
return self.to_dict() == other.to_dict()
|
| 145 |
+
|
| 146 |
+
def __ne__(self, other):
|
| 147 |
+
"""Returns true if both objects are not equal"""
|
| 148 |
+
if not isinstance(other, V1ModifyVolumeStatus):
|
| 149 |
+
return True
|
| 150 |
+
|
| 151 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook.py
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1MutatingWebhook(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'admission_review_versions': 'list[str]',
|
| 37 |
+
'client_config': 'AdmissionregistrationV1WebhookClientConfig',
|
| 38 |
+
'failure_policy': 'str',
|
| 39 |
+
'match_conditions': 'list[V1MatchCondition]',
|
| 40 |
+
'match_policy': 'str',
|
| 41 |
+
'name': 'str',
|
| 42 |
+
'namespace_selector': 'V1LabelSelector',
|
| 43 |
+
'object_selector': 'V1LabelSelector',
|
| 44 |
+
'reinvocation_policy': 'str',
|
| 45 |
+
'rules': 'list[V1RuleWithOperations]',
|
| 46 |
+
'side_effects': 'str',
|
| 47 |
+
'timeout_seconds': 'int'
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
attribute_map = {
|
| 51 |
+
'admission_review_versions': 'admissionReviewVersions',
|
| 52 |
+
'client_config': 'clientConfig',
|
| 53 |
+
'failure_policy': 'failurePolicy',
|
| 54 |
+
'match_conditions': 'matchConditions',
|
| 55 |
+
'match_policy': 'matchPolicy',
|
| 56 |
+
'name': 'name',
|
| 57 |
+
'namespace_selector': 'namespaceSelector',
|
| 58 |
+
'object_selector': 'objectSelector',
|
| 59 |
+
'reinvocation_policy': 'reinvocationPolicy',
|
| 60 |
+
'rules': 'rules',
|
| 61 |
+
'side_effects': 'sideEffects',
|
| 62 |
+
'timeout_seconds': 'timeoutSeconds'
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
def __init__(self, admission_review_versions=None, client_config=None, failure_policy=None, match_conditions=None, match_policy=None, name=None, namespace_selector=None, object_selector=None, reinvocation_policy=None, rules=None, side_effects=None, timeout_seconds=None, local_vars_configuration=None): # noqa: E501
|
| 66 |
+
"""V1MutatingWebhook - a model defined in OpenAPI""" # noqa: E501
|
| 67 |
+
if local_vars_configuration is None:
|
| 68 |
+
local_vars_configuration = Configuration()
|
| 69 |
+
self.local_vars_configuration = local_vars_configuration
|
| 70 |
+
|
| 71 |
+
self._admission_review_versions = None
|
| 72 |
+
self._client_config = None
|
| 73 |
+
self._failure_policy = None
|
| 74 |
+
self._match_conditions = None
|
| 75 |
+
self._match_policy = None
|
| 76 |
+
self._name = None
|
| 77 |
+
self._namespace_selector = None
|
| 78 |
+
self._object_selector = None
|
| 79 |
+
self._reinvocation_policy = None
|
| 80 |
+
self._rules = None
|
| 81 |
+
self._side_effects = None
|
| 82 |
+
self._timeout_seconds = None
|
| 83 |
+
self.discriminator = None
|
| 84 |
+
|
| 85 |
+
self.admission_review_versions = admission_review_versions
|
| 86 |
+
self.client_config = client_config
|
| 87 |
+
if failure_policy is not None:
|
| 88 |
+
self.failure_policy = failure_policy
|
| 89 |
+
if match_conditions is not None:
|
| 90 |
+
self.match_conditions = match_conditions
|
| 91 |
+
if match_policy is not None:
|
| 92 |
+
self.match_policy = match_policy
|
| 93 |
+
self.name = name
|
| 94 |
+
if namespace_selector is not None:
|
| 95 |
+
self.namespace_selector = namespace_selector
|
| 96 |
+
if object_selector is not None:
|
| 97 |
+
self.object_selector = object_selector
|
| 98 |
+
if reinvocation_policy is not None:
|
| 99 |
+
self.reinvocation_policy = reinvocation_policy
|
| 100 |
+
if rules is not None:
|
| 101 |
+
self.rules = rules
|
| 102 |
+
self.side_effects = side_effects
|
| 103 |
+
if timeout_seconds is not None:
|
| 104 |
+
self.timeout_seconds = timeout_seconds
|
| 105 |
+
|
| 106 |
+
@property
|
| 107 |
+
def admission_review_versions(self):
|
| 108 |
+
"""Gets the admission_review_versions of this V1MutatingWebhook. # noqa: E501
|
| 109 |
+
|
| 110 |
+
AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. # noqa: E501
|
| 111 |
+
|
| 112 |
+
:return: The admission_review_versions of this V1MutatingWebhook. # noqa: E501
|
| 113 |
+
:rtype: list[str]
|
| 114 |
+
"""
|
| 115 |
+
return self._admission_review_versions
|
| 116 |
+
|
| 117 |
+
@admission_review_versions.setter
|
| 118 |
+
def admission_review_versions(self, admission_review_versions):
|
| 119 |
+
"""Sets the admission_review_versions of this V1MutatingWebhook.
|
| 120 |
+
|
| 121 |
+
AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. # noqa: E501
|
| 122 |
+
|
| 123 |
+
:param admission_review_versions: The admission_review_versions of this V1MutatingWebhook. # noqa: E501
|
| 124 |
+
:type: list[str]
|
| 125 |
+
"""
|
| 126 |
+
if self.local_vars_configuration.client_side_validation and admission_review_versions is None: # noqa: E501
|
| 127 |
+
raise ValueError("Invalid value for `admission_review_versions`, must not be `None`") # noqa: E501
|
| 128 |
+
|
| 129 |
+
self._admission_review_versions = admission_review_versions
|
| 130 |
+
|
| 131 |
+
@property
|
| 132 |
+
def client_config(self):
|
| 133 |
+
"""Gets the client_config of this V1MutatingWebhook. # noqa: E501
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
:return: The client_config of this V1MutatingWebhook. # noqa: E501
|
| 137 |
+
:rtype: AdmissionregistrationV1WebhookClientConfig
|
| 138 |
+
"""
|
| 139 |
+
return self._client_config
|
| 140 |
+
|
| 141 |
+
@client_config.setter
|
| 142 |
+
def client_config(self, client_config):
|
| 143 |
+
"""Sets the client_config of this V1MutatingWebhook.
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
:param client_config: The client_config of this V1MutatingWebhook. # noqa: E501
|
| 147 |
+
:type: AdmissionregistrationV1WebhookClientConfig
|
| 148 |
+
"""
|
| 149 |
+
if self.local_vars_configuration.client_side_validation and client_config is None: # noqa: E501
|
| 150 |
+
raise ValueError("Invalid value for `client_config`, must not be `None`") # noqa: E501
|
| 151 |
+
|
| 152 |
+
self._client_config = client_config
|
| 153 |
+
|
| 154 |
+
@property
|
| 155 |
+
def failure_policy(self):
|
| 156 |
+
"""Gets the failure_policy of this V1MutatingWebhook. # noqa: E501
|
| 157 |
+
|
| 158 |
+
FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. # noqa: E501
|
| 159 |
+
|
| 160 |
+
:return: The failure_policy of this V1MutatingWebhook. # noqa: E501
|
| 161 |
+
:rtype: str
|
| 162 |
+
"""
|
| 163 |
+
return self._failure_policy
|
| 164 |
+
|
| 165 |
+
@failure_policy.setter
|
| 166 |
+
def failure_policy(self, failure_policy):
|
| 167 |
+
"""Sets the failure_policy of this V1MutatingWebhook.
|
| 168 |
+
|
| 169 |
+
FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. # noqa: E501
|
| 170 |
+
|
| 171 |
+
:param failure_policy: The failure_policy of this V1MutatingWebhook. # noqa: E501
|
| 172 |
+
:type: str
|
| 173 |
+
"""
|
| 174 |
+
|
| 175 |
+
self._failure_policy = failure_policy
|
| 176 |
+
|
| 177 |
+
@property
|
| 178 |
+
def match_conditions(self):
|
| 179 |
+
"""Gets the match_conditions of this V1MutatingWebhook. # noqa: E501
|
| 180 |
+
|
| 181 |
+
MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped # noqa: E501
|
| 182 |
+
|
| 183 |
+
:return: The match_conditions of this V1MutatingWebhook. # noqa: E501
|
| 184 |
+
:rtype: list[V1MatchCondition]
|
| 185 |
+
"""
|
| 186 |
+
return self._match_conditions
|
| 187 |
+
|
| 188 |
+
@match_conditions.setter
|
| 189 |
+
def match_conditions(self, match_conditions):
|
| 190 |
+
"""Sets the match_conditions of this V1MutatingWebhook.
|
| 191 |
+
|
| 192 |
+
MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped # noqa: E501
|
| 193 |
+
|
| 194 |
+
:param match_conditions: The match_conditions of this V1MutatingWebhook. # noqa: E501
|
| 195 |
+
:type: list[V1MatchCondition]
|
| 196 |
+
"""
|
| 197 |
+
|
| 198 |
+
self._match_conditions = match_conditions
|
| 199 |
+
|
| 200 |
+
@property
|
| 201 |
+
def match_policy(self):
|
| 202 |
+
"""Gets the match_policy of this V1MutatingWebhook. # noqa: E501
|
| 203 |
+
|
| 204 |
+
matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" # noqa: E501
|
| 205 |
+
|
| 206 |
+
:return: The match_policy of this V1MutatingWebhook. # noqa: E501
|
| 207 |
+
:rtype: str
|
| 208 |
+
"""
|
| 209 |
+
return self._match_policy
|
| 210 |
+
|
| 211 |
+
@match_policy.setter
|
| 212 |
+
def match_policy(self, match_policy):
|
| 213 |
+
"""Sets the match_policy of this V1MutatingWebhook.
|
| 214 |
+
|
| 215 |
+
matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" # noqa: E501
|
| 216 |
+
|
| 217 |
+
:param match_policy: The match_policy of this V1MutatingWebhook. # noqa: E501
|
| 218 |
+
:type: str
|
| 219 |
+
"""
|
| 220 |
+
|
| 221 |
+
self._match_policy = match_policy
|
| 222 |
+
|
| 223 |
+
@property
|
| 224 |
+
def name(self):
|
| 225 |
+
"""Gets the name of this V1MutatingWebhook. # noqa: E501
|
| 226 |
+
|
| 227 |
+
The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. # noqa: E501
|
| 228 |
+
|
| 229 |
+
:return: The name of this V1MutatingWebhook. # noqa: E501
|
| 230 |
+
:rtype: str
|
| 231 |
+
"""
|
| 232 |
+
return self._name
|
| 233 |
+
|
| 234 |
+
@name.setter
|
| 235 |
+
def name(self, name):
|
| 236 |
+
"""Sets the name of this V1MutatingWebhook.
|
| 237 |
+
|
| 238 |
+
The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. # noqa: E501
|
| 239 |
+
|
| 240 |
+
:param name: The name of this V1MutatingWebhook. # noqa: E501
|
| 241 |
+
:type: str
|
| 242 |
+
"""
|
| 243 |
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
| 244 |
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
| 245 |
+
|
| 246 |
+
self._name = name
|
| 247 |
+
|
| 248 |
+
@property
|
| 249 |
+
def namespace_selector(self):
|
| 250 |
+
"""Gets the namespace_selector of this V1MutatingWebhook. # noqa: E501
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
:return: The namespace_selector of this V1MutatingWebhook. # noqa: E501
|
| 254 |
+
:rtype: V1LabelSelector
|
| 255 |
+
"""
|
| 256 |
+
return self._namespace_selector
|
| 257 |
+
|
| 258 |
+
@namespace_selector.setter
|
| 259 |
+
def namespace_selector(self, namespace_selector):
|
| 260 |
+
"""Sets the namespace_selector of this V1MutatingWebhook.
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
:param namespace_selector: The namespace_selector of this V1MutatingWebhook. # noqa: E501
|
| 264 |
+
:type: V1LabelSelector
|
| 265 |
+
"""
|
| 266 |
+
|
| 267 |
+
self._namespace_selector = namespace_selector
|
| 268 |
+
|
| 269 |
+
@property
|
| 270 |
+
def object_selector(self):
|
| 271 |
+
"""Gets the object_selector of this V1MutatingWebhook. # noqa: E501
|
| 272 |
+
|
| 273 |
+
|
| 274 |
+
:return: The object_selector of this V1MutatingWebhook. # noqa: E501
|
| 275 |
+
:rtype: V1LabelSelector
|
| 276 |
+
"""
|
| 277 |
+
return self._object_selector
|
| 278 |
+
|
| 279 |
+
@object_selector.setter
|
| 280 |
+
def object_selector(self, object_selector):
|
| 281 |
+
"""Sets the object_selector of this V1MutatingWebhook.
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
:param object_selector: The object_selector of this V1MutatingWebhook. # noqa: E501
|
| 285 |
+
:type: V1LabelSelector
|
| 286 |
+
"""
|
| 287 |
+
|
| 288 |
+
self._object_selector = object_selector
|
| 289 |
+
|
| 290 |
+
@property
|
| 291 |
+
def reinvocation_policy(self):
|
| 292 |
+
"""Gets the reinvocation_policy of this V1MutatingWebhook. # noqa: E501
|
| 293 |
+
|
| 294 |
+
reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". # noqa: E501
|
| 295 |
+
|
| 296 |
+
:return: The reinvocation_policy of this V1MutatingWebhook. # noqa: E501
|
| 297 |
+
:rtype: str
|
| 298 |
+
"""
|
| 299 |
+
return self._reinvocation_policy
|
| 300 |
+
|
| 301 |
+
@reinvocation_policy.setter
|
| 302 |
+
def reinvocation_policy(self, reinvocation_policy):
|
| 303 |
+
"""Sets the reinvocation_policy of this V1MutatingWebhook.
|
| 304 |
+
|
| 305 |
+
reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". # noqa: E501
|
| 306 |
+
|
| 307 |
+
:param reinvocation_policy: The reinvocation_policy of this V1MutatingWebhook. # noqa: E501
|
| 308 |
+
:type: str
|
| 309 |
+
"""
|
| 310 |
+
|
| 311 |
+
self._reinvocation_policy = reinvocation_policy
|
| 312 |
+
|
| 313 |
+
@property
|
| 314 |
+
def rules(self):
|
| 315 |
+
"""Gets the rules of this V1MutatingWebhook. # noqa: E501
|
| 316 |
+
|
| 317 |
+
Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. # noqa: E501
|
| 318 |
+
|
| 319 |
+
:return: The rules of this V1MutatingWebhook. # noqa: E501
|
| 320 |
+
:rtype: list[V1RuleWithOperations]
|
| 321 |
+
"""
|
| 322 |
+
return self._rules
|
| 323 |
+
|
| 324 |
+
@rules.setter
|
| 325 |
+
def rules(self, rules):
|
| 326 |
+
"""Sets the rules of this V1MutatingWebhook.
|
| 327 |
+
|
| 328 |
+
Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. # noqa: E501
|
| 329 |
+
|
| 330 |
+
:param rules: The rules of this V1MutatingWebhook. # noqa: E501
|
| 331 |
+
:type: list[V1RuleWithOperations]
|
| 332 |
+
"""
|
| 333 |
+
|
| 334 |
+
self._rules = rules
|
| 335 |
+
|
| 336 |
+
@property
|
| 337 |
+
def side_effects(self):
|
| 338 |
+
"""Gets the side_effects of this V1MutatingWebhook. # noqa: E501
|
| 339 |
+
|
| 340 |
+
SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. # noqa: E501
|
| 341 |
+
|
| 342 |
+
:return: The side_effects of this V1MutatingWebhook. # noqa: E501
|
| 343 |
+
:rtype: str
|
| 344 |
+
"""
|
| 345 |
+
return self._side_effects
|
| 346 |
+
|
| 347 |
+
@side_effects.setter
|
| 348 |
+
def side_effects(self, side_effects):
|
| 349 |
+
"""Sets the side_effects of this V1MutatingWebhook.
|
| 350 |
+
|
| 351 |
+
SideEffects states whether this webhook has side effects. Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may also specify Some or Unknown). Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission chain and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. # noqa: E501
|
| 352 |
+
|
| 353 |
+
:param side_effects: The side_effects of this V1MutatingWebhook. # noqa: E501
|
| 354 |
+
:type: str
|
| 355 |
+
"""
|
| 356 |
+
if self.local_vars_configuration.client_side_validation and side_effects is None: # noqa: E501
|
| 357 |
+
raise ValueError("Invalid value for `side_effects`, must not be `None`") # noqa: E501
|
| 358 |
+
|
| 359 |
+
self._side_effects = side_effects
|
| 360 |
+
|
| 361 |
+
@property
|
| 362 |
+
def timeout_seconds(self):
|
| 363 |
+
"""Gets the timeout_seconds of this V1MutatingWebhook. # noqa: E501
|
| 364 |
+
|
| 365 |
+
TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. # noqa: E501
|
| 366 |
+
|
| 367 |
+
:return: The timeout_seconds of this V1MutatingWebhook. # noqa: E501
|
| 368 |
+
:rtype: int
|
| 369 |
+
"""
|
| 370 |
+
return self._timeout_seconds
|
| 371 |
+
|
| 372 |
+
@timeout_seconds.setter
|
| 373 |
+
def timeout_seconds(self, timeout_seconds):
|
| 374 |
+
"""Sets the timeout_seconds of this V1MutatingWebhook.
|
| 375 |
+
|
| 376 |
+
TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. # noqa: E501
|
| 377 |
+
|
| 378 |
+
:param timeout_seconds: The timeout_seconds of this V1MutatingWebhook. # noqa: E501
|
| 379 |
+
:type: int
|
| 380 |
+
"""
|
| 381 |
+
|
| 382 |
+
self._timeout_seconds = timeout_seconds
|
| 383 |
+
|
| 384 |
+
def to_dict(self):
|
| 385 |
+
"""Returns the model properties as a dict"""
|
| 386 |
+
result = {}
|
| 387 |
+
|
| 388 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 389 |
+
value = getattr(self, attr)
|
| 390 |
+
if isinstance(value, list):
|
| 391 |
+
result[attr] = list(map(
|
| 392 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 393 |
+
value
|
| 394 |
+
))
|
| 395 |
+
elif hasattr(value, "to_dict"):
|
| 396 |
+
result[attr] = value.to_dict()
|
| 397 |
+
elif isinstance(value, dict):
|
| 398 |
+
result[attr] = dict(map(
|
| 399 |
+
lambda item: (item[0], item[1].to_dict())
|
| 400 |
+
if hasattr(item[1], "to_dict") else item,
|
| 401 |
+
value.items()
|
| 402 |
+
))
|
| 403 |
+
else:
|
| 404 |
+
result[attr] = value
|
| 405 |
+
|
| 406 |
+
return result
|
| 407 |
+
|
| 408 |
+
def to_str(self):
|
| 409 |
+
"""Returns the string representation of the model"""
|
| 410 |
+
return pprint.pformat(self.to_dict())
|
| 411 |
+
|
| 412 |
+
def __repr__(self):
|
| 413 |
+
"""For `print` and `pprint`"""
|
| 414 |
+
return self.to_str()
|
| 415 |
+
|
| 416 |
+
def __eq__(self, other):
|
| 417 |
+
"""Returns true if both objects are equal"""
|
| 418 |
+
if not isinstance(other, V1MutatingWebhook):
|
| 419 |
+
return False
|
| 420 |
+
|
| 421 |
+
return self.to_dict() == other.to_dict()
|
| 422 |
+
|
| 423 |
+
def __ne__(self, other):
|
| 424 |
+
"""Returns true if both objects are not equal"""
|
| 425 |
+
if not isinstance(other, V1MutatingWebhook):
|
| 426 |
+
return True
|
| 427 |
+
|
| 428 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook_configuration.py
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1MutatingWebhookConfiguration(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'kind': 'str',
|
| 38 |
+
'metadata': 'V1ObjectMeta',
|
| 39 |
+
'webhooks': 'list[V1MutatingWebhook]'
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
attribute_map = {
|
| 43 |
+
'api_version': 'apiVersion',
|
| 44 |
+
'kind': 'kind',
|
| 45 |
+
'metadata': 'metadata',
|
| 46 |
+
'webhooks': 'webhooks'
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
def __init__(self, api_version=None, kind=None, metadata=None, webhooks=None, local_vars_configuration=None): # noqa: E501
|
| 50 |
+
"""V1MutatingWebhookConfiguration - a model defined in OpenAPI""" # noqa: E501
|
| 51 |
+
if local_vars_configuration is None:
|
| 52 |
+
local_vars_configuration = Configuration()
|
| 53 |
+
self.local_vars_configuration = local_vars_configuration
|
| 54 |
+
|
| 55 |
+
self._api_version = None
|
| 56 |
+
self._kind = None
|
| 57 |
+
self._metadata = None
|
| 58 |
+
self._webhooks = None
|
| 59 |
+
self.discriminator = None
|
| 60 |
+
|
| 61 |
+
if api_version is not None:
|
| 62 |
+
self.api_version = api_version
|
| 63 |
+
if kind is not None:
|
| 64 |
+
self.kind = kind
|
| 65 |
+
if metadata is not None:
|
| 66 |
+
self.metadata = metadata
|
| 67 |
+
if webhooks is not None:
|
| 68 |
+
self.webhooks = webhooks
|
| 69 |
+
|
| 70 |
+
@property
|
| 71 |
+
def api_version(self):
|
| 72 |
+
"""Gets the api_version of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 73 |
+
|
| 74 |
+
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: E501
|
| 75 |
+
|
| 76 |
+
:return: The api_version of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 77 |
+
:rtype: str
|
| 78 |
+
"""
|
| 79 |
+
return self._api_version
|
| 80 |
+
|
| 81 |
+
@api_version.setter
|
| 82 |
+
def api_version(self, api_version):
|
| 83 |
+
"""Sets the api_version of this V1MutatingWebhookConfiguration.
|
| 84 |
+
|
| 85 |
+
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: E501
|
| 86 |
+
|
| 87 |
+
:param api_version: The api_version of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 88 |
+
:type: str
|
| 89 |
+
"""
|
| 90 |
+
|
| 91 |
+
self._api_version = api_version
|
| 92 |
+
|
| 93 |
+
@property
|
| 94 |
+
def kind(self):
|
| 95 |
+
"""Gets the kind of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 96 |
+
|
| 97 |
+
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: E501
|
| 98 |
+
|
| 99 |
+
:return: The kind of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 100 |
+
:rtype: str
|
| 101 |
+
"""
|
| 102 |
+
return self._kind
|
| 103 |
+
|
| 104 |
+
@kind.setter
|
| 105 |
+
def kind(self, kind):
|
| 106 |
+
"""Sets the kind of this V1MutatingWebhookConfiguration.
|
| 107 |
+
|
| 108 |
+
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: E501
|
| 109 |
+
|
| 110 |
+
:param kind: The kind of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 111 |
+
:type: str
|
| 112 |
+
"""
|
| 113 |
+
|
| 114 |
+
self._kind = kind
|
| 115 |
+
|
| 116 |
+
@property
|
| 117 |
+
def metadata(self):
|
| 118 |
+
"""Gets the metadata of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
:return: The metadata of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 122 |
+
:rtype: V1ObjectMeta
|
| 123 |
+
"""
|
| 124 |
+
return self._metadata
|
| 125 |
+
|
| 126 |
+
@metadata.setter
|
| 127 |
+
def metadata(self, metadata):
|
| 128 |
+
"""Sets the metadata of this V1MutatingWebhookConfiguration.
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
:param metadata: The metadata of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 132 |
+
:type: V1ObjectMeta
|
| 133 |
+
"""
|
| 134 |
+
|
| 135 |
+
self._metadata = metadata
|
| 136 |
+
|
| 137 |
+
@property
|
| 138 |
+
def webhooks(self):
|
| 139 |
+
"""Gets the webhooks of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 140 |
+
|
| 141 |
+
Webhooks is a list of webhooks and the affected resources and operations. # noqa: E501
|
| 142 |
+
|
| 143 |
+
:return: The webhooks of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 144 |
+
:rtype: list[V1MutatingWebhook]
|
| 145 |
+
"""
|
| 146 |
+
return self._webhooks
|
| 147 |
+
|
| 148 |
+
@webhooks.setter
|
| 149 |
+
def webhooks(self, webhooks):
|
| 150 |
+
"""Sets the webhooks of this V1MutatingWebhookConfiguration.
|
| 151 |
+
|
| 152 |
+
Webhooks is a list of webhooks and the affected resources and operations. # noqa: E501
|
| 153 |
+
|
| 154 |
+
:param webhooks: The webhooks of this V1MutatingWebhookConfiguration. # noqa: E501
|
| 155 |
+
:type: list[V1MutatingWebhook]
|
| 156 |
+
"""
|
| 157 |
+
|
| 158 |
+
self._webhooks = webhooks
|
| 159 |
+
|
| 160 |
+
def to_dict(self):
|
| 161 |
+
"""Returns the model properties as a dict"""
|
| 162 |
+
result = {}
|
| 163 |
+
|
| 164 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 165 |
+
value = getattr(self, attr)
|
| 166 |
+
if isinstance(value, list):
|
| 167 |
+
result[attr] = list(map(
|
| 168 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 169 |
+
value
|
| 170 |
+
))
|
| 171 |
+
elif hasattr(value, "to_dict"):
|
| 172 |
+
result[attr] = value.to_dict()
|
| 173 |
+
elif isinstance(value, dict):
|
| 174 |
+
result[attr] = dict(map(
|
| 175 |
+
lambda item: (item[0], item[1].to_dict())
|
| 176 |
+
if hasattr(item[1], "to_dict") else item,
|
| 177 |
+
value.items()
|
| 178 |
+
))
|
| 179 |
+
else:
|
| 180 |
+
result[attr] = value
|
| 181 |
+
|
| 182 |
+
return result
|
| 183 |
+
|
| 184 |
+
def to_str(self):
|
| 185 |
+
"""Returns the string representation of the model"""
|
| 186 |
+
return pprint.pformat(self.to_dict())
|
| 187 |
+
|
| 188 |
+
def __repr__(self):
|
| 189 |
+
"""For `print` and `pprint`"""
|
| 190 |
+
return self.to_str()
|
| 191 |
+
|
| 192 |
+
def __eq__(self, other):
|
| 193 |
+
"""Returns true if both objects are equal"""
|
| 194 |
+
if not isinstance(other, V1MutatingWebhookConfiguration):
|
| 195 |
+
return False
|
| 196 |
+
|
| 197 |
+
return self.to_dict() == other.to_dict()
|
| 198 |
+
|
| 199 |
+
def __ne__(self, other):
|
| 200 |
+
"""Returns true if both objects are not equal"""
|
| 201 |
+
if not isinstance(other, V1MutatingWebhookConfiguration):
|
| 202 |
+
return True
|
| 203 |
+
|
| 204 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_mutating_webhook_configuration_list.py
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1MutatingWebhookConfigurationList(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'items': 'list[V1MutatingWebhookConfiguration]',
|
| 38 |
+
'kind': 'str',
|
| 39 |
+
'metadata': 'V1ListMeta'
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
attribute_map = {
|
| 43 |
+
'api_version': 'apiVersion',
|
| 44 |
+
'items': 'items',
|
| 45 |
+
'kind': 'kind',
|
| 46 |
+
'metadata': 'metadata'
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
| 50 |
+
"""V1MutatingWebhookConfigurationList - a model defined in OpenAPI""" # noqa: E501
|
| 51 |
+
if local_vars_configuration is None:
|
| 52 |
+
local_vars_configuration = Configuration()
|
| 53 |
+
self.local_vars_configuration = local_vars_configuration
|
| 54 |
+
|
| 55 |
+
self._api_version = None
|
| 56 |
+
self._items = None
|
| 57 |
+
self._kind = None
|
| 58 |
+
self._metadata = None
|
| 59 |
+
self.discriminator = None
|
| 60 |
+
|
| 61 |
+
if api_version is not None:
|
| 62 |
+
self.api_version = api_version
|
| 63 |
+
self.items = items
|
| 64 |
+
if kind is not None:
|
| 65 |
+
self.kind = kind
|
| 66 |
+
if metadata is not None:
|
| 67 |
+
self.metadata = metadata
|
| 68 |
+
|
| 69 |
+
@property
|
| 70 |
+
def api_version(self):
|
| 71 |
+
"""Gets the api_version of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 72 |
+
|
| 73 |
+
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: E501
|
| 74 |
+
|
| 75 |
+
:return: The api_version of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 76 |
+
:rtype: str
|
| 77 |
+
"""
|
| 78 |
+
return self._api_version
|
| 79 |
+
|
| 80 |
+
@api_version.setter
|
| 81 |
+
def api_version(self, api_version):
|
| 82 |
+
"""Sets the api_version of this V1MutatingWebhookConfigurationList.
|
| 83 |
+
|
| 84 |
+
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: E501
|
| 85 |
+
|
| 86 |
+
:param api_version: The api_version of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 87 |
+
:type: str
|
| 88 |
+
"""
|
| 89 |
+
|
| 90 |
+
self._api_version = api_version
|
| 91 |
+
|
| 92 |
+
@property
|
| 93 |
+
def items(self):
|
| 94 |
+
"""Gets the items of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 95 |
+
|
| 96 |
+
List of MutatingWebhookConfiguration. # noqa: E501
|
| 97 |
+
|
| 98 |
+
:return: The items of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 99 |
+
:rtype: list[V1MutatingWebhookConfiguration]
|
| 100 |
+
"""
|
| 101 |
+
return self._items
|
| 102 |
+
|
| 103 |
+
@items.setter
|
| 104 |
+
def items(self, items):
|
| 105 |
+
"""Sets the items of this V1MutatingWebhookConfigurationList.
|
| 106 |
+
|
| 107 |
+
List of MutatingWebhookConfiguration. # noqa: E501
|
| 108 |
+
|
| 109 |
+
:param items: The items of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 110 |
+
:type: list[V1MutatingWebhookConfiguration]
|
| 111 |
+
"""
|
| 112 |
+
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
| 113 |
+
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
| 114 |
+
|
| 115 |
+
self._items = items
|
| 116 |
+
|
| 117 |
+
@property
|
| 118 |
+
def kind(self):
|
| 119 |
+
"""Gets the kind of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 120 |
+
|
| 121 |
+
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: E501
|
| 122 |
+
|
| 123 |
+
:return: The kind of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 124 |
+
:rtype: str
|
| 125 |
+
"""
|
| 126 |
+
return self._kind
|
| 127 |
+
|
| 128 |
+
@kind.setter
|
| 129 |
+
def kind(self, kind):
|
| 130 |
+
"""Sets the kind of this V1MutatingWebhookConfigurationList.
|
| 131 |
+
|
| 132 |
+
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: E501
|
| 133 |
+
|
| 134 |
+
:param kind: The kind of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 135 |
+
:type: str
|
| 136 |
+
"""
|
| 137 |
+
|
| 138 |
+
self._kind = kind
|
| 139 |
+
|
| 140 |
+
@property
|
| 141 |
+
def metadata(self):
|
| 142 |
+
"""Gets the metadata of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
:return: The metadata of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 146 |
+
:rtype: V1ListMeta
|
| 147 |
+
"""
|
| 148 |
+
return self._metadata
|
| 149 |
+
|
| 150 |
+
@metadata.setter
|
| 151 |
+
def metadata(self, metadata):
|
| 152 |
+
"""Sets the metadata of this V1MutatingWebhookConfigurationList.
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
:param metadata: The metadata of this V1MutatingWebhookConfigurationList. # noqa: E501
|
| 156 |
+
:type: V1ListMeta
|
| 157 |
+
"""
|
| 158 |
+
|
| 159 |
+
self._metadata = metadata
|
| 160 |
+
|
| 161 |
+
def to_dict(self):
|
| 162 |
+
"""Returns the model properties as a dict"""
|
| 163 |
+
result = {}
|
| 164 |
+
|
| 165 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 166 |
+
value = getattr(self, attr)
|
| 167 |
+
if isinstance(value, list):
|
| 168 |
+
result[attr] = list(map(
|
| 169 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 170 |
+
value
|
| 171 |
+
))
|
| 172 |
+
elif hasattr(value, "to_dict"):
|
| 173 |
+
result[attr] = value.to_dict()
|
| 174 |
+
elif isinstance(value, dict):
|
| 175 |
+
result[attr] = dict(map(
|
| 176 |
+
lambda item: (item[0], item[1].to_dict())
|
| 177 |
+
if hasattr(item[1], "to_dict") else item,
|
| 178 |
+
value.items()
|
| 179 |
+
))
|
| 180 |
+
else:
|
| 181 |
+
result[attr] = value
|
| 182 |
+
|
| 183 |
+
return result
|
| 184 |
+
|
| 185 |
+
def to_str(self):
|
| 186 |
+
"""Returns the string representation of the model"""
|
| 187 |
+
return pprint.pformat(self.to_dict())
|
| 188 |
+
|
| 189 |
+
def __repr__(self):
|
| 190 |
+
"""For `print` and `pprint`"""
|
| 191 |
+
return self.to_str()
|
| 192 |
+
|
| 193 |
+
def __eq__(self, other):
|
| 194 |
+
"""Returns true if both objects are equal"""
|
| 195 |
+
if not isinstance(other, V1MutatingWebhookConfigurationList):
|
| 196 |
+
return False
|
| 197 |
+
|
| 198 |
+
return self.to_dict() == other.to_dict()
|
| 199 |
+
|
| 200 |
+
def __ne__(self, other):
|
| 201 |
+
"""Returns true if both objects are not equal"""
|
| 202 |
+
if not isinstance(other, V1MutatingWebhookConfigurationList):
|
| 203 |
+
return True
|
| 204 |
+
|
| 205 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_named_rule_with_operations.py
ADDED
|
@@ -0,0 +1,262 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NamedRuleWithOperations(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_groups': 'list[str]',
|
| 37 |
+
'api_versions': 'list[str]',
|
| 38 |
+
'operations': 'list[str]',
|
| 39 |
+
'resource_names': 'list[str]',
|
| 40 |
+
'resources': 'list[str]',
|
| 41 |
+
'scope': 'str'
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
attribute_map = {
|
| 45 |
+
'api_groups': 'apiGroups',
|
| 46 |
+
'api_versions': 'apiVersions',
|
| 47 |
+
'operations': 'operations',
|
| 48 |
+
'resource_names': 'resourceNames',
|
| 49 |
+
'resources': 'resources',
|
| 50 |
+
'scope': 'scope'
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
def __init__(self, api_groups=None, api_versions=None, operations=None, resource_names=None, resources=None, scope=None, local_vars_configuration=None): # noqa: E501
|
| 54 |
+
"""V1NamedRuleWithOperations - a model defined in OpenAPI""" # noqa: E501
|
| 55 |
+
if local_vars_configuration is None:
|
| 56 |
+
local_vars_configuration = Configuration()
|
| 57 |
+
self.local_vars_configuration = local_vars_configuration
|
| 58 |
+
|
| 59 |
+
self._api_groups = None
|
| 60 |
+
self._api_versions = None
|
| 61 |
+
self._operations = None
|
| 62 |
+
self._resource_names = None
|
| 63 |
+
self._resources = None
|
| 64 |
+
self._scope = None
|
| 65 |
+
self.discriminator = None
|
| 66 |
+
|
| 67 |
+
if api_groups is not None:
|
| 68 |
+
self.api_groups = api_groups
|
| 69 |
+
if api_versions is not None:
|
| 70 |
+
self.api_versions = api_versions
|
| 71 |
+
if operations is not None:
|
| 72 |
+
self.operations = operations
|
| 73 |
+
if resource_names is not None:
|
| 74 |
+
self.resource_names = resource_names
|
| 75 |
+
if resources is not None:
|
| 76 |
+
self.resources = resources
|
| 77 |
+
if scope is not None:
|
| 78 |
+
self.scope = scope
|
| 79 |
+
|
| 80 |
+
@property
|
| 81 |
+
def api_groups(self):
|
| 82 |
+
"""Gets the api_groups of this V1NamedRuleWithOperations. # noqa: E501
|
| 83 |
+
|
| 84 |
+
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. # noqa: E501
|
| 85 |
+
|
| 86 |
+
:return: The api_groups of this V1NamedRuleWithOperations. # noqa: E501
|
| 87 |
+
:rtype: list[str]
|
| 88 |
+
"""
|
| 89 |
+
return self._api_groups
|
| 90 |
+
|
| 91 |
+
@api_groups.setter
|
| 92 |
+
def api_groups(self, api_groups):
|
| 93 |
+
"""Sets the api_groups of this V1NamedRuleWithOperations.
|
| 94 |
+
|
| 95 |
+
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. # noqa: E501
|
| 96 |
+
|
| 97 |
+
:param api_groups: The api_groups of this V1NamedRuleWithOperations. # noqa: E501
|
| 98 |
+
:type: list[str]
|
| 99 |
+
"""
|
| 100 |
+
|
| 101 |
+
self._api_groups = api_groups
|
| 102 |
+
|
| 103 |
+
@property
|
| 104 |
+
def api_versions(self):
|
| 105 |
+
"""Gets the api_versions of this V1NamedRuleWithOperations. # noqa: E501
|
| 106 |
+
|
| 107 |
+
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. # noqa: E501
|
| 108 |
+
|
| 109 |
+
:return: The api_versions of this V1NamedRuleWithOperations. # noqa: E501
|
| 110 |
+
:rtype: list[str]
|
| 111 |
+
"""
|
| 112 |
+
return self._api_versions
|
| 113 |
+
|
| 114 |
+
@api_versions.setter
|
| 115 |
+
def api_versions(self, api_versions):
|
| 116 |
+
"""Sets the api_versions of this V1NamedRuleWithOperations.
|
| 117 |
+
|
| 118 |
+
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. # noqa: E501
|
| 119 |
+
|
| 120 |
+
:param api_versions: The api_versions of this V1NamedRuleWithOperations. # noqa: E501
|
| 121 |
+
:type: list[str]
|
| 122 |
+
"""
|
| 123 |
+
|
| 124 |
+
self._api_versions = api_versions
|
| 125 |
+
|
| 126 |
+
@property
|
| 127 |
+
def operations(self):
|
| 128 |
+
"""Gets the operations of this V1NamedRuleWithOperations. # noqa: E501
|
| 129 |
+
|
| 130 |
+
Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. # noqa: E501
|
| 131 |
+
|
| 132 |
+
:return: The operations of this V1NamedRuleWithOperations. # noqa: E501
|
| 133 |
+
:rtype: list[str]
|
| 134 |
+
"""
|
| 135 |
+
return self._operations
|
| 136 |
+
|
| 137 |
+
@operations.setter
|
| 138 |
+
def operations(self, operations):
|
| 139 |
+
"""Sets the operations of this V1NamedRuleWithOperations.
|
| 140 |
+
|
| 141 |
+
Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. # noqa: E501
|
| 142 |
+
|
| 143 |
+
:param operations: The operations of this V1NamedRuleWithOperations. # noqa: E501
|
| 144 |
+
:type: list[str]
|
| 145 |
+
"""
|
| 146 |
+
|
| 147 |
+
self._operations = operations
|
| 148 |
+
|
| 149 |
+
@property
|
| 150 |
+
def resource_names(self):
|
| 151 |
+
"""Gets the resource_names of this V1NamedRuleWithOperations. # noqa: E501
|
| 152 |
+
|
| 153 |
+
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501
|
| 154 |
+
|
| 155 |
+
:return: The resource_names of this V1NamedRuleWithOperations. # noqa: E501
|
| 156 |
+
:rtype: list[str]
|
| 157 |
+
"""
|
| 158 |
+
return self._resource_names
|
| 159 |
+
|
| 160 |
+
@resource_names.setter
|
| 161 |
+
def resource_names(self, resource_names):
|
| 162 |
+
"""Sets the resource_names of this V1NamedRuleWithOperations.
|
| 163 |
+
|
| 164 |
+
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. # noqa: E501
|
| 165 |
+
|
| 166 |
+
:param resource_names: The resource_names of this V1NamedRuleWithOperations. # noqa: E501
|
| 167 |
+
:type: list[str]
|
| 168 |
+
"""
|
| 169 |
+
|
| 170 |
+
self._resource_names = resource_names
|
| 171 |
+
|
| 172 |
+
@property
|
| 173 |
+
def resources(self):
|
| 174 |
+
"""Gets the resources of this V1NamedRuleWithOperations. # noqa: E501
|
| 175 |
+
|
| 176 |
+
Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. # noqa: E501
|
| 177 |
+
|
| 178 |
+
:return: The resources of this V1NamedRuleWithOperations. # noqa: E501
|
| 179 |
+
:rtype: list[str]
|
| 180 |
+
"""
|
| 181 |
+
return self._resources
|
| 182 |
+
|
| 183 |
+
@resources.setter
|
| 184 |
+
def resources(self, resources):
|
| 185 |
+
"""Sets the resources of this V1NamedRuleWithOperations.
|
| 186 |
+
|
| 187 |
+
Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. # noqa: E501
|
| 188 |
+
|
| 189 |
+
:param resources: The resources of this V1NamedRuleWithOperations. # noqa: E501
|
| 190 |
+
:type: list[str]
|
| 191 |
+
"""
|
| 192 |
+
|
| 193 |
+
self._resources = resources
|
| 194 |
+
|
| 195 |
+
@property
|
| 196 |
+
def scope(self):
|
| 197 |
+
"""Gets the scope of this V1NamedRuleWithOperations. # noqa: E501
|
| 198 |
+
|
| 199 |
+
scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". # noqa: E501
|
| 200 |
+
|
| 201 |
+
:return: The scope of this V1NamedRuleWithOperations. # noqa: E501
|
| 202 |
+
:rtype: str
|
| 203 |
+
"""
|
| 204 |
+
return self._scope
|
| 205 |
+
|
| 206 |
+
@scope.setter
|
| 207 |
+
def scope(self, scope):
|
| 208 |
+
"""Sets the scope of this V1NamedRuleWithOperations.
|
| 209 |
+
|
| 210 |
+
scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". # noqa: E501
|
| 211 |
+
|
| 212 |
+
:param scope: The scope of this V1NamedRuleWithOperations. # noqa: E501
|
| 213 |
+
:type: str
|
| 214 |
+
"""
|
| 215 |
+
|
| 216 |
+
self._scope = scope
|
| 217 |
+
|
| 218 |
+
def to_dict(self):
|
| 219 |
+
"""Returns the model properties as a dict"""
|
| 220 |
+
result = {}
|
| 221 |
+
|
| 222 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 223 |
+
value = getattr(self, attr)
|
| 224 |
+
if isinstance(value, list):
|
| 225 |
+
result[attr] = list(map(
|
| 226 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 227 |
+
value
|
| 228 |
+
))
|
| 229 |
+
elif hasattr(value, "to_dict"):
|
| 230 |
+
result[attr] = value.to_dict()
|
| 231 |
+
elif isinstance(value, dict):
|
| 232 |
+
result[attr] = dict(map(
|
| 233 |
+
lambda item: (item[0], item[1].to_dict())
|
| 234 |
+
if hasattr(item[1], "to_dict") else item,
|
| 235 |
+
value.items()
|
| 236 |
+
))
|
| 237 |
+
else:
|
| 238 |
+
result[attr] = value
|
| 239 |
+
|
| 240 |
+
return result
|
| 241 |
+
|
| 242 |
+
def to_str(self):
|
| 243 |
+
"""Returns the string representation of the model"""
|
| 244 |
+
return pprint.pformat(self.to_dict())
|
| 245 |
+
|
| 246 |
+
def __repr__(self):
|
| 247 |
+
"""For `print` and `pprint`"""
|
| 248 |
+
return self.to_str()
|
| 249 |
+
|
| 250 |
+
def __eq__(self, other):
|
| 251 |
+
"""Returns true if both objects are equal"""
|
| 252 |
+
if not isinstance(other, V1NamedRuleWithOperations):
|
| 253 |
+
return False
|
| 254 |
+
|
| 255 |
+
return self.to_dict() == other.to_dict()
|
| 256 |
+
|
| 257 |
+
def __ne__(self, other):
|
| 258 |
+
"""Returns true if both objects are not equal"""
|
| 259 |
+
if not isinstance(other, V1NamedRuleWithOperations):
|
| 260 |
+
return True
|
| 261 |
+
|
| 262 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace.py
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1Namespace(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'kind': 'str',
|
| 38 |
+
'metadata': 'V1ObjectMeta',
|
| 39 |
+
'spec': 'V1NamespaceSpec',
|
| 40 |
+
'status': 'V1NamespaceStatus'
|
| 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: E501
|
| 52 |
+
"""V1Namespace - a model defined in OpenAPI""" # noqa: E501
|
| 53 |
+
if local_vars_configuration is None:
|
| 54 |
+
local_vars_configuration = Configuration()
|
| 55 |
+
self.local_vars_configuration = local_vars_configuration
|
| 56 |
+
|
| 57 |
+
self._api_version = None
|
| 58 |
+
self._kind = None
|
| 59 |
+
self._metadata = None
|
| 60 |
+
self._spec = None
|
| 61 |
+
self._status = None
|
| 62 |
+
self.discriminator = None
|
| 63 |
+
|
| 64 |
+
if api_version is not None:
|
| 65 |
+
self.api_version = api_version
|
| 66 |
+
if kind is not None:
|
| 67 |
+
self.kind = kind
|
| 68 |
+
if metadata is not None:
|
| 69 |
+
self.metadata = metadata
|
| 70 |
+
if spec is not None:
|
| 71 |
+
self.spec = spec
|
| 72 |
+
if status is not None:
|
| 73 |
+
self.status = status
|
| 74 |
+
|
| 75 |
+
@property
|
| 76 |
+
def api_version(self):
|
| 77 |
+
"""Gets the api_version of this V1Namespace. # noqa: E501
|
| 78 |
+
|
| 79 |
+
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: E501
|
| 80 |
+
|
| 81 |
+
:return: The api_version of this V1Namespace. # noqa: E501
|
| 82 |
+
:rtype: str
|
| 83 |
+
"""
|
| 84 |
+
return self._api_version
|
| 85 |
+
|
| 86 |
+
@api_version.setter
|
| 87 |
+
def api_version(self, api_version):
|
| 88 |
+
"""Sets the api_version of this V1Namespace.
|
| 89 |
+
|
| 90 |
+
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: E501
|
| 91 |
+
|
| 92 |
+
:param api_version: The api_version of this V1Namespace. # noqa: E501
|
| 93 |
+
:type: str
|
| 94 |
+
"""
|
| 95 |
+
|
| 96 |
+
self._api_version = api_version
|
| 97 |
+
|
| 98 |
+
@property
|
| 99 |
+
def kind(self):
|
| 100 |
+
"""Gets the kind of this V1Namespace. # noqa: E501
|
| 101 |
+
|
| 102 |
+
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: E501
|
| 103 |
+
|
| 104 |
+
:return: The kind of this V1Namespace. # noqa: E501
|
| 105 |
+
:rtype: str
|
| 106 |
+
"""
|
| 107 |
+
return self._kind
|
| 108 |
+
|
| 109 |
+
@kind.setter
|
| 110 |
+
def kind(self, kind):
|
| 111 |
+
"""Sets the kind of this V1Namespace.
|
| 112 |
+
|
| 113 |
+
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: E501
|
| 114 |
+
|
| 115 |
+
:param kind: The kind of this V1Namespace. # noqa: E501
|
| 116 |
+
:type: str
|
| 117 |
+
"""
|
| 118 |
+
|
| 119 |
+
self._kind = kind
|
| 120 |
+
|
| 121 |
+
@property
|
| 122 |
+
def metadata(self):
|
| 123 |
+
"""Gets the metadata of this V1Namespace. # noqa: E501
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
:return: The metadata of this V1Namespace. # noqa: E501
|
| 127 |
+
:rtype: V1ObjectMeta
|
| 128 |
+
"""
|
| 129 |
+
return self._metadata
|
| 130 |
+
|
| 131 |
+
@metadata.setter
|
| 132 |
+
def metadata(self, metadata):
|
| 133 |
+
"""Sets the metadata of this V1Namespace.
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
:param metadata: The metadata of this V1Namespace. # noqa: E501
|
| 137 |
+
:type: V1ObjectMeta
|
| 138 |
+
"""
|
| 139 |
+
|
| 140 |
+
self._metadata = metadata
|
| 141 |
+
|
| 142 |
+
@property
|
| 143 |
+
def spec(self):
|
| 144 |
+
"""Gets the spec of this V1Namespace. # noqa: E501
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
:return: The spec of this V1Namespace. # noqa: E501
|
| 148 |
+
:rtype: V1NamespaceSpec
|
| 149 |
+
"""
|
| 150 |
+
return self._spec
|
| 151 |
+
|
| 152 |
+
@spec.setter
|
| 153 |
+
def spec(self, spec):
|
| 154 |
+
"""Sets the spec of this V1Namespace.
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
:param spec: The spec of this V1Namespace. # noqa: E501
|
| 158 |
+
:type: V1NamespaceSpec
|
| 159 |
+
"""
|
| 160 |
+
|
| 161 |
+
self._spec = spec
|
| 162 |
+
|
| 163 |
+
@property
|
| 164 |
+
def status(self):
|
| 165 |
+
"""Gets the status of this V1Namespace. # noqa: E501
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
:return: The status of this V1Namespace. # noqa: E501
|
| 169 |
+
:rtype: V1NamespaceStatus
|
| 170 |
+
"""
|
| 171 |
+
return self._status
|
| 172 |
+
|
| 173 |
+
@status.setter
|
| 174 |
+
def status(self, status):
|
| 175 |
+
"""Sets the status of this V1Namespace.
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
:param status: The status of this V1Namespace. # noqa: E501
|
| 179 |
+
:type: V1NamespaceStatus
|
| 180 |
+
"""
|
| 181 |
+
|
| 182 |
+
self._status = status
|
| 183 |
+
|
| 184 |
+
def to_dict(self):
|
| 185 |
+
"""Returns the model properties as a dict"""
|
| 186 |
+
result = {}
|
| 187 |
+
|
| 188 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 189 |
+
value = getattr(self, attr)
|
| 190 |
+
if isinstance(value, list):
|
| 191 |
+
result[attr] = list(map(
|
| 192 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 193 |
+
value
|
| 194 |
+
))
|
| 195 |
+
elif hasattr(value, "to_dict"):
|
| 196 |
+
result[attr] = value.to_dict()
|
| 197 |
+
elif isinstance(value, dict):
|
| 198 |
+
result[attr] = dict(map(
|
| 199 |
+
lambda item: (item[0], item[1].to_dict())
|
| 200 |
+
if hasattr(item[1], "to_dict") else item,
|
| 201 |
+
value.items()
|
| 202 |
+
))
|
| 203 |
+
else:
|
| 204 |
+
result[attr] = value
|
| 205 |
+
|
| 206 |
+
return result
|
| 207 |
+
|
| 208 |
+
def to_str(self):
|
| 209 |
+
"""Returns the string representation of the model"""
|
| 210 |
+
return pprint.pformat(self.to_dict())
|
| 211 |
+
|
| 212 |
+
def __repr__(self):
|
| 213 |
+
"""For `print` and `pprint`"""
|
| 214 |
+
return self.to_str()
|
| 215 |
+
|
| 216 |
+
def __eq__(self, other):
|
| 217 |
+
"""Returns true if both objects are equal"""
|
| 218 |
+
if not isinstance(other, V1Namespace):
|
| 219 |
+
return False
|
| 220 |
+
|
| 221 |
+
return self.to_dict() == other.to_dict()
|
| 222 |
+
|
| 223 |
+
def __ne__(self, other):
|
| 224 |
+
"""Returns true if both objects are not equal"""
|
| 225 |
+
if not isinstance(other, V1Namespace):
|
| 226 |
+
return True
|
| 227 |
+
|
| 228 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_condition.py
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NamespaceCondition(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'last_transition_time': 'datetime',
|
| 37 |
+
'message': 'str',
|
| 38 |
+
'reason': 'str',
|
| 39 |
+
'status': 'str',
|
| 40 |
+
'type': 'str'
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
attribute_map = {
|
| 44 |
+
'last_transition_time': 'lastTransitionTime',
|
| 45 |
+
'message': 'message',
|
| 46 |
+
'reason': 'reason',
|
| 47 |
+
'status': 'status',
|
| 48 |
+
'type': 'type'
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
def __init__(self, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501
|
| 52 |
+
"""V1NamespaceCondition - a model defined in OpenAPI""" # noqa: E501
|
| 53 |
+
if local_vars_configuration is None:
|
| 54 |
+
local_vars_configuration = Configuration()
|
| 55 |
+
self.local_vars_configuration = local_vars_configuration
|
| 56 |
+
|
| 57 |
+
self._last_transition_time = None
|
| 58 |
+
self._message = None
|
| 59 |
+
self._reason = None
|
| 60 |
+
self._status = None
|
| 61 |
+
self._type = None
|
| 62 |
+
self.discriminator = None
|
| 63 |
+
|
| 64 |
+
if last_transition_time is not None:
|
| 65 |
+
self.last_transition_time = last_transition_time
|
| 66 |
+
if message is not None:
|
| 67 |
+
self.message = message
|
| 68 |
+
if reason is not None:
|
| 69 |
+
self.reason = reason
|
| 70 |
+
self.status = status
|
| 71 |
+
self.type = type
|
| 72 |
+
|
| 73 |
+
@property
|
| 74 |
+
def last_transition_time(self):
|
| 75 |
+
"""Gets the last_transition_time of this V1NamespaceCondition. # noqa: E501
|
| 76 |
+
|
| 77 |
+
Last time the condition transitioned from one status to another. # noqa: E501
|
| 78 |
+
|
| 79 |
+
:return: The last_transition_time of this V1NamespaceCondition. # noqa: E501
|
| 80 |
+
:rtype: datetime
|
| 81 |
+
"""
|
| 82 |
+
return self._last_transition_time
|
| 83 |
+
|
| 84 |
+
@last_transition_time.setter
|
| 85 |
+
def last_transition_time(self, last_transition_time):
|
| 86 |
+
"""Sets the last_transition_time of this V1NamespaceCondition.
|
| 87 |
+
|
| 88 |
+
Last time the condition transitioned from one status to another. # noqa: E501
|
| 89 |
+
|
| 90 |
+
:param last_transition_time: The last_transition_time of this V1NamespaceCondition. # noqa: E501
|
| 91 |
+
:type: datetime
|
| 92 |
+
"""
|
| 93 |
+
|
| 94 |
+
self._last_transition_time = last_transition_time
|
| 95 |
+
|
| 96 |
+
@property
|
| 97 |
+
def message(self):
|
| 98 |
+
"""Gets the message of this V1NamespaceCondition. # noqa: E501
|
| 99 |
+
|
| 100 |
+
Human-readable message indicating details about last transition. # noqa: E501
|
| 101 |
+
|
| 102 |
+
:return: The message of this V1NamespaceCondition. # noqa: E501
|
| 103 |
+
:rtype: str
|
| 104 |
+
"""
|
| 105 |
+
return self._message
|
| 106 |
+
|
| 107 |
+
@message.setter
|
| 108 |
+
def message(self, message):
|
| 109 |
+
"""Sets the message of this V1NamespaceCondition.
|
| 110 |
+
|
| 111 |
+
Human-readable message indicating details about last transition. # noqa: E501
|
| 112 |
+
|
| 113 |
+
:param message: The message of this V1NamespaceCondition. # noqa: E501
|
| 114 |
+
:type: str
|
| 115 |
+
"""
|
| 116 |
+
|
| 117 |
+
self._message = message
|
| 118 |
+
|
| 119 |
+
@property
|
| 120 |
+
def reason(self):
|
| 121 |
+
"""Gets the reason of this V1NamespaceCondition. # noqa: E501
|
| 122 |
+
|
| 123 |
+
Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501
|
| 124 |
+
|
| 125 |
+
:return: The reason of this V1NamespaceCondition. # noqa: E501
|
| 126 |
+
:rtype: str
|
| 127 |
+
"""
|
| 128 |
+
return self._reason
|
| 129 |
+
|
| 130 |
+
@reason.setter
|
| 131 |
+
def reason(self, reason):
|
| 132 |
+
"""Sets the reason of this V1NamespaceCondition.
|
| 133 |
+
|
| 134 |
+
Unique, one-word, CamelCase reason for the condition's last transition. # noqa: E501
|
| 135 |
+
|
| 136 |
+
:param reason: The reason of this V1NamespaceCondition. # noqa: E501
|
| 137 |
+
:type: str
|
| 138 |
+
"""
|
| 139 |
+
|
| 140 |
+
self._reason = reason
|
| 141 |
+
|
| 142 |
+
@property
|
| 143 |
+
def status(self):
|
| 144 |
+
"""Gets the status of this V1NamespaceCondition. # noqa: E501
|
| 145 |
+
|
| 146 |
+
Status of the condition, one of True, False, Unknown. # noqa: E501
|
| 147 |
+
|
| 148 |
+
:return: The status of this V1NamespaceCondition. # noqa: E501
|
| 149 |
+
:rtype: str
|
| 150 |
+
"""
|
| 151 |
+
return self._status
|
| 152 |
+
|
| 153 |
+
@status.setter
|
| 154 |
+
def status(self, status):
|
| 155 |
+
"""Sets the status of this V1NamespaceCondition.
|
| 156 |
+
|
| 157 |
+
Status of the condition, one of True, False, Unknown. # noqa: E501
|
| 158 |
+
|
| 159 |
+
:param status: The status of this V1NamespaceCondition. # noqa: E501
|
| 160 |
+
:type: str
|
| 161 |
+
"""
|
| 162 |
+
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
|
| 163 |
+
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
| 164 |
+
|
| 165 |
+
self._status = status
|
| 166 |
+
|
| 167 |
+
@property
|
| 168 |
+
def type(self):
|
| 169 |
+
"""Gets the type of this V1NamespaceCondition. # noqa: E501
|
| 170 |
+
|
| 171 |
+
Type of namespace controller condition. # noqa: E501
|
| 172 |
+
|
| 173 |
+
:return: The type of this V1NamespaceCondition. # noqa: E501
|
| 174 |
+
:rtype: str
|
| 175 |
+
"""
|
| 176 |
+
return self._type
|
| 177 |
+
|
| 178 |
+
@type.setter
|
| 179 |
+
def type(self, type):
|
| 180 |
+
"""Sets the type of this V1NamespaceCondition.
|
| 181 |
+
|
| 182 |
+
Type of namespace controller condition. # noqa: E501
|
| 183 |
+
|
| 184 |
+
:param type: The type of this V1NamespaceCondition. # noqa: E501
|
| 185 |
+
:type: str
|
| 186 |
+
"""
|
| 187 |
+
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
|
| 188 |
+
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
| 189 |
+
|
| 190 |
+
self._type = type
|
| 191 |
+
|
| 192 |
+
def to_dict(self):
|
| 193 |
+
"""Returns the model properties as a dict"""
|
| 194 |
+
result = {}
|
| 195 |
+
|
| 196 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 197 |
+
value = getattr(self, attr)
|
| 198 |
+
if isinstance(value, list):
|
| 199 |
+
result[attr] = list(map(
|
| 200 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 201 |
+
value
|
| 202 |
+
))
|
| 203 |
+
elif hasattr(value, "to_dict"):
|
| 204 |
+
result[attr] = value.to_dict()
|
| 205 |
+
elif isinstance(value, dict):
|
| 206 |
+
result[attr] = dict(map(
|
| 207 |
+
lambda item: (item[0], item[1].to_dict())
|
| 208 |
+
if hasattr(item[1], "to_dict") else item,
|
| 209 |
+
value.items()
|
| 210 |
+
))
|
| 211 |
+
else:
|
| 212 |
+
result[attr] = value
|
| 213 |
+
|
| 214 |
+
return result
|
| 215 |
+
|
| 216 |
+
def to_str(self):
|
| 217 |
+
"""Returns the string representation of the model"""
|
| 218 |
+
return pprint.pformat(self.to_dict())
|
| 219 |
+
|
| 220 |
+
def __repr__(self):
|
| 221 |
+
"""For `print` and `pprint`"""
|
| 222 |
+
return self.to_str()
|
| 223 |
+
|
| 224 |
+
def __eq__(self, other):
|
| 225 |
+
"""Returns true if both objects are equal"""
|
| 226 |
+
if not isinstance(other, V1NamespaceCondition):
|
| 227 |
+
return False
|
| 228 |
+
|
| 229 |
+
return self.to_dict() == other.to_dict()
|
| 230 |
+
|
| 231 |
+
def __ne__(self, other):
|
| 232 |
+
"""Returns true if both objects are not equal"""
|
| 233 |
+
if not isinstance(other, V1NamespaceCondition):
|
| 234 |
+
return True
|
| 235 |
+
|
| 236 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_list.py
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NamespaceList(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'items': 'list[V1Namespace]',
|
| 38 |
+
'kind': 'str',
|
| 39 |
+
'metadata': 'V1ListMeta'
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
attribute_map = {
|
| 43 |
+
'api_version': 'apiVersion',
|
| 44 |
+
'items': 'items',
|
| 45 |
+
'kind': 'kind',
|
| 46 |
+
'metadata': 'metadata'
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
| 50 |
+
"""V1NamespaceList - a model defined in OpenAPI""" # noqa: E501
|
| 51 |
+
if local_vars_configuration is None:
|
| 52 |
+
local_vars_configuration = Configuration()
|
| 53 |
+
self.local_vars_configuration = local_vars_configuration
|
| 54 |
+
|
| 55 |
+
self._api_version = None
|
| 56 |
+
self._items = None
|
| 57 |
+
self._kind = None
|
| 58 |
+
self._metadata = None
|
| 59 |
+
self.discriminator = None
|
| 60 |
+
|
| 61 |
+
if api_version is not None:
|
| 62 |
+
self.api_version = api_version
|
| 63 |
+
self.items = items
|
| 64 |
+
if kind is not None:
|
| 65 |
+
self.kind = kind
|
| 66 |
+
if metadata is not None:
|
| 67 |
+
self.metadata = metadata
|
| 68 |
+
|
| 69 |
+
@property
|
| 70 |
+
def api_version(self):
|
| 71 |
+
"""Gets the api_version of this V1NamespaceList. # noqa: E501
|
| 72 |
+
|
| 73 |
+
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: E501
|
| 74 |
+
|
| 75 |
+
:return: The api_version of this V1NamespaceList. # noqa: E501
|
| 76 |
+
:rtype: str
|
| 77 |
+
"""
|
| 78 |
+
return self._api_version
|
| 79 |
+
|
| 80 |
+
@api_version.setter
|
| 81 |
+
def api_version(self, api_version):
|
| 82 |
+
"""Sets the api_version of this V1NamespaceList.
|
| 83 |
+
|
| 84 |
+
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: E501
|
| 85 |
+
|
| 86 |
+
:param api_version: The api_version of this V1NamespaceList. # noqa: E501
|
| 87 |
+
:type: str
|
| 88 |
+
"""
|
| 89 |
+
|
| 90 |
+
self._api_version = api_version
|
| 91 |
+
|
| 92 |
+
@property
|
| 93 |
+
def items(self):
|
| 94 |
+
"""Gets the items of this V1NamespaceList. # noqa: E501
|
| 95 |
+
|
| 96 |
+
Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501
|
| 97 |
+
|
| 98 |
+
:return: The items of this V1NamespaceList. # noqa: E501
|
| 99 |
+
:rtype: list[V1Namespace]
|
| 100 |
+
"""
|
| 101 |
+
return self._items
|
| 102 |
+
|
| 103 |
+
@items.setter
|
| 104 |
+
def items(self, items):
|
| 105 |
+
"""Sets the items of this V1NamespaceList.
|
| 106 |
+
|
| 107 |
+
Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ # noqa: E501
|
| 108 |
+
|
| 109 |
+
:param items: The items of this V1NamespaceList. # noqa: E501
|
| 110 |
+
:type: list[V1Namespace]
|
| 111 |
+
"""
|
| 112 |
+
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
| 113 |
+
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
| 114 |
+
|
| 115 |
+
self._items = items
|
| 116 |
+
|
| 117 |
+
@property
|
| 118 |
+
def kind(self):
|
| 119 |
+
"""Gets the kind of this V1NamespaceList. # noqa: E501
|
| 120 |
+
|
| 121 |
+
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: E501
|
| 122 |
+
|
| 123 |
+
:return: The kind of this V1NamespaceList. # noqa: E501
|
| 124 |
+
:rtype: str
|
| 125 |
+
"""
|
| 126 |
+
return self._kind
|
| 127 |
+
|
| 128 |
+
@kind.setter
|
| 129 |
+
def kind(self, kind):
|
| 130 |
+
"""Sets the kind of this V1NamespaceList.
|
| 131 |
+
|
| 132 |
+
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: E501
|
| 133 |
+
|
| 134 |
+
:param kind: The kind of this V1NamespaceList. # noqa: E501
|
| 135 |
+
:type: str
|
| 136 |
+
"""
|
| 137 |
+
|
| 138 |
+
self._kind = kind
|
| 139 |
+
|
| 140 |
+
@property
|
| 141 |
+
def metadata(self):
|
| 142 |
+
"""Gets the metadata of this V1NamespaceList. # noqa: E501
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
:return: The metadata of this V1NamespaceList. # noqa: E501
|
| 146 |
+
:rtype: V1ListMeta
|
| 147 |
+
"""
|
| 148 |
+
return self._metadata
|
| 149 |
+
|
| 150 |
+
@metadata.setter
|
| 151 |
+
def metadata(self, metadata):
|
| 152 |
+
"""Sets the metadata of this V1NamespaceList.
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
:param metadata: The metadata of this V1NamespaceList. # noqa: E501
|
| 156 |
+
:type: V1ListMeta
|
| 157 |
+
"""
|
| 158 |
+
|
| 159 |
+
self._metadata = metadata
|
| 160 |
+
|
| 161 |
+
def to_dict(self):
|
| 162 |
+
"""Returns the model properties as a dict"""
|
| 163 |
+
result = {}
|
| 164 |
+
|
| 165 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 166 |
+
value = getattr(self, attr)
|
| 167 |
+
if isinstance(value, list):
|
| 168 |
+
result[attr] = list(map(
|
| 169 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 170 |
+
value
|
| 171 |
+
))
|
| 172 |
+
elif hasattr(value, "to_dict"):
|
| 173 |
+
result[attr] = value.to_dict()
|
| 174 |
+
elif isinstance(value, dict):
|
| 175 |
+
result[attr] = dict(map(
|
| 176 |
+
lambda item: (item[0], item[1].to_dict())
|
| 177 |
+
if hasattr(item[1], "to_dict") else item,
|
| 178 |
+
value.items()
|
| 179 |
+
))
|
| 180 |
+
else:
|
| 181 |
+
result[attr] = value
|
| 182 |
+
|
| 183 |
+
return result
|
| 184 |
+
|
| 185 |
+
def to_str(self):
|
| 186 |
+
"""Returns the string representation of the model"""
|
| 187 |
+
return pprint.pformat(self.to_dict())
|
| 188 |
+
|
| 189 |
+
def __repr__(self):
|
| 190 |
+
"""For `print` and `pprint`"""
|
| 191 |
+
return self.to_str()
|
| 192 |
+
|
| 193 |
+
def __eq__(self, other):
|
| 194 |
+
"""Returns true if both objects are equal"""
|
| 195 |
+
if not isinstance(other, V1NamespaceList):
|
| 196 |
+
return False
|
| 197 |
+
|
| 198 |
+
return self.to_dict() == other.to_dict()
|
| 199 |
+
|
| 200 |
+
def __ne__(self, other):
|
| 201 |
+
"""Returns true if both objects are not equal"""
|
| 202 |
+
if not isinstance(other, V1NamespaceList):
|
| 203 |
+
return True
|
| 204 |
+
|
| 205 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_spec.py
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NamespaceSpec(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'finalizers': 'list[str]'
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
attribute_map = {
|
| 40 |
+
'finalizers': 'finalizers'
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
def __init__(self, finalizers=None, local_vars_configuration=None): # noqa: E501
|
| 44 |
+
"""V1NamespaceSpec - a model defined in OpenAPI""" # noqa: E501
|
| 45 |
+
if local_vars_configuration is None:
|
| 46 |
+
local_vars_configuration = Configuration()
|
| 47 |
+
self.local_vars_configuration = local_vars_configuration
|
| 48 |
+
|
| 49 |
+
self._finalizers = None
|
| 50 |
+
self.discriminator = None
|
| 51 |
+
|
| 52 |
+
if finalizers is not None:
|
| 53 |
+
self.finalizers = finalizers
|
| 54 |
+
|
| 55 |
+
@property
|
| 56 |
+
def finalizers(self):
|
| 57 |
+
"""Gets the finalizers of this V1NamespaceSpec. # noqa: E501
|
| 58 |
+
|
| 59 |
+
Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501
|
| 60 |
+
|
| 61 |
+
:return: The finalizers of this V1NamespaceSpec. # noqa: E501
|
| 62 |
+
:rtype: list[str]
|
| 63 |
+
"""
|
| 64 |
+
return self._finalizers
|
| 65 |
+
|
| 66 |
+
@finalizers.setter
|
| 67 |
+
def finalizers(self, finalizers):
|
| 68 |
+
"""Sets the finalizers of this V1NamespaceSpec.
|
| 69 |
+
|
| 70 |
+
Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501
|
| 71 |
+
|
| 72 |
+
:param finalizers: The finalizers of this V1NamespaceSpec. # noqa: E501
|
| 73 |
+
:type: list[str]
|
| 74 |
+
"""
|
| 75 |
+
|
| 76 |
+
self._finalizers = finalizers
|
| 77 |
+
|
| 78 |
+
def to_dict(self):
|
| 79 |
+
"""Returns the model properties as a dict"""
|
| 80 |
+
result = {}
|
| 81 |
+
|
| 82 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 83 |
+
value = getattr(self, attr)
|
| 84 |
+
if isinstance(value, list):
|
| 85 |
+
result[attr] = list(map(
|
| 86 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 87 |
+
value
|
| 88 |
+
))
|
| 89 |
+
elif hasattr(value, "to_dict"):
|
| 90 |
+
result[attr] = value.to_dict()
|
| 91 |
+
elif isinstance(value, dict):
|
| 92 |
+
result[attr] = dict(map(
|
| 93 |
+
lambda item: (item[0], item[1].to_dict())
|
| 94 |
+
if hasattr(item[1], "to_dict") else item,
|
| 95 |
+
value.items()
|
| 96 |
+
))
|
| 97 |
+
else:
|
| 98 |
+
result[attr] = value
|
| 99 |
+
|
| 100 |
+
return result
|
| 101 |
+
|
| 102 |
+
def to_str(self):
|
| 103 |
+
"""Returns the string representation of the model"""
|
| 104 |
+
return pprint.pformat(self.to_dict())
|
| 105 |
+
|
| 106 |
+
def __repr__(self):
|
| 107 |
+
"""For `print` and `pprint`"""
|
| 108 |
+
return self.to_str()
|
| 109 |
+
|
| 110 |
+
def __eq__(self, other):
|
| 111 |
+
"""Returns true if both objects are equal"""
|
| 112 |
+
if not isinstance(other, V1NamespaceSpec):
|
| 113 |
+
return False
|
| 114 |
+
|
| 115 |
+
return self.to_dict() == other.to_dict()
|
| 116 |
+
|
| 117 |
+
def __ne__(self, other):
|
| 118 |
+
"""Returns true if both objects are not equal"""
|
| 119 |
+
if not isinstance(other, V1NamespaceSpec):
|
| 120 |
+
return True
|
| 121 |
+
|
| 122 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_namespace_status.py
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NamespaceStatus(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'conditions': 'list[V1NamespaceCondition]',
|
| 37 |
+
'phase': 'str'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'conditions': 'conditions',
|
| 42 |
+
'phase': 'phase'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, conditions=None, phase=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NamespaceStatus - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._conditions = None
|
| 52 |
+
self._phase = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if conditions is not None:
|
| 56 |
+
self.conditions = conditions
|
| 57 |
+
if phase is not None:
|
| 58 |
+
self.phase = phase
|
| 59 |
+
|
| 60 |
+
@property
|
| 61 |
+
def conditions(self):
|
| 62 |
+
"""Gets the conditions of this V1NamespaceStatus. # noqa: E501
|
| 63 |
+
|
| 64 |
+
Represents the latest available observations of a namespace's current state. # noqa: E501
|
| 65 |
+
|
| 66 |
+
:return: The conditions of this V1NamespaceStatus. # noqa: E501
|
| 67 |
+
:rtype: list[V1NamespaceCondition]
|
| 68 |
+
"""
|
| 69 |
+
return self._conditions
|
| 70 |
+
|
| 71 |
+
@conditions.setter
|
| 72 |
+
def conditions(self, conditions):
|
| 73 |
+
"""Sets the conditions of this V1NamespaceStatus.
|
| 74 |
+
|
| 75 |
+
Represents the latest available observations of a namespace's current state. # noqa: E501
|
| 76 |
+
|
| 77 |
+
:param conditions: The conditions of this V1NamespaceStatus. # noqa: E501
|
| 78 |
+
:type: list[V1NamespaceCondition]
|
| 79 |
+
"""
|
| 80 |
+
|
| 81 |
+
self._conditions = conditions
|
| 82 |
+
|
| 83 |
+
@property
|
| 84 |
+
def phase(self):
|
| 85 |
+
"""Gets the phase of this V1NamespaceStatus. # noqa: E501
|
| 86 |
+
|
| 87 |
+
Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501
|
| 88 |
+
|
| 89 |
+
:return: The phase of this V1NamespaceStatus. # noqa: E501
|
| 90 |
+
:rtype: str
|
| 91 |
+
"""
|
| 92 |
+
return self._phase
|
| 93 |
+
|
| 94 |
+
@phase.setter
|
| 95 |
+
def phase(self, phase):
|
| 96 |
+
"""Sets the phase of this V1NamespaceStatus.
|
| 97 |
+
|
| 98 |
+
Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ # noqa: E501
|
| 99 |
+
|
| 100 |
+
:param phase: The phase of this V1NamespaceStatus. # noqa: E501
|
| 101 |
+
:type: str
|
| 102 |
+
"""
|
| 103 |
+
|
| 104 |
+
self._phase = phase
|
| 105 |
+
|
| 106 |
+
def to_dict(self):
|
| 107 |
+
"""Returns the model properties as a dict"""
|
| 108 |
+
result = {}
|
| 109 |
+
|
| 110 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 111 |
+
value = getattr(self, attr)
|
| 112 |
+
if isinstance(value, list):
|
| 113 |
+
result[attr] = list(map(
|
| 114 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 115 |
+
value
|
| 116 |
+
))
|
| 117 |
+
elif hasattr(value, "to_dict"):
|
| 118 |
+
result[attr] = value.to_dict()
|
| 119 |
+
elif isinstance(value, dict):
|
| 120 |
+
result[attr] = dict(map(
|
| 121 |
+
lambda item: (item[0], item[1].to_dict())
|
| 122 |
+
if hasattr(item[1], "to_dict") else item,
|
| 123 |
+
value.items()
|
| 124 |
+
))
|
| 125 |
+
else:
|
| 126 |
+
result[attr] = value
|
| 127 |
+
|
| 128 |
+
return result
|
| 129 |
+
|
| 130 |
+
def to_str(self):
|
| 131 |
+
"""Returns the string representation of the model"""
|
| 132 |
+
return pprint.pformat(self.to_dict())
|
| 133 |
+
|
| 134 |
+
def __repr__(self):
|
| 135 |
+
"""For `print` and `pprint`"""
|
| 136 |
+
return self.to_str()
|
| 137 |
+
|
| 138 |
+
def __eq__(self, other):
|
| 139 |
+
"""Returns true if both objects are equal"""
|
| 140 |
+
if not isinstance(other, V1NamespaceStatus):
|
| 141 |
+
return False
|
| 142 |
+
|
| 143 |
+
return self.to_dict() == other.to_dict()
|
| 144 |
+
|
| 145 |
+
def __ne__(self, other):
|
| 146 |
+
"""Returns true if both objects are not equal"""
|
| 147 |
+
if not isinstance(other, V1NamespaceStatus):
|
| 148 |
+
return True
|
| 149 |
+
|
| 150 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_device_data.py
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NetworkDeviceData(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'hardware_address': 'str',
|
| 37 |
+
'interface_name': 'str',
|
| 38 |
+
'ips': 'list[str]'
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
attribute_map = {
|
| 42 |
+
'hardware_address': 'hardwareAddress',
|
| 43 |
+
'interface_name': 'interfaceName',
|
| 44 |
+
'ips': 'ips'
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
def __init__(self, hardware_address=None, interface_name=None, ips=None, local_vars_configuration=None): # noqa: E501
|
| 48 |
+
"""V1NetworkDeviceData - a model defined in OpenAPI""" # noqa: E501
|
| 49 |
+
if local_vars_configuration is None:
|
| 50 |
+
local_vars_configuration = Configuration()
|
| 51 |
+
self.local_vars_configuration = local_vars_configuration
|
| 52 |
+
|
| 53 |
+
self._hardware_address = None
|
| 54 |
+
self._interface_name = None
|
| 55 |
+
self._ips = None
|
| 56 |
+
self.discriminator = None
|
| 57 |
+
|
| 58 |
+
if hardware_address is not None:
|
| 59 |
+
self.hardware_address = hardware_address
|
| 60 |
+
if interface_name is not None:
|
| 61 |
+
self.interface_name = interface_name
|
| 62 |
+
if ips is not None:
|
| 63 |
+
self.ips = ips
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
def hardware_address(self):
|
| 67 |
+
"""Gets the hardware_address of this V1NetworkDeviceData. # noqa: E501
|
| 68 |
+
|
| 69 |
+
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. # noqa: E501
|
| 70 |
+
|
| 71 |
+
:return: The hardware_address of this V1NetworkDeviceData. # noqa: E501
|
| 72 |
+
:rtype: str
|
| 73 |
+
"""
|
| 74 |
+
return self._hardware_address
|
| 75 |
+
|
| 76 |
+
@hardware_address.setter
|
| 77 |
+
def hardware_address(self, hardware_address):
|
| 78 |
+
"""Sets the hardware_address of this V1NetworkDeviceData.
|
| 79 |
+
|
| 80 |
+
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. # noqa: E501
|
| 81 |
+
|
| 82 |
+
:param hardware_address: The hardware_address of this V1NetworkDeviceData. # noqa: E501
|
| 83 |
+
:type: str
|
| 84 |
+
"""
|
| 85 |
+
|
| 86 |
+
self._hardware_address = hardware_address
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def interface_name(self):
|
| 90 |
+
"""Gets the interface_name of this V1NetworkDeviceData. # noqa: E501
|
| 91 |
+
|
| 92 |
+
InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. # noqa: E501
|
| 93 |
+
|
| 94 |
+
:return: The interface_name of this V1NetworkDeviceData. # noqa: E501
|
| 95 |
+
:rtype: str
|
| 96 |
+
"""
|
| 97 |
+
return self._interface_name
|
| 98 |
+
|
| 99 |
+
@interface_name.setter
|
| 100 |
+
def interface_name(self, interface_name):
|
| 101 |
+
"""Sets the interface_name of this V1NetworkDeviceData.
|
| 102 |
+
|
| 103 |
+
InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. # noqa: E501
|
| 104 |
+
|
| 105 |
+
:param interface_name: The interface_name of this V1NetworkDeviceData. # noqa: E501
|
| 106 |
+
:type: str
|
| 107 |
+
"""
|
| 108 |
+
|
| 109 |
+
self._interface_name = interface_name
|
| 110 |
+
|
| 111 |
+
@property
|
| 112 |
+
def ips(self):
|
| 113 |
+
"""Gets the ips of this V1NetworkDeviceData. # noqa: E501
|
| 114 |
+
|
| 115 |
+
IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. # noqa: E501
|
| 116 |
+
|
| 117 |
+
:return: The ips of this V1NetworkDeviceData. # noqa: E501
|
| 118 |
+
:rtype: list[str]
|
| 119 |
+
"""
|
| 120 |
+
return self._ips
|
| 121 |
+
|
| 122 |
+
@ips.setter
|
| 123 |
+
def ips(self, ips):
|
| 124 |
+
"""Sets the ips of this V1NetworkDeviceData.
|
| 125 |
+
|
| 126 |
+
IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. # noqa: E501
|
| 127 |
+
|
| 128 |
+
:param ips: The ips of this V1NetworkDeviceData. # noqa: E501
|
| 129 |
+
:type: list[str]
|
| 130 |
+
"""
|
| 131 |
+
|
| 132 |
+
self._ips = ips
|
| 133 |
+
|
| 134 |
+
def to_dict(self):
|
| 135 |
+
"""Returns the model properties as a dict"""
|
| 136 |
+
result = {}
|
| 137 |
+
|
| 138 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 139 |
+
value = getattr(self, attr)
|
| 140 |
+
if isinstance(value, list):
|
| 141 |
+
result[attr] = list(map(
|
| 142 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 143 |
+
value
|
| 144 |
+
))
|
| 145 |
+
elif hasattr(value, "to_dict"):
|
| 146 |
+
result[attr] = value.to_dict()
|
| 147 |
+
elif isinstance(value, dict):
|
| 148 |
+
result[attr] = dict(map(
|
| 149 |
+
lambda item: (item[0], item[1].to_dict())
|
| 150 |
+
if hasattr(item[1], "to_dict") else item,
|
| 151 |
+
value.items()
|
| 152 |
+
))
|
| 153 |
+
else:
|
| 154 |
+
result[attr] = value
|
| 155 |
+
|
| 156 |
+
return result
|
| 157 |
+
|
| 158 |
+
def to_str(self):
|
| 159 |
+
"""Returns the string representation of the model"""
|
| 160 |
+
return pprint.pformat(self.to_dict())
|
| 161 |
+
|
| 162 |
+
def __repr__(self):
|
| 163 |
+
"""For `print` and `pprint`"""
|
| 164 |
+
return self.to_str()
|
| 165 |
+
|
| 166 |
+
def __eq__(self, other):
|
| 167 |
+
"""Returns true if both objects are equal"""
|
| 168 |
+
if not isinstance(other, V1NetworkDeviceData):
|
| 169 |
+
return False
|
| 170 |
+
|
| 171 |
+
return self.to_dict() == other.to_dict()
|
| 172 |
+
|
| 173 |
+
def __ne__(self, other):
|
| 174 |
+
"""Returns true if both objects are not equal"""
|
| 175 |
+
if not isinstance(other, V1NetworkDeviceData):
|
| 176 |
+
return True
|
| 177 |
+
|
| 178 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy.py
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NetworkPolicy(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'kind': 'str',
|
| 38 |
+
'metadata': 'V1ObjectMeta',
|
| 39 |
+
'spec': 'V1NetworkPolicySpec'
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
attribute_map = {
|
| 43 |
+
'api_version': 'apiVersion',
|
| 44 |
+
'kind': 'kind',
|
| 45 |
+
'metadata': 'metadata',
|
| 46 |
+
'spec': 'spec'
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501
|
| 50 |
+
"""V1NetworkPolicy - a model defined in OpenAPI""" # noqa: E501
|
| 51 |
+
if local_vars_configuration is None:
|
| 52 |
+
local_vars_configuration = Configuration()
|
| 53 |
+
self.local_vars_configuration = local_vars_configuration
|
| 54 |
+
|
| 55 |
+
self._api_version = None
|
| 56 |
+
self._kind = None
|
| 57 |
+
self._metadata = None
|
| 58 |
+
self._spec = None
|
| 59 |
+
self.discriminator = None
|
| 60 |
+
|
| 61 |
+
if api_version is not None:
|
| 62 |
+
self.api_version = api_version
|
| 63 |
+
if kind is not None:
|
| 64 |
+
self.kind = kind
|
| 65 |
+
if metadata is not None:
|
| 66 |
+
self.metadata = metadata
|
| 67 |
+
if spec is not None:
|
| 68 |
+
self.spec = spec
|
| 69 |
+
|
| 70 |
+
@property
|
| 71 |
+
def api_version(self):
|
| 72 |
+
"""Gets the api_version of this V1NetworkPolicy. # noqa: E501
|
| 73 |
+
|
| 74 |
+
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: E501
|
| 75 |
+
|
| 76 |
+
:return: The api_version of this V1NetworkPolicy. # noqa: E501
|
| 77 |
+
:rtype: str
|
| 78 |
+
"""
|
| 79 |
+
return self._api_version
|
| 80 |
+
|
| 81 |
+
@api_version.setter
|
| 82 |
+
def api_version(self, api_version):
|
| 83 |
+
"""Sets the api_version of this V1NetworkPolicy.
|
| 84 |
+
|
| 85 |
+
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: E501
|
| 86 |
+
|
| 87 |
+
:param api_version: The api_version of this V1NetworkPolicy. # noqa: E501
|
| 88 |
+
:type: str
|
| 89 |
+
"""
|
| 90 |
+
|
| 91 |
+
self._api_version = api_version
|
| 92 |
+
|
| 93 |
+
@property
|
| 94 |
+
def kind(self):
|
| 95 |
+
"""Gets the kind of this V1NetworkPolicy. # noqa: E501
|
| 96 |
+
|
| 97 |
+
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: E501
|
| 98 |
+
|
| 99 |
+
:return: The kind of this V1NetworkPolicy. # noqa: E501
|
| 100 |
+
:rtype: str
|
| 101 |
+
"""
|
| 102 |
+
return self._kind
|
| 103 |
+
|
| 104 |
+
@kind.setter
|
| 105 |
+
def kind(self, kind):
|
| 106 |
+
"""Sets the kind of this V1NetworkPolicy.
|
| 107 |
+
|
| 108 |
+
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: E501
|
| 109 |
+
|
| 110 |
+
:param kind: The kind of this V1NetworkPolicy. # noqa: E501
|
| 111 |
+
:type: str
|
| 112 |
+
"""
|
| 113 |
+
|
| 114 |
+
self._kind = kind
|
| 115 |
+
|
| 116 |
+
@property
|
| 117 |
+
def metadata(self):
|
| 118 |
+
"""Gets the metadata of this V1NetworkPolicy. # noqa: E501
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
:return: The metadata of this V1NetworkPolicy. # noqa: E501
|
| 122 |
+
:rtype: V1ObjectMeta
|
| 123 |
+
"""
|
| 124 |
+
return self._metadata
|
| 125 |
+
|
| 126 |
+
@metadata.setter
|
| 127 |
+
def metadata(self, metadata):
|
| 128 |
+
"""Sets the metadata of this V1NetworkPolicy.
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
:param metadata: The metadata of this V1NetworkPolicy. # noqa: E501
|
| 132 |
+
:type: V1ObjectMeta
|
| 133 |
+
"""
|
| 134 |
+
|
| 135 |
+
self._metadata = metadata
|
| 136 |
+
|
| 137 |
+
@property
|
| 138 |
+
def spec(self):
|
| 139 |
+
"""Gets the spec of this V1NetworkPolicy. # noqa: E501
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
:return: The spec of this V1NetworkPolicy. # noqa: E501
|
| 143 |
+
:rtype: V1NetworkPolicySpec
|
| 144 |
+
"""
|
| 145 |
+
return self._spec
|
| 146 |
+
|
| 147 |
+
@spec.setter
|
| 148 |
+
def spec(self, spec):
|
| 149 |
+
"""Sets the spec of this V1NetworkPolicy.
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
:param spec: The spec of this V1NetworkPolicy. # noqa: E501
|
| 153 |
+
:type: V1NetworkPolicySpec
|
| 154 |
+
"""
|
| 155 |
+
|
| 156 |
+
self._spec = spec
|
| 157 |
+
|
| 158 |
+
def to_dict(self):
|
| 159 |
+
"""Returns the model properties as a dict"""
|
| 160 |
+
result = {}
|
| 161 |
+
|
| 162 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 163 |
+
value = getattr(self, attr)
|
| 164 |
+
if isinstance(value, list):
|
| 165 |
+
result[attr] = list(map(
|
| 166 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 167 |
+
value
|
| 168 |
+
))
|
| 169 |
+
elif hasattr(value, "to_dict"):
|
| 170 |
+
result[attr] = value.to_dict()
|
| 171 |
+
elif isinstance(value, dict):
|
| 172 |
+
result[attr] = dict(map(
|
| 173 |
+
lambda item: (item[0], item[1].to_dict())
|
| 174 |
+
if hasattr(item[1], "to_dict") else item,
|
| 175 |
+
value.items()
|
| 176 |
+
))
|
| 177 |
+
else:
|
| 178 |
+
result[attr] = value
|
| 179 |
+
|
| 180 |
+
return result
|
| 181 |
+
|
| 182 |
+
def to_str(self):
|
| 183 |
+
"""Returns the string representation of the model"""
|
| 184 |
+
return pprint.pformat(self.to_dict())
|
| 185 |
+
|
| 186 |
+
def __repr__(self):
|
| 187 |
+
"""For `print` and `pprint`"""
|
| 188 |
+
return self.to_str()
|
| 189 |
+
|
| 190 |
+
def __eq__(self, other):
|
| 191 |
+
"""Returns true if both objects are equal"""
|
| 192 |
+
if not isinstance(other, V1NetworkPolicy):
|
| 193 |
+
return False
|
| 194 |
+
|
| 195 |
+
return self.to_dict() == other.to_dict()
|
| 196 |
+
|
| 197 |
+
def __ne__(self, other):
|
| 198 |
+
"""Returns true if both objects are not equal"""
|
| 199 |
+
if not isinstance(other, V1NetworkPolicy):
|
| 200 |
+
return True
|
| 201 |
+
|
| 202 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_egress_rule.py
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NetworkPolicyEgressRule(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'ports': 'list[V1NetworkPolicyPort]',
|
| 37 |
+
'to': 'list[V1NetworkPolicyPeer]'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'ports': 'ports',
|
| 42 |
+
'to': 'to'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, ports=None, to=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NetworkPolicyEgressRule - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._ports = None
|
| 52 |
+
self._to = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if ports is not None:
|
| 56 |
+
self.ports = ports
|
| 57 |
+
if to is not None:
|
| 58 |
+
self.to = to
|
| 59 |
+
|
| 60 |
+
@property
|
| 61 |
+
def ports(self):
|
| 62 |
+
"""Gets the ports of this V1NetworkPolicyEgressRule. # noqa: E501
|
| 63 |
+
|
| 64 |
+
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501
|
| 65 |
+
|
| 66 |
+
:return: The ports of this V1NetworkPolicyEgressRule. # noqa: E501
|
| 67 |
+
:rtype: list[V1NetworkPolicyPort]
|
| 68 |
+
"""
|
| 69 |
+
return self._ports
|
| 70 |
+
|
| 71 |
+
@ports.setter
|
| 72 |
+
def ports(self, ports):
|
| 73 |
+
"""Sets the ports of this V1NetworkPolicyEgressRule.
|
| 74 |
+
|
| 75 |
+
ports is a list of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501
|
| 76 |
+
|
| 77 |
+
:param ports: The ports of this V1NetworkPolicyEgressRule. # noqa: E501
|
| 78 |
+
:type: list[V1NetworkPolicyPort]
|
| 79 |
+
"""
|
| 80 |
+
|
| 81 |
+
self._ports = ports
|
| 82 |
+
|
| 83 |
+
@property
|
| 84 |
+
def to(self):
|
| 85 |
+
"""Gets the to of this V1NetworkPolicyEgressRule. # noqa: E501
|
| 86 |
+
|
| 87 |
+
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. # noqa: E501
|
| 88 |
+
|
| 89 |
+
:return: The to of this V1NetworkPolicyEgressRule. # noqa: E501
|
| 90 |
+
:rtype: list[V1NetworkPolicyPeer]
|
| 91 |
+
"""
|
| 92 |
+
return self._to
|
| 93 |
+
|
| 94 |
+
@to.setter
|
| 95 |
+
def to(self, to):
|
| 96 |
+
"""Sets the to of this V1NetworkPolicyEgressRule.
|
| 97 |
+
|
| 98 |
+
to is a list of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. # noqa: E501
|
| 99 |
+
|
| 100 |
+
:param to: The to of this V1NetworkPolicyEgressRule. # noqa: E501
|
| 101 |
+
:type: list[V1NetworkPolicyPeer]
|
| 102 |
+
"""
|
| 103 |
+
|
| 104 |
+
self._to = to
|
| 105 |
+
|
| 106 |
+
def to_dict(self):
|
| 107 |
+
"""Returns the model properties as a dict"""
|
| 108 |
+
result = {}
|
| 109 |
+
|
| 110 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 111 |
+
value = getattr(self, attr)
|
| 112 |
+
if isinstance(value, list):
|
| 113 |
+
result[attr] = list(map(
|
| 114 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 115 |
+
value
|
| 116 |
+
))
|
| 117 |
+
elif hasattr(value, "to_dict"):
|
| 118 |
+
result[attr] = value.to_dict()
|
| 119 |
+
elif isinstance(value, dict):
|
| 120 |
+
result[attr] = dict(map(
|
| 121 |
+
lambda item: (item[0], item[1].to_dict())
|
| 122 |
+
if hasattr(item[1], "to_dict") else item,
|
| 123 |
+
value.items()
|
| 124 |
+
))
|
| 125 |
+
else:
|
| 126 |
+
result[attr] = value
|
| 127 |
+
|
| 128 |
+
return result
|
| 129 |
+
|
| 130 |
+
def to_str(self):
|
| 131 |
+
"""Returns the string representation of the model"""
|
| 132 |
+
return pprint.pformat(self.to_dict())
|
| 133 |
+
|
| 134 |
+
def __repr__(self):
|
| 135 |
+
"""For `print` and `pprint`"""
|
| 136 |
+
return self.to_str()
|
| 137 |
+
|
| 138 |
+
def __eq__(self, other):
|
| 139 |
+
"""Returns true if both objects are equal"""
|
| 140 |
+
if not isinstance(other, V1NetworkPolicyEgressRule):
|
| 141 |
+
return False
|
| 142 |
+
|
| 143 |
+
return self.to_dict() == other.to_dict()
|
| 144 |
+
|
| 145 |
+
def __ne__(self, other):
|
| 146 |
+
"""Returns true if both objects are not equal"""
|
| 147 |
+
if not isinstance(other, V1NetworkPolicyEgressRule):
|
| 148 |
+
return True
|
| 149 |
+
|
| 150 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_ingress_rule.py
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NetworkPolicyIngressRule(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'_from': 'list[V1NetworkPolicyPeer]',
|
| 37 |
+
'ports': 'list[V1NetworkPolicyPort]'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'_from': 'from',
|
| 42 |
+
'ports': 'ports'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, _from=None, ports=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NetworkPolicyIngressRule - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self.__from = None
|
| 52 |
+
self._ports = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if _from is not None:
|
| 56 |
+
self._from = _from
|
| 57 |
+
if ports is not None:
|
| 58 |
+
self.ports = ports
|
| 59 |
+
|
| 60 |
+
@property
|
| 61 |
+
def _from(self):
|
| 62 |
+
"""Gets the _from of this V1NetworkPolicyIngressRule. # noqa: E501
|
| 63 |
+
|
| 64 |
+
from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. # noqa: E501
|
| 65 |
+
|
| 66 |
+
:return: The _from of this V1NetworkPolicyIngressRule. # noqa: E501
|
| 67 |
+
:rtype: list[V1NetworkPolicyPeer]
|
| 68 |
+
"""
|
| 69 |
+
return self.__from
|
| 70 |
+
|
| 71 |
+
@_from.setter
|
| 72 |
+
def _from(self, _from):
|
| 73 |
+
"""Sets the _from of this V1NetworkPolicyIngressRule.
|
| 74 |
+
|
| 75 |
+
from is a list of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the from list. # noqa: E501
|
| 76 |
+
|
| 77 |
+
:param _from: The _from of this V1NetworkPolicyIngressRule. # noqa: E501
|
| 78 |
+
:type: list[V1NetworkPolicyPeer]
|
| 79 |
+
"""
|
| 80 |
+
|
| 81 |
+
self.__from = _from
|
| 82 |
+
|
| 83 |
+
@property
|
| 84 |
+
def ports(self):
|
| 85 |
+
"""Gets the ports of this V1NetworkPolicyIngressRule. # noqa: E501
|
| 86 |
+
|
| 87 |
+
ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501
|
| 88 |
+
|
| 89 |
+
:return: The ports of this V1NetworkPolicyIngressRule. # noqa: E501
|
| 90 |
+
:rtype: list[V1NetworkPolicyPort]
|
| 91 |
+
"""
|
| 92 |
+
return self._ports
|
| 93 |
+
|
| 94 |
+
@ports.setter
|
| 95 |
+
def ports(self, ports):
|
| 96 |
+
"""Sets the ports of this V1NetworkPolicyIngressRule.
|
| 97 |
+
|
| 98 |
+
ports is a list of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. # noqa: E501
|
| 99 |
+
|
| 100 |
+
:param ports: The ports of this V1NetworkPolicyIngressRule. # noqa: E501
|
| 101 |
+
:type: list[V1NetworkPolicyPort]
|
| 102 |
+
"""
|
| 103 |
+
|
| 104 |
+
self._ports = ports
|
| 105 |
+
|
| 106 |
+
def to_dict(self):
|
| 107 |
+
"""Returns the model properties as a dict"""
|
| 108 |
+
result = {}
|
| 109 |
+
|
| 110 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 111 |
+
value = getattr(self, attr)
|
| 112 |
+
if isinstance(value, list):
|
| 113 |
+
result[attr] = list(map(
|
| 114 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 115 |
+
value
|
| 116 |
+
))
|
| 117 |
+
elif hasattr(value, "to_dict"):
|
| 118 |
+
result[attr] = value.to_dict()
|
| 119 |
+
elif isinstance(value, dict):
|
| 120 |
+
result[attr] = dict(map(
|
| 121 |
+
lambda item: (item[0], item[1].to_dict())
|
| 122 |
+
if hasattr(item[1], "to_dict") else item,
|
| 123 |
+
value.items()
|
| 124 |
+
))
|
| 125 |
+
else:
|
| 126 |
+
result[attr] = value
|
| 127 |
+
|
| 128 |
+
return result
|
| 129 |
+
|
| 130 |
+
def to_str(self):
|
| 131 |
+
"""Returns the string representation of the model"""
|
| 132 |
+
return pprint.pformat(self.to_dict())
|
| 133 |
+
|
| 134 |
+
def __repr__(self):
|
| 135 |
+
"""For `print` and `pprint`"""
|
| 136 |
+
return self.to_str()
|
| 137 |
+
|
| 138 |
+
def __eq__(self, other):
|
| 139 |
+
"""Returns true if both objects are equal"""
|
| 140 |
+
if not isinstance(other, V1NetworkPolicyIngressRule):
|
| 141 |
+
return False
|
| 142 |
+
|
| 143 |
+
return self.to_dict() == other.to_dict()
|
| 144 |
+
|
| 145 |
+
def __ne__(self, other):
|
| 146 |
+
"""Returns true if both objects are not equal"""
|
| 147 |
+
if not isinstance(other, V1NetworkPolicyIngressRule):
|
| 148 |
+
return True
|
| 149 |
+
|
| 150 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_list.py
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NetworkPolicyList(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'items': 'list[V1NetworkPolicy]',
|
| 38 |
+
'kind': 'str',
|
| 39 |
+
'metadata': 'V1ListMeta'
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
attribute_map = {
|
| 43 |
+
'api_version': 'apiVersion',
|
| 44 |
+
'items': 'items',
|
| 45 |
+
'kind': 'kind',
|
| 46 |
+
'metadata': 'metadata'
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
| 50 |
+
"""V1NetworkPolicyList - a model defined in OpenAPI""" # noqa: E501
|
| 51 |
+
if local_vars_configuration is None:
|
| 52 |
+
local_vars_configuration = Configuration()
|
| 53 |
+
self.local_vars_configuration = local_vars_configuration
|
| 54 |
+
|
| 55 |
+
self._api_version = None
|
| 56 |
+
self._items = None
|
| 57 |
+
self._kind = None
|
| 58 |
+
self._metadata = None
|
| 59 |
+
self.discriminator = None
|
| 60 |
+
|
| 61 |
+
if api_version is not None:
|
| 62 |
+
self.api_version = api_version
|
| 63 |
+
self.items = items
|
| 64 |
+
if kind is not None:
|
| 65 |
+
self.kind = kind
|
| 66 |
+
if metadata is not None:
|
| 67 |
+
self.metadata = metadata
|
| 68 |
+
|
| 69 |
+
@property
|
| 70 |
+
def api_version(self):
|
| 71 |
+
"""Gets the api_version of this V1NetworkPolicyList. # noqa: E501
|
| 72 |
+
|
| 73 |
+
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: E501
|
| 74 |
+
|
| 75 |
+
:return: The api_version of this V1NetworkPolicyList. # noqa: E501
|
| 76 |
+
:rtype: str
|
| 77 |
+
"""
|
| 78 |
+
return self._api_version
|
| 79 |
+
|
| 80 |
+
@api_version.setter
|
| 81 |
+
def api_version(self, api_version):
|
| 82 |
+
"""Sets the api_version of this V1NetworkPolicyList.
|
| 83 |
+
|
| 84 |
+
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: E501
|
| 85 |
+
|
| 86 |
+
:param api_version: The api_version of this V1NetworkPolicyList. # noqa: E501
|
| 87 |
+
:type: str
|
| 88 |
+
"""
|
| 89 |
+
|
| 90 |
+
self._api_version = api_version
|
| 91 |
+
|
| 92 |
+
@property
|
| 93 |
+
def items(self):
|
| 94 |
+
"""Gets the items of this V1NetworkPolicyList. # noqa: E501
|
| 95 |
+
|
| 96 |
+
items is a list of schema objects. # noqa: E501
|
| 97 |
+
|
| 98 |
+
:return: The items of this V1NetworkPolicyList. # noqa: E501
|
| 99 |
+
:rtype: list[V1NetworkPolicy]
|
| 100 |
+
"""
|
| 101 |
+
return self._items
|
| 102 |
+
|
| 103 |
+
@items.setter
|
| 104 |
+
def items(self, items):
|
| 105 |
+
"""Sets the items of this V1NetworkPolicyList.
|
| 106 |
+
|
| 107 |
+
items is a list of schema objects. # noqa: E501
|
| 108 |
+
|
| 109 |
+
:param items: The items of this V1NetworkPolicyList. # noqa: E501
|
| 110 |
+
:type: list[V1NetworkPolicy]
|
| 111 |
+
"""
|
| 112 |
+
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
| 113 |
+
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
| 114 |
+
|
| 115 |
+
self._items = items
|
| 116 |
+
|
| 117 |
+
@property
|
| 118 |
+
def kind(self):
|
| 119 |
+
"""Gets the kind of this V1NetworkPolicyList. # noqa: E501
|
| 120 |
+
|
| 121 |
+
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: E501
|
| 122 |
+
|
| 123 |
+
:return: The kind of this V1NetworkPolicyList. # noqa: E501
|
| 124 |
+
:rtype: str
|
| 125 |
+
"""
|
| 126 |
+
return self._kind
|
| 127 |
+
|
| 128 |
+
@kind.setter
|
| 129 |
+
def kind(self, kind):
|
| 130 |
+
"""Sets the kind of this V1NetworkPolicyList.
|
| 131 |
+
|
| 132 |
+
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: E501
|
| 133 |
+
|
| 134 |
+
:param kind: The kind of this V1NetworkPolicyList. # noqa: E501
|
| 135 |
+
:type: str
|
| 136 |
+
"""
|
| 137 |
+
|
| 138 |
+
self._kind = kind
|
| 139 |
+
|
| 140 |
+
@property
|
| 141 |
+
def metadata(self):
|
| 142 |
+
"""Gets the metadata of this V1NetworkPolicyList. # noqa: E501
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
:return: The metadata of this V1NetworkPolicyList. # noqa: E501
|
| 146 |
+
:rtype: V1ListMeta
|
| 147 |
+
"""
|
| 148 |
+
return self._metadata
|
| 149 |
+
|
| 150 |
+
@metadata.setter
|
| 151 |
+
def metadata(self, metadata):
|
| 152 |
+
"""Sets the metadata of this V1NetworkPolicyList.
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
:param metadata: The metadata of this V1NetworkPolicyList. # noqa: E501
|
| 156 |
+
:type: V1ListMeta
|
| 157 |
+
"""
|
| 158 |
+
|
| 159 |
+
self._metadata = metadata
|
| 160 |
+
|
| 161 |
+
def to_dict(self):
|
| 162 |
+
"""Returns the model properties as a dict"""
|
| 163 |
+
result = {}
|
| 164 |
+
|
| 165 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 166 |
+
value = getattr(self, attr)
|
| 167 |
+
if isinstance(value, list):
|
| 168 |
+
result[attr] = list(map(
|
| 169 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 170 |
+
value
|
| 171 |
+
))
|
| 172 |
+
elif hasattr(value, "to_dict"):
|
| 173 |
+
result[attr] = value.to_dict()
|
| 174 |
+
elif isinstance(value, dict):
|
| 175 |
+
result[attr] = dict(map(
|
| 176 |
+
lambda item: (item[0], item[1].to_dict())
|
| 177 |
+
if hasattr(item[1], "to_dict") else item,
|
| 178 |
+
value.items()
|
| 179 |
+
))
|
| 180 |
+
else:
|
| 181 |
+
result[attr] = value
|
| 182 |
+
|
| 183 |
+
return result
|
| 184 |
+
|
| 185 |
+
def to_str(self):
|
| 186 |
+
"""Returns the string representation of the model"""
|
| 187 |
+
return pprint.pformat(self.to_dict())
|
| 188 |
+
|
| 189 |
+
def __repr__(self):
|
| 190 |
+
"""For `print` and `pprint`"""
|
| 191 |
+
return self.to_str()
|
| 192 |
+
|
| 193 |
+
def __eq__(self, other):
|
| 194 |
+
"""Returns true if both objects are equal"""
|
| 195 |
+
if not isinstance(other, V1NetworkPolicyList):
|
| 196 |
+
return False
|
| 197 |
+
|
| 198 |
+
return self.to_dict() == other.to_dict()
|
| 199 |
+
|
| 200 |
+
def __ne__(self, other):
|
| 201 |
+
"""Returns true if both objects are not equal"""
|
| 202 |
+
if not isinstance(other, V1NetworkPolicyList):
|
| 203 |
+
return True
|
| 204 |
+
|
| 205 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_peer.py
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NetworkPolicyPeer(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'ip_block': 'V1IPBlock',
|
| 37 |
+
'namespace_selector': 'V1LabelSelector',
|
| 38 |
+
'pod_selector': 'V1LabelSelector'
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
attribute_map = {
|
| 42 |
+
'ip_block': 'ipBlock',
|
| 43 |
+
'namespace_selector': 'namespaceSelector',
|
| 44 |
+
'pod_selector': 'podSelector'
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
def __init__(self, ip_block=None, namespace_selector=None, pod_selector=None, local_vars_configuration=None): # noqa: E501
|
| 48 |
+
"""V1NetworkPolicyPeer - a model defined in OpenAPI""" # noqa: E501
|
| 49 |
+
if local_vars_configuration is None:
|
| 50 |
+
local_vars_configuration = Configuration()
|
| 51 |
+
self.local_vars_configuration = local_vars_configuration
|
| 52 |
+
|
| 53 |
+
self._ip_block = None
|
| 54 |
+
self._namespace_selector = None
|
| 55 |
+
self._pod_selector = None
|
| 56 |
+
self.discriminator = None
|
| 57 |
+
|
| 58 |
+
if ip_block is not None:
|
| 59 |
+
self.ip_block = ip_block
|
| 60 |
+
if namespace_selector is not None:
|
| 61 |
+
self.namespace_selector = namespace_selector
|
| 62 |
+
if pod_selector is not None:
|
| 63 |
+
self.pod_selector = pod_selector
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
def ip_block(self):
|
| 67 |
+
"""Gets the ip_block of this V1NetworkPolicyPeer. # noqa: E501
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
:return: The ip_block of this V1NetworkPolicyPeer. # noqa: E501
|
| 71 |
+
:rtype: V1IPBlock
|
| 72 |
+
"""
|
| 73 |
+
return self._ip_block
|
| 74 |
+
|
| 75 |
+
@ip_block.setter
|
| 76 |
+
def ip_block(self, ip_block):
|
| 77 |
+
"""Sets the ip_block of this V1NetworkPolicyPeer.
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
:param ip_block: The ip_block of this V1NetworkPolicyPeer. # noqa: E501
|
| 81 |
+
:type: V1IPBlock
|
| 82 |
+
"""
|
| 83 |
+
|
| 84 |
+
self._ip_block = ip_block
|
| 85 |
+
|
| 86 |
+
@property
|
| 87 |
+
def namespace_selector(self):
|
| 88 |
+
"""Gets the namespace_selector of this V1NetworkPolicyPeer. # noqa: E501
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
:return: The namespace_selector of this V1NetworkPolicyPeer. # noqa: E501
|
| 92 |
+
:rtype: V1LabelSelector
|
| 93 |
+
"""
|
| 94 |
+
return self._namespace_selector
|
| 95 |
+
|
| 96 |
+
@namespace_selector.setter
|
| 97 |
+
def namespace_selector(self, namespace_selector):
|
| 98 |
+
"""Sets the namespace_selector of this V1NetworkPolicyPeer.
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
:param namespace_selector: The namespace_selector of this V1NetworkPolicyPeer. # noqa: E501
|
| 102 |
+
:type: V1LabelSelector
|
| 103 |
+
"""
|
| 104 |
+
|
| 105 |
+
self._namespace_selector = namespace_selector
|
| 106 |
+
|
| 107 |
+
@property
|
| 108 |
+
def pod_selector(self):
|
| 109 |
+
"""Gets the pod_selector of this V1NetworkPolicyPeer. # noqa: E501
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
:return: The pod_selector of this V1NetworkPolicyPeer. # noqa: E501
|
| 113 |
+
:rtype: V1LabelSelector
|
| 114 |
+
"""
|
| 115 |
+
return self._pod_selector
|
| 116 |
+
|
| 117 |
+
@pod_selector.setter
|
| 118 |
+
def pod_selector(self, pod_selector):
|
| 119 |
+
"""Sets the pod_selector of this V1NetworkPolicyPeer.
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
:param pod_selector: The pod_selector of this V1NetworkPolicyPeer. # noqa: E501
|
| 123 |
+
:type: V1LabelSelector
|
| 124 |
+
"""
|
| 125 |
+
|
| 126 |
+
self._pod_selector = pod_selector
|
| 127 |
+
|
| 128 |
+
def to_dict(self):
|
| 129 |
+
"""Returns the model properties as a dict"""
|
| 130 |
+
result = {}
|
| 131 |
+
|
| 132 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 133 |
+
value = getattr(self, attr)
|
| 134 |
+
if isinstance(value, list):
|
| 135 |
+
result[attr] = list(map(
|
| 136 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 137 |
+
value
|
| 138 |
+
))
|
| 139 |
+
elif hasattr(value, "to_dict"):
|
| 140 |
+
result[attr] = value.to_dict()
|
| 141 |
+
elif isinstance(value, dict):
|
| 142 |
+
result[attr] = dict(map(
|
| 143 |
+
lambda item: (item[0], item[1].to_dict())
|
| 144 |
+
if hasattr(item[1], "to_dict") else item,
|
| 145 |
+
value.items()
|
| 146 |
+
))
|
| 147 |
+
else:
|
| 148 |
+
result[attr] = value
|
| 149 |
+
|
| 150 |
+
return result
|
| 151 |
+
|
| 152 |
+
def to_str(self):
|
| 153 |
+
"""Returns the string representation of the model"""
|
| 154 |
+
return pprint.pformat(self.to_dict())
|
| 155 |
+
|
| 156 |
+
def __repr__(self):
|
| 157 |
+
"""For `print` and `pprint`"""
|
| 158 |
+
return self.to_str()
|
| 159 |
+
|
| 160 |
+
def __eq__(self, other):
|
| 161 |
+
"""Returns true if both objects are equal"""
|
| 162 |
+
if not isinstance(other, V1NetworkPolicyPeer):
|
| 163 |
+
return False
|
| 164 |
+
|
| 165 |
+
return self.to_dict() == other.to_dict()
|
| 166 |
+
|
| 167 |
+
def __ne__(self, other):
|
| 168 |
+
"""Returns true if both objects are not equal"""
|
| 169 |
+
if not isinstance(other, V1NetworkPolicyPeer):
|
| 170 |
+
return True
|
| 171 |
+
|
| 172 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_port.py
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NetworkPolicyPort(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'end_port': 'int',
|
| 37 |
+
'port': 'object',
|
| 38 |
+
'protocol': 'str'
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
attribute_map = {
|
| 42 |
+
'end_port': 'endPort',
|
| 43 |
+
'port': 'port',
|
| 44 |
+
'protocol': 'protocol'
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
def __init__(self, end_port=None, port=None, protocol=None, local_vars_configuration=None): # noqa: E501
|
| 48 |
+
"""V1NetworkPolicyPort - a model defined in OpenAPI""" # noqa: E501
|
| 49 |
+
if local_vars_configuration is None:
|
| 50 |
+
local_vars_configuration = Configuration()
|
| 51 |
+
self.local_vars_configuration = local_vars_configuration
|
| 52 |
+
|
| 53 |
+
self._end_port = None
|
| 54 |
+
self._port = None
|
| 55 |
+
self._protocol = None
|
| 56 |
+
self.discriminator = None
|
| 57 |
+
|
| 58 |
+
if end_port is not None:
|
| 59 |
+
self.end_port = end_port
|
| 60 |
+
if port is not None:
|
| 61 |
+
self.port = port
|
| 62 |
+
if protocol is not None:
|
| 63 |
+
self.protocol = protocol
|
| 64 |
+
|
| 65 |
+
@property
|
| 66 |
+
def end_port(self):
|
| 67 |
+
"""Gets the end_port of this V1NetworkPolicyPort. # noqa: E501
|
| 68 |
+
|
| 69 |
+
endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. # noqa: E501
|
| 70 |
+
|
| 71 |
+
:return: The end_port of this V1NetworkPolicyPort. # noqa: E501
|
| 72 |
+
:rtype: int
|
| 73 |
+
"""
|
| 74 |
+
return self._end_port
|
| 75 |
+
|
| 76 |
+
@end_port.setter
|
| 77 |
+
def end_port(self, end_port):
|
| 78 |
+
"""Sets the end_port of this V1NetworkPolicyPort.
|
| 79 |
+
|
| 80 |
+
endPort indicates that the range of ports from port to endPort if set, inclusive, should be allowed by the policy. This field cannot be defined if the port field is not defined or if the port field is defined as a named (string) port. The endPort must be equal or greater than port. # noqa: E501
|
| 81 |
+
|
| 82 |
+
:param end_port: The end_port of this V1NetworkPolicyPort. # noqa: E501
|
| 83 |
+
:type: int
|
| 84 |
+
"""
|
| 85 |
+
|
| 86 |
+
self._end_port = end_port
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def port(self):
|
| 90 |
+
"""Gets the port of this V1NetworkPolicyPort. # noqa: E501
|
| 91 |
+
|
| 92 |
+
port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. # noqa: E501
|
| 93 |
+
|
| 94 |
+
:return: The port of this V1NetworkPolicyPort. # noqa: E501
|
| 95 |
+
:rtype: object
|
| 96 |
+
"""
|
| 97 |
+
return self._port
|
| 98 |
+
|
| 99 |
+
@port.setter
|
| 100 |
+
def port(self, port):
|
| 101 |
+
"""Sets the port of this V1NetworkPolicyPort.
|
| 102 |
+
|
| 103 |
+
port represents the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. # noqa: E501
|
| 104 |
+
|
| 105 |
+
:param port: The port of this V1NetworkPolicyPort. # noqa: E501
|
| 106 |
+
:type: object
|
| 107 |
+
"""
|
| 108 |
+
|
| 109 |
+
self._port = port
|
| 110 |
+
|
| 111 |
+
@property
|
| 112 |
+
def protocol(self):
|
| 113 |
+
"""Gets the protocol of this V1NetworkPolicyPort. # noqa: E501
|
| 114 |
+
|
| 115 |
+
protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. # noqa: E501
|
| 116 |
+
|
| 117 |
+
:return: The protocol of this V1NetworkPolicyPort. # noqa: E501
|
| 118 |
+
:rtype: str
|
| 119 |
+
"""
|
| 120 |
+
return self._protocol
|
| 121 |
+
|
| 122 |
+
@protocol.setter
|
| 123 |
+
def protocol(self, protocol):
|
| 124 |
+
"""Sets the protocol of this V1NetworkPolicyPort.
|
| 125 |
+
|
| 126 |
+
protocol represents the protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. # noqa: E501
|
| 127 |
+
|
| 128 |
+
:param protocol: The protocol of this V1NetworkPolicyPort. # noqa: E501
|
| 129 |
+
:type: str
|
| 130 |
+
"""
|
| 131 |
+
|
| 132 |
+
self._protocol = protocol
|
| 133 |
+
|
| 134 |
+
def to_dict(self):
|
| 135 |
+
"""Returns the model properties as a dict"""
|
| 136 |
+
result = {}
|
| 137 |
+
|
| 138 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 139 |
+
value = getattr(self, attr)
|
| 140 |
+
if isinstance(value, list):
|
| 141 |
+
result[attr] = list(map(
|
| 142 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 143 |
+
value
|
| 144 |
+
))
|
| 145 |
+
elif hasattr(value, "to_dict"):
|
| 146 |
+
result[attr] = value.to_dict()
|
| 147 |
+
elif isinstance(value, dict):
|
| 148 |
+
result[attr] = dict(map(
|
| 149 |
+
lambda item: (item[0], item[1].to_dict())
|
| 150 |
+
if hasattr(item[1], "to_dict") else item,
|
| 151 |
+
value.items()
|
| 152 |
+
))
|
| 153 |
+
else:
|
| 154 |
+
result[attr] = value
|
| 155 |
+
|
| 156 |
+
return result
|
| 157 |
+
|
| 158 |
+
def to_str(self):
|
| 159 |
+
"""Returns the string representation of the model"""
|
| 160 |
+
return pprint.pformat(self.to_dict())
|
| 161 |
+
|
| 162 |
+
def __repr__(self):
|
| 163 |
+
"""For `print` and `pprint`"""
|
| 164 |
+
return self.to_str()
|
| 165 |
+
|
| 166 |
+
def __eq__(self, other):
|
| 167 |
+
"""Returns true if both objects are equal"""
|
| 168 |
+
if not isinstance(other, V1NetworkPolicyPort):
|
| 169 |
+
return False
|
| 170 |
+
|
| 171 |
+
return self.to_dict() == other.to_dict()
|
| 172 |
+
|
| 173 |
+
def __ne__(self, other):
|
| 174 |
+
"""Returns true if both objects are not equal"""
|
| 175 |
+
if not isinstance(other, V1NetworkPolicyPort):
|
| 176 |
+
return True
|
| 177 |
+
|
| 178 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_network_policy_spec.py
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NetworkPolicySpec(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'egress': 'list[V1NetworkPolicyEgressRule]',
|
| 37 |
+
'ingress': 'list[V1NetworkPolicyIngressRule]',
|
| 38 |
+
'pod_selector': 'V1LabelSelector',
|
| 39 |
+
'policy_types': 'list[str]'
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
attribute_map = {
|
| 43 |
+
'egress': 'egress',
|
| 44 |
+
'ingress': 'ingress',
|
| 45 |
+
'pod_selector': 'podSelector',
|
| 46 |
+
'policy_types': 'policyTypes'
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None, local_vars_configuration=None): # noqa: E501
|
| 50 |
+
"""V1NetworkPolicySpec - a model defined in OpenAPI""" # noqa: E501
|
| 51 |
+
if local_vars_configuration is None:
|
| 52 |
+
local_vars_configuration = Configuration()
|
| 53 |
+
self.local_vars_configuration = local_vars_configuration
|
| 54 |
+
|
| 55 |
+
self._egress = None
|
| 56 |
+
self._ingress = None
|
| 57 |
+
self._pod_selector = None
|
| 58 |
+
self._policy_types = None
|
| 59 |
+
self.discriminator = None
|
| 60 |
+
|
| 61 |
+
if egress is not None:
|
| 62 |
+
self.egress = egress
|
| 63 |
+
if ingress is not None:
|
| 64 |
+
self.ingress = ingress
|
| 65 |
+
if pod_selector is not None:
|
| 66 |
+
self.pod_selector = pod_selector
|
| 67 |
+
if policy_types is not None:
|
| 68 |
+
self.policy_types = policy_types
|
| 69 |
+
|
| 70 |
+
@property
|
| 71 |
+
def egress(self):
|
| 72 |
+
"""Gets the egress of this V1NetworkPolicySpec. # noqa: E501
|
| 73 |
+
|
| 74 |
+
egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 # noqa: E501
|
| 75 |
+
|
| 76 |
+
:return: The egress of this V1NetworkPolicySpec. # noqa: E501
|
| 77 |
+
:rtype: list[V1NetworkPolicyEgressRule]
|
| 78 |
+
"""
|
| 79 |
+
return self._egress
|
| 80 |
+
|
| 81 |
+
@egress.setter
|
| 82 |
+
def egress(self, egress):
|
| 83 |
+
"""Sets the egress of this V1NetworkPolicySpec.
|
| 84 |
+
|
| 85 |
+
egress is a list of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 # noqa: E501
|
| 86 |
+
|
| 87 |
+
:param egress: The egress of this V1NetworkPolicySpec. # noqa: E501
|
| 88 |
+
:type: list[V1NetworkPolicyEgressRule]
|
| 89 |
+
"""
|
| 90 |
+
|
| 91 |
+
self._egress = egress
|
| 92 |
+
|
| 93 |
+
@property
|
| 94 |
+
def ingress(self):
|
| 95 |
+
"""Gets the ingress of this V1NetworkPolicySpec. # noqa: E501
|
| 96 |
+
|
| 97 |
+
ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) # noqa: E501
|
| 98 |
+
|
| 99 |
+
:return: The ingress of this V1NetworkPolicySpec. # noqa: E501
|
| 100 |
+
:rtype: list[V1NetworkPolicyIngressRule]
|
| 101 |
+
"""
|
| 102 |
+
return self._ingress
|
| 103 |
+
|
| 104 |
+
@ingress.setter
|
| 105 |
+
def ingress(self, ingress):
|
| 106 |
+
"""Sets the ingress of this V1NetworkPolicySpec.
|
| 107 |
+
|
| 108 |
+
ingress is a list of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) # noqa: E501
|
| 109 |
+
|
| 110 |
+
:param ingress: The ingress of this V1NetworkPolicySpec. # noqa: E501
|
| 111 |
+
:type: list[V1NetworkPolicyIngressRule]
|
| 112 |
+
"""
|
| 113 |
+
|
| 114 |
+
self._ingress = ingress
|
| 115 |
+
|
| 116 |
+
@property
|
| 117 |
+
def pod_selector(self):
|
| 118 |
+
"""Gets the pod_selector of this V1NetworkPolicySpec. # noqa: E501
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
:return: The pod_selector of this V1NetworkPolicySpec. # noqa: E501
|
| 122 |
+
:rtype: V1LabelSelector
|
| 123 |
+
"""
|
| 124 |
+
return self._pod_selector
|
| 125 |
+
|
| 126 |
+
@pod_selector.setter
|
| 127 |
+
def pod_selector(self, pod_selector):
|
| 128 |
+
"""Sets the pod_selector of this V1NetworkPolicySpec.
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
:param pod_selector: The pod_selector of this V1NetworkPolicySpec. # noqa: E501
|
| 132 |
+
:type: V1LabelSelector
|
| 133 |
+
"""
|
| 134 |
+
|
| 135 |
+
self._pod_selector = pod_selector
|
| 136 |
+
|
| 137 |
+
@property
|
| 138 |
+
def policy_types(self):
|
| 139 |
+
"""Gets the policy_types of this V1NetworkPolicySpec. # noqa: E501
|
| 140 |
+
|
| 141 |
+
policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 # noqa: E501
|
| 142 |
+
|
| 143 |
+
:return: The policy_types of this V1NetworkPolicySpec. # noqa: E501
|
| 144 |
+
:rtype: list[str]
|
| 145 |
+
"""
|
| 146 |
+
return self._policy_types
|
| 147 |
+
|
| 148 |
+
@policy_types.setter
|
| 149 |
+
def policy_types(self, policy_types):
|
| 150 |
+
"""Sets the policy_types of this V1NetworkPolicySpec.
|
| 151 |
+
|
| 152 |
+
policyTypes is a list of rule types that the NetworkPolicy relates to. Valid options are [\"Ingress\"], [\"Egress\"], or [\"Ingress\", \"Egress\"]. If this field is not specified, it will default based on the existence of ingress or egress rules; policies that contain an egress section are assumed to affect egress, and all policies (whether or not they contain an ingress section) are assumed to affect ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 # noqa: E501
|
| 153 |
+
|
| 154 |
+
:param policy_types: The policy_types of this V1NetworkPolicySpec. # noqa: E501
|
| 155 |
+
:type: list[str]
|
| 156 |
+
"""
|
| 157 |
+
|
| 158 |
+
self._policy_types = policy_types
|
| 159 |
+
|
| 160 |
+
def to_dict(self):
|
| 161 |
+
"""Returns the model properties as a dict"""
|
| 162 |
+
result = {}
|
| 163 |
+
|
| 164 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 165 |
+
value = getattr(self, attr)
|
| 166 |
+
if isinstance(value, list):
|
| 167 |
+
result[attr] = list(map(
|
| 168 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 169 |
+
value
|
| 170 |
+
))
|
| 171 |
+
elif hasattr(value, "to_dict"):
|
| 172 |
+
result[attr] = value.to_dict()
|
| 173 |
+
elif isinstance(value, dict):
|
| 174 |
+
result[attr] = dict(map(
|
| 175 |
+
lambda item: (item[0], item[1].to_dict())
|
| 176 |
+
if hasattr(item[1], "to_dict") else item,
|
| 177 |
+
value.items()
|
| 178 |
+
))
|
| 179 |
+
else:
|
| 180 |
+
result[attr] = value
|
| 181 |
+
|
| 182 |
+
return result
|
| 183 |
+
|
| 184 |
+
def to_str(self):
|
| 185 |
+
"""Returns the string representation of the model"""
|
| 186 |
+
return pprint.pformat(self.to_dict())
|
| 187 |
+
|
| 188 |
+
def __repr__(self):
|
| 189 |
+
"""For `print` and `pprint`"""
|
| 190 |
+
return self.to_str()
|
| 191 |
+
|
| 192 |
+
def __eq__(self, other):
|
| 193 |
+
"""Returns true if both objects are equal"""
|
| 194 |
+
if not isinstance(other, V1NetworkPolicySpec):
|
| 195 |
+
return False
|
| 196 |
+
|
| 197 |
+
return self.to_dict() == other.to_dict()
|
| 198 |
+
|
| 199 |
+
def __ne__(self, other):
|
| 200 |
+
"""Returns true if both objects are not equal"""
|
| 201 |
+
if not isinstance(other, V1NetworkPolicySpec):
|
| 202 |
+
return True
|
| 203 |
+
|
| 204 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_nfs_volume_source.py
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NFSVolumeSource(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'path': 'str',
|
| 37 |
+
'read_only': 'bool',
|
| 38 |
+
'server': 'str'
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
attribute_map = {
|
| 42 |
+
'path': 'path',
|
| 43 |
+
'read_only': 'readOnly',
|
| 44 |
+
'server': 'server'
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
def __init__(self, path=None, read_only=None, server=None, local_vars_configuration=None): # noqa: E501
|
| 48 |
+
"""V1NFSVolumeSource - a model defined in OpenAPI""" # noqa: E501
|
| 49 |
+
if local_vars_configuration is None:
|
| 50 |
+
local_vars_configuration = Configuration()
|
| 51 |
+
self.local_vars_configuration = local_vars_configuration
|
| 52 |
+
|
| 53 |
+
self._path = None
|
| 54 |
+
self._read_only = None
|
| 55 |
+
self._server = None
|
| 56 |
+
self.discriminator = None
|
| 57 |
+
|
| 58 |
+
self.path = path
|
| 59 |
+
if read_only is not None:
|
| 60 |
+
self.read_only = read_only
|
| 61 |
+
self.server = server
|
| 62 |
+
|
| 63 |
+
@property
|
| 64 |
+
def path(self):
|
| 65 |
+
"""Gets the path of this V1NFSVolumeSource. # noqa: E501
|
| 66 |
+
|
| 67 |
+
path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501
|
| 68 |
+
|
| 69 |
+
:return: The path of this V1NFSVolumeSource. # noqa: E501
|
| 70 |
+
:rtype: str
|
| 71 |
+
"""
|
| 72 |
+
return self._path
|
| 73 |
+
|
| 74 |
+
@path.setter
|
| 75 |
+
def path(self, path):
|
| 76 |
+
"""Sets the path of this V1NFSVolumeSource.
|
| 77 |
+
|
| 78 |
+
path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501
|
| 79 |
+
|
| 80 |
+
:param path: The path of this V1NFSVolumeSource. # noqa: E501
|
| 81 |
+
:type: str
|
| 82 |
+
"""
|
| 83 |
+
if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501
|
| 84 |
+
raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501
|
| 85 |
+
|
| 86 |
+
self._path = path
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def read_only(self):
|
| 90 |
+
"""Gets the read_only of this V1NFSVolumeSource. # noqa: E501
|
| 91 |
+
|
| 92 |
+
readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501
|
| 93 |
+
|
| 94 |
+
:return: The read_only of this V1NFSVolumeSource. # noqa: E501
|
| 95 |
+
:rtype: bool
|
| 96 |
+
"""
|
| 97 |
+
return self._read_only
|
| 98 |
+
|
| 99 |
+
@read_only.setter
|
| 100 |
+
def read_only(self, read_only):
|
| 101 |
+
"""Sets the read_only of this V1NFSVolumeSource.
|
| 102 |
+
|
| 103 |
+
readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501
|
| 104 |
+
|
| 105 |
+
:param read_only: The read_only of this V1NFSVolumeSource. # noqa: E501
|
| 106 |
+
:type: bool
|
| 107 |
+
"""
|
| 108 |
+
|
| 109 |
+
self._read_only = read_only
|
| 110 |
+
|
| 111 |
+
@property
|
| 112 |
+
def server(self):
|
| 113 |
+
"""Gets the server of this V1NFSVolumeSource. # noqa: E501
|
| 114 |
+
|
| 115 |
+
server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501
|
| 116 |
+
|
| 117 |
+
:return: The server of this V1NFSVolumeSource. # noqa: E501
|
| 118 |
+
:rtype: str
|
| 119 |
+
"""
|
| 120 |
+
return self._server
|
| 121 |
+
|
| 122 |
+
@server.setter
|
| 123 |
+
def server(self, server):
|
| 124 |
+
"""Sets the server of this V1NFSVolumeSource.
|
| 125 |
+
|
| 126 |
+
server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501
|
| 127 |
+
|
| 128 |
+
:param server: The server of this V1NFSVolumeSource. # noqa: E501
|
| 129 |
+
:type: str
|
| 130 |
+
"""
|
| 131 |
+
if self.local_vars_configuration.client_side_validation and server is None: # noqa: E501
|
| 132 |
+
raise ValueError("Invalid value for `server`, must not be `None`") # noqa: E501
|
| 133 |
+
|
| 134 |
+
self._server = server
|
| 135 |
+
|
| 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 |
+
value
|
| 146 |
+
))
|
| 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] = value
|
| 157 |
+
|
| 158 |
+
return result
|
| 159 |
+
|
| 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, V1NFSVolumeSource):
|
| 171 |
+
return False
|
| 172 |
+
|
| 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, V1NFSVolumeSource):
|
| 178 |
+
return True
|
| 179 |
+
|
| 180 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node.py
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1Node(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'kind': 'str',
|
| 38 |
+
'metadata': 'V1ObjectMeta',
|
| 39 |
+
'spec': 'V1NodeSpec',
|
| 40 |
+
'status': 'V1NodeStatus'
|
| 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: E501
|
| 52 |
+
"""V1Node - a model defined in OpenAPI""" # noqa: E501
|
| 53 |
+
if local_vars_configuration is None:
|
| 54 |
+
local_vars_configuration = Configuration()
|
| 55 |
+
self.local_vars_configuration = local_vars_configuration
|
| 56 |
+
|
| 57 |
+
self._api_version = None
|
| 58 |
+
self._kind = None
|
| 59 |
+
self._metadata = None
|
| 60 |
+
self._spec = None
|
| 61 |
+
self._status = None
|
| 62 |
+
self.discriminator = None
|
| 63 |
+
|
| 64 |
+
if api_version is not None:
|
| 65 |
+
self.api_version = api_version
|
| 66 |
+
if kind is not None:
|
| 67 |
+
self.kind = kind
|
| 68 |
+
if metadata is not None:
|
| 69 |
+
self.metadata = metadata
|
| 70 |
+
if spec is not None:
|
| 71 |
+
self.spec = spec
|
| 72 |
+
if status is not None:
|
| 73 |
+
self.status = status
|
| 74 |
+
|
| 75 |
+
@property
|
| 76 |
+
def api_version(self):
|
| 77 |
+
"""Gets the api_version of this V1Node. # noqa: E501
|
| 78 |
+
|
| 79 |
+
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: E501
|
| 80 |
+
|
| 81 |
+
:return: The api_version of this V1Node. # noqa: E501
|
| 82 |
+
:rtype: str
|
| 83 |
+
"""
|
| 84 |
+
return self._api_version
|
| 85 |
+
|
| 86 |
+
@api_version.setter
|
| 87 |
+
def api_version(self, api_version):
|
| 88 |
+
"""Sets the api_version of this V1Node.
|
| 89 |
+
|
| 90 |
+
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: E501
|
| 91 |
+
|
| 92 |
+
:param api_version: The api_version of this V1Node. # noqa: E501
|
| 93 |
+
:type: str
|
| 94 |
+
"""
|
| 95 |
+
|
| 96 |
+
self._api_version = api_version
|
| 97 |
+
|
| 98 |
+
@property
|
| 99 |
+
def kind(self):
|
| 100 |
+
"""Gets the kind of this V1Node. # noqa: E501
|
| 101 |
+
|
| 102 |
+
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: E501
|
| 103 |
+
|
| 104 |
+
:return: The kind of this V1Node. # noqa: E501
|
| 105 |
+
:rtype: str
|
| 106 |
+
"""
|
| 107 |
+
return self._kind
|
| 108 |
+
|
| 109 |
+
@kind.setter
|
| 110 |
+
def kind(self, kind):
|
| 111 |
+
"""Sets the kind of this V1Node.
|
| 112 |
+
|
| 113 |
+
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: E501
|
| 114 |
+
|
| 115 |
+
:param kind: The kind of this V1Node. # noqa: E501
|
| 116 |
+
:type: str
|
| 117 |
+
"""
|
| 118 |
+
|
| 119 |
+
self._kind = kind
|
| 120 |
+
|
| 121 |
+
@property
|
| 122 |
+
def metadata(self):
|
| 123 |
+
"""Gets the metadata of this V1Node. # noqa: E501
|
| 124 |
+
|
| 125 |
+
|
| 126 |
+
:return: The metadata of this V1Node. # noqa: E501
|
| 127 |
+
:rtype: V1ObjectMeta
|
| 128 |
+
"""
|
| 129 |
+
return self._metadata
|
| 130 |
+
|
| 131 |
+
@metadata.setter
|
| 132 |
+
def metadata(self, metadata):
|
| 133 |
+
"""Sets the metadata of this V1Node.
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
:param metadata: The metadata of this V1Node. # noqa: E501
|
| 137 |
+
:type: V1ObjectMeta
|
| 138 |
+
"""
|
| 139 |
+
|
| 140 |
+
self._metadata = metadata
|
| 141 |
+
|
| 142 |
+
@property
|
| 143 |
+
def spec(self):
|
| 144 |
+
"""Gets the spec of this V1Node. # noqa: E501
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
:return: The spec of this V1Node. # noqa: E501
|
| 148 |
+
:rtype: V1NodeSpec
|
| 149 |
+
"""
|
| 150 |
+
return self._spec
|
| 151 |
+
|
| 152 |
+
@spec.setter
|
| 153 |
+
def spec(self, spec):
|
| 154 |
+
"""Sets the spec of this V1Node.
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
:param spec: The spec of this V1Node. # noqa: E501
|
| 158 |
+
:type: V1NodeSpec
|
| 159 |
+
"""
|
| 160 |
+
|
| 161 |
+
self._spec = spec
|
| 162 |
+
|
| 163 |
+
@property
|
| 164 |
+
def status(self):
|
| 165 |
+
"""Gets the status of this V1Node. # noqa: E501
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
:return: The status of this V1Node. # noqa: E501
|
| 169 |
+
:rtype: V1NodeStatus
|
| 170 |
+
"""
|
| 171 |
+
return self._status
|
| 172 |
+
|
| 173 |
+
@status.setter
|
| 174 |
+
def status(self, status):
|
| 175 |
+
"""Sets the status of this V1Node.
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
:param status: The status of this V1Node. # noqa: E501
|
| 179 |
+
:type: V1NodeStatus
|
| 180 |
+
"""
|
| 181 |
+
|
| 182 |
+
self._status = status
|
| 183 |
+
|
| 184 |
+
def to_dict(self):
|
| 185 |
+
"""Returns the model properties as a dict"""
|
| 186 |
+
result = {}
|
| 187 |
+
|
| 188 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 189 |
+
value = getattr(self, attr)
|
| 190 |
+
if isinstance(value, list):
|
| 191 |
+
result[attr] = list(map(
|
| 192 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 193 |
+
value
|
| 194 |
+
))
|
| 195 |
+
elif hasattr(value, "to_dict"):
|
| 196 |
+
result[attr] = value.to_dict()
|
| 197 |
+
elif isinstance(value, dict):
|
| 198 |
+
result[attr] = dict(map(
|
| 199 |
+
lambda item: (item[0], item[1].to_dict())
|
| 200 |
+
if hasattr(item[1], "to_dict") else item,
|
| 201 |
+
value.items()
|
| 202 |
+
))
|
| 203 |
+
else:
|
| 204 |
+
result[attr] = value
|
| 205 |
+
|
| 206 |
+
return result
|
| 207 |
+
|
| 208 |
+
def to_str(self):
|
| 209 |
+
"""Returns the string representation of the model"""
|
| 210 |
+
return pprint.pformat(self.to_dict())
|
| 211 |
+
|
| 212 |
+
def __repr__(self):
|
| 213 |
+
"""For `print` and `pprint`"""
|
| 214 |
+
return self.to_str()
|
| 215 |
+
|
| 216 |
+
def __eq__(self, other):
|
| 217 |
+
"""Returns true if both objects are equal"""
|
| 218 |
+
if not isinstance(other, V1Node):
|
| 219 |
+
return False
|
| 220 |
+
|
| 221 |
+
return self.to_dict() == other.to_dict()
|
| 222 |
+
|
| 223 |
+
def __ne__(self, other):
|
| 224 |
+
"""Returns true if both objects are not equal"""
|
| 225 |
+
if not isinstance(other, V1Node):
|
| 226 |
+
return True
|
| 227 |
+
|
| 228 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_address.py
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeAddress(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'address': 'str',
|
| 37 |
+
'type': 'str'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'address': 'address',
|
| 42 |
+
'type': 'type'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, address=None, type=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NodeAddress - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._address = None
|
| 52 |
+
self._type = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
self.address = address
|
| 56 |
+
self.type = type
|
| 57 |
+
|
| 58 |
+
@property
|
| 59 |
+
def address(self):
|
| 60 |
+
"""Gets the address of this V1NodeAddress. # noqa: E501
|
| 61 |
+
|
| 62 |
+
The node address. # noqa: E501
|
| 63 |
+
|
| 64 |
+
:return: The address of this V1NodeAddress. # noqa: E501
|
| 65 |
+
:rtype: str
|
| 66 |
+
"""
|
| 67 |
+
return self._address
|
| 68 |
+
|
| 69 |
+
@address.setter
|
| 70 |
+
def address(self, address):
|
| 71 |
+
"""Sets the address of this V1NodeAddress.
|
| 72 |
+
|
| 73 |
+
The node address. # noqa: E501
|
| 74 |
+
|
| 75 |
+
:param address: The address of this V1NodeAddress. # noqa: E501
|
| 76 |
+
:type: str
|
| 77 |
+
"""
|
| 78 |
+
if self.local_vars_configuration.client_side_validation and address is None: # noqa: E501
|
| 79 |
+
raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501
|
| 80 |
+
|
| 81 |
+
self._address = address
|
| 82 |
+
|
| 83 |
+
@property
|
| 84 |
+
def type(self):
|
| 85 |
+
"""Gets the type of this V1NodeAddress. # noqa: E501
|
| 86 |
+
|
| 87 |
+
Node address type, one of Hostname, ExternalIP or InternalIP. # noqa: E501
|
| 88 |
+
|
| 89 |
+
:return: The type of this V1NodeAddress. # noqa: E501
|
| 90 |
+
:rtype: str
|
| 91 |
+
"""
|
| 92 |
+
return self._type
|
| 93 |
+
|
| 94 |
+
@type.setter
|
| 95 |
+
def type(self, type):
|
| 96 |
+
"""Sets the type of this V1NodeAddress.
|
| 97 |
+
|
| 98 |
+
Node address type, one of Hostname, ExternalIP or InternalIP. # noqa: E501
|
| 99 |
+
|
| 100 |
+
:param type: The type of this V1NodeAddress. # noqa: E501
|
| 101 |
+
:type: str
|
| 102 |
+
"""
|
| 103 |
+
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
|
| 104 |
+
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
| 105 |
+
|
| 106 |
+
self._type = type
|
| 107 |
+
|
| 108 |
+
def to_dict(self):
|
| 109 |
+
"""Returns the model properties as a dict"""
|
| 110 |
+
result = {}
|
| 111 |
+
|
| 112 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 113 |
+
value = getattr(self, attr)
|
| 114 |
+
if isinstance(value, list):
|
| 115 |
+
result[attr] = list(map(
|
| 116 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 117 |
+
value
|
| 118 |
+
))
|
| 119 |
+
elif hasattr(value, "to_dict"):
|
| 120 |
+
result[attr] = value.to_dict()
|
| 121 |
+
elif isinstance(value, dict):
|
| 122 |
+
result[attr] = dict(map(
|
| 123 |
+
lambda item: (item[0], item[1].to_dict())
|
| 124 |
+
if hasattr(item[1], "to_dict") else item,
|
| 125 |
+
value.items()
|
| 126 |
+
))
|
| 127 |
+
else:
|
| 128 |
+
result[attr] = value
|
| 129 |
+
|
| 130 |
+
return result
|
| 131 |
+
|
| 132 |
+
def to_str(self):
|
| 133 |
+
"""Returns the string representation of the model"""
|
| 134 |
+
return pprint.pformat(self.to_dict())
|
| 135 |
+
|
| 136 |
+
def __repr__(self):
|
| 137 |
+
"""For `print` and `pprint`"""
|
| 138 |
+
return self.to_str()
|
| 139 |
+
|
| 140 |
+
def __eq__(self, other):
|
| 141 |
+
"""Returns true if both objects are equal"""
|
| 142 |
+
if not isinstance(other, V1NodeAddress):
|
| 143 |
+
return False
|
| 144 |
+
|
| 145 |
+
return self.to_dict() == other.to_dict()
|
| 146 |
+
|
| 147 |
+
def __ne__(self, other):
|
| 148 |
+
"""Returns true if both objects are not equal"""
|
| 149 |
+
if not isinstance(other, V1NodeAddress):
|
| 150 |
+
return True
|
| 151 |
+
|
| 152 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_affinity.py
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeAffinity(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'preferred_during_scheduling_ignored_during_execution': 'list[V1PreferredSchedulingTerm]',
|
| 37 |
+
'required_during_scheduling_ignored_during_execution': 'V1NodeSelector'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'preferred_during_scheduling_ignored_during_execution': 'preferredDuringSchedulingIgnoredDuringExecution',
|
| 42 |
+
'required_during_scheduling_ignored_during_execution': 'requiredDuringSchedulingIgnoredDuringExecution'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, preferred_during_scheduling_ignored_during_execution=None, required_during_scheduling_ignored_during_execution=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NodeAffinity - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._preferred_during_scheduling_ignored_during_execution = None
|
| 52 |
+
self._required_during_scheduling_ignored_during_execution = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if preferred_during_scheduling_ignored_during_execution is not None:
|
| 56 |
+
self.preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution
|
| 57 |
+
if required_during_scheduling_ignored_during_execution is not None:
|
| 58 |
+
self.required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution
|
| 59 |
+
|
| 60 |
+
@property
|
| 61 |
+
def preferred_during_scheduling_ignored_during_execution(self):
|
| 62 |
+
"""Gets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501
|
| 63 |
+
|
| 64 |
+
The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. # noqa: E501
|
| 65 |
+
|
| 66 |
+
:return: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501
|
| 67 |
+
:rtype: list[V1PreferredSchedulingTerm]
|
| 68 |
+
"""
|
| 69 |
+
return self._preferred_during_scheduling_ignored_during_execution
|
| 70 |
+
|
| 71 |
+
@preferred_during_scheduling_ignored_during_execution.setter
|
| 72 |
+
def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution):
|
| 73 |
+
"""Sets the preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity.
|
| 74 |
+
|
| 75 |
+
The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. # noqa: E501
|
| 76 |
+
|
| 77 |
+
:param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501
|
| 78 |
+
:type: list[V1PreferredSchedulingTerm]
|
| 79 |
+
"""
|
| 80 |
+
|
| 81 |
+
self._preferred_during_scheduling_ignored_during_execution = preferred_during_scheduling_ignored_during_execution
|
| 82 |
+
|
| 83 |
+
@property
|
| 84 |
+
def required_during_scheduling_ignored_during_execution(self):
|
| 85 |
+
"""Gets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
:return: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501
|
| 89 |
+
:rtype: V1NodeSelector
|
| 90 |
+
"""
|
| 91 |
+
return self._required_during_scheduling_ignored_during_execution
|
| 92 |
+
|
| 93 |
+
@required_during_scheduling_ignored_during_execution.setter
|
| 94 |
+
def required_during_scheduling_ignored_during_execution(self, required_during_scheduling_ignored_during_execution):
|
| 95 |
+
"""Sets the required_during_scheduling_ignored_during_execution of this V1NodeAffinity.
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
:param required_during_scheduling_ignored_during_execution: The required_during_scheduling_ignored_during_execution of this V1NodeAffinity. # noqa: E501
|
| 99 |
+
:type: V1NodeSelector
|
| 100 |
+
"""
|
| 101 |
+
|
| 102 |
+
self._required_during_scheduling_ignored_during_execution = required_during_scheduling_ignored_during_execution
|
| 103 |
+
|
| 104 |
+
def to_dict(self):
|
| 105 |
+
"""Returns the model properties as a dict"""
|
| 106 |
+
result = {}
|
| 107 |
+
|
| 108 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 109 |
+
value = getattr(self, attr)
|
| 110 |
+
if isinstance(value, list):
|
| 111 |
+
result[attr] = list(map(
|
| 112 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 113 |
+
value
|
| 114 |
+
))
|
| 115 |
+
elif hasattr(value, "to_dict"):
|
| 116 |
+
result[attr] = value.to_dict()
|
| 117 |
+
elif isinstance(value, dict):
|
| 118 |
+
result[attr] = dict(map(
|
| 119 |
+
lambda item: (item[0], item[1].to_dict())
|
| 120 |
+
if hasattr(item[1], "to_dict") else item,
|
| 121 |
+
value.items()
|
| 122 |
+
))
|
| 123 |
+
else:
|
| 124 |
+
result[attr] = value
|
| 125 |
+
|
| 126 |
+
return result
|
| 127 |
+
|
| 128 |
+
def to_str(self):
|
| 129 |
+
"""Returns the string representation of the model"""
|
| 130 |
+
return pprint.pformat(self.to_dict())
|
| 131 |
+
|
| 132 |
+
def __repr__(self):
|
| 133 |
+
"""For `print` and `pprint`"""
|
| 134 |
+
return self.to_str()
|
| 135 |
+
|
| 136 |
+
def __eq__(self, other):
|
| 137 |
+
"""Returns true if both objects are equal"""
|
| 138 |
+
if not isinstance(other, V1NodeAffinity):
|
| 139 |
+
return False
|
| 140 |
+
|
| 141 |
+
return self.to_dict() == other.to_dict()
|
| 142 |
+
|
| 143 |
+
def __ne__(self, other):
|
| 144 |
+
"""Returns true if both objects are not equal"""
|
| 145 |
+
if not isinstance(other, V1NodeAffinity):
|
| 146 |
+
return True
|
| 147 |
+
|
| 148 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_condition.py
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeCondition(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'last_heartbeat_time': 'datetime',
|
| 37 |
+
'last_transition_time': 'datetime',
|
| 38 |
+
'message': 'str',
|
| 39 |
+
'reason': 'str',
|
| 40 |
+
'status': 'str',
|
| 41 |
+
'type': 'str'
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
attribute_map = {
|
| 45 |
+
'last_heartbeat_time': 'lastHeartbeatTime',
|
| 46 |
+
'last_transition_time': 'lastTransitionTime',
|
| 47 |
+
'message': 'message',
|
| 48 |
+
'reason': 'reason',
|
| 49 |
+
'status': 'status',
|
| 50 |
+
'type': 'type'
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
def __init__(self, last_heartbeat_time=None, last_transition_time=None, message=None, reason=None, status=None, type=None, local_vars_configuration=None): # noqa: E501
|
| 54 |
+
"""V1NodeCondition - a model defined in OpenAPI""" # noqa: E501
|
| 55 |
+
if local_vars_configuration is None:
|
| 56 |
+
local_vars_configuration = Configuration()
|
| 57 |
+
self.local_vars_configuration = local_vars_configuration
|
| 58 |
+
|
| 59 |
+
self._last_heartbeat_time = None
|
| 60 |
+
self._last_transition_time = None
|
| 61 |
+
self._message = None
|
| 62 |
+
self._reason = None
|
| 63 |
+
self._status = None
|
| 64 |
+
self._type = None
|
| 65 |
+
self.discriminator = None
|
| 66 |
+
|
| 67 |
+
if last_heartbeat_time is not None:
|
| 68 |
+
self.last_heartbeat_time = last_heartbeat_time
|
| 69 |
+
if last_transition_time is not None:
|
| 70 |
+
self.last_transition_time = last_transition_time
|
| 71 |
+
if message is not None:
|
| 72 |
+
self.message = message
|
| 73 |
+
if reason is not None:
|
| 74 |
+
self.reason = reason
|
| 75 |
+
self.status = status
|
| 76 |
+
self.type = type
|
| 77 |
+
|
| 78 |
+
@property
|
| 79 |
+
def last_heartbeat_time(self):
|
| 80 |
+
"""Gets the last_heartbeat_time of this V1NodeCondition. # noqa: E501
|
| 81 |
+
|
| 82 |
+
Last time we got an update on a given condition. # noqa: E501
|
| 83 |
+
|
| 84 |
+
:return: The last_heartbeat_time of this V1NodeCondition. # noqa: E501
|
| 85 |
+
:rtype: datetime
|
| 86 |
+
"""
|
| 87 |
+
return self._last_heartbeat_time
|
| 88 |
+
|
| 89 |
+
@last_heartbeat_time.setter
|
| 90 |
+
def last_heartbeat_time(self, last_heartbeat_time):
|
| 91 |
+
"""Sets the last_heartbeat_time of this V1NodeCondition.
|
| 92 |
+
|
| 93 |
+
Last time we got an update on a given condition. # noqa: E501
|
| 94 |
+
|
| 95 |
+
:param last_heartbeat_time: The last_heartbeat_time of this V1NodeCondition. # noqa: E501
|
| 96 |
+
:type: datetime
|
| 97 |
+
"""
|
| 98 |
+
|
| 99 |
+
self._last_heartbeat_time = last_heartbeat_time
|
| 100 |
+
|
| 101 |
+
@property
|
| 102 |
+
def last_transition_time(self):
|
| 103 |
+
"""Gets the last_transition_time of this V1NodeCondition. # noqa: E501
|
| 104 |
+
|
| 105 |
+
Last time the condition transit from one status to another. # noqa: E501
|
| 106 |
+
|
| 107 |
+
:return: The last_transition_time of this V1NodeCondition. # noqa: E501
|
| 108 |
+
:rtype: datetime
|
| 109 |
+
"""
|
| 110 |
+
return self._last_transition_time
|
| 111 |
+
|
| 112 |
+
@last_transition_time.setter
|
| 113 |
+
def last_transition_time(self, last_transition_time):
|
| 114 |
+
"""Sets the last_transition_time of this V1NodeCondition.
|
| 115 |
+
|
| 116 |
+
Last time the condition transit from one status to another. # noqa: E501
|
| 117 |
+
|
| 118 |
+
:param last_transition_time: The last_transition_time of this V1NodeCondition. # noqa: E501
|
| 119 |
+
:type: datetime
|
| 120 |
+
"""
|
| 121 |
+
|
| 122 |
+
self._last_transition_time = last_transition_time
|
| 123 |
+
|
| 124 |
+
@property
|
| 125 |
+
def message(self):
|
| 126 |
+
"""Gets the message of this V1NodeCondition. # noqa: E501
|
| 127 |
+
|
| 128 |
+
Human readable message indicating details about last transition. # noqa: E501
|
| 129 |
+
|
| 130 |
+
:return: The message of this V1NodeCondition. # noqa: E501
|
| 131 |
+
:rtype: str
|
| 132 |
+
"""
|
| 133 |
+
return self._message
|
| 134 |
+
|
| 135 |
+
@message.setter
|
| 136 |
+
def message(self, message):
|
| 137 |
+
"""Sets the message of this V1NodeCondition.
|
| 138 |
+
|
| 139 |
+
Human readable message indicating details about last transition. # noqa: E501
|
| 140 |
+
|
| 141 |
+
:param message: The message of this V1NodeCondition. # noqa: E501
|
| 142 |
+
:type: str
|
| 143 |
+
"""
|
| 144 |
+
|
| 145 |
+
self._message = message
|
| 146 |
+
|
| 147 |
+
@property
|
| 148 |
+
def reason(self):
|
| 149 |
+
"""Gets the reason of this V1NodeCondition. # noqa: E501
|
| 150 |
+
|
| 151 |
+
(brief) reason for the condition's last transition. # noqa: E501
|
| 152 |
+
|
| 153 |
+
:return: The reason of this V1NodeCondition. # noqa: E501
|
| 154 |
+
:rtype: str
|
| 155 |
+
"""
|
| 156 |
+
return self._reason
|
| 157 |
+
|
| 158 |
+
@reason.setter
|
| 159 |
+
def reason(self, reason):
|
| 160 |
+
"""Sets the reason of this V1NodeCondition.
|
| 161 |
+
|
| 162 |
+
(brief) reason for the condition's last transition. # noqa: E501
|
| 163 |
+
|
| 164 |
+
:param reason: The reason of this V1NodeCondition. # noqa: E501
|
| 165 |
+
:type: str
|
| 166 |
+
"""
|
| 167 |
+
|
| 168 |
+
self._reason = reason
|
| 169 |
+
|
| 170 |
+
@property
|
| 171 |
+
def status(self):
|
| 172 |
+
"""Gets the status of this V1NodeCondition. # noqa: E501
|
| 173 |
+
|
| 174 |
+
Status of the condition, one of True, False, Unknown. # noqa: E501
|
| 175 |
+
|
| 176 |
+
:return: The status of this V1NodeCondition. # noqa: E501
|
| 177 |
+
:rtype: str
|
| 178 |
+
"""
|
| 179 |
+
return self._status
|
| 180 |
+
|
| 181 |
+
@status.setter
|
| 182 |
+
def status(self, status):
|
| 183 |
+
"""Sets the status of this V1NodeCondition.
|
| 184 |
+
|
| 185 |
+
Status of the condition, one of True, False, Unknown. # noqa: E501
|
| 186 |
+
|
| 187 |
+
:param status: The status of this V1NodeCondition. # noqa: E501
|
| 188 |
+
:type: str
|
| 189 |
+
"""
|
| 190 |
+
if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
|
| 191 |
+
raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
|
| 192 |
+
|
| 193 |
+
self._status = status
|
| 194 |
+
|
| 195 |
+
@property
|
| 196 |
+
def type(self):
|
| 197 |
+
"""Gets the type of this V1NodeCondition. # noqa: E501
|
| 198 |
+
|
| 199 |
+
Type of node condition. # noqa: E501
|
| 200 |
+
|
| 201 |
+
:return: The type of this V1NodeCondition. # noqa: E501
|
| 202 |
+
:rtype: str
|
| 203 |
+
"""
|
| 204 |
+
return self._type
|
| 205 |
+
|
| 206 |
+
@type.setter
|
| 207 |
+
def type(self, type):
|
| 208 |
+
"""Sets the type of this V1NodeCondition.
|
| 209 |
+
|
| 210 |
+
Type of node condition. # noqa: E501
|
| 211 |
+
|
| 212 |
+
:param type: The type of this V1NodeCondition. # noqa: E501
|
| 213 |
+
:type: str
|
| 214 |
+
"""
|
| 215 |
+
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
|
| 216 |
+
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
| 217 |
+
|
| 218 |
+
self._type = type
|
| 219 |
+
|
| 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 |
+
value
|
| 230 |
+
))
|
| 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] = value
|
| 241 |
+
|
| 242 |
+
return result
|
| 243 |
+
|
| 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, V1NodeCondition):
|
| 255 |
+
return False
|
| 256 |
+
|
| 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, V1NodeCondition):
|
| 262 |
+
return True
|
| 263 |
+
|
| 264 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_config_source.py
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeConfigSource(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'config_map': 'V1ConfigMapNodeConfigSource'
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
attribute_map = {
|
| 40 |
+
'config_map': 'configMap'
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
def __init__(self, config_map=None, local_vars_configuration=None): # noqa: E501
|
| 44 |
+
"""V1NodeConfigSource - a model defined in OpenAPI""" # noqa: E501
|
| 45 |
+
if local_vars_configuration is None:
|
| 46 |
+
local_vars_configuration = Configuration()
|
| 47 |
+
self.local_vars_configuration = local_vars_configuration
|
| 48 |
+
|
| 49 |
+
self._config_map = None
|
| 50 |
+
self.discriminator = None
|
| 51 |
+
|
| 52 |
+
if config_map is not None:
|
| 53 |
+
self.config_map = config_map
|
| 54 |
+
|
| 55 |
+
@property
|
| 56 |
+
def config_map(self):
|
| 57 |
+
"""Gets the config_map of this V1NodeConfigSource. # noqa: E501
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
:return: The config_map of this V1NodeConfigSource. # noqa: E501
|
| 61 |
+
:rtype: V1ConfigMapNodeConfigSource
|
| 62 |
+
"""
|
| 63 |
+
return self._config_map
|
| 64 |
+
|
| 65 |
+
@config_map.setter
|
| 66 |
+
def config_map(self, config_map):
|
| 67 |
+
"""Sets the config_map of this V1NodeConfigSource.
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
:param config_map: The config_map of this V1NodeConfigSource. # noqa: E501
|
| 71 |
+
:type: V1ConfigMapNodeConfigSource
|
| 72 |
+
"""
|
| 73 |
+
|
| 74 |
+
self._config_map = config_map
|
| 75 |
+
|
| 76 |
+
def to_dict(self):
|
| 77 |
+
"""Returns the model properties as a dict"""
|
| 78 |
+
result = {}
|
| 79 |
+
|
| 80 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 81 |
+
value = getattr(self, attr)
|
| 82 |
+
if isinstance(value, list):
|
| 83 |
+
result[attr] = list(map(
|
| 84 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 85 |
+
value
|
| 86 |
+
))
|
| 87 |
+
elif hasattr(value, "to_dict"):
|
| 88 |
+
result[attr] = value.to_dict()
|
| 89 |
+
elif isinstance(value, dict):
|
| 90 |
+
result[attr] = dict(map(
|
| 91 |
+
lambda item: (item[0], item[1].to_dict())
|
| 92 |
+
if hasattr(item[1], "to_dict") else item,
|
| 93 |
+
value.items()
|
| 94 |
+
))
|
| 95 |
+
else:
|
| 96 |
+
result[attr] = value
|
| 97 |
+
|
| 98 |
+
return result
|
| 99 |
+
|
| 100 |
+
def to_str(self):
|
| 101 |
+
"""Returns the string representation of the model"""
|
| 102 |
+
return pprint.pformat(self.to_dict())
|
| 103 |
+
|
| 104 |
+
def __repr__(self):
|
| 105 |
+
"""For `print` and `pprint`"""
|
| 106 |
+
return self.to_str()
|
| 107 |
+
|
| 108 |
+
def __eq__(self, other):
|
| 109 |
+
"""Returns true if both objects are equal"""
|
| 110 |
+
if not isinstance(other, V1NodeConfigSource):
|
| 111 |
+
return False
|
| 112 |
+
|
| 113 |
+
return self.to_dict() == other.to_dict()
|
| 114 |
+
|
| 115 |
+
def __ne__(self, other):
|
| 116 |
+
"""Returns true if both objects are not equal"""
|
| 117 |
+
if not isinstance(other, V1NodeConfigSource):
|
| 118 |
+
return True
|
| 119 |
+
|
| 120 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_config_status.py
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeConfigStatus(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'active': 'V1NodeConfigSource',
|
| 37 |
+
'assigned': 'V1NodeConfigSource',
|
| 38 |
+
'error': 'str',
|
| 39 |
+
'last_known_good': 'V1NodeConfigSource'
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
attribute_map = {
|
| 43 |
+
'active': 'active',
|
| 44 |
+
'assigned': 'assigned',
|
| 45 |
+
'error': 'error',
|
| 46 |
+
'last_known_good': 'lastKnownGood'
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
def __init__(self, active=None, assigned=None, error=None, last_known_good=None, local_vars_configuration=None): # noqa: E501
|
| 50 |
+
"""V1NodeConfigStatus - a model defined in OpenAPI""" # noqa: E501
|
| 51 |
+
if local_vars_configuration is None:
|
| 52 |
+
local_vars_configuration = Configuration()
|
| 53 |
+
self.local_vars_configuration = local_vars_configuration
|
| 54 |
+
|
| 55 |
+
self._active = None
|
| 56 |
+
self._assigned = None
|
| 57 |
+
self._error = None
|
| 58 |
+
self._last_known_good = None
|
| 59 |
+
self.discriminator = None
|
| 60 |
+
|
| 61 |
+
if active is not None:
|
| 62 |
+
self.active = active
|
| 63 |
+
if assigned is not None:
|
| 64 |
+
self.assigned = assigned
|
| 65 |
+
if error is not None:
|
| 66 |
+
self.error = error
|
| 67 |
+
if last_known_good is not None:
|
| 68 |
+
self.last_known_good = last_known_good
|
| 69 |
+
|
| 70 |
+
@property
|
| 71 |
+
def active(self):
|
| 72 |
+
"""Gets the active of this V1NodeConfigStatus. # noqa: E501
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
:return: The active of this V1NodeConfigStatus. # noqa: E501
|
| 76 |
+
:rtype: V1NodeConfigSource
|
| 77 |
+
"""
|
| 78 |
+
return self._active
|
| 79 |
+
|
| 80 |
+
@active.setter
|
| 81 |
+
def active(self, active):
|
| 82 |
+
"""Sets the active of this V1NodeConfigStatus.
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
:param active: The active of this V1NodeConfigStatus. # noqa: E501
|
| 86 |
+
:type: V1NodeConfigSource
|
| 87 |
+
"""
|
| 88 |
+
|
| 89 |
+
self._active = active
|
| 90 |
+
|
| 91 |
+
@property
|
| 92 |
+
def assigned(self):
|
| 93 |
+
"""Gets the assigned of this V1NodeConfigStatus. # noqa: E501
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
:return: The assigned of this V1NodeConfigStatus. # noqa: E501
|
| 97 |
+
:rtype: V1NodeConfigSource
|
| 98 |
+
"""
|
| 99 |
+
return self._assigned
|
| 100 |
+
|
| 101 |
+
@assigned.setter
|
| 102 |
+
def assigned(self, assigned):
|
| 103 |
+
"""Sets the assigned of this V1NodeConfigStatus.
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
:param assigned: The assigned of this V1NodeConfigStatus. # noqa: E501
|
| 107 |
+
:type: V1NodeConfigSource
|
| 108 |
+
"""
|
| 109 |
+
|
| 110 |
+
self._assigned = assigned
|
| 111 |
+
|
| 112 |
+
@property
|
| 113 |
+
def error(self):
|
| 114 |
+
"""Gets the error of this V1NodeConfigStatus. # noqa: E501
|
| 115 |
+
|
| 116 |
+
Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. # noqa: E501
|
| 117 |
+
|
| 118 |
+
:return: The error of this V1NodeConfigStatus. # noqa: E501
|
| 119 |
+
:rtype: str
|
| 120 |
+
"""
|
| 121 |
+
return self._error
|
| 122 |
+
|
| 123 |
+
@error.setter
|
| 124 |
+
def error(self, error):
|
| 125 |
+
"""Sets the error of this V1NodeConfigStatus.
|
| 126 |
+
|
| 127 |
+
Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. # noqa: E501
|
| 128 |
+
|
| 129 |
+
:param error: The error of this V1NodeConfigStatus. # noqa: E501
|
| 130 |
+
:type: str
|
| 131 |
+
"""
|
| 132 |
+
|
| 133 |
+
self._error = error
|
| 134 |
+
|
| 135 |
+
@property
|
| 136 |
+
def last_known_good(self):
|
| 137 |
+
"""Gets the last_known_good of this V1NodeConfigStatus. # noqa: E501
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
:return: The last_known_good of this V1NodeConfigStatus. # noqa: E501
|
| 141 |
+
:rtype: V1NodeConfigSource
|
| 142 |
+
"""
|
| 143 |
+
return self._last_known_good
|
| 144 |
+
|
| 145 |
+
@last_known_good.setter
|
| 146 |
+
def last_known_good(self, last_known_good):
|
| 147 |
+
"""Sets the last_known_good of this V1NodeConfigStatus.
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
:param last_known_good: The last_known_good of this V1NodeConfigStatus. # noqa: E501
|
| 151 |
+
:type: V1NodeConfigSource
|
| 152 |
+
"""
|
| 153 |
+
|
| 154 |
+
self._last_known_good = last_known_good
|
| 155 |
+
|
| 156 |
+
def to_dict(self):
|
| 157 |
+
"""Returns the model properties as a dict"""
|
| 158 |
+
result = {}
|
| 159 |
+
|
| 160 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 161 |
+
value = getattr(self, attr)
|
| 162 |
+
if isinstance(value, list):
|
| 163 |
+
result[attr] = list(map(
|
| 164 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 165 |
+
value
|
| 166 |
+
))
|
| 167 |
+
elif hasattr(value, "to_dict"):
|
| 168 |
+
result[attr] = value.to_dict()
|
| 169 |
+
elif isinstance(value, dict):
|
| 170 |
+
result[attr] = dict(map(
|
| 171 |
+
lambda item: (item[0], item[1].to_dict())
|
| 172 |
+
if hasattr(item[1], "to_dict") else item,
|
| 173 |
+
value.items()
|
| 174 |
+
))
|
| 175 |
+
else:
|
| 176 |
+
result[attr] = value
|
| 177 |
+
|
| 178 |
+
return result
|
| 179 |
+
|
| 180 |
+
def to_str(self):
|
| 181 |
+
"""Returns the string representation of the model"""
|
| 182 |
+
return pprint.pformat(self.to_dict())
|
| 183 |
+
|
| 184 |
+
def __repr__(self):
|
| 185 |
+
"""For `print` and `pprint`"""
|
| 186 |
+
return self.to_str()
|
| 187 |
+
|
| 188 |
+
def __eq__(self, other):
|
| 189 |
+
"""Returns true if both objects are equal"""
|
| 190 |
+
if not isinstance(other, V1NodeConfigStatus):
|
| 191 |
+
return False
|
| 192 |
+
|
| 193 |
+
return self.to_dict() == other.to_dict()
|
| 194 |
+
|
| 195 |
+
def __ne__(self, other):
|
| 196 |
+
"""Returns true if both objects are not equal"""
|
| 197 |
+
if not isinstance(other, V1NodeConfigStatus):
|
| 198 |
+
return True
|
| 199 |
+
|
| 200 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_daemon_endpoints.py
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeDaemonEndpoints(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'kubelet_endpoint': 'V1DaemonEndpoint'
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
attribute_map = {
|
| 40 |
+
'kubelet_endpoint': 'kubeletEndpoint'
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
def __init__(self, kubelet_endpoint=None, local_vars_configuration=None): # noqa: E501
|
| 44 |
+
"""V1NodeDaemonEndpoints - a model defined in OpenAPI""" # noqa: E501
|
| 45 |
+
if local_vars_configuration is None:
|
| 46 |
+
local_vars_configuration = Configuration()
|
| 47 |
+
self.local_vars_configuration = local_vars_configuration
|
| 48 |
+
|
| 49 |
+
self._kubelet_endpoint = None
|
| 50 |
+
self.discriminator = None
|
| 51 |
+
|
| 52 |
+
if kubelet_endpoint is not None:
|
| 53 |
+
self.kubelet_endpoint = kubelet_endpoint
|
| 54 |
+
|
| 55 |
+
@property
|
| 56 |
+
def kubelet_endpoint(self):
|
| 57 |
+
"""Gets the kubelet_endpoint of this V1NodeDaemonEndpoints. # noqa: E501
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
:return: The kubelet_endpoint of this V1NodeDaemonEndpoints. # noqa: E501
|
| 61 |
+
:rtype: V1DaemonEndpoint
|
| 62 |
+
"""
|
| 63 |
+
return self._kubelet_endpoint
|
| 64 |
+
|
| 65 |
+
@kubelet_endpoint.setter
|
| 66 |
+
def kubelet_endpoint(self, kubelet_endpoint):
|
| 67 |
+
"""Sets the kubelet_endpoint of this V1NodeDaemonEndpoints.
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
:param kubelet_endpoint: The kubelet_endpoint of this V1NodeDaemonEndpoints. # noqa: E501
|
| 71 |
+
:type: V1DaemonEndpoint
|
| 72 |
+
"""
|
| 73 |
+
|
| 74 |
+
self._kubelet_endpoint = kubelet_endpoint
|
| 75 |
+
|
| 76 |
+
def to_dict(self):
|
| 77 |
+
"""Returns the model properties as a dict"""
|
| 78 |
+
result = {}
|
| 79 |
+
|
| 80 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 81 |
+
value = getattr(self, attr)
|
| 82 |
+
if isinstance(value, list):
|
| 83 |
+
result[attr] = list(map(
|
| 84 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 85 |
+
value
|
| 86 |
+
))
|
| 87 |
+
elif hasattr(value, "to_dict"):
|
| 88 |
+
result[attr] = value.to_dict()
|
| 89 |
+
elif isinstance(value, dict):
|
| 90 |
+
result[attr] = dict(map(
|
| 91 |
+
lambda item: (item[0], item[1].to_dict())
|
| 92 |
+
if hasattr(item[1], "to_dict") else item,
|
| 93 |
+
value.items()
|
| 94 |
+
))
|
| 95 |
+
else:
|
| 96 |
+
result[attr] = value
|
| 97 |
+
|
| 98 |
+
return result
|
| 99 |
+
|
| 100 |
+
def to_str(self):
|
| 101 |
+
"""Returns the string representation of the model"""
|
| 102 |
+
return pprint.pformat(self.to_dict())
|
| 103 |
+
|
| 104 |
+
def __repr__(self):
|
| 105 |
+
"""For `print` and `pprint`"""
|
| 106 |
+
return self.to_str()
|
| 107 |
+
|
| 108 |
+
def __eq__(self, other):
|
| 109 |
+
"""Returns true if both objects are equal"""
|
| 110 |
+
if not isinstance(other, V1NodeDaemonEndpoints):
|
| 111 |
+
return False
|
| 112 |
+
|
| 113 |
+
return self.to_dict() == other.to_dict()
|
| 114 |
+
|
| 115 |
+
def __ne__(self, other):
|
| 116 |
+
"""Returns true if both objects are not equal"""
|
| 117 |
+
if not isinstance(other, V1NodeDaemonEndpoints):
|
| 118 |
+
return True
|
| 119 |
+
|
| 120 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_features.py
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeFeatures(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'supplemental_groups_policy': 'bool'
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
attribute_map = {
|
| 40 |
+
'supplemental_groups_policy': 'supplementalGroupsPolicy'
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
def __init__(self, supplemental_groups_policy=None, local_vars_configuration=None): # noqa: E501
|
| 44 |
+
"""V1NodeFeatures - a model defined in OpenAPI""" # noqa: E501
|
| 45 |
+
if local_vars_configuration is None:
|
| 46 |
+
local_vars_configuration = Configuration()
|
| 47 |
+
self.local_vars_configuration = local_vars_configuration
|
| 48 |
+
|
| 49 |
+
self._supplemental_groups_policy = None
|
| 50 |
+
self.discriminator = None
|
| 51 |
+
|
| 52 |
+
if supplemental_groups_policy is not None:
|
| 53 |
+
self.supplemental_groups_policy = supplemental_groups_policy
|
| 54 |
+
|
| 55 |
+
@property
|
| 56 |
+
def supplemental_groups_policy(self):
|
| 57 |
+
"""Gets the supplemental_groups_policy of this V1NodeFeatures. # noqa: E501
|
| 58 |
+
|
| 59 |
+
SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser. # noqa: E501
|
| 60 |
+
|
| 61 |
+
:return: The supplemental_groups_policy of this V1NodeFeatures. # noqa: E501
|
| 62 |
+
:rtype: bool
|
| 63 |
+
"""
|
| 64 |
+
return self._supplemental_groups_policy
|
| 65 |
+
|
| 66 |
+
@supplemental_groups_policy.setter
|
| 67 |
+
def supplemental_groups_policy(self, supplemental_groups_policy):
|
| 68 |
+
"""Sets the supplemental_groups_policy of this V1NodeFeatures.
|
| 69 |
+
|
| 70 |
+
SupplementalGroupsPolicy is set to true if the runtime supports SupplementalGroupsPolicy and ContainerUser. # noqa: E501
|
| 71 |
+
|
| 72 |
+
:param supplemental_groups_policy: The supplemental_groups_policy of this V1NodeFeatures. # noqa: E501
|
| 73 |
+
:type: bool
|
| 74 |
+
"""
|
| 75 |
+
|
| 76 |
+
self._supplemental_groups_policy = supplemental_groups_policy
|
| 77 |
+
|
| 78 |
+
def to_dict(self):
|
| 79 |
+
"""Returns the model properties as a dict"""
|
| 80 |
+
result = {}
|
| 81 |
+
|
| 82 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 83 |
+
value = getattr(self, attr)
|
| 84 |
+
if isinstance(value, list):
|
| 85 |
+
result[attr] = list(map(
|
| 86 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 87 |
+
value
|
| 88 |
+
))
|
| 89 |
+
elif hasattr(value, "to_dict"):
|
| 90 |
+
result[attr] = value.to_dict()
|
| 91 |
+
elif isinstance(value, dict):
|
| 92 |
+
result[attr] = dict(map(
|
| 93 |
+
lambda item: (item[0], item[1].to_dict())
|
| 94 |
+
if hasattr(item[1], "to_dict") else item,
|
| 95 |
+
value.items()
|
| 96 |
+
))
|
| 97 |
+
else:
|
| 98 |
+
result[attr] = value
|
| 99 |
+
|
| 100 |
+
return result
|
| 101 |
+
|
| 102 |
+
def to_str(self):
|
| 103 |
+
"""Returns the string representation of the model"""
|
| 104 |
+
return pprint.pformat(self.to_dict())
|
| 105 |
+
|
| 106 |
+
def __repr__(self):
|
| 107 |
+
"""For `print` and `pprint`"""
|
| 108 |
+
return self.to_str()
|
| 109 |
+
|
| 110 |
+
def __eq__(self, other):
|
| 111 |
+
"""Returns true if both objects are equal"""
|
| 112 |
+
if not isinstance(other, V1NodeFeatures):
|
| 113 |
+
return False
|
| 114 |
+
|
| 115 |
+
return self.to_dict() == other.to_dict()
|
| 116 |
+
|
| 117 |
+
def __ne__(self, other):
|
| 118 |
+
"""Returns true if both objects are not equal"""
|
| 119 |
+
if not isinstance(other, V1NodeFeatures):
|
| 120 |
+
return True
|
| 121 |
+
|
| 122 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_list.py
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeList(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'items': 'list[V1Node]',
|
| 38 |
+
'kind': 'str',
|
| 39 |
+
'metadata': 'V1ListMeta'
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
attribute_map = {
|
| 43 |
+
'api_version': 'apiVersion',
|
| 44 |
+
'items': 'items',
|
| 45 |
+
'kind': 'kind',
|
| 46 |
+
'metadata': 'metadata'
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
| 50 |
+
"""V1NodeList - a model defined in OpenAPI""" # noqa: E501
|
| 51 |
+
if local_vars_configuration is None:
|
| 52 |
+
local_vars_configuration = Configuration()
|
| 53 |
+
self.local_vars_configuration = local_vars_configuration
|
| 54 |
+
|
| 55 |
+
self._api_version = None
|
| 56 |
+
self._items = None
|
| 57 |
+
self._kind = None
|
| 58 |
+
self._metadata = None
|
| 59 |
+
self.discriminator = None
|
| 60 |
+
|
| 61 |
+
if api_version is not None:
|
| 62 |
+
self.api_version = api_version
|
| 63 |
+
self.items = items
|
| 64 |
+
if kind is not None:
|
| 65 |
+
self.kind = kind
|
| 66 |
+
if metadata is not None:
|
| 67 |
+
self.metadata = metadata
|
| 68 |
+
|
| 69 |
+
@property
|
| 70 |
+
def api_version(self):
|
| 71 |
+
"""Gets the api_version of this V1NodeList. # noqa: E501
|
| 72 |
+
|
| 73 |
+
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: E501
|
| 74 |
+
|
| 75 |
+
:return: The api_version of this V1NodeList. # noqa: E501
|
| 76 |
+
:rtype: str
|
| 77 |
+
"""
|
| 78 |
+
return self._api_version
|
| 79 |
+
|
| 80 |
+
@api_version.setter
|
| 81 |
+
def api_version(self, api_version):
|
| 82 |
+
"""Sets the api_version of this V1NodeList.
|
| 83 |
+
|
| 84 |
+
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: E501
|
| 85 |
+
|
| 86 |
+
:param api_version: The api_version of this V1NodeList. # noqa: E501
|
| 87 |
+
:type: str
|
| 88 |
+
"""
|
| 89 |
+
|
| 90 |
+
self._api_version = api_version
|
| 91 |
+
|
| 92 |
+
@property
|
| 93 |
+
def items(self):
|
| 94 |
+
"""Gets the items of this V1NodeList. # noqa: E501
|
| 95 |
+
|
| 96 |
+
List of nodes # noqa: E501
|
| 97 |
+
|
| 98 |
+
:return: The items of this V1NodeList. # noqa: E501
|
| 99 |
+
:rtype: list[V1Node]
|
| 100 |
+
"""
|
| 101 |
+
return self._items
|
| 102 |
+
|
| 103 |
+
@items.setter
|
| 104 |
+
def items(self, items):
|
| 105 |
+
"""Sets the items of this V1NodeList.
|
| 106 |
+
|
| 107 |
+
List of nodes # noqa: E501
|
| 108 |
+
|
| 109 |
+
:param items: The items of this V1NodeList. # noqa: E501
|
| 110 |
+
:type: list[V1Node]
|
| 111 |
+
"""
|
| 112 |
+
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
|
| 113 |
+
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
|
| 114 |
+
|
| 115 |
+
self._items = items
|
| 116 |
+
|
| 117 |
+
@property
|
| 118 |
+
def kind(self):
|
| 119 |
+
"""Gets the kind of this V1NodeList. # noqa: E501
|
| 120 |
+
|
| 121 |
+
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: E501
|
| 122 |
+
|
| 123 |
+
:return: The kind of this V1NodeList. # noqa: E501
|
| 124 |
+
:rtype: str
|
| 125 |
+
"""
|
| 126 |
+
return self._kind
|
| 127 |
+
|
| 128 |
+
@kind.setter
|
| 129 |
+
def kind(self, kind):
|
| 130 |
+
"""Sets the kind of this V1NodeList.
|
| 131 |
+
|
| 132 |
+
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: E501
|
| 133 |
+
|
| 134 |
+
:param kind: The kind of this V1NodeList. # noqa: E501
|
| 135 |
+
:type: str
|
| 136 |
+
"""
|
| 137 |
+
|
| 138 |
+
self._kind = kind
|
| 139 |
+
|
| 140 |
+
@property
|
| 141 |
+
def metadata(self):
|
| 142 |
+
"""Gets the metadata of this V1NodeList. # noqa: E501
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
:return: The metadata of this V1NodeList. # noqa: E501
|
| 146 |
+
:rtype: V1ListMeta
|
| 147 |
+
"""
|
| 148 |
+
return self._metadata
|
| 149 |
+
|
| 150 |
+
@metadata.setter
|
| 151 |
+
def metadata(self, metadata):
|
| 152 |
+
"""Sets the metadata of this V1NodeList.
|
| 153 |
+
|
| 154 |
+
|
| 155 |
+
:param metadata: The metadata of this V1NodeList. # noqa: E501
|
| 156 |
+
:type: V1ListMeta
|
| 157 |
+
"""
|
| 158 |
+
|
| 159 |
+
self._metadata = metadata
|
| 160 |
+
|
| 161 |
+
def to_dict(self):
|
| 162 |
+
"""Returns the model properties as a dict"""
|
| 163 |
+
result = {}
|
| 164 |
+
|
| 165 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 166 |
+
value = getattr(self, attr)
|
| 167 |
+
if isinstance(value, list):
|
| 168 |
+
result[attr] = list(map(
|
| 169 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 170 |
+
value
|
| 171 |
+
))
|
| 172 |
+
elif hasattr(value, "to_dict"):
|
| 173 |
+
result[attr] = value.to_dict()
|
| 174 |
+
elif isinstance(value, dict):
|
| 175 |
+
result[attr] = dict(map(
|
| 176 |
+
lambda item: (item[0], item[1].to_dict())
|
| 177 |
+
if hasattr(item[1], "to_dict") else item,
|
| 178 |
+
value.items()
|
| 179 |
+
))
|
| 180 |
+
else:
|
| 181 |
+
result[attr] = value
|
| 182 |
+
|
| 183 |
+
return result
|
| 184 |
+
|
| 185 |
+
def to_str(self):
|
| 186 |
+
"""Returns the string representation of the model"""
|
| 187 |
+
return pprint.pformat(self.to_dict())
|
| 188 |
+
|
| 189 |
+
def __repr__(self):
|
| 190 |
+
"""For `print` and `pprint`"""
|
| 191 |
+
return self.to_str()
|
| 192 |
+
|
| 193 |
+
def __eq__(self, other):
|
| 194 |
+
"""Returns true if both objects are equal"""
|
| 195 |
+
if not isinstance(other, V1NodeList):
|
| 196 |
+
return False
|
| 197 |
+
|
| 198 |
+
return self.to_dict() == other.to_dict()
|
| 199 |
+
|
| 200 |
+
def __ne__(self, other):
|
| 201 |
+
"""Returns true if both objects are not equal"""
|
| 202 |
+
if not isinstance(other, V1NodeList):
|
| 203 |
+
return True
|
| 204 |
+
|
| 205 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_runtime_handler.py
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeRuntimeHandler(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'features': 'V1NodeRuntimeHandlerFeatures',
|
| 37 |
+
'name': 'str'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'features': 'features',
|
| 42 |
+
'name': 'name'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, features=None, name=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NodeRuntimeHandler - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._features = None
|
| 52 |
+
self._name = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if features is not None:
|
| 56 |
+
self.features = features
|
| 57 |
+
if name is not None:
|
| 58 |
+
self.name = name
|
| 59 |
+
|
| 60 |
+
@property
|
| 61 |
+
def features(self):
|
| 62 |
+
"""Gets the features of this V1NodeRuntimeHandler. # noqa: E501
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
:return: The features of this V1NodeRuntimeHandler. # noqa: E501
|
| 66 |
+
:rtype: V1NodeRuntimeHandlerFeatures
|
| 67 |
+
"""
|
| 68 |
+
return self._features
|
| 69 |
+
|
| 70 |
+
@features.setter
|
| 71 |
+
def features(self, features):
|
| 72 |
+
"""Sets the features of this V1NodeRuntimeHandler.
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
:param features: The features of this V1NodeRuntimeHandler. # noqa: E501
|
| 76 |
+
:type: V1NodeRuntimeHandlerFeatures
|
| 77 |
+
"""
|
| 78 |
+
|
| 79 |
+
self._features = features
|
| 80 |
+
|
| 81 |
+
@property
|
| 82 |
+
def name(self):
|
| 83 |
+
"""Gets the name of this V1NodeRuntimeHandler. # noqa: E501
|
| 84 |
+
|
| 85 |
+
Runtime handler name. Empty for the default runtime handler. # noqa: E501
|
| 86 |
+
|
| 87 |
+
:return: The name of this V1NodeRuntimeHandler. # noqa: E501
|
| 88 |
+
:rtype: str
|
| 89 |
+
"""
|
| 90 |
+
return self._name
|
| 91 |
+
|
| 92 |
+
@name.setter
|
| 93 |
+
def name(self, name):
|
| 94 |
+
"""Sets the name of this V1NodeRuntimeHandler.
|
| 95 |
+
|
| 96 |
+
Runtime handler name. Empty for the default runtime handler. # noqa: E501
|
| 97 |
+
|
| 98 |
+
:param name: The name of this V1NodeRuntimeHandler. # noqa: E501
|
| 99 |
+
:type: str
|
| 100 |
+
"""
|
| 101 |
+
|
| 102 |
+
self._name = name
|
| 103 |
+
|
| 104 |
+
def to_dict(self):
|
| 105 |
+
"""Returns the model properties as a dict"""
|
| 106 |
+
result = {}
|
| 107 |
+
|
| 108 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 109 |
+
value = getattr(self, attr)
|
| 110 |
+
if isinstance(value, list):
|
| 111 |
+
result[attr] = list(map(
|
| 112 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 113 |
+
value
|
| 114 |
+
))
|
| 115 |
+
elif hasattr(value, "to_dict"):
|
| 116 |
+
result[attr] = value.to_dict()
|
| 117 |
+
elif isinstance(value, dict):
|
| 118 |
+
result[attr] = dict(map(
|
| 119 |
+
lambda item: (item[0], item[1].to_dict())
|
| 120 |
+
if hasattr(item[1], "to_dict") else item,
|
| 121 |
+
value.items()
|
| 122 |
+
))
|
| 123 |
+
else:
|
| 124 |
+
result[attr] = value
|
| 125 |
+
|
| 126 |
+
return result
|
| 127 |
+
|
| 128 |
+
def to_str(self):
|
| 129 |
+
"""Returns the string representation of the model"""
|
| 130 |
+
return pprint.pformat(self.to_dict())
|
| 131 |
+
|
| 132 |
+
def __repr__(self):
|
| 133 |
+
"""For `print` and `pprint`"""
|
| 134 |
+
return self.to_str()
|
| 135 |
+
|
| 136 |
+
def __eq__(self, other):
|
| 137 |
+
"""Returns true if both objects are equal"""
|
| 138 |
+
if not isinstance(other, V1NodeRuntimeHandler):
|
| 139 |
+
return False
|
| 140 |
+
|
| 141 |
+
return self.to_dict() == other.to_dict()
|
| 142 |
+
|
| 143 |
+
def __ne__(self, other):
|
| 144 |
+
"""Returns true if both objects are not equal"""
|
| 145 |
+
if not isinstance(other, V1NodeRuntimeHandler):
|
| 146 |
+
return True
|
| 147 |
+
|
| 148 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_runtime_handler_features.py
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeRuntimeHandlerFeatures(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'recursive_read_only_mounts': 'bool',
|
| 37 |
+
'user_namespaces': 'bool'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'recursive_read_only_mounts': 'recursiveReadOnlyMounts',
|
| 42 |
+
'user_namespaces': 'userNamespaces'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, recursive_read_only_mounts=None, user_namespaces=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NodeRuntimeHandlerFeatures - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._recursive_read_only_mounts = None
|
| 52 |
+
self._user_namespaces = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if recursive_read_only_mounts is not None:
|
| 56 |
+
self.recursive_read_only_mounts = recursive_read_only_mounts
|
| 57 |
+
if user_namespaces is not None:
|
| 58 |
+
self.user_namespaces = user_namespaces
|
| 59 |
+
|
| 60 |
+
@property
|
| 61 |
+
def recursive_read_only_mounts(self):
|
| 62 |
+
"""Gets the recursive_read_only_mounts of this V1NodeRuntimeHandlerFeatures. # noqa: E501
|
| 63 |
+
|
| 64 |
+
RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts. # noqa: E501
|
| 65 |
+
|
| 66 |
+
:return: The recursive_read_only_mounts of this V1NodeRuntimeHandlerFeatures. # noqa: E501
|
| 67 |
+
:rtype: bool
|
| 68 |
+
"""
|
| 69 |
+
return self._recursive_read_only_mounts
|
| 70 |
+
|
| 71 |
+
@recursive_read_only_mounts.setter
|
| 72 |
+
def recursive_read_only_mounts(self, recursive_read_only_mounts):
|
| 73 |
+
"""Sets the recursive_read_only_mounts of this V1NodeRuntimeHandlerFeatures.
|
| 74 |
+
|
| 75 |
+
RecursiveReadOnlyMounts is set to true if the runtime handler supports RecursiveReadOnlyMounts. # noqa: E501
|
| 76 |
+
|
| 77 |
+
:param recursive_read_only_mounts: The recursive_read_only_mounts of this V1NodeRuntimeHandlerFeatures. # noqa: E501
|
| 78 |
+
:type: bool
|
| 79 |
+
"""
|
| 80 |
+
|
| 81 |
+
self._recursive_read_only_mounts = recursive_read_only_mounts
|
| 82 |
+
|
| 83 |
+
@property
|
| 84 |
+
def user_namespaces(self):
|
| 85 |
+
"""Gets the user_namespaces of this V1NodeRuntimeHandlerFeatures. # noqa: E501
|
| 86 |
+
|
| 87 |
+
UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes. # noqa: E501
|
| 88 |
+
|
| 89 |
+
:return: The user_namespaces of this V1NodeRuntimeHandlerFeatures. # noqa: E501
|
| 90 |
+
:rtype: bool
|
| 91 |
+
"""
|
| 92 |
+
return self._user_namespaces
|
| 93 |
+
|
| 94 |
+
@user_namespaces.setter
|
| 95 |
+
def user_namespaces(self, user_namespaces):
|
| 96 |
+
"""Sets the user_namespaces of this V1NodeRuntimeHandlerFeatures.
|
| 97 |
+
|
| 98 |
+
UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes. # noqa: E501
|
| 99 |
+
|
| 100 |
+
:param user_namespaces: The user_namespaces of this V1NodeRuntimeHandlerFeatures. # noqa: E501
|
| 101 |
+
:type: bool
|
| 102 |
+
"""
|
| 103 |
+
|
| 104 |
+
self._user_namespaces = user_namespaces
|
| 105 |
+
|
| 106 |
+
def to_dict(self):
|
| 107 |
+
"""Returns the model properties as a dict"""
|
| 108 |
+
result = {}
|
| 109 |
+
|
| 110 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 111 |
+
value = getattr(self, attr)
|
| 112 |
+
if isinstance(value, list):
|
| 113 |
+
result[attr] = list(map(
|
| 114 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 115 |
+
value
|
| 116 |
+
))
|
| 117 |
+
elif hasattr(value, "to_dict"):
|
| 118 |
+
result[attr] = value.to_dict()
|
| 119 |
+
elif isinstance(value, dict):
|
| 120 |
+
result[attr] = dict(map(
|
| 121 |
+
lambda item: (item[0], item[1].to_dict())
|
| 122 |
+
if hasattr(item[1], "to_dict") else item,
|
| 123 |
+
value.items()
|
| 124 |
+
))
|
| 125 |
+
else:
|
| 126 |
+
result[attr] = value
|
| 127 |
+
|
| 128 |
+
return result
|
| 129 |
+
|
| 130 |
+
def to_str(self):
|
| 131 |
+
"""Returns the string representation of the model"""
|
| 132 |
+
return pprint.pformat(self.to_dict())
|
| 133 |
+
|
| 134 |
+
def __repr__(self):
|
| 135 |
+
"""For `print` and `pprint`"""
|
| 136 |
+
return self.to_str()
|
| 137 |
+
|
| 138 |
+
def __eq__(self, other):
|
| 139 |
+
"""Returns true if both objects are equal"""
|
| 140 |
+
if not isinstance(other, V1NodeRuntimeHandlerFeatures):
|
| 141 |
+
return False
|
| 142 |
+
|
| 143 |
+
return self.to_dict() == other.to_dict()
|
| 144 |
+
|
| 145 |
+
def __ne__(self, other):
|
| 146 |
+
"""Returns true if both objects are not equal"""
|
| 147 |
+
if not isinstance(other, V1NodeRuntimeHandlerFeatures):
|
| 148 |
+
return True
|
| 149 |
+
|
| 150 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector.py
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeSelector(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'node_selector_terms': 'list[V1NodeSelectorTerm]'
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
attribute_map = {
|
| 40 |
+
'node_selector_terms': 'nodeSelectorTerms'
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
def __init__(self, node_selector_terms=None, local_vars_configuration=None): # noqa: E501
|
| 44 |
+
"""V1NodeSelector - a model defined in OpenAPI""" # noqa: E501
|
| 45 |
+
if local_vars_configuration is None:
|
| 46 |
+
local_vars_configuration = Configuration()
|
| 47 |
+
self.local_vars_configuration = local_vars_configuration
|
| 48 |
+
|
| 49 |
+
self._node_selector_terms = None
|
| 50 |
+
self.discriminator = None
|
| 51 |
+
|
| 52 |
+
self.node_selector_terms = node_selector_terms
|
| 53 |
+
|
| 54 |
+
@property
|
| 55 |
+
def node_selector_terms(self):
|
| 56 |
+
"""Gets the node_selector_terms of this V1NodeSelector. # noqa: E501
|
| 57 |
+
|
| 58 |
+
Required. A list of node selector terms. The terms are ORed. # noqa: E501
|
| 59 |
+
|
| 60 |
+
:return: The node_selector_terms of this V1NodeSelector. # noqa: E501
|
| 61 |
+
:rtype: list[V1NodeSelectorTerm]
|
| 62 |
+
"""
|
| 63 |
+
return self._node_selector_terms
|
| 64 |
+
|
| 65 |
+
@node_selector_terms.setter
|
| 66 |
+
def node_selector_terms(self, node_selector_terms):
|
| 67 |
+
"""Sets the node_selector_terms of this V1NodeSelector.
|
| 68 |
+
|
| 69 |
+
Required. A list of node selector terms. The terms are ORed. # noqa: E501
|
| 70 |
+
|
| 71 |
+
:param node_selector_terms: The node_selector_terms of this V1NodeSelector. # noqa: E501
|
| 72 |
+
:type: list[V1NodeSelectorTerm]
|
| 73 |
+
"""
|
| 74 |
+
if self.local_vars_configuration.client_side_validation and node_selector_terms is None: # noqa: E501
|
| 75 |
+
raise ValueError("Invalid value for `node_selector_terms`, must not be `None`") # noqa: E501
|
| 76 |
+
|
| 77 |
+
self._node_selector_terms = node_selector_terms
|
| 78 |
+
|
| 79 |
+
def to_dict(self):
|
| 80 |
+
"""Returns the model properties as a dict"""
|
| 81 |
+
result = {}
|
| 82 |
+
|
| 83 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 84 |
+
value = getattr(self, attr)
|
| 85 |
+
if isinstance(value, list):
|
| 86 |
+
result[attr] = list(map(
|
| 87 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 88 |
+
value
|
| 89 |
+
))
|
| 90 |
+
elif hasattr(value, "to_dict"):
|
| 91 |
+
result[attr] = value.to_dict()
|
| 92 |
+
elif isinstance(value, dict):
|
| 93 |
+
result[attr] = dict(map(
|
| 94 |
+
lambda item: (item[0], item[1].to_dict())
|
| 95 |
+
if hasattr(item[1], "to_dict") else item,
|
| 96 |
+
value.items()
|
| 97 |
+
))
|
| 98 |
+
else:
|
| 99 |
+
result[attr] = value
|
| 100 |
+
|
| 101 |
+
return result
|
| 102 |
+
|
| 103 |
+
def to_str(self):
|
| 104 |
+
"""Returns the string representation of the model"""
|
| 105 |
+
return pprint.pformat(self.to_dict())
|
| 106 |
+
|
| 107 |
+
def __repr__(self):
|
| 108 |
+
"""For `print` and `pprint`"""
|
| 109 |
+
return self.to_str()
|
| 110 |
+
|
| 111 |
+
def __eq__(self, other):
|
| 112 |
+
"""Returns true if both objects are equal"""
|
| 113 |
+
if not isinstance(other, V1NodeSelector):
|
| 114 |
+
return False
|
| 115 |
+
|
| 116 |
+
return self.to_dict() == other.to_dict()
|
| 117 |
+
|
| 118 |
+
def __ne__(self, other):
|
| 119 |
+
"""Returns true if both objects are not equal"""
|
| 120 |
+
if not isinstance(other, V1NodeSelector):
|
| 121 |
+
return True
|
| 122 |
+
|
| 123 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector_requirement.py
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeSelectorRequirement(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'key': 'str',
|
| 37 |
+
'operator': 'str',
|
| 38 |
+
'values': 'list[str]'
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
attribute_map = {
|
| 42 |
+
'key': 'key',
|
| 43 |
+
'operator': 'operator',
|
| 44 |
+
'values': 'values'
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
def __init__(self, key=None, operator=None, values=None, local_vars_configuration=None): # noqa: E501
|
| 48 |
+
"""V1NodeSelectorRequirement - a model defined in OpenAPI""" # noqa: E501
|
| 49 |
+
if local_vars_configuration is None:
|
| 50 |
+
local_vars_configuration = Configuration()
|
| 51 |
+
self.local_vars_configuration = local_vars_configuration
|
| 52 |
+
|
| 53 |
+
self._key = None
|
| 54 |
+
self._operator = None
|
| 55 |
+
self._values = None
|
| 56 |
+
self.discriminator = None
|
| 57 |
+
|
| 58 |
+
self.key = key
|
| 59 |
+
self.operator = operator
|
| 60 |
+
if values is not None:
|
| 61 |
+
self.values = values
|
| 62 |
+
|
| 63 |
+
@property
|
| 64 |
+
def key(self):
|
| 65 |
+
"""Gets the key of this V1NodeSelectorRequirement. # noqa: E501
|
| 66 |
+
|
| 67 |
+
The label key that the selector applies to. # noqa: E501
|
| 68 |
+
|
| 69 |
+
:return: The key of this V1NodeSelectorRequirement. # noqa: E501
|
| 70 |
+
:rtype: str
|
| 71 |
+
"""
|
| 72 |
+
return self._key
|
| 73 |
+
|
| 74 |
+
@key.setter
|
| 75 |
+
def key(self, key):
|
| 76 |
+
"""Sets the key of this V1NodeSelectorRequirement.
|
| 77 |
+
|
| 78 |
+
The label key that the selector applies to. # noqa: E501
|
| 79 |
+
|
| 80 |
+
:param key: The key of this V1NodeSelectorRequirement. # noqa: E501
|
| 81 |
+
:type: str
|
| 82 |
+
"""
|
| 83 |
+
if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
|
| 84 |
+
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
|
| 85 |
+
|
| 86 |
+
self._key = key
|
| 87 |
+
|
| 88 |
+
@property
|
| 89 |
+
def operator(self):
|
| 90 |
+
"""Gets the operator of this V1NodeSelectorRequirement. # noqa: E501
|
| 91 |
+
|
| 92 |
+
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. # noqa: E501
|
| 93 |
+
|
| 94 |
+
:return: The operator of this V1NodeSelectorRequirement. # noqa: E501
|
| 95 |
+
:rtype: str
|
| 96 |
+
"""
|
| 97 |
+
return self._operator
|
| 98 |
+
|
| 99 |
+
@operator.setter
|
| 100 |
+
def operator(self, operator):
|
| 101 |
+
"""Sets the operator of this V1NodeSelectorRequirement.
|
| 102 |
+
|
| 103 |
+
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. # noqa: E501
|
| 104 |
+
|
| 105 |
+
:param operator: The operator of this V1NodeSelectorRequirement. # noqa: E501
|
| 106 |
+
:type: str
|
| 107 |
+
"""
|
| 108 |
+
if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501
|
| 109 |
+
raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501
|
| 110 |
+
|
| 111 |
+
self._operator = operator
|
| 112 |
+
|
| 113 |
+
@property
|
| 114 |
+
def values(self):
|
| 115 |
+
"""Gets the values of this V1NodeSelectorRequirement. # noqa: E501
|
| 116 |
+
|
| 117 |
+
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. # noqa: E501
|
| 118 |
+
|
| 119 |
+
:return: The values of this V1NodeSelectorRequirement. # noqa: E501
|
| 120 |
+
:rtype: list[str]
|
| 121 |
+
"""
|
| 122 |
+
return self._values
|
| 123 |
+
|
| 124 |
+
@values.setter
|
| 125 |
+
def values(self, values):
|
| 126 |
+
"""Sets the values of this V1NodeSelectorRequirement.
|
| 127 |
+
|
| 128 |
+
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. # noqa: E501
|
| 129 |
+
|
| 130 |
+
:param values: The values of this V1NodeSelectorRequirement. # noqa: E501
|
| 131 |
+
:type: list[str]
|
| 132 |
+
"""
|
| 133 |
+
|
| 134 |
+
self._values = values
|
| 135 |
+
|
| 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 |
+
value
|
| 146 |
+
))
|
| 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] = value
|
| 157 |
+
|
| 158 |
+
return result
|
| 159 |
+
|
| 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, V1NodeSelectorRequirement):
|
| 171 |
+
return False
|
| 172 |
+
|
| 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, V1NodeSelectorRequirement):
|
| 178 |
+
return True
|
| 179 |
+
|
| 180 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_selector_term.py
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeSelectorTerm(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'match_expressions': 'list[V1NodeSelectorRequirement]',
|
| 37 |
+
'match_fields': 'list[V1NodeSelectorRequirement]'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'match_expressions': 'matchExpressions',
|
| 42 |
+
'match_fields': 'matchFields'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, match_expressions=None, match_fields=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NodeSelectorTerm - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._match_expressions = None
|
| 52 |
+
self._match_fields = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if match_expressions is not None:
|
| 56 |
+
self.match_expressions = match_expressions
|
| 57 |
+
if match_fields is not None:
|
| 58 |
+
self.match_fields = match_fields
|
| 59 |
+
|
| 60 |
+
@property
|
| 61 |
+
def match_expressions(self):
|
| 62 |
+
"""Gets the match_expressions of this V1NodeSelectorTerm. # noqa: E501
|
| 63 |
+
|
| 64 |
+
A list of node selector requirements by node's labels. # noqa: E501
|
| 65 |
+
|
| 66 |
+
:return: The match_expressions of this V1NodeSelectorTerm. # noqa: E501
|
| 67 |
+
:rtype: list[V1NodeSelectorRequirement]
|
| 68 |
+
"""
|
| 69 |
+
return self._match_expressions
|
| 70 |
+
|
| 71 |
+
@match_expressions.setter
|
| 72 |
+
def match_expressions(self, match_expressions):
|
| 73 |
+
"""Sets the match_expressions of this V1NodeSelectorTerm.
|
| 74 |
+
|
| 75 |
+
A list of node selector requirements by node's labels. # noqa: E501
|
| 76 |
+
|
| 77 |
+
:param match_expressions: The match_expressions of this V1NodeSelectorTerm. # noqa: E501
|
| 78 |
+
:type: list[V1NodeSelectorRequirement]
|
| 79 |
+
"""
|
| 80 |
+
|
| 81 |
+
self._match_expressions = match_expressions
|
| 82 |
+
|
| 83 |
+
@property
|
| 84 |
+
def match_fields(self):
|
| 85 |
+
"""Gets the match_fields of this V1NodeSelectorTerm. # noqa: E501
|
| 86 |
+
|
| 87 |
+
A list of node selector requirements by node's fields. # noqa: E501
|
| 88 |
+
|
| 89 |
+
:return: The match_fields of this V1NodeSelectorTerm. # noqa: E501
|
| 90 |
+
:rtype: list[V1NodeSelectorRequirement]
|
| 91 |
+
"""
|
| 92 |
+
return self._match_fields
|
| 93 |
+
|
| 94 |
+
@match_fields.setter
|
| 95 |
+
def match_fields(self, match_fields):
|
| 96 |
+
"""Sets the match_fields of this V1NodeSelectorTerm.
|
| 97 |
+
|
| 98 |
+
A list of node selector requirements by node's fields. # noqa: E501
|
| 99 |
+
|
| 100 |
+
:param match_fields: The match_fields of this V1NodeSelectorTerm. # noqa: E501
|
| 101 |
+
:type: list[V1NodeSelectorRequirement]
|
| 102 |
+
"""
|
| 103 |
+
|
| 104 |
+
self._match_fields = match_fields
|
| 105 |
+
|
| 106 |
+
def to_dict(self):
|
| 107 |
+
"""Returns the model properties as a dict"""
|
| 108 |
+
result = {}
|
| 109 |
+
|
| 110 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 111 |
+
value = getattr(self, attr)
|
| 112 |
+
if isinstance(value, list):
|
| 113 |
+
result[attr] = list(map(
|
| 114 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 115 |
+
value
|
| 116 |
+
))
|
| 117 |
+
elif hasattr(value, "to_dict"):
|
| 118 |
+
result[attr] = value.to_dict()
|
| 119 |
+
elif isinstance(value, dict):
|
| 120 |
+
result[attr] = dict(map(
|
| 121 |
+
lambda item: (item[0], item[1].to_dict())
|
| 122 |
+
if hasattr(item[1], "to_dict") else item,
|
| 123 |
+
value.items()
|
| 124 |
+
))
|
| 125 |
+
else:
|
| 126 |
+
result[attr] = value
|
| 127 |
+
|
| 128 |
+
return result
|
| 129 |
+
|
| 130 |
+
def to_str(self):
|
| 131 |
+
"""Returns the string representation of the model"""
|
| 132 |
+
return pprint.pformat(self.to_dict())
|
| 133 |
+
|
| 134 |
+
def __repr__(self):
|
| 135 |
+
"""For `print` and `pprint`"""
|
| 136 |
+
return self.to_str()
|
| 137 |
+
|
| 138 |
+
def __eq__(self, other):
|
| 139 |
+
"""Returns true if both objects are equal"""
|
| 140 |
+
if not isinstance(other, V1NodeSelectorTerm):
|
| 141 |
+
return False
|
| 142 |
+
|
| 143 |
+
return self.to_dict() == other.to_dict()
|
| 144 |
+
|
| 145 |
+
def __ne__(self, other):
|
| 146 |
+
"""Returns true if both objects are not equal"""
|
| 147 |
+
if not isinstance(other, V1NodeSelectorTerm):
|
| 148 |
+
return True
|
| 149 |
+
|
| 150 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_spec.py
ADDED
|
@@ -0,0 +1,288 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeSpec(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'config_source': 'V1NodeConfigSource',
|
| 37 |
+
'external_id': 'str',
|
| 38 |
+
'pod_cidr': 'str',
|
| 39 |
+
'pod_cid_rs': 'list[str]',
|
| 40 |
+
'provider_id': 'str',
|
| 41 |
+
'taints': 'list[V1Taint]',
|
| 42 |
+
'unschedulable': 'bool'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
attribute_map = {
|
| 46 |
+
'config_source': 'configSource',
|
| 47 |
+
'external_id': 'externalID',
|
| 48 |
+
'pod_cidr': 'podCIDR',
|
| 49 |
+
'pod_cid_rs': 'podCIDRs',
|
| 50 |
+
'provider_id': 'providerID',
|
| 51 |
+
'taints': 'taints',
|
| 52 |
+
'unschedulable': 'unschedulable'
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
def __init__(self, config_source=None, external_id=None, pod_cidr=None, pod_cid_rs=None, provider_id=None, taints=None, unschedulable=None, local_vars_configuration=None): # noqa: E501
|
| 56 |
+
"""V1NodeSpec - a model defined in OpenAPI""" # noqa: E501
|
| 57 |
+
if local_vars_configuration is None:
|
| 58 |
+
local_vars_configuration = Configuration()
|
| 59 |
+
self.local_vars_configuration = local_vars_configuration
|
| 60 |
+
|
| 61 |
+
self._config_source = None
|
| 62 |
+
self._external_id = None
|
| 63 |
+
self._pod_cidr = None
|
| 64 |
+
self._pod_cid_rs = None
|
| 65 |
+
self._provider_id = None
|
| 66 |
+
self._taints = None
|
| 67 |
+
self._unschedulable = None
|
| 68 |
+
self.discriminator = None
|
| 69 |
+
|
| 70 |
+
if config_source is not None:
|
| 71 |
+
self.config_source = config_source
|
| 72 |
+
if external_id is not None:
|
| 73 |
+
self.external_id = external_id
|
| 74 |
+
if pod_cidr is not None:
|
| 75 |
+
self.pod_cidr = pod_cidr
|
| 76 |
+
if pod_cid_rs is not None:
|
| 77 |
+
self.pod_cid_rs = pod_cid_rs
|
| 78 |
+
if provider_id is not None:
|
| 79 |
+
self.provider_id = provider_id
|
| 80 |
+
if taints is not None:
|
| 81 |
+
self.taints = taints
|
| 82 |
+
if unschedulable is not None:
|
| 83 |
+
self.unschedulable = unschedulable
|
| 84 |
+
|
| 85 |
+
@property
|
| 86 |
+
def config_source(self):
|
| 87 |
+
"""Gets the config_source of this V1NodeSpec. # noqa: E501
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
:return: The config_source of this V1NodeSpec. # noqa: E501
|
| 91 |
+
:rtype: V1NodeConfigSource
|
| 92 |
+
"""
|
| 93 |
+
return self._config_source
|
| 94 |
+
|
| 95 |
+
@config_source.setter
|
| 96 |
+
def config_source(self, config_source):
|
| 97 |
+
"""Sets the config_source of this V1NodeSpec.
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
:param config_source: The config_source of this V1NodeSpec. # noqa: E501
|
| 101 |
+
:type: V1NodeConfigSource
|
| 102 |
+
"""
|
| 103 |
+
|
| 104 |
+
self._config_source = config_source
|
| 105 |
+
|
| 106 |
+
@property
|
| 107 |
+
def external_id(self):
|
| 108 |
+
"""Gets the external_id of this V1NodeSpec. # noqa: E501
|
| 109 |
+
|
| 110 |
+
Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 # noqa: E501
|
| 111 |
+
|
| 112 |
+
:return: The external_id of this V1NodeSpec. # noqa: E501
|
| 113 |
+
:rtype: str
|
| 114 |
+
"""
|
| 115 |
+
return self._external_id
|
| 116 |
+
|
| 117 |
+
@external_id.setter
|
| 118 |
+
def external_id(self, external_id):
|
| 119 |
+
"""Sets the external_id of this V1NodeSpec.
|
| 120 |
+
|
| 121 |
+
Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 # noqa: E501
|
| 122 |
+
|
| 123 |
+
:param external_id: The external_id of this V1NodeSpec. # noqa: E501
|
| 124 |
+
:type: str
|
| 125 |
+
"""
|
| 126 |
+
|
| 127 |
+
self._external_id = external_id
|
| 128 |
+
|
| 129 |
+
@property
|
| 130 |
+
def pod_cidr(self):
|
| 131 |
+
"""Gets the pod_cidr of this V1NodeSpec. # noqa: E501
|
| 132 |
+
|
| 133 |
+
PodCIDR represents the pod IP range assigned to the node. # noqa: E501
|
| 134 |
+
|
| 135 |
+
:return: The pod_cidr of this V1NodeSpec. # noqa: E501
|
| 136 |
+
:rtype: str
|
| 137 |
+
"""
|
| 138 |
+
return self._pod_cidr
|
| 139 |
+
|
| 140 |
+
@pod_cidr.setter
|
| 141 |
+
def pod_cidr(self, pod_cidr):
|
| 142 |
+
"""Sets the pod_cidr of this V1NodeSpec.
|
| 143 |
+
|
| 144 |
+
PodCIDR represents the pod IP range assigned to the node. # noqa: E501
|
| 145 |
+
|
| 146 |
+
:param pod_cidr: The pod_cidr of this V1NodeSpec. # noqa: E501
|
| 147 |
+
:type: str
|
| 148 |
+
"""
|
| 149 |
+
|
| 150 |
+
self._pod_cidr = pod_cidr
|
| 151 |
+
|
| 152 |
+
@property
|
| 153 |
+
def pod_cid_rs(self):
|
| 154 |
+
"""Gets the pod_cid_rs of this V1NodeSpec. # noqa: E501
|
| 155 |
+
|
| 156 |
+
podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. # noqa: E501
|
| 157 |
+
|
| 158 |
+
:return: The pod_cid_rs of this V1NodeSpec. # noqa: E501
|
| 159 |
+
:rtype: list[str]
|
| 160 |
+
"""
|
| 161 |
+
return self._pod_cid_rs
|
| 162 |
+
|
| 163 |
+
@pod_cid_rs.setter
|
| 164 |
+
def pod_cid_rs(self, pod_cid_rs):
|
| 165 |
+
"""Sets the pod_cid_rs of this V1NodeSpec.
|
| 166 |
+
|
| 167 |
+
podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6. # noqa: E501
|
| 168 |
+
|
| 169 |
+
:param pod_cid_rs: The pod_cid_rs of this V1NodeSpec. # noqa: E501
|
| 170 |
+
:type: list[str]
|
| 171 |
+
"""
|
| 172 |
+
|
| 173 |
+
self._pod_cid_rs = pod_cid_rs
|
| 174 |
+
|
| 175 |
+
@property
|
| 176 |
+
def provider_id(self):
|
| 177 |
+
"""Gets the provider_id of this V1NodeSpec. # noqa: E501
|
| 178 |
+
|
| 179 |
+
ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> # noqa: E501
|
| 180 |
+
|
| 181 |
+
:return: The provider_id of this V1NodeSpec. # noqa: E501
|
| 182 |
+
:rtype: str
|
| 183 |
+
"""
|
| 184 |
+
return self._provider_id
|
| 185 |
+
|
| 186 |
+
@provider_id.setter
|
| 187 |
+
def provider_id(self, provider_id):
|
| 188 |
+
"""Sets the provider_id of this V1NodeSpec.
|
| 189 |
+
|
| 190 |
+
ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> # noqa: E501
|
| 191 |
+
|
| 192 |
+
:param provider_id: The provider_id of this V1NodeSpec. # noqa: E501
|
| 193 |
+
:type: str
|
| 194 |
+
"""
|
| 195 |
+
|
| 196 |
+
self._provider_id = provider_id
|
| 197 |
+
|
| 198 |
+
@property
|
| 199 |
+
def taints(self):
|
| 200 |
+
"""Gets the taints of this V1NodeSpec. # noqa: E501
|
| 201 |
+
|
| 202 |
+
If specified, the node's taints. # noqa: E501
|
| 203 |
+
|
| 204 |
+
:return: The taints of this V1NodeSpec. # noqa: E501
|
| 205 |
+
:rtype: list[V1Taint]
|
| 206 |
+
"""
|
| 207 |
+
return self._taints
|
| 208 |
+
|
| 209 |
+
@taints.setter
|
| 210 |
+
def taints(self, taints):
|
| 211 |
+
"""Sets the taints of this V1NodeSpec.
|
| 212 |
+
|
| 213 |
+
If specified, the node's taints. # noqa: E501
|
| 214 |
+
|
| 215 |
+
:param taints: The taints of this V1NodeSpec. # noqa: E501
|
| 216 |
+
:type: list[V1Taint]
|
| 217 |
+
"""
|
| 218 |
+
|
| 219 |
+
self._taints = taints
|
| 220 |
+
|
| 221 |
+
@property
|
| 222 |
+
def unschedulable(self):
|
| 223 |
+
"""Gets the unschedulable of this V1NodeSpec. # noqa: E501
|
| 224 |
+
|
| 225 |
+
Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration # noqa: E501
|
| 226 |
+
|
| 227 |
+
:return: The unschedulable of this V1NodeSpec. # noqa: E501
|
| 228 |
+
:rtype: bool
|
| 229 |
+
"""
|
| 230 |
+
return self._unschedulable
|
| 231 |
+
|
| 232 |
+
@unschedulable.setter
|
| 233 |
+
def unschedulable(self, unschedulable):
|
| 234 |
+
"""Sets the unschedulable of this V1NodeSpec.
|
| 235 |
+
|
| 236 |
+
Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration # noqa: E501
|
| 237 |
+
|
| 238 |
+
:param unschedulable: The unschedulable of this V1NodeSpec. # noqa: E501
|
| 239 |
+
:type: bool
|
| 240 |
+
"""
|
| 241 |
+
|
| 242 |
+
self._unschedulable = unschedulable
|
| 243 |
+
|
| 244 |
+
def to_dict(self):
|
| 245 |
+
"""Returns the model properties as a dict"""
|
| 246 |
+
result = {}
|
| 247 |
+
|
| 248 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 249 |
+
value = getattr(self, attr)
|
| 250 |
+
if isinstance(value, list):
|
| 251 |
+
result[attr] = list(map(
|
| 252 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 253 |
+
value
|
| 254 |
+
))
|
| 255 |
+
elif hasattr(value, "to_dict"):
|
| 256 |
+
result[attr] = value.to_dict()
|
| 257 |
+
elif isinstance(value, dict):
|
| 258 |
+
result[attr] = dict(map(
|
| 259 |
+
lambda item: (item[0], item[1].to_dict())
|
| 260 |
+
if hasattr(item[1], "to_dict") else item,
|
| 261 |
+
value.items()
|
| 262 |
+
))
|
| 263 |
+
else:
|
| 264 |
+
result[attr] = value
|
| 265 |
+
|
| 266 |
+
return result
|
| 267 |
+
|
| 268 |
+
def to_str(self):
|
| 269 |
+
"""Returns the string representation of the model"""
|
| 270 |
+
return pprint.pformat(self.to_dict())
|
| 271 |
+
|
| 272 |
+
def __repr__(self):
|
| 273 |
+
"""For `print` and `pprint`"""
|
| 274 |
+
return self.to_str()
|
| 275 |
+
|
| 276 |
+
def __eq__(self, other):
|
| 277 |
+
"""Returns true if both objects are equal"""
|
| 278 |
+
if not isinstance(other, V1NodeSpec):
|
| 279 |
+
return False
|
| 280 |
+
|
| 281 |
+
return self.to_dict() == other.to_dict()
|
| 282 |
+
|
| 283 |
+
def __ne__(self, other):
|
| 284 |
+
"""Returns true if both objects are not equal"""
|
| 285 |
+
if not isinstance(other, V1NodeSpec):
|
| 286 |
+
return True
|
| 287 |
+
|
| 288 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_status.py
ADDED
|
@@ -0,0 +1,478 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeStatus(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'addresses': 'list[V1NodeAddress]',
|
| 37 |
+
'allocatable': 'dict(str, str)',
|
| 38 |
+
'capacity': 'dict(str, str)',
|
| 39 |
+
'conditions': 'list[V1NodeCondition]',
|
| 40 |
+
'config': 'V1NodeConfigStatus',
|
| 41 |
+
'daemon_endpoints': 'V1NodeDaemonEndpoints',
|
| 42 |
+
'declared_features': 'list[str]',
|
| 43 |
+
'features': 'V1NodeFeatures',
|
| 44 |
+
'images': 'list[V1ContainerImage]',
|
| 45 |
+
'node_info': 'V1NodeSystemInfo',
|
| 46 |
+
'phase': 'str',
|
| 47 |
+
'runtime_handlers': 'list[V1NodeRuntimeHandler]',
|
| 48 |
+
'volumes_attached': 'list[V1AttachedVolume]',
|
| 49 |
+
'volumes_in_use': 'list[str]'
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
attribute_map = {
|
| 53 |
+
'addresses': 'addresses',
|
| 54 |
+
'allocatable': 'allocatable',
|
| 55 |
+
'capacity': 'capacity',
|
| 56 |
+
'conditions': 'conditions',
|
| 57 |
+
'config': 'config',
|
| 58 |
+
'daemon_endpoints': 'daemonEndpoints',
|
| 59 |
+
'declared_features': 'declaredFeatures',
|
| 60 |
+
'features': 'features',
|
| 61 |
+
'images': 'images',
|
| 62 |
+
'node_info': 'nodeInfo',
|
| 63 |
+
'phase': 'phase',
|
| 64 |
+
'runtime_handlers': 'runtimeHandlers',
|
| 65 |
+
'volumes_attached': 'volumesAttached',
|
| 66 |
+
'volumes_in_use': 'volumesInUse'
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
def __init__(self, addresses=None, allocatable=None, capacity=None, conditions=None, config=None, daemon_endpoints=None, declared_features=None, features=None, images=None, node_info=None, phase=None, runtime_handlers=None, volumes_attached=None, volumes_in_use=None, local_vars_configuration=None): # noqa: E501
|
| 70 |
+
"""V1NodeStatus - a model defined in OpenAPI""" # noqa: E501
|
| 71 |
+
if local_vars_configuration is None:
|
| 72 |
+
local_vars_configuration = Configuration()
|
| 73 |
+
self.local_vars_configuration = local_vars_configuration
|
| 74 |
+
|
| 75 |
+
self._addresses = None
|
| 76 |
+
self._allocatable = None
|
| 77 |
+
self._capacity = None
|
| 78 |
+
self._conditions = None
|
| 79 |
+
self._config = None
|
| 80 |
+
self._daemon_endpoints = None
|
| 81 |
+
self._declared_features = None
|
| 82 |
+
self._features = None
|
| 83 |
+
self._images = None
|
| 84 |
+
self._node_info = None
|
| 85 |
+
self._phase = None
|
| 86 |
+
self._runtime_handlers = None
|
| 87 |
+
self._volumes_attached = None
|
| 88 |
+
self._volumes_in_use = None
|
| 89 |
+
self.discriminator = None
|
| 90 |
+
|
| 91 |
+
if addresses is not None:
|
| 92 |
+
self.addresses = addresses
|
| 93 |
+
if allocatable is not None:
|
| 94 |
+
self.allocatable = allocatable
|
| 95 |
+
if capacity is not None:
|
| 96 |
+
self.capacity = capacity
|
| 97 |
+
if conditions is not None:
|
| 98 |
+
self.conditions = conditions
|
| 99 |
+
if config is not None:
|
| 100 |
+
self.config = config
|
| 101 |
+
if daemon_endpoints is not None:
|
| 102 |
+
self.daemon_endpoints = daemon_endpoints
|
| 103 |
+
if declared_features is not None:
|
| 104 |
+
self.declared_features = declared_features
|
| 105 |
+
if features is not None:
|
| 106 |
+
self.features = features
|
| 107 |
+
if images is not None:
|
| 108 |
+
self.images = images
|
| 109 |
+
if node_info is not None:
|
| 110 |
+
self.node_info = node_info
|
| 111 |
+
if phase is not None:
|
| 112 |
+
self.phase = phase
|
| 113 |
+
if runtime_handlers is not None:
|
| 114 |
+
self.runtime_handlers = runtime_handlers
|
| 115 |
+
if volumes_attached is not None:
|
| 116 |
+
self.volumes_attached = volumes_attached
|
| 117 |
+
if volumes_in_use is not None:
|
| 118 |
+
self.volumes_in_use = volumes_in_use
|
| 119 |
+
|
| 120 |
+
@property
|
| 121 |
+
def addresses(self):
|
| 122 |
+
"""Gets the addresses of this V1NodeStatus. # noqa: E501
|
| 123 |
+
|
| 124 |
+
List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP). # noqa: E501
|
| 125 |
+
|
| 126 |
+
:return: The addresses of this V1NodeStatus. # noqa: E501
|
| 127 |
+
:rtype: list[V1NodeAddress]
|
| 128 |
+
"""
|
| 129 |
+
return self._addresses
|
| 130 |
+
|
| 131 |
+
@addresses.setter
|
| 132 |
+
def addresses(self, addresses):
|
| 133 |
+
"""Sets the addresses of this V1NodeStatus.
|
| 134 |
+
|
| 135 |
+
List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/reference/node/node-status/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP). # noqa: E501
|
| 136 |
+
|
| 137 |
+
:param addresses: The addresses of this V1NodeStatus. # noqa: E501
|
| 138 |
+
:type: list[V1NodeAddress]
|
| 139 |
+
"""
|
| 140 |
+
|
| 141 |
+
self._addresses = addresses
|
| 142 |
+
|
| 143 |
+
@property
|
| 144 |
+
def allocatable(self):
|
| 145 |
+
"""Gets the allocatable of this V1NodeStatus. # noqa: E501
|
| 146 |
+
|
| 147 |
+
Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. # noqa: E501
|
| 148 |
+
|
| 149 |
+
:return: The allocatable of this V1NodeStatus. # noqa: E501
|
| 150 |
+
:rtype: dict(str, str)
|
| 151 |
+
"""
|
| 152 |
+
return self._allocatable
|
| 153 |
+
|
| 154 |
+
@allocatable.setter
|
| 155 |
+
def allocatable(self, allocatable):
|
| 156 |
+
"""Sets the allocatable of this V1NodeStatus.
|
| 157 |
+
|
| 158 |
+
Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. # noqa: E501
|
| 159 |
+
|
| 160 |
+
:param allocatable: The allocatable of this V1NodeStatus. # noqa: E501
|
| 161 |
+
:type: dict(str, str)
|
| 162 |
+
"""
|
| 163 |
+
|
| 164 |
+
self._allocatable = allocatable
|
| 165 |
+
|
| 166 |
+
@property
|
| 167 |
+
def capacity(self):
|
| 168 |
+
"""Gets the capacity of this V1NodeStatus. # noqa: E501
|
| 169 |
+
|
| 170 |
+
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity # noqa: E501
|
| 171 |
+
|
| 172 |
+
:return: The capacity of this V1NodeStatus. # noqa: E501
|
| 173 |
+
:rtype: dict(str, str)
|
| 174 |
+
"""
|
| 175 |
+
return self._capacity
|
| 176 |
+
|
| 177 |
+
@capacity.setter
|
| 178 |
+
def capacity(self, capacity):
|
| 179 |
+
"""Sets the capacity of this V1NodeStatus.
|
| 180 |
+
|
| 181 |
+
Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/reference/node/node-status/#capacity # noqa: E501
|
| 182 |
+
|
| 183 |
+
:param capacity: The capacity of this V1NodeStatus. # noqa: E501
|
| 184 |
+
:type: dict(str, str)
|
| 185 |
+
"""
|
| 186 |
+
|
| 187 |
+
self._capacity = capacity
|
| 188 |
+
|
| 189 |
+
@property
|
| 190 |
+
def conditions(self):
|
| 191 |
+
"""Gets the conditions of this V1NodeStatus. # noqa: E501
|
| 192 |
+
|
| 193 |
+
Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition # noqa: E501
|
| 194 |
+
|
| 195 |
+
:return: The conditions of this V1NodeStatus. # noqa: E501
|
| 196 |
+
:rtype: list[V1NodeCondition]
|
| 197 |
+
"""
|
| 198 |
+
return self._conditions
|
| 199 |
+
|
| 200 |
+
@conditions.setter
|
| 201 |
+
def conditions(self, conditions):
|
| 202 |
+
"""Sets the conditions of this V1NodeStatus.
|
| 203 |
+
|
| 204 |
+
Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/reference/node/node-status/#condition # noqa: E501
|
| 205 |
+
|
| 206 |
+
:param conditions: The conditions of this V1NodeStatus. # noqa: E501
|
| 207 |
+
:type: list[V1NodeCondition]
|
| 208 |
+
"""
|
| 209 |
+
|
| 210 |
+
self._conditions = conditions
|
| 211 |
+
|
| 212 |
+
@property
|
| 213 |
+
def config(self):
|
| 214 |
+
"""Gets the config of this V1NodeStatus. # noqa: E501
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
:return: The config of this V1NodeStatus. # noqa: E501
|
| 218 |
+
:rtype: V1NodeConfigStatus
|
| 219 |
+
"""
|
| 220 |
+
return self._config
|
| 221 |
+
|
| 222 |
+
@config.setter
|
| 223 |
+
def config(self, config):
|
| 224 |
+
"""Sets the config of this V1NodeStatus.
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
:param config: The config of this V1NodeStatus. # noqa: E501
|
| 228 |
+
:type: V1NodeConfigStatus
|
| 229 |
+
"""
|
| 230 |
+
|
| 231 |
+
self._config = config
|
| 232 |
+
|
| 233 |
+
@property
|
| 234 |
+
def daemon_endpoints(self):
|
| 235 |
+
"""Gets the daemon_endpoints of this V1NodeStatus. # noqa: E501
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
:return: The daemon_endpoints of this V1NodeStatus. # noqa: E501
|
| 239 |
+
:rtype: V1NodeDaemonEndpoints
|
| 240 |
+
"""
|
| 241 |
+
return self._daemon_endpoints
|
| 242 |
+
|
| 243 |
+
@daemon_endpoints.setter
|
| 244 |
+
def daemon_endpoints(self, daemon_endpoints):
|
| 245 |
+
"""Sets the daemon_endpoints of this V1NodeStatus.
|
| 246 |
+
|
| 247 |
+
|
| 248 |
+
:param daemon_endpoints: The daemon_endpoints of this V1NodeStatus. # noqa: E501
|
| 249 |
+
:type: V1NodeDaemonEndpoints
|
| 250 |
+
"""
|
| 251 |
+
|
| 252 |
+
self._daemon_endpoints = daemon_endpoints
|
| 253 |
+
|
| 254 |
+
@property
|
| 255 |
+
def declared_features(self):
|
| 256 |
+
"""Gets the declared_features of this V1NodeStatus. # noqa: E501
|
| 257 |
+
|
| 258 |
+
DeclaredFeatures represents the features related to feature gates that are declared by the node. # noqa: E501
|
| 259 |
+
|
| 260 |
+
:return: The declared_features of this V1NodeStatus. # noqa: E501
|
| 261 |
+
:rtype: list[str]
|
| 262 |
+
"""
|
| 263 |
+
return self._declared_features
|
| 264 |
+
|
| 265 |
+
@declared_features.setter
|
| 266 |
+
def declared_features(self, declared_features):
|
| 267 |
+
"""Sets the declared_features of this V1NodeStatus.
|
| 268 |
+
|
| 269 |
+
DeclaredFeatures represents the features related to feature gates that are declared by the node. # noqa: E501
|
| 270 |
+
|
| 271 |
+
:param declared_features: The declared_features of this V1NodeStatus. # noqa: E501
|
| 272 |
+
:type: list[str]
|
| 273 |
+
"""
|
| 274 |
+
|
| 275 |
+
self._declared_features = declared_features
|
| 276 |
+
|
| 277 |
+
@property
|
| 278 |
+
def features(self):
|
| 279 |
+
"""Gets the features of this V1NodeStatus. # noqa: E501
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
:return: The features of this V1NodeStatus. # noqa: E501
|
| 283 |
+
:rtype: V1NodeFeatures
|
| 284 |
+
"""
|
| 285 |
+
return self._features
|
| 286 |
+
|
| 287 |
+
@features.setter
|
| 288 |
+
def features(self, features):
|
| 289 |
+
"""Sets the features of this V1NodeStatus.
|
| 290 |
+
|
| 291 |
+
|
| 292 |
+
:param features: The features of this V1NodeStatus. # noqa: E501
|
| 293 |
+
:type: V1NodeFeatures
|
| 294 |
+
"""
|
| 295 |
+
|
| 296 |
+
self._features = features
|
| 297 |
+
|
| 298 |
+
@property
|
| 299 |
+
def images(self):
|
| 300 |
+
"""Gets the images of this V1NodeStatus. # noqa: E501
|
| 301 |
+
|
| 302 |
+
List of container images on this node # noqa: E501
|
| 303 |
+
|
| 304 |
+
:return: The images of this V1NodeStatus. # noqa: E501
|
| 305 |
+
:rtype: list[V1ContainerImage]
|
| 306 |
+
"""
|
| 307 |
+
return self._images
|
| 308 |
+
|
| 309 |
+
@images.setter
|
| 310 |
+
def images(self, images):
|
| 311 |
+
"""Sets the images of this V1NodeStatus.
|
| 312 |
+
|
| 313 |
+
List of container images on this node # noqa: E501
|
| 314 |
+
|
| 315 |
+
:param images: The images of this V1NodeStatus. # noqa: E501
|
| 316 |
+
:type: list[V1ContainerImage]
|
| 317 |
+
"""
|
| 318 |
+
|
| 319 |
+
self._images = images
|
| 320 |
+
|
| 321 |
+
@property
|
| 322 |
+
def node_info(self):
|
| 323 |
+
"""Gets the node_info of this V1NodeStatus. # noqa: E501
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
:return: The node_info of this V1NodeStatus. # noqa: E501
|
| 327 |
+
:rtype: V1NodeSystemInfo
|
| 328 |
+
"""
|
| 329 |
+
return self._node_info
|
| 330 |
+
|
| 331 |
+
@node_info.setter
|
| 332 |
+
def node_info(self, node_info):
|
| 333 |
+
"""Sets the node_info of this V1NodeStatus.
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
:param node_info: The node_info of this V1NodeStatus. # noqa: E501
|
| 337 |
+
:type: V1NodeSystemInfo
|
| 338 |
+
"""
|
| 339 |
+
|
| 340 |
+
self._node_info = node_info
|
| 341 |
+
|
| 342 |
+
@property
|
| 343 |
+
def phase(self):
|
| 344 |
+
"""Gets the phase of this V1NodeStatus. # noqa: E501
|
| 345 |
+
|
| 346 |
+
NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. # noqa: E501
|
| 347 |
+
|
| 348 |
+
:return: The phase of this V1NodeStatus. # noqa: E501
|
| 349 |
+
:rtype: str
|
| 350 |
+
"""
|
| 351 |
+
return self._phase
|
| 352 |
+
|
| 353 |
+
@phase.setter
|
| 354 |
+
def phase(self, phase):
|
| 355 |
+
"""Sets the phase of this V1NodeStatus.
|
| 356 |
+
|
| 357 |
+
NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. # noqa: E501
|
| 358 |
+
|
| 359 |
+
:param phase: The phase of this V1NodeStatus. # noqa: E501
|
| 360 |
+
:type: str
|
| 361 |
+
"""
|
| 362 |
+
|
| 363 |
+
self._phase = phase
|
| 364 |
+
|
| 365 |
+
@property
|
| 366 |
+
def runtime_handlers(self):
|
| 367 |
+
"""Gets the runtime_handlers of this V1NodeStatus. # noqa: E501
|
| 368 |
+
|
| 369 |
+
The available runtime handlers. # noqa: E501
|
| 370 |
+
|
| 371 |
+
:return: The runtime_handlers of this V1NodeStatus. # noqa: E501
|
| 372 |
+
:rtype: list[V1NodeRuntimeHandler]
|
| 373 |
+
"""
|
| 374 |
+
return self._runtime_handlers
|
| 375 |
+
|
| 376 |
+
@runtime_handlers.setter
|
| 377 |
+
def runtime_handlers(self, runtime_handlers):
|
| 378 |
+
"""Sets the runtime_handlers of this V1NodeStatus.
|
| 379 |
+
|
| 380 |
+
The available runtime handlers. # noqa: E501
|
| 381 |
+
|
| 382 |
+
:param runtime_handlers: The runtime_handlers of this V1NodeStatus. # noqa: E501
|
| 383 |
+
:type: list[V1NodeRuntimeHandler]
|
| 384 |
+
"""
|
| 385 |
+
|
| 386 |
+
self._runtime_handlers = runtime_handlers
|
| 387 |
+
|
| 388 |
+
@property
|
| 389 |
+
def volumes_attached(self):
|
| 390 |
+
"""Gets the volumes_attached of this V1NodeStatus. # noqa: E501
|
| 391 |
+
|
| 392 |
+
List of volumes that are attached to the node. # noqa: E501
|
| 393 |
+
|
| 394 |
+
:return: The volumes_attached of this V1NodeStatus. # noqa: E501
|
| 395 |
+
:rtype: list[V1AttachedVolume]
|
| 396 |
+
"""
|
| 397 |
+
return self._volumes_attached
|
| 398 |
+
|
| 399 |
+
@volumes_attached.setter
|
| 400 |
+
def volumes_attached(self, volumes_attached):
|
| 401 |
+
"""Sets the volumes_attached of this V1NodeStatus.
|
| 402 |
+
|
| 403 |
+
List of volumes that are attached to the node. # noqa: E501
|
| 404 |
+
|
| 405 |
+
:param volumes_attached: The volumes_attached of this V1NodeStatus. # noqa: E501
|
| 406 |
+
:type: list[V1AttachedVolume]
|
| 407 |
+
"""
|
| 408 |
+
|
| 409 |
+
self._volumes_attached = volumes_attached
|
| 410 |
+
|
| 411 |
+
@property
|
| 412 |
+
def volumes_in_use(self):
|
| 413 |
+
"""Gets the volumes_in_use of this V1NodeStatus. # noqa: E501
|
| 414 |
+
|
| 415 |
+
List of attachable volumes in use (mounted) by the node. # noqa: E501
|
| 416 |
+
|
| 417 |
+
:return: The volumes_in_use of this V1NodeStatus. # noqa: E501
|
| 418 |
+
:rtype: list[str]
|
| 419 |
+
"""
|
| 420 |
+
return self._volumes_in_use
|
| 421 |
+
|
| 422 |
+
@volumes_in_use.setter
|
| 423 |
+
def volumes_in_use(self, volumes_in_use):
|
| 424 |
+
"""Sets the volumes_in_use of this V1NodeStatus.
|
| 425 |
+
|
| 426 |
+
List of attachable volumes in use (mounted) by the node. # noqa: E501
|
| 427 |
+
|
| 428 |
+
:param volumes_in_use: The volumes_in_use of this V1NodeStatus. # noqa: E501
|
| 429 |
+
:type: list[str]
|
| 430 |
+
"""
|
| 431 |
+
|
| 432 |
+
self._volumes_in_use = volumes_in_use
|
| 433 |
+
|
| 434 |
+
def to_dict(self):
|
| 435 |
+
"""Returns the model properties as a dict"""
|
| 436 |
+
result = {}
|
| 437 |
+
|
| 438 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 439 |
+
value = getattr(self, attr)
|
| 440 |
+
if isinstance(value, list):
|
| 441 |
+
result[attr] = list(map(
|
| 442 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 443 |
+
value
|
| 444 |
+
))
|
| 445 |
+
elif hasattr(value, "to_dict"):
|
| 446 |
+
result[attr] = value.to_dict()
|
| 447 |
+
elif isinstance(value, dict):
|
| 448 |
+
result[attr] = dict(map(
|
| 449 |
+
lambda item: (item[0], item[1].to_dict())
|
| 450 |
+
if hasattr(item[1], "to_dict") else item,
|
| 451 |
+
value.items()
|
| 452 |
+
))
|
| 453 |
+
else:
|
| 454 |
+
result[attr] = value
|
| 455 |
+
|
| 456 |
+
return result
|
| 457 |
+
|
| 458 |
+
def to_str(self):
|
| 459 |
+
"""Returns the string representation of the model"""
|
| 460 |
+
return pprint.pformat(self.to_dict())
|
| 461 |
+
|
| 462 |
+
def __repr__(self):
|
| 463 |
+
"""For `print` and `pprint`"""
|
| 464 |
+
return self.to_str()
|
| 465 |
+
|
| 466 |
+
def __eq__(self, other):
|
| 467 |
+
"""Returns true if both objects are equal"""
|
| 468 |
+
if not isinstance(other, V1NodeStatus):
|
| 469 |
+
return False
|
| 470 |
+
|
| 471 |
+
return self.to_dict() == other.to_dict()
|
| 472 |
+
|
| 473 |
+
def __ne__(self, other):
|
| 474 |
+
"""Returns true if both objects are not equal"""
|
| 475 |
+
if not isinstance(other, V1NodeStatus):
|
| 476 |
+
return True
|
| 477 |
+
|
| 478 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_swap_status.py
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeSwapStatus(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'capacity': 'int'
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
attribute_map = {
|
| 40 |
+
'capacity': 'capacity'
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
def __init__(self, capacity=None, local_vars_configuration=None): # noqa: E501
|
| 44 |
+
"""V1NodeSwapStatus - a model defined in OpenAPI""" # noqa: E501
|
| 45 |
+
if local_vars_configuration is None:
|
| 46 |
+
local_vars_configuration = Configuration()
|
| 47 |
+
self.local_vars_configuration = local_vars_configuration
|
| 48 |
+
|
| 49 |
+
self._capacity = None
|
| 50 |
+
self.discriminator = None
|
| 51 |
+
|
| 52 |
+
if capacity is not None:
|
| 53 |
+
self.capacity = capacity
|
| 54 |
+
|
| 55 |
+
@property
|
| 56 |
+
def capacity(self):
|
| 57 |
+
"""Gets the capacity of this V1NodeSwapStatus. # noqa: E501
|
| 58 |
+
|
| 59 |
+
Total amount of swap memory in bytes. # noqa: E501
|
| 60 |
+
|
| 61 |
+
:return: The capacity of this V1NodeSwapStatus. # noqa: E501
|
| 62 |
+
:rtype: int
|
| 63 |
+
"""
|
| 64 |
+
return self._capacity
|
| 65 |
+
|
| 66 |
+
@capacity.setter
|
| 67 |
+
def capacity(self, capacity):
|
| 68 |
+
"""Sets the capacity of this V1NodeSwapStatus.
|
| 69 |
+
|
| 70 |
+
Total amount of swap memory in bytes. # noqa: E501
|
| 71 |
+
|
| 72 |
+
:param capacity: The capacity of this V1NodeSwapStatus. # noqa: E501
|
| 73 |
+
:type: int
|
| 74 |
+
"""
|
| 75 |
+
|
| 76 |
+
self._capacity = capacity
|
| 77 |
+
|
| 78 |
+
def to_dict(self):
|
| 79 |
+
"""Returns the model properties as a dict"""
|
| 80 |
+
result = {}
|
| 81 |
+
|
| 82 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 83 |
+
value = getattr(self, attr)
|
| 84 |
+
if isinstance(value, list):
|
| 85 |
+
result[attr] = list(map(
|
| 86 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 87 |
+
value
|
| 88 |
+
))
|
| 89 |
+
elif hasattr(value, "to_dict"):
|
| 90 |
+
result[attr] = value.to_dict()
|
| 91 |
+
elif isinstance(value, dict):
|
| 92 |
+
result[attr] = dict(map(
|
| 93 |
+
lambda item: (item[0], item[1].to_dict())
|
| 94 |
+
if hasattr(item[1], "to_dict") else item,
|
| 95 |
+
value.items()
|
| 96 |
+
))
|
| 97 |
+
else:
|
| 98 |
+
result[attr] = value
|
| 99 |
+
|
| 100 |
+
return result
|
| 101 |
+
|
| 102 |
+
def to_str(self):
|
| 103 |
+
"""Returns the string representation of the model"""
|
| 104 |
+
return pprint.pformat(self.to_dict())
|
| 105 |
+
|
| 106 |
+
def __repr__(self):
|
| 107 |
+
"""For `print` and `pprint`"""
|
| 108 |
+
return self.to_str()
|
| 109 |
+
|
| 110 |
+
def __eq__(self, other):
|
| 111 |
+
"""Returns true if both objects are equal"""
|
| 112 |
+
if not isinstance(other, V1NodeSwapStatus):
|
| 113 |
+
return False
|
| 114 |
+
|
| 115 |
+
return self.to_dict() == other.to_dict()
|
| 116 |
+
|
| 117 |
+
def __ne__(self, other):
|
| 118 |
+
"""Returns true if both objects are not equal"""
|
| 119 |
+
if not isinstance(other, V1NodeSwapStatus):
|
| 120 |
+
return True
|
| 121 |
+
|
| 122 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_node_system_info.py
ADDED
|
@@ -0,0 +1,410 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NodeSystemInfo(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'architecture': 'str',
|
| 37 |
+
'boot_id': 'str',
|
| 38 |
+
'container_runtime_version': 'str',
|
| 39 |
+
'kernel_version': 'str',
|
| 40 |
+
'kube_proxy_version': 'str',
|
| 41 |
+
'kubelet_version': 'str',
|
| 42 |
+
'machine_id': 'str',
|
| 43 |
+
'operating_system': 'str',
|
| 44 |
+
'os_image': 'str',
|
| 45 |
+
'swap': 'V1NodeSwapStatus',
|
| 46 |
+
'system_uuid': 'str'
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
attribute_map = {
|
| 50 |
+
'architecture': 'architecture',
|
| 51 |
+
'boot_id': 'bootID',
|
| 52 |
+
'container_runtime_version': 'containerRuntimeVersion',
|
| 53 |
+
'kernel_version': 'kernelVersion',
|
| 54 |
+
'kube_proxy_version': 'kubeProxyVersion',
|
| 55 |
+
'kubelet_version': 'kubeletVersion',
|
| 56 |
+
'machine_id': 'machineID',
|
| 57 |
+
'operating_system': 'operatingSystem',
|
| 58 |
+
'os_image': 'osImage',
|
| 59 |
+
'swap': 'swap',
|
| 60 |
+
'system_uuid': 'systemUUID'
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
def __init__(self, architecture=None, boot_id=None, container_runtime_version=None, kernel_version=None, kube_proxy_version=None, kubelet_version=None, machine_id=None, operating_system=None, os_image=None, swap=None, system_uuid=None, local_vars_configuration=None): # noqa: E501
|
| 64 |
+
"""V1NodeSystemInfo - a model defined in OpenAPI""" # noqa: E501
|
| 65 |
+
if local_vars_configuration is None:
|
| 66 |
+
local_vars_configuration = Configuration()
|
| 67 |
+
self.local_vars_configuration = local_vars_configuration
|
| 68 |
+
|
| 69 |
+
self._architecture = None
|
| 70 |
+
self._boot_id = None
|
| 71 |
+
self._container_runtime_version = None
|
| 72 |
+
self._kernel_version = None
|
| 73 |
+
self._kube_proxy_version = None
|
| 74 |
+
self._kubelet_version = None
|
| 75 |
+
self._machine_id = None
|
| 76 |
+
self._operating_system = None
|
| 77 |
+
self._os_image = None
|
| 78 |
+
self._swap = None
|
| 79 |
+
self._system_uuid = None
|
| 80 |
+
self.discriminator = None
|
| 81 |
+
|
| 82 |
+
self.architecture = architecture
|
| 83 |
+
self.boot_id = boot_id
|
| 84 |
+
self.container_runtime_version = container_runtime_version
|
| 85 |
+
self.kernel_version = kernel_version
|
| 86 |
+
self.kube_proxy_version = kube_proxy_version
|
| 87 |
+
self.kubelet_version = kubelet_version
|
| 88 |
+
self.machine_id = machine_id
|
| 89 |
+
self.operating_system = operating_system
|
| 90 |
+
self.os_image = os_image
|
| 91 |
+
if swap is not None:
|
| 92 |
+
self.swap = swap
|
| 93 |
+
self.system_uuid = system_uuid
|
| 94 |
+
|
| 95 |
+
@property
|
| 96 |
+
def architecture(self):
|
| 97 |
+
"""Gets the architecture of this V1NodeSystemInfo. # noqa: E501
|
| 98 |
+
|
| 99 |
+
The Architecture reported by the node # noqa: E501
|
| 100 |
+
|
| 101 |
+
:return: The architecture of this V1NodeSystemInfo. # noqa: E501
|
| 102 |
+
:rtype: str
|
| 103 |
+
"""
|
| 104 |
+
return self._architecture
|
| 105 |
+
|
| 106 |
+
@architecture.setter
|
| 107 |
+
def architecture(self, architecture):
|
| 108 |
+
"""Sets the architecture of this V1NodeSystemInfo.
|
| 109 |
+
|
| 110 |
+
The Architecture reported by the node # noqa: E501
|
| 111 |
+
|
| 112 |
+
:param architecture: The architecture of this V1NodeSystemInfo. # noqa: E501
|
| 113 |
+
:type: str
|
| 114 |
+
"""
|
| 115 |
+
if self.local_vars_configuration.client_side_validation and architecture is None: # noqa: E501
|
| 116 |
+
raise ValueError("Invalid value for `architecture`, must not be `None`") # noqa: E501
|
| 117 |
+
|
| 118 |
+
self._architecture = architecture
|
| 119 |
+
|
| 120 |
+
@property
|
| 121 |
+
def boot_id(self):
|
| 122 |
+
"""Gets the boot_id of this V1NodeSystemInfo. # noqa: E501
|
| 123 |
+
|
| 124 |
+
Boot ID reported by the node. # noqa: E501
|
| 125 |
+
|
| 126 |
+
:return: The boot_id of this V1NodeSystemInfo. # noqa: E501
|
| 127 |
+
:rtype: str
|
| 128 |
+
"""
|
| 129 |
+
return self._boot_id
|
| 130 |
+
|
| 131 |
+
@boot_id.setter
|
| 132 |
+
def boot_id(self, boot_id):
|
| 133 |
+
"""Sets the boot_id of this V1NodeSystemInfo.
|
| 134 |
+
|
| 135 |
+
Boot ID reported by the node. # noqa: E501
|
| 136 |
+
|
| 137 |
+
:param boot_id: The boot_id of this V1NodeSystemInfo. # noqa: E501
|
| 138 |
+
:type: str
|
| 139 |
+
"""
|
| 140 |
+
if self.local_vars_configuration.client_side_validation and boot_id is None: # noqa: E501
|
| 141 |
+
raise ValueError("Invalid value for `boot_id`, must not be `None`") # noqa: E501
|
| 142 |
+
|
| 143 |
+
self._boot_id = boot_id
|
| 144 |
+
|
| 145 |
+
@property
|
| 146 |
+
def container_runtime_version(self):
|
| 147 |
+
"""Gets the container_runtime_version of this V1NodeSystemInfo. # noqa: E501
|
| 148 |
+
|
| 149 |
+
ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). # noqa: E501
|
| 150 |
+
|
| 151 |
+
:return: The container_runtime_version of this V1NodeSystemInfo. # noqa: E501
|
| 152 |
+
:rtype: str
|
| 153 |
+
"""
|
| 154 |
+
return self._container_runtime_version
|
| 155 |
+
|
| 156 |
+
@container_runtime_version.setter
|
| 157 |
+
def container_runtime_version(self, container_runtime_version):
|
| 158 |
+
"""Sets the container_runtime_version of this V1NodeSystemInfo.
|
| 159 |
+
|
| 160 |
+
ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2). # noqa: E501
|
| 161 |
+
|
| 162 |
+
:param container_runtime_version: The container_runtime_version of this V1NodeSystemInfo. # noqa: E501
|
| 163 |
+
:type: str
|
| 164 |
+
"""
|
| 165 |
+
if self.local_vars_configuration.client_side_validation and container_runtime_version is None: # noqa: E501
|
| 166 |
+
raise ValueError("Invalid value for `container_runtime_version`, must not be `None`") # noqa: E501
|
| 167 |
+
|
| 168 |
+
self._container_runtime_version = container_runtime_version
|
| 169 |
+
|
| 170 |
+
@property
|
| 171 |
+
def kernel_version(self):
|
| 172 |
+
"""Gets the kernel_version of this V1NodeSystemInfo. # noqa: E501
|
| 173 |
+
|
| 174 |
+
Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). # noqa: E501
|
| 175 |
+
|
| 176 |
+
:return: The kernel_version of this V1NodeSystemInfo. # noqa: E501
|
| 177 |
+
:rtype: str
|
| 178 |
+
"""
|
| 179 |
+
return self._kernel_version
|
| 180 |
+
|
| 181 |
+
@kernel_version.setter
|
| 182 |
+
def kernel_version(self, kernel_version):
|
| 183 |
+
"""Sets the kernel_version of this V1NodeSystemInfo.
|
| 184 |
+
|
| 185 |
+
Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64). # noqa: E501
|
| 186 |
+
|
| 187 |
+
:param kernel_version: The kernel_version of this V1NodeSystemInfo. # noqa: E501
|
| 188 |
+
:type: str
|
| 189 |
+
"""
|
| 190 |
+
if self.local_vars_configuration.client_side_validation and kernel_version is None: # noqa: E501
|
| 191 |
+
raise ValueError("Invalid value for `kernel_version`, must not be `None`") # noqa: E501
|
| 192 |
+
|
| 193 |
+
self._kernel_version = kernel_version
|
| 194 |
+
|
| 195 |
+
@property
|
| 196 |
+
def kube_proxy_version(self):
|
| 197 |
+
"""Gets the kube_proxy_version of this V1NodeSystemInfo. # noqa: E501
|
| 198 |
+
|
| 199 |
+
Deprecated: KubeProxy Version reported by the node. # noqa: E501
|
| 200 |
+
|
| 201 |
+
:return: The kube_proxy_version of this V1NodeSystemInfo. # noqa: E501
|
| 202 |
+
:rtype: str
|
| 203 |
+
"""
|
| 204 |
+
return self._kube_proxy_version
|
| 205 |
+
|
| 206 |
+
@kube_proxy_version.setter
|
| 207 |
+
def kube_proxy_version(self, kube_proxy_version):
|
| 208 |
+
"""Sets the kube_proxy_version of this V1NodeSystemInfo.
|
| 209 |
+
|
| 210 |
+
Deprecated: KubeProxy Version reported by the node. # noqa: E501
|
| 211 |
+
|
| 212 |
+
:param kube_proxy_version: The kube_proxy_version of this V1NodeSystemInfo. # noqa: E501
|
| 213 |
+
:type: str
|
| 214 |
+
"""
|
| 215 |
+
if self.local_vars_configuration.client_side_validation and kube_proxy_version is None: # noqa: E501
|
| 216 |
+
raise ValueError("Invalid value for `kube_proxy_version`, must not be `None`") # noqa: E501
|
| 217 |
+
|
| 218 |
+
self._kube_proxy_version = kube_proxy_version
|
| 219 |
+
|
| 220 |
+
@property
|
| 221 |
+
def kubelet_version(self):
|
| 222 |
+
"""Gets the kubelet_version of this V1NodeSystemInfo. # noqa: E501
|
| 223 |
+
|
| 224 |
+
Kubelet Version reported by the node. # noqa: E501
|
| 225 |
+
|
| 226 |
+
:return: The kubelet_version of this V1NodeSystemInfo. # noqa: E501
|
| 227 |
+
:rtype: str
|
| 228 |
+
"""
|
| 229 |
+
return self._kubelet_version
|
| 230 |
+
|
| 231 |
+
@kubelet_version.setter
|
| 232 |
+
def kubelet_version(self, kubelet_version):
|
| 233 |
+
"""Sets the kubelet_version of this V1NodeSystemInfo.
|
| 234 |
+
|
| 235 |
+
Kubelet Version reported by the node. # noqa: E501
|
| 236 |
+
|
| 237 |
+
:param kubelet_version: The kubelet_version of this V1NodeSystemInfo. # noqa: E501
|
| 238 |
+
:type: str
|
| 239 |
+
"""
|
| 240 |
+
if self.local_vars_configuration.client_side_validation and kubelet_version is None: # noqa: E501
|
| 241 |
+
raise ValueError("Invalid value for `kubelet_version`, must not be `None`") # noqa: E501
|
| 242 |
+
|
| 243 |
+
self._kubelet_version = kubelet_version
|
| 244 |
+
|
| 245 |
+
@property
|
| 246 |
+
def machine_id(self):
|
| 247 |
+
"""Gets the machine_id of this V1NodeSystemInfo. # noqa: E501
|
| 248 |
+
|
| 249 |
+
MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html # noqa: E501
|
| 250 |
+
|
| 251 |
+
:return: The machine_id of this V1NodeSystemInfo. # noqa: E501
|
| 252 |
+
:rtype: str
|
| 253 |
+
"""
|
| 254 |
+
return self._machine_id
|
| 255 |
+
|
| 256 |
+
@machine_id.setter
|
| 257 |
+
def machine_id(self, machine_id):
|
| 258 |
+
"""Sets the machine_id of this V1NodeSystemInfo.
|
| 259 |
+
|
| 260 |
+
MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html # noqa: E501
|
| 261 |
+
|
| 262 |
+
:param machine_id: The machine_id of this V1NodeSystemInfo. # noqa: E501
|
| 263 |
+
:type: str
|
| 264 |
+
"""
|
| 265 |
+
if self.local_vars_configuration.client_side_validation and machine_id is None: # noqa: E501
|
| 266 |
+
raise ValueError("Invalid value for `machine_id`, must not be `None`") # noqa: E501
|
| 267 |
+
|
| 268 |
+
self._machine_id = machine_id
|
| 269 |
+
|
| 270 |
+
@property
|
| 271 |
+
def operating_system(self):
|
| 272 |
+
"""Gets the operating_system of this V1NodeSystemInfo. # noqa: E501
|
| 273 |
+
|
| 274 |
+
The Operating System reported by the node # noqa: E501
|
| 275 |
+
|
| 276 |
+
:return: The operating_system of this V1NodeSystemInfo. # noqa: E501
|
| 277 |
+
:rtype: str
|
| 278 |
+
"""
|
| 279 |
+
return self._operating_system
|
| 280 |
+
|
| 281 |
+
@operating_system.setter
|
| 282 |
+
def operating_system(self, operating_system):
|
| 283 |
+
"""Sets the operating_system of this V1NodeSystemInfo.
|
| 284 |
+
|
| 285 |
+
The Operating System reported by the node # noqa: E501
|
| 286 |
+
|
| 287 |
+
:param operating_system: The operating_system of this V1NodeSystemInfo. # noqa: E501
|
| 288 |
+
:type: str
|
| 289 |
+
"""
|
| 290 |
+
if self.local_vars_configuration.client_side_validation and operating_system is None: # noqa: E501
|
| 291 |
+
raise ValueError("Invalid value for `operating_system`, must not be `None`") # noqa: E501
|
| 292 |
+
|
| 293 |
+
self._operating_system = operating_system
|
| 294 |
+
|
| 295 |
+
@property
|
| 296 |
+
def os_image(self):
|
| 297 |
+
"""Gets the os_image of this V1NodeSystemInfo. # noqa: E501
|
| 298 |
+
|
| 299 |
+
OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). # noqa: E501
|
| 300 |
+
|
| 301 |
+
:return: The os_image of this V1NodeSystemInfo. # noqa: E501
|
| 302 |
+
:rtype: str
|
| 303 |
+
"""
|
| 304 |
+
return self._os_image
|
| 305 |
+
|
| 306 |
+
@os_image.setter
|
| 307 |
+
def os_image(self, os_image):
|
| 308 |
+
"""Sets the os_image of this V1NodeSystemInfo.
|
| 309 |
+
|
| 310 |
+
OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). # noqa: E501
|
| 311 |
+
|
| 312 |
+
:param os_image: The os_image of this V1NodeSystemInfo. # noqa: E501
|
| 313 |
+
:type: str
|
| 314 |
+
"""
|
| 315 |
+
if self.local_vars_configuration.client_side_validation and os_image is None: # noqa: E501
|
| 316 |
+
raise ValueError("Invalid value for `os_image`, must not be `None`") # noqa: E501
|
| 317 |
+
|
| 318 |
+
self._os_image = os_image
|
| 319 |
+
|
| 320 |
+
@property
|
| 321 |
+
def swap(self):
|
| 322 |
+
"""Gets the swap of this V1NodeSystemInfo. # noqa: E501
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
:return: The swap of this V1NodeSystemInfo. # noqa: E501
|
| 326 |
+
:rtype: V1NodeSwapStatus
|
| 327 |
+
"""
|
| 328 |
+
return self._swap
|
| 329 |
+
|
| 330 |
+
@swap.setter
|
| 331 |
+
def swap(self, swap):
|
| 332 |
+
"""Sets the swap of this V1NodeSystemInfo.
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
:param swap: The swap of this V1NodeSystemInfo. # noqa: E501
|
| 336 |
+
:type: V1NodeSwapStatus
|
| 337 |
+
"""
|
| 338 |
+
|
| 339 |
+
self._swap = swap
|
| 340 |
+
|
| 341 |
+
@property
|
| 342 |
+
def system_uuid(self):
|
| 343 |
+
"""Gets the system_uuid of this V1NodeSystemInfo. # noqa: E501
|
| 344 |
+
|
| 345 |
+
SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid # noqa: E501
|
| 346 |
+
|
| 347 |
+
:return: The system_uuid of this V1NodeSystemInfo. # noqa: E501
|
| 348 |
+
:rtype: str
|
| 349 |
+
"""
|
| 350 |
+
return self._system_uuid
|
| 351 |
+
|
| 352 |
+
@system_uuid.setter
|
| 353 |
+
def system_uuid(self, system_uuid):
|
| 354 |
+
"""Sets the system_uuid of this V1NodeSystemInfo.
|
| 355 |
+
|
| 356 |
+
SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid # noqa: E501
|
| 357 |
+
|
| 358 |
+
:param system_uuid: The system_uuid of this V1NodeSystemInfo. # noqa: E501
|
| 359 |
+
:type: str
|
| 360 |
+
"""
|
| 361 |
+
if self.local_vars_configuration.client_side_validation and system_uuid is None: # noqa: E501
|
| 362 |
+
raise ValueError("Invalid value for `system_uuid`, must not be `None`") # noqa: E501
|
| 363 |
+
|
| 364 |
+
self._system_uuid = system_uuid
|
| 365 |
+
|
| 366 |
+
def to_dict(self):
|
| 367 |
+
"""Returns the model properties as a dict"""
|
| 368 |
+
result = {}
|
| 369 |
+
|
| 370 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 371 |
+
value = getattr(self, attr)
|
| 372 |
+
if isinstance(value, list):
|
| 373 |
+
result[attr] = list(map(
|
| 374 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 375 |
+
value
|
| 376 |
+
))
|
| 377 |
+
elif hasattr(value, "to_dict"):
|
| 378 |
+
result[attr] = value.to_dict()
|
| 379 |
+
elif isinstance(value, dict):
|
| 380 |
+
result[attr] = dict(map(
|
| 381 |
+
lambda item: (item[0], item[1].to_dict())
|
| 382 |
+
if hasattr(item[1], "to_dict") else item,
|
| 383 |
+
value.items()
|
| 384 |
+
))
|
| 385 |
+
else:
|
| 386 |
+
result[attr] = value
|
| 387 |
+
|
| 388 |
+
return result
|
| 389 |
+
|
| 390 |
+
def to_str(self):
|
| 391 |
+
"""Returns the string representation of the model"""
|
| 392 |
+
return pprint.pformat(self.to_dict())
|
| 393 |
+
|
| 394 |
+
def __repr__(self):
|
| 395 |
+
"""For `print` and `pprint`"""
|
| 396 |
+
return self.to_str()
|
| 397 |
+
|
| 398 |
+
def __eq__(self, other):
|
| 399 |
+
"""Returns true if both objects are equal"""
|
| 400 |
+
if not isinstance(other, V1NodeSystemInfo):
|
| 401 |
+
return False
|
| 402 |
+
|
| 403 |
+
return self.to_dict() == other.to_dict()
|
| 404 |
+
|
| 405 |
+
def __ne__(self, other):
|
| 406 |
+
"""Returns true if both objects are not equal"""
|
| 407 |
+
if not isinstance(other, V1NodeSystemInfo):
|
| 408 |
+
return True
|
| 409 |
+
|
| 410 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_attributes.py
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NonResourceAttributes(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'path': 'str',
|
| 37 |
+
'verb': 'str'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'path': 'path',
|
| 42 |
+
'verb': 'verb'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, path=None, verb=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NonResourceAttributes - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._path = None
|
| 52 |
+
self._verb = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if path is not None:
|
| 56 |
+
self.path = path
|
| 57 |
+
if verb is not None:
|
| 58 |
+
self.verb = verb
|
| 59 |
+
|
| 60 |
+
@property
|
| 61 |
+
def path(self):
|
| 62 |
+
"""Gets the path of this V1NonResourceAttributes. # noqa: E501
|
| 63 |
+
|
| 64 |
+
Path is the URL path of the request # noqa: E501
|
| 65 |
+
|
| 66 |
+
:return: The path of this V1NonResourceAttributes. # noqa: E501
|
| 67 |
+
:rtype: str
|
| 68 |
+
"""
|
| 69 |
+
return self._path
|
| 70 |
+
|
| 71 |
+
@path.setter
|
| 72 |
+
def path(self, path):
|
| 73 |
+
"""Sets the path of this V1NonResourceAttributes.
|
| 74 |
+
|
| 75 |
+
Path is the URL path of the request # noqa: E501
|
| 76 |
+
|
| 77 |
+
:param path: The path of this V1NonResourceAttributes. # noqa: E501
|
| 78 |
+
:type: str
|
| 79 |
+
"""
|
| 80 |
+
|
| 81 |
+
self._path = path
|
| 82 |
+
|
| 83 |
+
@property
|
| 84 |
+
def verb(self):
|
| 85 |
+
"""Gets the verb of this V1NonResourceAttributes. # noqa: E501
|
| 86 |
+
|
| 87 |
+
Verb is the standard HTTP verb # noqa: E501
|
| 88 |
+
|
| 89 |
+
:return: The verb of this V1NonResourceAttributes. # noqa: E501
|
| 90 |
+
:rtype: str
|
| 91 |
+
"""
|
| 92 |
+
return self._verb
|
| 93 |
+
|
| 94 |
+
@verb.setter
|
| 95 |
+
def verb(self, verb):
|
| 96 |
+
"""Sets the verb of this V1NonResourceAttributes.
|
| 97 |
+
|
| 98 |
+
Verb is the standard HTTP verb # noqa: E501
|
| 99 |
+
|
| 100 |
+
:param verb: The verb of this V1NonResourceAttributes. # noqa: E501
|
| 101 |
+
:type: str
|
| 102 |
+
"""
|
| 103 |
+
|
| 104 |
+
self._verb = verb
|
| 105 |
+
|
| 106 |
+
def to_dict(self):
|
| 107 |
+
"""Returns the model properties as a dict"""
|
| 108 |
+
result = {}
|
| 109 |
+
|
| 110 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 111 |
+
value = getattr(self, attr)
|
| 112 |
+
if isinstance(value, list):
|
| 113 |
+
result[attr] = list(map(
|
| 114 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 115 |
+
value
|
| 116 |
+
))
|
| 117 |
+
elif hasattr(value, "to_dict"):
|
| 118 |
+
result[attr] = value.to_dict()
|
| 119 |
+
elif isinstance(value, dict):
|
| 120 |
+
result[attr] = dict(map(
|
| 121 |
+
lambda item: (item[0], item[1].to_dict())
|
| 122 |
+
if hasattr(item[1], "to_dict") else item,
|
| 123 |
+
value.items()
|
| 124 |
+
))
|
| 125 |
+
else:
|
| 126 |
+
result[attr] = value
|
| 127 |
+
|
| 128 |
+
return result
|
| 129 |
+
|
| 130 |
+
def to_str(self):
|
| 131 |
+
"""Returns the string representation of the model"""
|
| 132 |
+
return pprint.pformat(self.to_dict())
|
| 133 |
+
|
| 134 |
+
def __repr__(self):
|
| 135 |
+
"""For `print` and `pprint`"""
|
| 136 |
+
return self.to_str()
|
| 137 |
+
|
| 138 |
+
def __eq__(self, other):
|
| 139 |
+
"""Returns true if both objects are equal"""
|
| 140 |
+
if not isinstance(other, V1NonResourceAttributes):
|
| 141 |
+
return False
|
| 142 |
+
|
| 143 |
+
return self.to_dict() == other.to_dict()
|
| 144 |
+
|
| 145 |
+
def __ne__(self, other):
|
| 146 |
+
"""Returns true if both objects are not equal"""
|
| 147 |
+
if not isinstance(other, V1NonResourceAttributes):
|
| 148 |
+
return True
|
| 149 |
+
|
| 150 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_policy_rule.py
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NonResourcePolicyRule(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'non_resource_ur_ls': 'list[str]',
|
| 37 |
+
'verbs': 'list[str]'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'non_resource_ur_ls': 'nonResourceURLs',
|
| 42 |
+
'verbs': 'verbs'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, non_resource_ur_ls=None, verbs=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NonResourcePolicyRule - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._non_resource_ur_ls = None
|
| 52 |
+
self._verbs = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
self.non_resource_ur_ls = non_resource_ur_ls
|
| 56 |
+
self.verbs = verbs
|
| 57 |
+
|
| 58 |
+
@property
|
| 59 |
+
def non_resource_ur_ls(self):
|
| 60 |
+
"""Gets the non_resource_ur_ls of this V1NonResourcePolicyRule. # noqa: E501
|
| 61 |
+
|
| 62 |
+
`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/*\" also matches nothing - \"/healthz/*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required. # noqa: E501
|
| 63 |
+
|
| 64 |
+
:return: The non_resource_ur_ls of this V1NonResourcePolicyRule. # noqa: E501
|
| 65 |
+
:rtype: list[str]
|
| 66 |
+
"""
|
| 67 |
+
return self._non_resource_ur_ls
|
| 68 |
+
|
| 69 |
+
@non_resource_ur_ls.setter
|
| 70 |
+
def non_resource_ur_ls(self, non_resource_ur_ls):
|
| 71 |
+
"""Sets the non_resource_ur_ls of this V1NonResourcePolicyRule.
|
| 72 |
+
|
| 73 |
+
`nonResourceURLs` is a set of url prefixes that a user should have access to and may not be empty. For example: - \"/healthz\" is legal - \"/hea*\" is illegal - \"/hea\" is legal but matches nothing - \"/hea/*\" also matches nothing - \"/healthz/*\" matches all per-component health checks. \"*\" matches all non-resource urls. if it is present, it must be the only entry. Required. # noqa: E501
|
| 74 |
+
|
| 75 |
+
:param non_resource_ur_ls: The non_resource_ur_ls of this V1NonResourcePolicyRule. # noqa: E501
|
| 76 |
+
:type: list[str]
|
| 77 |
+
"""
|
| 78 |
+
if self.local_vars_configuration.client_side_validation and non_resource_ur_ls is None: # noqa: E501
|
| 79 |
+
raise ValueError("Invalid value for `non_resource_ur_ls`, must not be `None`") # noqa: E501
|
| 80 |
+
|
| 81 |
+
self._non_resource_ur_ls = non_resource_ur_ls
|
| 82 |
+
|
| 83 |
+
@property
|
| 84 |
+
def verbs(self):
|
| 85 |
+
"""Gets the verbs of this V1NonResourcePolicyRule. # noqa: E501
|
| 86 |
+
|
| 87 |
+
`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required. # noqa: E501
|
| 88 |
+
|
| 89 |
+
:return: The verbs of this V1NonResourcePolicyRule. # noqa: E501
|
| 90 |
+
:rtype: list[str]
|
| 91 |
+
"""
|
| 92 |
+
return self._verbs
|
| 93 |
+
|
| 94 |
+
@verbs.setter
|
| 95 |
+
def verbs(self, verbs):
|
| 96 |
+
"""Sets the verbs of this V1NonResourcePolicyRule.
|
| 97 |
+
|
| 98 |
+
`verbs` is a list of matching verbs and may not be empty. \"*\" matches all verbs. If it is present, it must be the only entry. Required. # noqa: E501
|
| 99 |
+
|
| 100 |
+
:param verbs: The verbs of this V1NonResourcePolicyRule. # noqa: E501
|
| 101 |
+
:type: list[str]
|
| 102 |
+
"""
|
| 103 |
+
if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501
|
| 104 |
+
raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501
|
| 105 |
+
|
| 106 |
+
self._verbs = verbs
|
| 107 |
+
|
| 108 |
+
def to_dict(self):
|
| 109 |
+
"""Returns the model properties as a dict"""
|
| 110 |
+
result = {}
|
| 111 |
+
|
| 112 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 113 |
+
value = getattr(self, attr)
|
| 114 |
+
if isinstance(value, list):
|
| 115 |
+
result[attr] = list(map(
|
| 116 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 117 |
+
value
|
| 118 |
+
))
|
| 119 |
+
elif hasattr(value, "to_dict"):
|
| 120 |
+
result[attr] = value.to_dict()
|
| 121 |
+
elif isinstance(value, dict):
|
| 122 |
+
result[attr] = dict(map(
|
| 123 |
+
lambda item: (item[0], item[1].to_dict())
|
| 124 |
+
if hasattr(item[1], "to_dict") else item,
|
| 125 |
+
value.items()
|
| 126 |
+
))
|
| 127 |
+
else:
|
| 128 |
+
result[attr] = value
|
| 129 |
+
|
| 130 |
+
return result
|
| 131 |
+
|
| 132 |
+
def to_str(self):
|
| 133 |
+
"""Returns the string representation of the model"""
|
| 134 |
+
return pprint.pformat(self.to_dict())
|
| 135 |
+
|
| 136 |
+
def __repr__(self):
|
| 137 |
+
"""For `print` and `pprint`"""
|
| 138 |
+
return self.to_str()
|
| 139 |
+
|
| 140 |
+
def __eq__(self, other):
|
| 141 |
+
"""Returns true if both objects are equal"""
|
| 142 |
+
if not isinstance(other, V1NonResourcePolicyRule):
|
| 143 |
+
return False
|
| 144 |
+
|
| 145 |
+
return self.to_dict() == other.to_dict()
|
| 146 |
+
|
| 147 |
+
def __ne__(self, other):
|
| 148 |
+
"""Returns true if both objects are not equal"""
|
| 149 |
+
if not isinstance(other, V1NonResourcePolicyRule):
|
| 150 |
+
return True
|
| 151 |
+
|
| 152 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_non_resource_rule.py
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1NonResourceRule(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'non_resource_ur_ls': 'list[str]',
|
| 37 |
+
'verbs': 'list[str]'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'non_resource_ur_ls': 'nonResourceURLs',
|
| 42 |
+
'verbs': 'verbs'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, non_resource_ur_ls=None, verbs=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1NonResourceRule - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._non_resource_ur_ls = None
|
| 52 |
+
self._verbs = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if non_resource_ur_ls is not None:
|
| 56 |
+
self.non_resource_ur_ls = non_resource_ur_ls
|
| 57 |
+
self.verbs = verbs
|
| 58 |
+
|
| 59 |
+
@property
|
| 60 |
+
def non_resource_ur_ls(self):
|
| 61 |
+
"""Gets the non_resource_ur_ls of this V1NonResourceRule. # noqa: E501
|
| 62 |
+
|
| 63 |
+
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. # noqa: E501
|
| 64 |
+
|
| 65 |
+
:return: The non_resource_ur_ls of this V1NonResourceRule. # noqa: E501
|
| 66 |
+
:rtype: list[str]
|
| 67 |
+
"""
|
| 68 |
+
return self._non_resource_ur_ls
|
| 69 |
+
|
| 70 |
+
@non_resource_ur_ls.setter
|
| 71 |
+
def non_resource_ur_ls(self, non_resource_ur_ls):
|
| 72 |
+
"""Sets the non_resource_ur_ls of this V1NonResourceRule.
|
| 73 |
+
|
| 74 |
+
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. # noqa: E501
|
| 75 |
+
|
| 76 |
+
:param non_resource_ur_ls: The non_resource_ur_ls of this V1NonResourceRule. # noqa: E501
|
| 77 |
+
:type: list[str]
|
| 78 |
+
"""
|
| 79 |
+
|
| 80 |
+
self._non_resource_ur_ls = non_resource_ur_ls
|
| 81 |
+
|
| 82 |
+
@property
|
| 83 |
+
def verbs(self):
|
| 84 |
+
"""Gets the verbs of this V1NonResourceRule. # noqa: E501
|
| 85 |
+
|
| 86 |
+
Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. # noqa: E501
|
| 87 |
+
|
| 88 |
+
:return: The verbs of this V1NonResourceRule. # noqa: E501
|
| 89 |
+
:rtype: list[str]
|
| 90 |
+
"""
|
| 91 |
+
return self._verbs
|
| 92 |
+
|
| 93 |
+
@verbs.setter
|
| 94 |
+
def verbs(self, verbs):
|
| 95 |
+
"""Sets the verbs of this V1NonResourceRule.
|
| 96 |
+
|
| 97 |
+
Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. # noqa: E501
|
| 98 |
+
|
| 99 |
+
:param verbs: The verbs of this V1NonResourceRule. # noqa: E501
|
| 100 |
+
:type: list[str]
|
| 101 |
+
"""
|
| 102 |
+
if self.local_vars_configuration.client_side_validation and verbs is None: # noqa: E501
|
| 103 |
+
raise ValueError("Invalid value for `verbs`, must not be `None`") # noqa: E501
|
| 104 |
+
|
| 105 |
+
self._verbs = verbs
|
| 106 |
+
|
| 107 |
+
def to_dict(self):
|
| 108 |
+
"""Returns the model properties as a dict"""
|
| 109 |
+
result = {}
|
| 110 |
+
|
| 111 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 112 |
+
value = getattr(self, attr)
|
| 113 |
+
if isinstance(value, list):
|
| 114 |
+
result[attr] = list(map(
|
| 115 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 116 |
+
value
|
| 117 |
+
))
|
| 118 |
+
elif hasattr(value, "to_dict"):
|
| 119 |
+
result[attr] = value.to_dict()
|
| 120 |
+
elif isinstance(value, dict):
|
| 121 |
+
result[attr] = dict(map(
|
| 122 |
+
lambda item: (item[0], item[1].to_dict())
|
| 123 |
+
if hasattr(item[1], "to_dict") else item,
|
| 124 |
+
value.items()
|
| 125 |
+
))
|
| 126 |
+
else:
|
| 127 |
+
result[attr] = value
|
| 128 |
+
|
| 129 |
+
return result
|
| 130 |
+
|
| 131 |
+
def to_str(self):
|
| 132 |
+
"""Returns the string representation of the model"""
|
| 133 |
+
return pprint.pformat(self.to_dict())
|
| 134 |
+
|
| 135 |
+
def __repr__(self):
|
| 136 |
+
"""For `print` and `pprint`"""
|
| 137 |
+
return self.to_str()
|
| 138 |
+
|
| 139 |
+
def __eq__(self, other):
|
| 140 |
+
"""Returns true if both objects are equal"""
|
| 141 |
+
if not isinstance(other, V1NonResourceRule):
|
| 142 |
+
return False
|
| 143 |
+
|
| 144 |
+
return self.to_dict() == other.to_dict()
|
| 145 |
+
|
| 146 |
+
def __ne__(self, other):
|
| 147 |
+
"""Returns true if both objects are not equal"""
|
| 148 |
+
if not isinstance(other, V1NonResourceRule):
|
| 149 |
+
return True
|
| 150 |
+
|
| 151 |
+
return self.to_dict() != other.to_dict()
|
python/user_packages/Python313/site-packages/kubernetes/client/models/v1_object_field_selector.py
ADDED
|
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding: utf-8
|
| 2 |
+
|
| 3 |
+
"""
|
| 4 |
+
Kubernetes
|
| 5 |
+
|
| 6 |
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
| 7 |
+
|
| 8 |
+
The version of the OpenAPI document: release-1.35
|
| 9 |
+
Generated by: https://openapi-generator.tech
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
import pprint
|
| 14 |
+
import re # noqa: F401
|
| 15 |
+
|
| 16 |
+
import six
|
| 17 |
+
|
| 18 |
+
from kubernetes.client.configuration import Configuration
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
class V1ObjectFieldSelector(object):
|
| 22 |
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
| 23 |
+
Ref: https://openapi-generator.tech
|
| 24 |
+
|
| 25 |
+
Do not edit the class manually.
|
| 26 |
+
"""
|
| 27 |
+
|
| 28 |
+
"""
|
| 29 |
+
Attributes:
|
| 30 |
+
openapi_types (dict): The key is attribute name
|
| 31 |
+
and the value is attribute type.
|
| 32 |
+
attribute_map (dict): The key is attribute name
|
| 33 |
+
and the value is json key in definition.
|
| 34 |
+
"""
|
| 35 |
+
openapi_types = {
|
| 36 |
+
'api_version': 'str',
|
| 37 |
+
'field_path': 'str'
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
attribute_map = {
|
| 41 |
+
'api_version': 'apiVersion',
|
| 42 |
+
'field_path': 'fieldPath'
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
def __init__(self, api_version=None, field_path=None, local_vars_configuration=None): # noqa: E501
|
| 46 |
+
"""V1ObjectFieldSelector - a model defined in OpenAPI""" # noqa: E501
|
| 47 |
+
if local_vars_configuration is None:
|
| 48 |
+
local_vars_configuration = Configuration()
|
| 49 |
+
self.local_vars_configuration = local_vars_configuration
|
| 50 |
+
|
| 51 |
+
self._api_version = None
|
| 52 |
+
self._field_path = None
|
| 53 |
+
self.discriminator = None
|
| 54 |
+
|
| 55 |
+
if api_version is not None:
|
| 56 |
+
self.api_version = api_version
|
| 57 |
+
self.field_path = field_path
|
| 58 |
+
|
| 59 |
+
@property
|
| 60 |
+
def api_version(self):
|
| 61 |
+
"""Gets the api_version of this V1ObjectFieldSelector. # noqa: E501
|
| 62 |
+
|
| 63 |
+
Version of the schema the FieldPath is written in terms of, defaults to \"v1\". # noqa: E501
|
| 64 |
+
|
| 65 |
+
:return: The api_version of this V1ObjectFieldSelector. # noqa: E501
|
| 66 |
+
:rtype: str
|
| 67 |
+
"""
|
| 68 |
+
return self._api_version
|
| 69 |
+
|
| 70 |
+
@api_version.setter
|
| 71 |
+
def api_version(self, api_version):
|
| 72 |
+
"""Sets the api_version of this V1ObjectFieldSelector.
|
| 73 |
+
|
| 74 |
+
Version of the schema the FieldPath is written in terms of, defaults to \"v1\". # noqa: E501
|
| 75 |
+
|
| 76 |
+
:param api_version: The api_version of this V1ObjectFieldSelector. # noqa: E501
|
| 77 |
+
:type: str
|
| 78 |
+
"""
|
| 79 |
+
|
| 80 |
+
self._api_version = api_version
|
| 81 |
+
|
| 82 |
+
@property
|
| 83 |
+
def field_path(self):
|
| 84 |
+
"""Gets the field_path of this V1ObjectFieldSelector. # noqa: E501
|
| 85 |
+
|
| 86 |
+
Path of the field to select in the specified API version. # noqa: E501
|
| 87 |
+
|
| 88 |
+
:return: The field_path of this V1ObjectFieldSelector. # noqa: E501
|
| 89 |
+
:rtype: str
|
| 90 |
+
"""
|
| 91 |
+
return self._field_path
|
| 92 |
+
|
| 93 |
+
@field_path.setter
|
| 94 |
+
def field_path(self, field_path):
|
| 95 |
+
"""Sets the field_path of this V1ObjectFieldSelector.
|
| 96 |
+
|
| 97 |
+
Path of the field to select in the specified API version. # noqa: E501
|
| 98 |
+
|
| 99 |
+
:param field_path: The field_path of this V1ObjectFieldSelector. # noqa: E501
|
| 100 |
+
:type: str
|
| 101 |
+
"""
|
| 102 |
+
if self.local_vars_configuration.client_side_validation and field_path is None: # noqa: E501
|
| 103 |
+
raise ValueError("Invalid value for `field_path`, must not be `None`") # noqa: E501
|
| 104 |
+
|
| 105 |
+
self._field_path = field_path
|
| 106 |
+
|
| 107 |
+
def to_dict(self):
|
| 108 |
+
"""Returns the model properties as a dict"""
|
| 109 |
+
result = {}
|
| 110 |
+
|
| 111 |
+
for attr, _ in six.iteritems(self.openapi_types):
|
| 112 |
+
value = getattr(self, attr)
|
| 113 |
+
if isinstance(value, list):
|
| 114 |
+
result[attr] = list(map(
|
| 115 |
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
| 116 |
+
value
|
| 117 |
+
))
|
| 118 |
+
elif hasattr(value, "to_dict"):
|
| 119 |
+
result[attr] = value.to_dict()
|
| 120 |
+
elif isinstance(value, dict):
|
| 121 |
+
result[attr] = dict(map(
|
| 122 |
+
lambda item: (item[0], item[1].to_dict())
|
| 123 |
+
if hasattr(item[1], "to_dict") else item,
|
| 124 |
+
value.items()
|
| 125 |
+
))
|
| 126 |
+
else:
|
| 127 |
+
result[attr] = value
|
| 128 |
+
|
| 129 |
+
return result
|
| 130 |
+
|
| 131 |
+
def to_str(self):
|
| 132 |
+
"""Returns the string representation of the model"""
|
| 133 |
+
return pprint.pformat(self.to_dict())
|
| 134 |
+
|
| 135 |
+
def __repr__(self):
|
| 136 |
+
"""For `print` and `pprint`"""
|
| 137 |
+
return self.to_str()
|
| 138 |
+
|
| 139 |
+
def __eq__(self, other):
|
| 140 |
+
"""Returns true if both objects are equal"""
|
| 141 |
+
if not isinstance(other, V1ObjectFieldSelector):
|
| 142 |
+
return False
|
| 143 |
+
|
| 144 |
+
return self.to_dict() == other.to_dict()
|
| 145 |
+
|
| 146 |
+
def __ne__(self, other):
|
| 147 |
+
"""Returns true if both objects are not equal"""
|
| 148 |
+
if not isinstance(other, V1ObjectFieldSelector):
|
| 149 |
+
return True
|
| 150 |
+
|
| 151 |
+
return self.to_dict() != other.to_dict()
|