Skip to content

Commit 28025cb

Browse files
committed
generated API change
1 parent 1af24d4 commit 28025cb

File tree

74 files changed

+218
-944
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+218
-944
lines changed

kubernetes/client/models/core_v1_endpoint_port.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def port(self, port):
141141
def protocol(self):
142142
"""Gets the protocol of this CoreV1EndpointPort. # noqa: E501
143143
144-
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. Possible enum values: - `\"SCTP\"` is the SCTP protocol. - `\"TCP\"` is the TCP protocol. - `\"UDP\"` is the UDP protocol. # noqa: E501
144+
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501
145145
146146
:return: The protocol of this CoreV1EndpointPort. # noqa: E501
147147
:rtype: str
@@ -152,17 +152,11 @@ def protocol(self):
152152
def protocol(self, protocol):
153153
"""Sets the protocol of this CoreV1EndpointPort.
154154
155-
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. Possible enum values: - `\"SCTP\"` is the SCTP protocol. - `\"TCP\"` is the TCP protocol. - `\"UDP\"` is the UDP protocol. # noqa: E501
155+
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. # noqa: E501
156156
157157
:param protocol: The protocol of this CoreV1EndpointPort. # noqa: E501
158158
:type: str
159159
"""
160-
allowed_values = ["SCTP", "TCP", "UDP"] # noqa: E501
161-
if self.local_vars_configuration.client_side_validation and protocol not in allowed_values: # noqa: E501
162-
raise ValueError(
163-
"Invalid value for `protocol` ({0}), must be one of {1}" # noqa: E501
164-
.format(protocol, allowed_values)
165-
)
166160

167161
self._protocol = protocol
168162

kubernetes/client/models/v1_certificate_signing_request_condition.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def status(self, status):
196196
def type(self):
197197
"""Gets the type of this V1CertificateSigningRequestCondition. # noqa: E501
198198
199-
type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. Possible enum values: - `\"Approved\"` Approved indicates the request was approved and should be issued by the signer. - `\"Denied\"` Denied indicates the request was denied and should not be issued by the signer. - `\"Failed\"` Failed indicates the signer failed to issue the certificate. # noqa: E501
199+
type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. # noqa: E501
200200
201201
:return: The type of this V1CertificateSigningRequestCondition. # noqa: E501
202202
:rtype: str
@@ -207,19 +207,13 @@ def type(self):
207207
def type(self, type):
208208
"""Sets the type of this V1CertificateSigningRequestCondition.
209209
210-
type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. Possible enum values: - `\"Approved\"` Approved indicates the request was approved and should be issued by the signer. - `\"Denied\"` Denied indicates the request was denied and should not be issued by the signer. - `\"Failed\"` Failed indicates the signer failed to issue the certificate. # noqa: E501
210+
type of the condition. Known conditions are \"Approved\", \"Denied\", and \"Failed\". An \"Approved\" condition is added via the /approval subresource, indicating the request was approved and should be issued by the signer. A \"Denied\" condition is added via the /approval subresource, indicating the request was denied and should not be issued by the signer. A \"Failed\" condition is added via the /status subresource, indicating the signer failed to issue the certificate. Approved and Denied conditions are mutually exclusive. Approved, Denied, and Failed conditions cannot be removed once added. Only one condition of a given type is allowed. # noqa: E501
211211
212212
:param type: The type of this V1CertificateSigningRequestCondition. # noqa: E501
213213
:type: str
214214
"""
215215
if self.local_vars_configuration.client_side_validation and type is None: # noqa: E501
216216
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
217-
allowed_values = ["Approved", "Denied", "Failed"] # noqa: E501
218-
if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501
219-
raise ValueError(
220-
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
221-
.format(type, allowed_values)
222-
)
223217

224218
self._type = type
225219

kubernetes/client/models/v1_container.py

+4-16
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def image(self, image):
275275
def image_pull_policy(self):
276276
"""Gets the image_pull_policy of this V1Container. # noqa: E501
277277
278-
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present # noqa: E501
278+
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
279279
280280
:return: The image_pull_policy of this V1Container. # noqa: E501
281281
:rtype: str
@@ -286,17 +286,11 @@ def image_pull_policy(self):
286286
def image_pull_policy(self, image_pull_policy):
287287
"""Sets the image_pull_policy of this V1Container.
288288
289-
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present # noqa: E501
289+
Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images # noqa: E501
290290
291291
:param image_pull_policy: The image_pull_policy of this V1Container. # noqa: E501
292292
:type: str
293293
"""
294-
allowed_values = ["Always", "IfNotPresent", "Never"] # noqa: E501
295-
if self.local_vars_configuration.client_side_validation and image_pull_policy not in allowed_values: # noqa: E501
296-
raise ValueError(
297-
"Invalid value for `image_pull_policy` ({0}), must be one of {1}" # noqa: E501
298-
.format(image_pull_policy, allowed_values)
299-
)
300294

301295
self._image_pull_policy = image_pull_policy
302296

@@ -547,7 +541,7 @@ def termination_message_path(self, termination_message_path):
547541
def termination_message_policy(self):
548542
"""Gets the termination_message_policy of this V1Container. # noqa: E501
549543
550-
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. Possible enum values: - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents. - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits. # noqa: E501
544+
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
551545
552546
:return: The termination_message_policy of this V1Container. # noqa: E501
553547
:rtype: str
@@ -558,17 +552,11 @@ def termination_message_policy(self):
558552
def termination_message_policy(self, termination_message_policy):
559553
"""Sets the termination_message_policy of this V1Container.
560554
561-
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. Possible enum values: - `\"FallbackToLogsOnError\"` will read the most recent contents of the container logs for the container status message when the container exits with an error and the terminationMessagePath has no contents. - `\"File\"` is the default behavior and will set the container status message to the contents of the container's terminationMessagePath when the container exits. # noqa: E501
555+
Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. # noqa: E501
562556
563557
:param termination_message_policy: The termination_message_policy of this V1Container. # noqa: E501
564558
:type: str
565559
"""
566-
allowed_values = ["FallbackToLogsOnError", "File"] # noqa: E501
567-
if self.local_vars_configuration.client_side_validation and termination_message_policy not in allowed_values: # noqa: E501
568-
raise ValueError(
569-
"Invalid value for `termination_message_policy` ({0}), must be one of {1}" # noqa: E501
570-
.format(termination_message_policy, allowed_values)
571-
)
572560

