Skip to content

Commit 1a6a390

Browse files
author
BitsAdmin
committed
Merge branch 'vke-Python-2022-05-12-online-1842-2025_11_18_18_23_39' into 'integration_2025-11-20_1085328386050'
feat: [development task] vke-1842-Python (1853089) See merge request iaasng/volcengine-python-sdk!929
2 parents 2020f7c + 8737c9d commit 1a6a390

10 files changed

+849
-6
lines changed

volcenginesdkvke/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
from volcenginesdkvke.models.cluster_config_for_create_cluster_input import ClusterConfigForCreateClusterInput
3434
from volcenginesdkvke.models.cluster_config_for_list_clusters_output import ClusterConfigForListClustersOutput
3535
from volcenginesdkvke.models.cluster_config_for_update_cluster_config_input import ClusterConfigForUpdateClusterConfigInput
36+
from volcenginesdkvke.models.cluster_connector_config_request_for_update_cluster_config_input import ClusterConnectorConfigRequestForUpdateClusterConfigInput
3637
from volcenginesdkvke.models.compatibility_for_list_supported_addons_output import CompatibilityForListSupportedAddonsOutput
3738
from volcenginesdkvke.models.component_config_for_list_clusters_output import ComponentConfigForListClustersOutput
3839
from volcenginesdkvke.models.component_config_for_update_cluster_config_input import ComponentConfigForUpdateClusterConfigInput
@@ -200,6 +201,7 @@
200201
from volcenginesdkvke.models.pods_config_for_update_cluster_config_input import PodsConfigForUpdateClusterConfigInput
201202
from volcenginesdkvke.models.private_ip_for_list_clusters_output import PrivateIpForListClustersOutput
202203
from volcenginesdkvke.models.proxy_config_for_list_clusters_output import ProxyConfigForListClustersOutput
204+
from volcenginesdkvke.models.proxy_config_for_update_cluster_config_input import ProxyConfigForUpdateClusterConfigInput
203205
from volcenginesdkvke.models.public_access_config_for_create_node_pool_input import PublicAccessConfigForCreateNodePoolInput
204206
from volcenginesdkvke.models.public_access_config_for_list_node_pools_output import PublicAccessConfigForListNodePoolsOutput
205207
from volcenginesdkvke.models.public_access_config_for_update_node_pool_config_input import PublicAccessConfigForUpdateNodePoolConfigInput

volcenginesdkvke/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from volcenginesdkvke.models.cluster_config_for_create_cluster_input import ClusterConfigForCreateClusterInput
3030
from volcenginesdkvke.models.cluster_config_for_list_clusters_output import ClusterConfigForListClustersOutput
3131
from volcenginesdkvke.models.cluster_config_for_update_cluster_config_input import ClusterConfigForUpdateClusterConfigInput
32+
from volcenginesdkvke.models.cluster_connector_config_request_for_update_cluster_config_input import ClusterConnectorConfigRequestForUpdateClusterConfigInput
3233
from volcenginesdkvke.models.compatibility_for_list_supported_addons_output import CompatibilityForListSupportedAddonsOutput
3334
from volcenginesdkvke.models.component_config_for_list_clusters_output import ComponentConfigForListClustersOutput
3435
from volcenginesdkvke.models.component_config_for_update_cluster_config_input import ComponentConfigForUpdateClusterConfigInput
@@ -196,6 +197,7 @@
196197
from volcenginesdkvke.models.pods_config_for_update_cluster_config_input import PodsConfigForUpdateClusterConfigInput
197198
from volcenginesdkvke.models.private_ip_for_list_clusters_output import PrivateIpForListClustersOutput
198199
from volcenginesdkvke.models.proxy_config_for_list_clusters_output import ProxyConfigForListClustersOutput
200+
from volcenginesdkvke.models.proxy_config_for_update_cluster_config_input import ProxyConfigForUpdateClusterConfigInput
199201
from volcenginesdkvke.models.public_access_config_for_create_node_pool_input import PublicAccessConfigForCreateNodePoolInput
200202
from volcenginesdkvke.models.public_access_config_for_list_node_pools_output import PublicAccessConfigForListNodePoolsOutput
201203
from volcenginesdkvke.models.public_access_config_for_update_node_pool_config_input import PublicAccessConfigForUpdateNodePoolConfigInput

