Skip to content

Commit 89d260c

Browse files
committed
Bump openapi-generator to v6.3.0
We skip past v6.1.0 and v6.2.0 since there were no changes in these releases. Signed-off-by: Stephen Finucane <[email protected]>
1 parent c34508e commit 89d260c

File tree

103 files changed

+286
-285
lines changed

Some content is hidden

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

103 files changed

+286
-285
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Requested Commit/Tag : v6.0.1
2-
Actual Commit : 9e412edb640a8e7e49db1ecc24958fdc9a50533e
1+
Requested Commit/Tag : v6.3.0
2+
Actual Commit : 8f2676c5c2bcbcc41942307e5c8648cee38bcc44
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.1
1+
6.3.0

kubernetes/client/api_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,8 +301,8 @@ def __deserialize(self, data, klass):
301301
return [self.__deserialize(sub_data, sub_kls)
302302
for sub_data in data]
303303

304-
if klass.startswith('dict('):
305-
sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2)
304+
if klass.startswith('dict['):
305+
sub_kls = re.match(r'dict\[([^,]*), (.*)\]', klass).group(2)
306306
return {k: self.__deserialize(v, sub_kls)
307307
for k, v in six.iteritems(data)}
308308

@@ -691,6 +691,7 @@ def __deserialize_model(self, data, klass):
691691
value = data[klass.attribute_map[attr]]
692692
kwargs[attr] = self.__deserialize(value, attr_type)
693693

694+
kwargs["local_vars_configuration"] = self.configuration
694695
instance = klass(**kwargs)
695696

696697
if has_discriminator:

kubernetes/client/models/v1_capacity_requirements.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class V1CapacityRequirements(object):
3636
and the value is json key in definition.
3737
"""
3838
openapi_types = {
39-
'requests': 'dict(str, str)'
39+
'requests': 'dict[str, str]'
4040
}
4141

4242
attribute_map = {
@@ -62,7 +62,7 @@ def requests(self):
6262
Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501
6363
6464
:return: The requests of this V1CapacityRequirements. # noqa: E501
65-
:rtype: dict(str, str)
65+
:rtype: dict[str, str]
6666
"""
6767
return self._requests
6868