573561
self._termination_message_policy = termination_message_policy
574562

kubernetes/client/models/v1_container_port.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def name(self, name):
169169
def protocol(self):
170170
"""Gets the protocol of this V1ContainerPort. # noqa: E501
171171
172-
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". Possible enum values: - `\"SCTP\"` is the SCTP protocol. - `\"TCP\"` is the TCP protocol. - `\"UDP\"` is the UDP protocol. # noqa: E501
172+
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". # noqa: E501
173173
174174
:return: The protocol of this V1ContainerPort. # noqa: E501
175175
:rtype: str
@@ -180,17 +180,11 @@ def protocol(self):
180180
def protocol(self, protocol):
181181
"""Sets the protocol of this V1ContainerPort.
182182
183-
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". Possible enum values: - `\"SCTP\"` is the SCTP protocol. - `\"TCP\"` is the TCP protocol. - `\"UDP\"` is the UDP protocol. # noqa: E501
183+
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". # noqa: E501
184184
185185
:param protocol: The protocol of this V1ContainerPort. # noqa: E501
186186
:type: str
187187
"""
188-
allowed_values = ["SCTP", "TCP", "UDP"] # noqa: E501
189-
if self.local_vars_configuration.client_side_validation and protocol not in allowed_values: # noqa: E501
190-
raise ValueError(
191-
"Invalid value for `protocol` ({0}), must be one of {1}" # noqa: E501
192-
.format(protocol, allowed_values)
193-
)
194188

195189
self._protocol = protocol
196190

kubernetes/client/models/v1_cron_job_spec.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def __init__(self, concurrency_policy=None, failed_jobs_history_limit=None, job_
8484
def concurrency_policy(self):
8585
"""Gets the concurrency_policy of this V1CronJobSpec. # noqa: E501
8686
87-
Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one Possible enum values: - `\"Allow\"` allows CronJobs to run concurrently. - `\"Forbid\"` forbids concurrent runs, skipping next run if previous hasn't finished yet. - `\"Replace\"` cancels currently running job and replaces it with a new one. # noqa: E501
87+
Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one # noqa: E501
8888
8989
:return: The concurrency_policy of this V1CronJobSpec. # noqa: E501
9090
:rtype: str
@@ -95,17 +95,11 @@ def concurrency_policy(self):
9595
def concurrency_policy(self, concurrency_policy):
9696
"""Sets the concurrency_policy of this V1CronJobSpec.
9797
98-
Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one Possible enum values: - `\"Allow\"` allows CronJobs to run concurrently. - `\"Forbid\"` forbids concurrent runs, skipping next run if previous hasn't finished yet. - `\"Replace\"` cancels currently running job and replaces it with a new one. # noqa: E501
98+
Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one # noqa: E501
9999
100100
:param concurrency_policy: The concurrency_policy of this V1CronJobSpec. # noqa: E501
101101
:type: str
102102
"""
103-
allowed_values = ["Allow", "Forbid", "Replace"] # noqa: E501
104-
if self.local_vars_configuration.client_side_validation and concurrency_policy not in allowed_values: # noqa: E501
105-
raise ValueError(
106-
"Invalid value for `concurrency_policy` ({0}), must be one of {1}" # noqa: E501
107-
.format(concurrency_policy, allowed_values)
108-
)
109103

110104
self._concurrency_policy = concurrency_policy
111105

kubernetes/client/models/v1_daemon_set_update_strategy.py

+2-8
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def rolling_update(self, rolling_update):
8282
def type(self):
8383
"""Gets the type of this V1DaemonSetUpdateStrategy. # noqa: E501
8484
85-
Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. Possible enum values: - `\"OnDelete\"` Replace the old daemons only when it's killed - `\"RollingUpdate\"` Replace the old daemons by new ones using rolling update i.e replace them on each node one after the other. # noqa: E501
85+
Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. # noqa: E501
8686
8787
:return: The type of this V1DaemonSetUpdateStrategy. # noqa: E501
8888
:rtype: str
@@ -93,17 +93,11 @@ def type(self):
9393
def type(self, type):
9494
"""Sets the type of this V1DaemonSetUpdateStrategy.
9595
96-
Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. Possible enum values: - `\"OnDelete\"` Replace the old daemons only when it's killed - `\"RollingUpdate\"` Replace the old daemons by new ones using rolling update i.e replace them on each node one after the other. # noqa: E501
96+
Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. # noqa: E501
9797
9898
:param type: The type of this V1DaemonSetUpdateStrategy. # noqa: E501
9999
:type: str
100100
"""
101-
allowed_values = ["OnDelete", "RollingUpdate"] # noqa: E501
102-
if self.local_vars_configuration.client_side_validation and type not in allowed_values: # noqa: E501
103-
raise ValueError(
104-
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
105-
.format(type, allowed_values)
106-
)
107101

108102
self._type = type
109103

0 commit comments

Comments
 (0)