volcenginesdkvke/models/cluster_config_for_update_cluster_config_input.py

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,30 +35,40 @@ class ClusterConfigForUpdateClusterConfigInput(object):
3535
swagger_types = {
3636
'api_server_public_access_config': 'ApiServerPublicAccessConfigForUpdateClusterConfigInput',
3737
'api_server_public_access_enabled': 'bool',
38+
'cluster_connector_config_request': 'ClusterConnectorConfigRequestForUpdateClusterConfigInput',
39+
'resource_public_access_default_enabled': 'bool',
3840
'subnet_ids': 'list[str]'
3941
}
4042

4143
attribute_map = {
4244
'api_server_public_access_config': 'ApiServerPublicAccessConfig',
4345
'api_server_public_access_enabled': 'ApiServerPublicAccessEnabled',
46+
'cluster_connector_config_request': 'ClusterConnectorConfigRequest',
47+
'resource_public_access_default_enabled': 'ResourcePublicAccessDefaultEnabled',
4448
'subnet_ids': 'SubnetIds'
4549
}
4650

47-
def __init__(self, api_server_public_access_config=None, api_server_public_access_enabled=None, subnet_ids=None, _configuration=None): # noqa: E501
51+
def __init__(self, api_server_public_access_config=None, api_server_public_access_enabled=None, cluster_connector_config_request=None, resource_public_access_default_enabled=None, subnet_ids=None, _configuration=None): # noqa: E501
4852
"""ClusterConfigForUpdateClusterConfigInput - a model defined in Swagger""" # noqa: E501
4953
if _configuration is None:
5054
_configuration = Configuration()
5155
self._configuration = _configuration
5256

5357
self._api_server_public_access_config = None
5458
self._api_server_public_access_enabled = None
59+
self._cluster_connector_config_request = None
60+
self._resource_public_access_default_enabled = None
5561
self._subnet_ids = None
5662
self.discriminator = None
5763

5864
if api_server_public_access_config is not None:
5965
self.api_server_public_access_config = api_server_public_access_config
6066
if api_server_public_access_enabled is not None:
6167
self.api_server_public_access_enabled = api_server_public_access_enabled
68+
if cluster_connector_config_request is not None:
69+
self.cluster_connector_config_request = cluster_connector_config_request
70+
if resource_public_access_default_enabled is not None:
71+
self.resource_public_access_default_enabled = resource_public_access_default_enabled
6272
if subnet_ids is not None:
6373
self.subnet_ids = subnet_ids
6474

@@ -104,6 +114,48 @@ def api_server_public_access_enabled(self, api_server_public_access_enabled):
104114

105115
self._api_server_public_access_enabled = api_server_public_access_enabled
106116