@@ -73,7 +73,7 @@ def requests(self, requests):
7373
Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501
7474
7575
:param requests: The requests of this V1CapacityRequirements. # noqa: E501
76-
:type requests: dict(str, str)
76+
:type requests: dict[str, str]
7777
"""
7878

7979
self._requests = requests

kubernetes/client/models/v1_certificate_signing_request_spec.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class V1CertificateSigningRequestSpec(object):
3737
"""
3838
openapi_types = {
3939
'expiration_seconds': 'int',
40-
'extra': 'dict(str, list[str])',
40+
'extra': 'dict[str, list[str]]',
4141
'groups': 'list[str]',
4242
'request': 'str',
4343
'signer_name': 'str',
@@ -118,7 +118,7 @@ def extra(self):
118118
extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
119119
120120
:return: The extra of this V1CertificateSigningRequestSpec. # noqa: E501
121-
:rtype: dict(str, list[str])
121+
:rtype: dict[str, list[str]]
122122
"""
123123
return self._extra
124124

@@ -129,7 +129,7 @@ def extra(self, extra):
129129
extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
130130
131131
:param extra: The extra of this V1CertificateSigningRequestSpec. # noqa: E501
132-
:type extra: dict(str, list[str])
132+
:type extra: dict[str, list[str]]
133133
"""
134134

135135
self._extra = extra

kubernetes/client/models/v1_config_map.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class V1ConfigMap(object):
3737
"""
3838
openapi_types = {
3939
'api_version': 'str',
40-
'binary_data': 'dict(str, str)',
41-
'data': 'dict(str, str)',
40+
'binary_data': 'dict[str, str]',
41+
'data': 'dict[str, str]',
4242
'immutable': 'bool',
4343
'kind': 'str',
4444
'metadata': 'V1ObjectMeta'
@@ -110,7 +110,7 @@ def binary_data(self):
110110
BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. # noqa: E501
111111
112112
:return: The binary_data of this V1ConfigMap. # noqa: E501
113-
:rtype: dict(str, str)
113+
:rtype: dict[str, str]
114114
"""
115115
return self._binary_data
116116

@@ -121,7 +121,7 @@ def binary_data(self, binary_data):
121121
BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. # noqa: E501
122122
123123
:param binary_data: The binary_data of this V1ConfigMap. # noqa: E501
124-
:type binary_data: dict(str, str)
124+
:type binary_data: dict[str, str]
125125
"""
126126

127127
self._binary_data = binary_data
@@ -133,7 +133,7 @@ def data(self):
133133
Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. # noqa: E501
134134
135135
:return: The data of this V1ConfigMap. # noqa: E501
136-
:rtype: dict(str, str)
136+
:rtype: dict[str, str]
137137
"""
138138
return self._data
139139

@@ -144,7 +144,7 @@ def data(self, data):
144144
Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. # noqa: E501
145145
146146
:param data: The data of this V1ConfigMap. # noqa: E501
147-
:type data: dict(str, str)
147+
:type data: dict[str, str]
148148
"""
149149

150150
self._data = data

kubernetes/client/models/v1_container_status.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class V1ContainerStatus(object):
3636
and the value is json key in definition.
3737
"""
3838
openapi_types = {
39-
'allocated_resources': 'dict(str, str)',
39+
'allocated_resources': 'dict[str, str]',
4040
'allocated_resources_status': 'list[V1ResourceStatus]',
4141
'container_id': 'str',
4242
'image': 'str',
@@ -127,7 +127,7 @@ def allocated_resources(self):
127127
AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. # noqa: E501
128128
129129
:return: The allocated_resources of this V1ContainerStatus. # noqa: E501
130-
:rtype: dict(str, str)
130+
:rtype: dict[str, str]
131131
"""
132132
return self._allocated_resources
133133

@@ -138,7 +138,7 @@ def allocated_resources(self, allocated_resources):
138138
AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. # noqa: E501
139139
140140
:param allocated_resources: The allocated_resources of this V1ContainerStatus. # noqa: E501
141-
:type allocated_resources: dict(str, str)
141+
:type allocated_resources: dict[str, str]
142142
"""
143143

144144
self._allocated_resources = allocated_resources

kubernetes/client/models/v1_counter_set.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class V1CounterSet(object):
3636
and the value is json key in definition.
3737
"""
3838
openapi_types = {
39-
'counters': 'dict(str, V1Counter)',
39+
'counters': 'dict[str, V1Counter]',
4040
'name': 'str'
4141
}
4242

@@ -65,7 +65,7 @@ def counters(self):
6565
Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters is 32. # noqa: E501
6666
6767
:return: The counters of this V1CounterSet. # noqa: E501
68-
:rtype: dict(str, V1Counter)
68+
:rtype: dict[str, V1Counter]
6969
"""
7070
return self._counters
7171

@@ -76,7 +76,7 @@ def counters(self, counters):
7676
Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters is 32. # noqa: E501
7777
7878
:param counters: The counters of this V1CounterSet. # noqa: E501
79-
:type counters: dict(str, V1Counter)
79+
:type counters: dict[str, V1Counter]
8080
"""
8181
if self.local_vars_configuration.client_side_validation and counters is None: # noqa: E501
8282
raise ValueError("Invalid value for `counters`, must not be `None`") # noqa: E501

kubernetes/client/models/v1_csi_persistent_volume_source.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class V1CSIPersistentVolumeSource(object):
4444
'node_publish_secret_ref': 'V1SecretReference',
4545
'node_stage_secret_ref': 'V1SecretReference',
4646
'read_only': 'bool',
47-
'volume_attributes': 'dict(str, str)',
47+
'volume_attributes': 'dict[str, str]',
4848
'volume_handle': 'str'
4949
}
5050

@@ -281,7 +281,7 @@ def volume_attributes(self):
281281
volumeAttributes of the volume to publish. # noqa: E501
282282
283283
:return: The volume_attributes of this V1CSIPersistentVolumeSource. # noqa: E501
284-
:rtype: dict(str, str)
284+
:rtype: dict[str, str]
285285
"""
286286
return self._volume_attributes
287287

@@ -292,7 +292,7 @@ def volume_attributes(self, volume_attributes):
292292
volumeAttributes of the volume to publish. # noqa: E501
293293
294294
:param volume_attributes: The volume_attributes of this V1CSIPersistentVolumeSource. # noqa: E501
295-
:type volume_attributes: dict(str, str)
295+
:type volume_attributes: dict[str, str]
296296
"""
297297

298298
self._volume_attributes = volume_attributes

kubernetes/client/models/v1_csi_volume_source.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class V1CSIVolumeSource(object):
4040
'fs_type': 'str',
4141
'node_publish_secret_ref': 'V1LocalObjectReference',
4242
'read_only': 'bool',
43-
'volume_attributes': 'dict(str, str)'
43+
'volume_attributes': 'dict[str, str]'
4444
}
4545

4646
attribute_map = {
@@ -173,7 +173,7 @@ def volume_attributes(self):
173173
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. # noqa: E501
174174
175175
:return: The volume_attributes of this V1CSIVolumeSource. # noqa: E501
176-
:rtype: dict(str, str)
176+
:rtype: dict[str, str]
177177
"""
178178
return self._volume_attributes
179179

@@ -184,7 +184,7 @@ def volume_attributes(self, volume_attributes):
184184
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. # noqa: E501
185185
186186
:param volume_attributes: The volume_attributes of this V1CSIVolumeSource. # noqa: E501
187-
:type volume_attributes: dict(str, str)
187+
:type volume_attributes: dict[str, str]
188188
"""
189189

190190
self._volume_attributes = volume_attributes

0 commit comments

Comments
 (0)