You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kubernetes/client/models/v1_capacity_requirements.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ class V1CapacityRequirements(object):
36
36
and the value is json key in definition.
37
37
"""
38
38
openapi_types= {
39
-
'requests': 'dict(str, str)'
39
+
'requests': 'dict[str, str]'
40
40
}
41
41
42
42
attribute_map= {
@@ -62,7 +62,7 @@ def requests(self):
62
62
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
63
63
64
64
:return: The requests of this V1CapacityRequirements. # noqa: E501
65
-
:rtype: dict(str, str)
65
+
:rtype: dict[str, str]
66
66
"""
67
67
returnself._requests
68
68
@@ -73,7 +73,7 @@ def requests(self, requests):
73
73
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
74
74
75
75
:param requests: The requests of this V1CapacityRequirements. # noqa: E501
Copy file name to clipboardExpand all lines: kubernetes/client/models/v1_certificate_signing_request_spec.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ class V1CertificateSigningRequestSpec(object):
37
37
"""
38
38
openapi_types= {
39
39
'expiration_seconds': 'int',
40
-
'extra': 'dict(str, list[str])',
40
+
'extra': 'dict[str, list[str]]',
41
41
'groups': 'list[str]',
42
42
'request': 'str',
43
43
'signer_name': 'str',
@@ -118,7 +118,7 @@ def extra(self):
118
118
extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
119
119
120
120
:return: The extra of this V1CertificateSigningRequestSpec. # noqa: E501
121
-
:rtype: dict(str, list[str])
121
+
:rtype: dict[str, list[str]]
122
122
"""
123
123
returnself._extra
124
124
@@ -129,7 +129,7 @@ def extra(self, extra):
129
129
extra contains extra attributes of the user that created the CertificateSigningRequest. Populated by the API server on creation and immutable. # noqa: E501
130
130
131
131
:param extra: The extra of this V1CertificateSigningRequestSpec. # noqa: E501
Copy file name to clipboardExpand all lines: kubernetes/client/models/v1_config_map.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,8 @@ class V1ConfigMap(object):
37
37
"""
38
38
openapi_types= {
39
39
'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]',
42
42
'immutable': 'bool',
43
43
'kind': 'str',
44
44
'metadata': 'V1ObjectMeta'
@@ -110,7 +110,7 @@ def binary_data(self):
110
110
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
111
111
112
112
:return: The binary_data of this V1ConfigMap. # noqa: E501
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
122
122
123
123
: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]
125
125
"""
126
126
127
127
self._binary_data=binary_data
@@ -133,7 +133,7 @@ def data(self):
133
133
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
134
134
135
135
:return: The data of this V1ConfigMap. # noqa: E501
136
-
:rtype: dict(str, str)
136
+
:rtype: dict[str, str]
137
137
"""
138
138
returnself._data
139
139
@@ -144,7 +144,7 @@ def data(self, data):
144
144
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
145
145
146
146
:param data: The data of this V1ConfigMap. # noqa: E501
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
128
128
129
129
:return: The allocated_resources of this V1ContainerStatus. # noqa: E501
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
139
139
140
140
:param allocated_resources: The allocated_resources of this V1ContainerStatus. # noqa: E501
Copy file name to clipboardExpand all lines: kubernetes/client/models/v1_counter_set.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ class V1CounterSet(object):
36
36
and the value is json key in definition.
37
37
"""
38
38
openapi_types= {
39
-
'counters': 'dict(str, V1Counter)',
39
+
'counters': 'dict[str, V1Counter]',
40
40
'name': 'str'
41
41
}
42
42
@@ -65,7 +65,7 @@ def counters(self):
65
65
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
66
66
67
67
:return: The counters of this V1CounterSet. # noqa: E501
68
-
:rtype: dict(str, V1Counter)
68
+
:rtype: dict[str, V1Counter]
69
69
"""
70
70
returnself._counters
71
71
@@ -76,7 +76,7 @@ def counters(self, counters):
76
76
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
77
77
78
78
:param counters: The counters of this V1CounterSet. # noqa: E501
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. # noqa: E501
174
174
175
175
:return: The volume_attributes of this V1CSIVolumeSource. # noqa: E501
volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. # noqa: E501
185
185
186
186
:param volume_attributes: The volume_attributes of this V1CSIVolumeSource. # noqa: E501
0 commit comments