117+
@property
118+
def cluster_connector_config_request(self):
119+
"""Gets the cluster_connector_config_request of this ClusterConfigForUpdateClusterConfigInput. # noqa: E501
120+
121+
122+
:return: The cluster_connector_config_request of this ClusterConfigForUpdateClusterConfigInput. # noqa: E501
123+
:rtype: ClusterConnectorConfigRequestForUpdateClusterConfigInput
124+
"""
125+
return self._cluster_connector_config_request
126+
127+
@cluster_connector_config_request.setter
128+
def cluster_connector_config_request(self, cluster_connector_config_request):
129+
"""Sets the cluster_connector_config_request of this ClusterConfigForUpdateClusterConfigInput.
130+
131+
132+
:param cluster_connector_config_request: The cluster_connector_config_request of this ClusterConfigForUpdateClusterConfigInput. # noqa: E501
133+
:type: ClusterConnectorConfigRequestForUpdateClusterConfigInput
134+
"""
135+
136+
self._cluster_connector_config_request = cluster_connector_config_request
137+
138+
@property
139+
def resource_public_access_default_enabled(self):
140+
"""Gets the resource_public_access_default_enabled of this ClusterConfigForUpdateClusterConfigInput. # noqa: E501
141+
142+
143+
:return: The resource_public_access_default_enabled of this ClusterConfigForUpdateClusterConfigInput. # noqa: E501
144+
:rtype: bool
145+
"""
146+
return self._resource_public_access_default_enabled
147+
148+
@resource_public_access_default_enabled.setter
149+
def resource_public_access_default_enabled(self, resource_public_access_default_enabled):
150+
"""Sets the resource_public_access_default_enabled of this ClusterConfigForUpdateClusterConfigInput.
151+
152+
153+
:param resource_public_access_default_enabled: The resource_public_access_default_enabled of this ClusterConfigForUpdateClusterConfigInput. # noqa: E501
154+
:type: bool
155+
"""
156+
157+
self._resource_public_access_default_enabled = resource_public_access_default_enabled
158+
107159
@property
108160
def subnet_ids(self):
109161
"""Gets the subnet_ids of this ClusterConfigForUpdateClusterConfigInput. # noqa: E501
Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
1+
# coding: utf-8
2+
3+
"""
4+
vke
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: common-version
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
import pprint
15+
import re # noqa: F401
16+
17+
import six
18+
19+
from volcenginesdkcore.configuration import Configuration
20+
21+
22+
class ClusterConnectorConfigRequestForUpdateClusterConfigInput(object):
23+
"""NOTE: This class is auto generated by the swagger code generator program.
24+
25+
Do not edit the class manually.
26+
"""
27+
28+
"""
29+
Attributes:
30+
swagger_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+
swagger_types = {
36+
'provider': 'str',
37+
'proxy_config': 'ProxyConfigForUpdateClusterConfigInput',
38+
'target_kube_config': 'str',
39+
'type': 'str'
40+
}
41+
42+
attribute_map = {
43+
'provider': 'Provider',
44+
'proxy_config': 'ProxyConfig',
45+
'target_kube_config': 'TargetKubeConfig',
46+
'type': 'Type'
47+
}
48+
49+
def __init__(self, provider=None, proxy_config=None, target_kube_config=None, type=None, _configuration=None): # noqa: E501
50+
"""ClusterConnectorConfigRequestForUpdateClusterConfigInput - a model defined in Swagger""" # noqa: E501
51+
if _configuration is None:
52+
_configuration = Configuration()
53+
self._configuration = _configuration
54+
55+
self._provider = None
56+
self._proxy_config = None
57+
self._target_kube_config = None
58+
self._type = None
59+
self.discriminator = None
60+
61+
if provider is not None:
62+
self.provider = provider
63+
if proxy_config is not None:
64+
self.proxy_config = proxy_config
65+
if target_kube_config is not None:
66+
self.target_kube_config = target_kube_config
67+
if type is not None:
68+
self.type = type
69+
70+
@property
71+
def provider(self):
72+
"""Gets the provider of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
73+
74+
75+
:return: The provider of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
76+
:rtype: str
77+
"""
78+
return self._provider
79+
80+
@provider.setter
81+
def provider(self, provider):
82+
"""Sets the provider of this ClusterConnectorConfigRequestForUpdateClusterConfigInput.
83+
84+
85+
:param provider: The provider of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
86+
:type: str
87+
"""
88+
allowed_values = ["Ack", "Tke", "Cce", "Gke", "Eks", "BaiduCce", "None"] # noqa: E501
89+
if (self._configuration.client_side_validation and
90+
provider not in allowed_values):
91+
raise ValueError(
92+
"Invalid value for `provider` ({0}), must be one of {1}" # noqa: E501
93+
.format(provider, allowed_values)
94+
)
95+
96+
self._provider = provider
97+
98+
@property
99+
def proxy_config(self):
100+
"""Gets the proxy_config of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
101+
102+
103+
:return: The proxy_config of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
104+
:rtype: ProxyConfigForUpdateClusterConfigInput
105+
"""
106+
return self._proxy_config
107+
108+
@proxy_config.setter
109+
def proxy_config(self, proxy_config):
110+
"""Sets the proxy_config of this ClusterConnectorConfigRequestForUpdateClusterConfigInput.
111+
112+
113+
:param proxy_config: The proxy_config of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
114+
:type: ProxyConfigForUpdateClusterConfigInput
115+
"""
116+
117+
self._proxy_config = proxy_config
118+
119+
@property
120+
def target_kube_config(self):
121+
"""Gets the target_kube_config of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
122+
123+
124+
:return: The target_kube_config of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
125+
:rtype: str
126+
"""
127+
return self._target_kube_config
128+
129+
@target_kube_config.setter
130+
def target_kube_config(self, target_kube_config):
131+
"""Sets the target_kube_config of this ClusterConnectorConfigRequestForUpdateClusterConfigInput.
132+
133+
134+
:param target_kube_config: The target_kube_config of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
135+
:type: str
136+
"""
137+
138+
self._target_kube_config = target_kube_config
139+
140+
@property
141+
def type(self):
142+
"""Gets the type of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
143+
144+
145+
:return: The type of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
146+
:rtype: str
147+
"""
148+
return self._type
149+
150+
@type.setter
151+
def type(self, type):
152+
"""Sets the type of this ClusterConnectorConfigRequestForUpdateClusterConfigInput.
153+
154+
155+
:param type: The type of this ClusterConnectorConfigRequestForUpdateClusterConfigInput. # noqa: E501
156+
:type: str
157+
"""
158+
allowed_values = ["Direct", "Proxy"] # noqa: E501
159+
if (self._configuration.client_side_validation and
160+
type not in allowed_values):
161+
raise ValueError(
162+
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
163+
.format(type, allowed_values)
164+
)
165+
166+
self._type = type
167+
168+
def to_dict(self):
169+
"""Returns the model properties as a dict"""
170+
result = {}
171+
172+
for attr, _ in six.iteritems(self.swagger_types):
173+
value = getattr(self, attr)
174+
if isinstance(value, list):
175+
result[attr] = list(map(
176+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
177+
value
178+
))
179+
elif hasattr(value, "to_dict"):
180+
result[attr] = value.to_dict()
181+
elif isinstance(value, dict):
182+
result[attr] = dict(map(
183+
lambda item: (item[0], item[1].to_dict())
184+
if hasattr(item[1], "to_dict") else item,
185+
value.items()
186+
))
187+
else:
188+
result[attr] = value
189+
if issubclass(ClusterConnectorConfigRequestForUpdateClusterConfigInput, dict):
190+
for key, value in self.items():
191+
result[key] = value
192+
193+
return result
194+
195+
def to_str(self):
196+
"""Returns the string representation of the model"""
197+
return pprint.pformat(self.to_dict())
198+
199+
def __repr__(self):
200+
"""For `print` and `pprint`"""
201+
return self.to_str()
202+
203+
def __eq__(self, other):
204+
"""Returns true if both objects are equal"""
205+
if not isinstance(other, ClusterConnectorConfigRequestForUpdateClusterConfigInput):
206+
return False
207+
208+
return self.to_dict() == other.to_dict()
209+
210+
def __ne__(self, other):
211+
"""Returns true if both objects are not equal"""
212+
if not isinstance(other, ClusterConnectorConfigRequestForUpdateClusterConfigInput):
213+
return True
214+
215+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)