pulumi-kubernetes 4.19.0a1733937243__py3-none-any.whl → 4.19.0a1733970382__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-kubernetes might be problematic. Click here for more details.

Files changed (87) hide show
  1. pulumi_kubernetes/__init__.py +36 -0
  2. pulumi_kubernetes/admissionregistration/v1/_inputs.py +6 -6
  3. pulumi_kubernetes/admissionregistration/v1/outputs.py +4 -4
  4. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +214 -0
  5. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +222 -0
  6. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +215 -0
  7. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +234 -0
  8. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +215 -0
  9. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +226 -0
  10. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +0 -8
  11. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +0 -8
  12. pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +6 -0
  13. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +1818 -315
  14. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +1365 -246
  15. pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +6 -6
  16. pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +4 -4
  17. pulumi_kubernetes/apiextensions/v1/_inputs.py +6 -6
  18. pulumi_kubernetes/apiextensions/v1/outputs.py +4 -4
  19. pulumi_kubernetes/apps/v1/_inputs.py +6 -6
  20. pulumi_kubernetes/apps/v1/outputs.py +4 -4
  21. pulumi_kubernetes/autoscaling/v2/_inputs.py +15 -15
  22. pulumi_kubernetes/autoscaling/v2/outputs.py +12 -12
  23. pulumi_kubernetes/batch/v1/_inputs.py +6 -6
  24. pulumi_kubernetes/batch/v1/outputs.py +4 -4
  25. pulumi_kubernetes/coordination/__init__.py +3 -0
  26. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +2 -0
  27. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +2 -0
  28. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +216 -0
  29. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +215 -0
  30. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +228 -0
  31. pulumi_kubernetes/coordination/v1alpha2/__init__.py +12 -0
  32. pulumi_kubernetes/coordination/v1alpha2/_inputs.py +393 -0
  33. pulumi_kubernetes/coordination/v1alpha2/outputs.py +313 -0
  34. pulumi_kubernetes/core/v1/Binding.py +2 -2
  35. pulumi_kubernetes/core/v1/BindingPatch.py +2 -2
  36. pulumi_kubernetes/core/v1/ServiceAccount.py +4 -4
  37. pulumi_kubernetes/core/v1/ServiceAccountPatch.py +4 -4
  38. pulumi_kubernetes/core/v1/_inputs.py +564 -313
  39. pulumi_kubernetes/core/v1/outputs.py +418 -230
  40. pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +12 -12
  41. pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +8 -8
  42. pulumi_kubernetes/pulumi-plugin.json +1 -1
  43. pulumi_kubernetes/resource/__init__.py +3 -0
  44. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
  45. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
  46. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
  47. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
  48. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
  49. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
  50. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
  51. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
  52. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +1 -1
  53. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +1 -1
  54. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +2 -0
  55. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +2 -0
  56. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +1 -1
  57. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +1 -1
  58. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +1 -1
  59. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +1 -1
  60. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +8 -8
  61. pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +245 -0
  62. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +1 -1
  63. pulumi_kubernetes/resource/v1alpha3/__init__.py +1 -0
  64. pulumi_kubernetes/resource/v1alpha3/_inputs.py +455 -7
  65. pulumi_kubernetes/resource/v1alpha3/outputs.py +592 -5
  66. pulumi_kubernetes/resource/v1beta1/DeviceClass.py +237 -0
  67. pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +215 -0
  68. pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +248 -0
  69. pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +232 -0
  70. pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +216 -0
  71. pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +243 -0
  72. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +229 -0
  73. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +215 -0
  74. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +240 -0
  75. pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +246 -0
  76. pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +216 -0
  77. pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +257 -0
  78. pulumi_kubernetes/resource/v1beta1/__init__.py +21 -0
  79. pulumi_kubernetes/resource/v1beta1/_inputs.py +3867 -0
  80. pulumi_kubernetes/resource/v1beta1/outputs.py +3334 -0
  81. pulumi_kubernetes/storage/v1/_inputs.py +4 -4
  82. pulumi_kubernetes/storage/v1/outputs.py +4 -4
  83. pulumi_kubernetes/yaml/yaml.py +90 -0
  84. {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/METADATA +1 -1
  85. {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/RECORD +87 -59
  86. {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/WHEEL +0 -0
  87. {pulumi_kubernetes-4.19.0a1733937243.dist-info → pulumi_kubernetes-4.19.0a1733970382.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,3334 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumigen. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import copy
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
10
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
15
+ from ... import _utilities
16
+ from . import outputs
17
+ from ... import core as _core
18
+ from ... import meta as _meta
19
+
20
+ __all__ = [
21
+ 'AllocatedDeviceStatus',
22
+ 'AllocatedDeviceStatusPatch',
23
+ 'AllocationResult',
24
+ 'AllocationResultPatch',
25
+ 'BasicDevice',
26
+ 'BasicDevicePatch',
27
+ 'CELDeviceSelector',
28
+ 'CELDeviceSelectorPatch',
29
+ 'Device',
30
+ 'DeviceAllocationConfiguration',
31
+ 'DeviceAllocationConfigurationPatch',
32
+ 'DeviceAllocationResult',
33
+ 'DeviceAllocationResultPatch',
34
+ 'DeviceAttribute',
35
+ 'DeviceCapacity',
36
+ 'DeviceClaim',
37
+ 'DeviceClaimConfiguration',
38
+ 'DeviceClaimConfigurationPatch',
39
+ 'DeviceClaimPatch',
40
+ 'DeviceClass',
41
+ 'DeviceClassConfiguration',
42
+ 'DeviceClassConfigurationPatch',
43
+ 'DeviceClassSpec',
44
+ 'DeviceClassSpecPatch',
45
+ 'DeviceConstraint',
46
+ 'DeviceConstraintPatch',
47
+ 'DevicePatch',
48
+ 'DeviceRequest',
49
+ 'DeviceRequestAllocationResult',
50
+ 'DeviceRequestAllocationResultPatch',
51
+ 'DeviceRequestPatch',
52
+ 'DeviceSelector',
53
+ 'DeviceSelectorPatch',
54
+ 'NetworkDeviceData',
55
+ 'NetworkDeviceDataPatch',
56
+ 'OpaqueDeviceConfiguration',
57
+ 'OpaqueDeviceConfigurationPatch',
58
+ 'ResourceClaim',
59
+ 'ResourceClaimConsumerReference',
60
+ 'ResourceClaimConsumerReferencePatch',
61
+ 'ResourceClaimSpec',
62
+ 'ResourceClaimSpecPatch',
63
+ 'ResourceClaimStatus',
64
+ 'ResourceClaimStatusPatch',
65
+ 'ResourceClaimTemplate',
66
+ 'ResourceClaimTemplateSpec',
67
+ 'ResourceClaimTemplateSpecPatch',
68
+ 'ResourcePool',
69
+ 'ResourcePoolPatch',
70
+ 'ResourceSlice',
71
+ 'ResourceSliceSpec',
72
+ 'ResourceSliceSpecPatch',
73
+ ]
74
+
75
+ @pulumi.output_type
76
+ class AllocatedDeviceStatus(dict):
77
+ """
78
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
79
+ """
80
+ @staticmethod
81
+ def __key_warning(key: str):
82
+ suggest = None
83
+ if key == "networkData":
84
+ suggest = "network_data"
85
+
86
+ if suggest:
87
+ pulumi.log.warn(f"Key '{key}' not found in AllocatedDeviceStatus. Access the value via the '{suggest}' property getter instead.")
88
+
89
+ def __getitem__(self, key: str) -> Any:
90
+ AllocatedDeviceStatus.__key_warning(key)
91
+ return super().__getitem__(key)
92
+
93
+ def get(self, key: str, default = None) -> Any:
94
+ AllocatedDeviceStatus.__key_warning(key)
95
+ return super().get(key, default)
96
+
97
+ def __init__(__self__, *,
98
+ device: str,
99
+ driver: str,
100
+ pool: str,
101
+ conditions: Optional[Sequence['_meta.v1.outputs.Condition']] = None,
102
+ data: Optional[Any] = None,
103
+ network_data: Optional['outputs.NetworkDeviceData'] = None):
104
+ """
105
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
106
+ :param str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
107
+ :param str driver: Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
108
+
109
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
110
+ :param str pool: This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
111
+
112
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
113
+ :param Sequence['_meta.v1.ConditionArgs'] conditions: Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
114
+ :param Any data: Data contains arbitrary driver-specific data.
115
+
116
+ The length of the raw data must be smaller or equal to 10 Ki.
117
+ :param 'NetworkDeviceDataArgs' network_data: NetworkData contains network-related information specific to the device.
118
+ """
119
+ pulumi.set(__self__, "device", device)
120
+ pulumi.set(__self__, "driver", driver)
121
+ pulumi.set(__self__, "pool", pool)
122
+ if conditions is not None:
123
+ pulumi.set(__self__, "conditions", conditions)
124
+ if data is not None:
125
+ pulumi.set(__self__, "data", data)
126
+ if network_data is not None:
127
+ pulumi.set(__self__, "network_data", network_data)
128
+
129
+ @property
130
+ @pulumi.getter
131
+ def device(self) -> str:
132
+ """
133
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
134
+ """
135
+ return pulumi.get(self, "device")
136
+
137
+ @property
138
+ @pulumi.getter
139
+ def driver(self) -> str:
140
+ """
141
+ Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
142
+
143
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
144
+ """
145
+ return pulumi.get(self, "driver")
146
+
147
+ @property
148
+ @pulumi.getter
149
+ def pool(self) -> str:
150
+ """
151
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
152
+
153
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
154
+ """
155
+ return pulumi.get(self, "pool")
156
+
157
+ @property
158
+ @pulumi.getter
159
+ def conditions(self) -> Optional[Sequence['_meta.v1.outputs.Condition']]:
160
+ """
161
+ Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
162
+ """
163
+ return pulumi.get(self, "conditions")
164
+
165
+ @property
166
+ @pulumi.getter
167
+ def data(self) -> Optional[Any]:
168
+ """
169
+ Data contains arbitrary driver-specific data.
170
+
171
+ The length of the raw data must be smaller or equal to 10 Ki.
172
+ """
173
+ return pulumi.get(self, "data")
174
+
175
+ @property
176
+ @pulumi.getter(name="networkData")
177
+ def network_data(self) -> Optional['outputs.NetworkDeviceData']:
178
+ """
179
+ NetworkData contains network-related information specific to the device.
180
+ """
181
+ return pulumi.get(self, "network_data")
182
+
183
+
184
+ @pulumi.output_type
185
+ class AllocatedDeviceStatusPatch(dict):
186
+ """
187
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
188
+ """
189
+ @staticmethod
190
+ def __key_warning(key: str):
191
+ suggest = None
192
+ if key == "networkData":
193
+ suggest = "network_data"
194
+
195
+ if suggest:
196
+ pulumi.log.warn(f"Key '{key}' not found in AllocatedDeviceStatusPatch. Access the value via the '{suggest}' property getter instead.")
197
+
198
+ def __getitem__(self, key: str) -> Any:
199
+ AllocatedDeviceStatusPatch.__key_warning(key)
200
+ return super().__getitem__(key)
201
+
202
+ def get(self, key: str, default = None) -> Any:
203
+ AllocatedDeviceStatusPatch.__key_warning(key)
204
+ return super().get(key, default)
205
+
206
+ def __init__(__self__, *,
207
+ conditions: Optional[Sequence['_meta.v1.outputs.ConditionPatch']] = None,
208
+ data: Optional[Any] = None,
209
+ device: Optional[str] = None,
210
+ driver: Optional[str] = None,
211
+ network_data: Optional['outputs.NetworkDeviceDataPatch'] = None,
212
+ pool: Optional[str] = None):
213
+ """
214
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
215
+ :param Sequence['_meta.v1.ConditionPatchArgs'] conditions: Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
216
+ :param Any data: Data contains arbitrary driver-specific data.
217
+
218
+ The length of the raw data must be smaller or equal to 10 Ki.
219
+ :param str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
220
+ :param str driver: Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
221
+
222
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
223
+ :param 'NetworkDeviceDataPatchArgs' network_data: NetworkData contains network-related information specific to the device.
224
+ :param str pool: This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
225
+
226
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
227
+ """
228
+ if conditions is not None:
229
+ pulumi.set(__self__, "conditions", conditions)
230
+ if data is not None:
231
+ pulumi.set(__self__, "data", data)
232
+ if device is not None:
233
+ pulumi.set(__self__, "device", device)
234
+ if driver is not None:
235
+ pulumi.set(__self__, "driver", driver)
236
+ if network_data is not None:
237
+ pulumi.set(__self__, "network_data", network_data)
238
+ if pool is not None:
239
+ pulumi.set(__self__, "pool", pool)
240
+
241
+ @property
242
+ @pulumi.getter
243
+ def conditions(self) -> Optional[Sequence['_meta.v1.outputs.ConditionPatch']]:
244
+ """
245
+ Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
246
+ """
247
+ return pulumi.get(self, "conditions")
248
+
249
+ @property
250
+ @pulumi.getter
251
+ def data(self) -> Optional[Any]:
252
+ """
253
+ Data contains arbitrary driver-specific data.
254
+
255
+ The length of the raw data must be smaller or equal to 10 Ki.
256
+ """
257
+ return pulumi.get(self, "data")
258
+
259
+ @property
260
+ @pulumi.getter
261
+ def device(self) -> Optional[str]:
262
+ """
263
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
264
+ """
265
+ return pulumi.get(self, "device")
266
+
267
+ @property
268
+ @pulumi.getter
269
+ def driver(self) -> Optional[str]:
270
+ """
271
+ Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
272
+
273
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
274
+ """
275
+ return pulumi.get(self, "driver")
276
+
277
+ @property
278
+ @pulumi.getter(name="networkData")
279
+ def network_data(self) -> Optional['outputs.NetworkDeviceDataPatch']:
280
+ """
281
+ NetworkData contains network-related information specific to the device.
282
+ """
283
+ return pulumi.get(self, "network_data")
284
+
285
+ @property
286
+ @pulumi.getter
287
+ def pool(self) -> Optional[str]:
288
+ """
289
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
290
+
291
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
292
+ """
293
+ return pulumi.get(self, "pool")
294
+
295
+
296
+ @pulumi.output_type
297
+ class AllocationResult(dict):
298
+ """
299
+ AllocationResult contains attributes of an allocated resource.
300
+ """
301
+ @staticmethod
302
+ def __key_warning(key: str):
303
+ suggest = None
304
+ if key == "nodeSelector":
305
+ suggest = "node_selector"
306
+
307
+ if suggest:
308
+ pulumi.log.warn(f"Key '{key}' not found in AllocationResult. Access the value via the '{suggest}' property getter instead.")
309
+
310
+ def __getitem__(self, key: str) -> Any:
311
+ AllocationResult.__key_warning(key)
312
+ return super().__getitem__(key)
313
+
314
+ def get(self, key: str, default = None) -> Any:
315
+ AllocationResult.__key_warning(key)
316
+ return super().get(key, default)
317
+
318
+ def __init__(__self__, *,
319
+ devices: Optional['outputs.DeviceAllocationResult'] = None,
320
+ node_selector: Optional['_core.v1.outputs.NodeSelector'] = None):
321
+ """
322
+ AllocationResult contains attributes of an allocated resource.
323
+ :param 'DeviceAllocationResultArgs' devices: Devices is the result of allocating devices.
324
+ :param '_core.v1.NodeSelectorArgs' node_selector: NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
325
+ """
326
+ if devices is not None:
327
+ pulumi.set(__self__, "devices", devices)
328
+ if node_selector is not None:
329
+ pulumi.set(__self__, "node_selector", node_selector)
330
+
331
+ @property
332
+ @pulumi.getter
333
+ def devices(self) -> Optional['outputs.DeviceAllocationResult']:
334
+ """
335
+ Devices is the result of allocating devices.
336
+ """
337
+ return pulumi.get(self, "devices")
338
+
339
+ @property
340
+ @pulumi.getter(name="nodeSelector")
341
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
342
+ """
343
+ NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
344
+ """
345
+ return pulumi.get(self, "node_selector")
346
+
347
+
348
+ @pulumi.output_type
349
+ class AllocationResultPatch(dict):
350
+ """
351
+ AllocationResult contains attributes of an allocated resource.
352
+ """
353
+ @staticmethod
354
+ def __key_warning(key: str):
355
+ suggest = None
356
+ if key == "nodeSelector":
357
+ suggest = "node_selector"
358
+
359
+ if suggest:
360
+ pulumi.log.warn(f"Key '{key}' not found in AllocationResultPatch. Access the value via the '{suggest}' property getter instead.")
361
+
362
+ def __getitem__(self, key: str) -> Any:
363
+ AllocationResultPatch.__key_warning(key)
364
+ return super().__getitem__(key)
365
+
366
+ def get(self, key: str, default = None) -> Any:
367
+ AllocationResultPatch.__key_warning(key)
368
+ return super().get(key, default)
369
+
370
+ def __init__(__self__, *,
371
+ devices: Optional['outputs.DeviceAllocationResultPatch'] = None,
372
+ node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None):
373
+ """
374
+ AllocationResult contains attributes of an allocated resource.
375
+ :param 'DeviceAllocationResultPatchArgs' devices: Devices is the result of allocating devices.
376
+ :param '_core.v1.NodeSelectorPatchArgs' node_selector: NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
377
+ """
378
+ if devices is not None:
379
+ pulumi.set(__self__, "devices", devices)
380
+ if node_selector is not None:
381
+ pulumi.set(__self__, "node_selector", node_selector)
382
+
383
+ @property
384
+ @pulumi.getter
385
+ def devices(self) -> Optional['outputs.DeviceAllocationResultPatch']:
386
+ """
387
+ Devices is the result of allocating devices.
388
+ """
389
+ return pulumi.get(self, "devices")
390
+
391
+ @property
392
+ @pulumi.getter(name="nodeSelector")
393
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
394
+ """
395
+ NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
396
+ """
397
+ return pulumi.get(self, "node_selector")
398
+
399
+
400
+ @pulumi.output_type
401
+ class BasicDevice(dict):
402
+ """
403
+ BasicDevice defines one device instance.
404
+ """
405
+ def __init__(__self__, *,
406
+ attributes: Optional[Mapping[str, 'outputs.DeviceAttribute']] = None,
407
+ capacity: Optional[Mapping[str, 'outputs.DeviceCapacity']] = None):
408
+ """
409
+ BasicDevice defines one device instance.
410
+ :param Mapping[str, 'DeviceAttributeArgs'] attributes: Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
411
+
412
+ The maximum number of attributes and capacities combined is 32.
413
+ :param Mapping[str, 'DeviceCapacityArgs'] capacity: Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
414
+
415
+ The maximum number of attributes and capacities combined is 32.
416
+ """
417
+ if attributes is not None:
418
+ pulumi.set(__self__, "attributes", attributes)
419
+ if capacity is not None:
420
+ pulumi.set(__self__, "capacity", capacity)
421
+
422
+ @property
423
+ @pulumi.getter
424
+ def attributes(self) -> Optional[Mapping[str, 'outputs.DeviceAttribute']]:
425
+ """
426
+ Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
427
+
428
+ The maximum number of attributes and capacities combined is 32.
429
+ """
430
+ return pulumi.get(self, "attributes")
431
+
432
+ @property
433
+ @pulumi.getter
434
+ def capacity(self) -> Optional[Mapping[str, 'outputs.DeviceCapacity']]:
435
+ """
436
+ Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
437
+
438
+ The maximum number of attributes and capacities combined is 32.
439
+ """
440
+ return pulumi.get(self, "capacity")
441
+
442
+
443
+ @pulumi.output_type
444
+ class BasicDevicePatch(dict):
445
+ """
446
+ BasicDevice defines one device instance.
447
+ """
448
+ def __init__(__self__, *,
449
+ attributes: Optional[Mapping[str, 'outputs.DeviceAttribute']] = None,
450
+ capacity: Optional[Mapping[str, 'outputs.DeviceCapacity']] = None):
451
+ """
452
+ BasicDevice defines one device instance.
453
+ :param Mapping[str, 'DeviceAttributeArgs'] attributes: Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
454
+
455
+ The maximum number of attributes and capacities combined is 32.
456
+ :param Mapping[str, 'DeviceCapacityArgs'] capacity: Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
457
+
458
+ The maximum number of attributes and capacities combined is 32.
459
+ """
460
+ if attributes is not None:
461
+ pulumi.set(__self__, "attributes", attributes)
462
+ if capacity is not None:
463
+ pulumi.set(__self__, "capacity", capacity)
464
+
465
+ @property
466
+ @pulumi.getter
467
+ def attributes(self) -> Optional[Mapping[str, 'outputs.DeviceAttribute']]:
468
+ """
469
+ Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
470
+
471
+ The maximum number of attributes and capacities combined is 32.
472
+ """
473
+ return pulumi.get(self, "attributes")
474
+
475
+ @property
476
+ @pulumi.getter
477
+ def capacity(self) -> Optional[Mapping[str, 'outputs.DeviceCapacity']]:
478
+ """
479
+ Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
480
+
481
+ The maximum number of attributes and capacities combined is 32.
482
+ """
483
+ return pulumi.get(self, "capacity")
484
+
485
+
486
+ @pulumi.output_type
487
+ class CELDeviceSelector(dict):
488
+ """
489
+ CELDeviceSelector contains a CEL expression for selecting a device.
490
+ """
491
+ def __init__(__self__, *,
492
+ expression: str):
493
+ """
494
+ CELDeviceSelector contains a CEL expression for selecting a device.
495
+ :param str expression: Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
496
+
497
+ The expression's input is an object named "device", which carries the following properties:
498
+ - driver (string): the name of the driver which defines this device.
499
+ - attributes (map[string]object): the device's attributes, grouped by prefix
500
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
501
+ of the attributes which were prefixed by "dra.example.com".
502
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
503
+
504
+ Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
505
+
506
+ device.driver
507
+ device.attributes["dra.example.com"].model
508
+ device.attributes["ext.example.com"].family
509
+ device.capacity["dra.example.com"].modules
510
+
511
+ The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
512
+
513
+ The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
514
+
515
+ If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
516
+
517
+ A robust expression should check for the existence of attributes before referencing them.
518
+
519
+ For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
520
+
521
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
522
+
523
+ The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
524
+ """
525
+ pulumi.set(__self__, "expression", expression)
526
+
527
+ @property
528
+ @pulumi.getter
529
+ def expression(self) -> str:
530
+ """
531
+ Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
532
+
533
+ The expression's input is an object named "device", which carries the following properties:
534
+ - driver (string): the name of the driver which defines this device.
535
+ - attributes (map[string]object): the device's attributes, grouped by prefix
536
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
537
+ of the attributes which were prefixed by "dra.example.com".
538
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
539
+
540
+ Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
541
+
542
+ device.driver
543
+ device.attributes["dra.example.com"].model
544
+ device.attributes["ext.example.com"].family
545
+ device.capacity["dra.example.com"].modules
546
+
547
+ The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
548
+
549
+ The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
550
+
551
+ If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
552
+
553
+ A robust expression should check for the existence of attributes before referencing them.
554
+
555
+ For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
556
+
557
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
558
+
559
+ The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
560
+ """
561
+ return pulumi.get(self, "expression")
562
+
563
+
564
+ @pulumi.output_type
565
+ class CELDeviceSelectorPatch(dict):
566
+ """
567
+ CELDeviceSelector contains a CEL expression for selecting a device.
568
+ """
569
+ def __init__(__self__, *,
570
+ expression: Optional[str] = None):
571
+ """
572
+ CELDeviceSelector contains a CEL expression for selecting a device.
573
+ :param str expression: Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
574
+
575
+ The expression's input is an object named "device", which carries the following properties:
576
+ - driver (string): the name of the driver which defines this device.
577
+ - attributes (map[string]object): the device's attributes, grouped by prefix
578
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
579
+ of the attributes which were prefixed by "dra.example.com".
580
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
581
+
582
+ Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
583
+
584
+ device.driver
585
+ device.attributes["dra.example.com"].model
586
+ device.attributes["ext.example.com"].family
587
+ device.capacity["dra.example.com"].modules
588
+
589
+ The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
590
+
591
+ The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
592
+
593
+ If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
594
+
595
+ A robust expression should check for the existence of attributes before referencing them.
596
+
597
+ For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
598
+
599
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
600
+
601
+ The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
602
+ """
603
+ if expression is not None:
604
+ pulumi.set(__self__, "expression", expression)
605
+
606
+ @property
607
+ @pulumi.getter
608
+ def expression(self) -> Optional[str]:
609
+ """
610
+ Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
611
+
612
+ The expression's input is an object named "device", which carries the following properties:
613
+ - driver (string): the name of the driver which defines this device.
614
+ - attributes (map[string]object): the device's attributes, grouped by prefix
615
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
616
+ of the attributes which were prefixed by "dra.example.com".
617
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
618
+
619
+ Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
620
+
621
+ device.driver
622
+ device.attributes["dra.example.com"].model
623
+ device.attributes["ext.example.com"].family
624
+ device.capacity["dra.example.com"].modules
625
+
626
+ The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
627
+
628
+ The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
629
+
630
+ If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
631
+
632
+ A robust expression should check for the existence of attributes before referencing them.
633
+
634
+ For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
635
+
636
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
637
+
638
+ The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
639
+ """
640
+ return pulumi.get(self, "expression")
641
+
642
+
643
+ @pulumi.output_type
644
+ class Device(dict):
645
+ """
646
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
647
+ """
648
+ def __init__(__self__, *,
649
+ name: str,
650
+ basic: Optional['outputs.BasicDevice'] = None):
651
+ """
652
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
653
+ :param str name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
654
+ :param 'BasicDeviceArgs' basic: Basic defines one device instance.
655
+ """
656
+ pulumi.set(__self__, "name", name)
657
+ if basic is not None:
658
+ pulumi.set(__self__, "basic", basic)
659
+
660
+ @property
661
+ @pulumi.getter
662
+ def name(self) -> str:
663
+ """
664
+ Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
665
+ """
666
+ return pulumi.get(self, "name")
667
+
668
+ @property
669
+ @pulumi.getter
670
+ def basic(self) -> Optional['outputs.BasicDevice']:
671
+ """
672
+ Basic defines one device instance.
673
+ """
674
+ return pulumi.get(self, "basic")
675
+
676
+
677
+ @pulumi.output_type
678
+ class DeviceAllocationConfiguration(dict):
679
+ """
680
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
681
+ """
682
+ def __init__(__self__, *,
683
+ source: str,
684
+ opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None,
685
+ requests: Optional[Sequence[str]] = None):
686
+ """
687
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
688
+ :param str source: Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
689
+ :param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
690
+ :param Sequence[str] requests: Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
691
+ """
692
+ pulumi.set(__self__, "source", source)
693
+ if opaque is not None:
694
+ pulumi.set(__self__, "opaque", opaque)
695
+ if requests is not None:
696
+ pulumi.set(__self__, "requests", requests)
697
+
698
+ @property
699
+ @pulumi.getter
700
+ def source(self) -> str:
701
+ """
702
+ Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
703
+ """
704
+ return pulumi.get(self, "source")
705
+
706
+ @property
707
+ @pulumi.getter
708
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
709
+ """
710
+ Opaque provides driver-specific configuration parameters.
711
+ """
712
+ return pulumi.get(self, "opaque")
713
+
714
+ @property
715
+ @pulumi.getter
716
+ def requests(self) -> Optional[Sequence[str]]:
717
+ """
718
+ Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
719
+ """
720
+ return pulumi.get(self, "requests")
721
+
722
+
723
+ @pulumi.output_type
724
+ class DeviceAllocationConfigurationPatch(dict):
725
+ """
726
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
727
+ """
728
+ def __init__(__self__, *,
729
+ opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None,
730
+ requests: Optional[Sequence[str]] = None,
731
+ source: Optional[str] = None):
732
+ """
733
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
734
+ :param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
735
+ :param Sequence[str] requests: Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
736
+ :param str source: Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
737
+ """
738
+ if opaque is not None:
739
+ pulumi.set(__self__, "opaque", opaque)
740
+ if requests is not None:
741
+ pulumi.set(__self__, "requests", requests)
742
+ if source is not None:
743
+ pulumi.set(__self__, "source", source)
744
+
745
+ @property
746
+ @pulumi.getter
747
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
748
+ """
749
+ Opaque provides driver-specific configuration parameters.
750
+ """
751
+ return pulumi.get(self, "opaque")
752
+
753
+ @property
754
+ @pulumi.getter
755
+ def requests(self) -> Optional[Sequence[str]]:
756
+ """
757
+ Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
758
+ """
759
+ return pulumi.get(self, "requests")
760
+
761
+ @property
762
+ @pulumi.getter
763
+ def source(self) -> Optional[str]:
764
+ """
765
+ Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
766
+ """
767
+ return pulumi.get(self, "source")
768
+
769
+
770
+ @pulumi.output_type
771
+ class DeviceAllocationResult(dict):
772
+ """
773
+ DeviceAllocationResult is the result of allocating devices.
774
+ """
775
+ def __init__(__self__, *,
776
+ config: Optional[Sequence['outputs.DeviceAllocationConfiguration']] = None,
777
+ results: Optional[Sequence['outputs.DeviceRequestAllocationResult']] = None):
778
+ """
779
+ DeviceAllocationResult is the result of allocating devices.
780
+ :param Sequence['DeviceAllocationConfigurationArgs'] config: This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
781
+
782
+ This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
783
+ :param Sequence['DeviceRequestAllocationResultArgs'] results: Results lists all allocated devices.
784
+ """
785
+ if config is not None:
786
+ pulumi.set(__self__, "config", config)
787
+ if results is not None:
788
+ pulumi.set(__self__, "results", results)
789
+
790
+ @property
791
+ @pulumi.getter
792
+ def config(self) -> Optional[Sequence['outputs.DeviceAllocationConfiguration']]:
793
+ """
794
+ This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
795
+
796
+ This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
797
+ """
798
+ return pulumi.get(self, "config")
799
+
800
+ @property
801
+ @pulumi.getter
802
+ def results(self) -> Optional[Sequence['outputs.DeviceRequestAllocationResult']]:
803
+ """
804
+ Results lists all allocated devices.
805
+ """
806
+ return pulumi.get(self, "results")
807
+
808
+
809
+ @pulumi.output_type
810
+ class DeviceAllocationResultPatch(dict):
811
+ """
812
+ DeviceAllocationResult is the result of allocating devices.
813
+ """
814
+ def __init__(__self__, *,
815
+ config: Optional[Sequence['outputs.DeviceAllocationConfigurationPatch']] = None,
816
+ results: Optional[Sequence['outputs.DeviceRequestAllocationResultPatch']] = None):
817
+ """
818
+ DeviceAllocationResult is the result of allocating devices.
819
+ :param Sequence['DeviceAllocationConfigurationPatchArgs'] config: This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
820
+
821
+ This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
822
+ :param Sequence['DeviceRequestAllocationResultPatchArgs'] results: Results lists all allocated devices.
823
+ """
824
+ if config is not None:
825
+ pulumi.set(__self__, "config", config)
826
+ if results is not None:
827
+ pulumi.set(__self__, "results", results)
828
+
829
+ @property
830
+ @pulumi.getter
831
+ def config(self) -> Optional[Sequence['outputs.DeviceAllocationConfigurationPatch']]:
832
+ """
833
+ This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
834
+
835
+ This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
836
+ """
837
+ return pulumi.get(self, "config")
838
+
839
+ @property
840
+ @pulumi.getter
841
+ def results(self) -> Optional[Sequence['outputs.DeviceRequestAllocationResultPatch']]:
842
+ """
843
+ Results lists all allocated devices.
844
+ """
845
+ return pulumi.get(self, "results")
846
+
847
+
848
+ @pulumi.output_type
849
+ class DeviceAttribute(dict):
850
+ """
851
+ DeviceAttribute must have exactly one field set.
852
+ """
853
+ def __init__(__self__, *,
854
+ bool: Optional[bool] = None,
855
+ int: Optional[int] = None,
856
+ string: Optional[str] = None,
857
+ version: Optional[str] = None):
858
+ """
859
+ DeviceAttribute must have exactly one field set.
860
+ :param bool bool: BoolValue is a true/false value.
861
+ :param int int: IntValue is a number.
862
+ :param str string: StringValue is a string. Must not be longer than 64 characters.
863
+ :param str version: VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
864
+ """
865
+ if bool is not None:
866
+ pulumi.set(__self__, "bool", bool)
867
+ if int is not None:
868
+ pulumi.set(__self__, "int", int)
869
+ if string is not None:
870
+ pulumi.set(__self__, "string", string)
871
+ if version is not None:
872
+ pulumi.set(__self__, "version", version)
873
+
874
+ @property
875
+ @pulumi.getter
876
+ def bool(self) -> Optional[bool]:
877
+ """
878
+ BoolValue is a true/false value.
879
+ """
880
+ return pulumi.get(self, "bool")
881
+
882
+ @property
883
+ @pulumi.getter
884
+ def int(self) -> Optional[int]:
885
+ """
886
+ IntValue is a number.
887
+ """
888
+ return pulumi.get(self, "int")
889
+
890
+ @property
891
+ @pulumi.getter
892
+ def string(self) -> Optional[str]:
893
+ """
894
+ StringValue is a string. Must not be longer than 64 characters.
895
+ """
896
+ return pulumi.get(self, "string")
897
+
898
+ @property
899
+ @pulumi.getter
900
+ def version(self) -> Optional[str]:
901
+ """
902
+ VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
903
+ """
904
+ return pulumi.get(self, "version")
905
+
906
+
907
+ @pulumi.output_type
908
+ class DeviceCapacity(dict):
909
+ """
910
+ DeviceCapacity describes a quantity associated with a device.
911
+ """
912
+ def __init__(__self__, *,
913
+ value: str):
914
+ """
915
+ DeviceCapacity describes a quantity associated with a device.
916
+ :param str value: Value defines how much of a certain device capacity is available.
917
+ """
918
+ pulumi.set(__self__, "value", value)
919
+
920
+ @property
921
+ @pulumi.getter
922
+ def value(self) -> str:
923
+ """
924
+ Value defines how much of a certain device capacity is available.
925
+ """
926
+ return pulumi.get(self, "value")
927
+
928
+
929
+ @pulumi.output_type
930
+ class DeviceClaim(dict):
931
+ """
932
+ DeviceClaim defines how to request devices with a ResourceClaim.
933
+ """
934
+ def __init__(__self__, *,
935
+ config: Optional[Sequence['outputs.DeviceClaimConfiguration']] = None,
936
+ constraints: Optional[Sequence['outputs.DeviceConstraint']] = None,
937
+ requests: Optional[Sequence['outputs.DeviceRequest']] = None):
938
+ """
939
+ DeviceClaim defines how to request devices with a ResourceClaim.
940
+ :param Sequence['DeviceClaimConfigurationArgs'] config: This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
941
+ :param Sequence['DeviceConstraintArgs'] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
942
+ :param Sequence['DeviceRequestArgs'] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
943
+ """
944
+ if config is not None:
945
+ pulumi.set(__self__, "config", config)
946
+ if constraints is not None:
947
+ pulumi.set(__self__, "constraints", constraints)
948
+ if requests is not None:
949
+ pulumi.set(__self__, "requests", requests)
950
+
951
+ @property
952
+ @pulumi.getter
953
+ def config(self) -> Optional[Sequence['outputs.DeviceClaimConfiguration']]:
954
+ """
955
+ This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
956
+ """
957
+ return pulumi.get(self, "config")
958
+
959
+ @property
960
+ @pulumi.getter
961
+ def constraints(self) -> Optional[Sequence['outputs.DeviceConstraint']]:
962
+ """
963
+ These constraints must be satisfied by the set of devices that get allocated for the claim.
964
+ """
965
+ return pulumi.get(self, "constraints")
966
+
967
+ @property
968
+ @pulumi.getter
969
+ def requests(self) -> Optional[Sequence['outputs.DeviceRequest']]:
970
+ """
971
+ Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
972
+ """
973
+ return pulumi.get(self, "requests")
974
+
975
+
976
+ @pulumi.output_type
977
+ class DeviceClaimConfiguration(dict):
978
+ """
979
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
980
+ """
981
+ def __init__(__self__, *,
982
+ opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None,
983
+ requests: Optional[Sequence[str]] = None):
984
+ """
985
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
986
+ :param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
987
+ :param Sequence[str] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
988
+ """
989
+ if opaque is not None:
990
+ pulumi.set(__self__, "opaque", opaque)
991
+ if requests is not None:
992
+ pulumi.set(__self__, "requests", requests)
993
+
994
+ @property
995
+ @pulumi.getter
996
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
997
+ """
998
+ Opaque provides driver-specific configuration parameters.
999
+ """
1000
+ return pulumi.get(self, "opaque")
1001
+
1002
+ @property
1003
+ @pulumi.getter
1004
+ def requests(self) -> Optional[Sequence[str]]:
1005
+ """
1006
+ Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1007
+ """
1008
+ return pulumi.get(self, "requests")
1009
+
1010
+
1011
+ @pulumi.output_type
1012
+ class DeviceClaimConfigurationPatch(dict):
1013
+ """
1014
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
1015
+ """
1016
+ def __init__(__self__, *,
1017
+ opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None,
1018
+ requests: Optional[Sequence[str]] = None):
1019
+ """
1020
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
1021
+ :param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
1022
+ :param Sequence[str] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1023
+ """
1024
+ if opaque is not None:
1025
+ pulumi.set(__self__, "opaque", opaque)
1026
+ if requests is not None:
1027
+ pulumi.set(__self__, "requests", requests)
1028
+
1029
+ @property
1030
+ @pulumi.getter
1031
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
1032
+ """
1033
+ Opaque provides driver-specific configuration parameters.
1034
+ """
1035
+ return pulumi.get(self, "opaque")
1036
+
1037
+ @property
1038
+ @pulumi.getter
1039
+ def requests(self) -> Optional[Sequence[str]]:
1040
+ """
1041
+ Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1042
+ """
1043
+ return pulumi.get(self, "requests")
1044
+
1045
+
1046
+ @pulumi.output_type
1047
+ class DeviceClaimPatch(dict):
1048
+ """
1049
+ DeviceClaim defines how to request devices with a ResourceClaim.
1050
+ """
1051
+ def __init__(__self__, *,
1052
+ config: Optional[Sequence['outputs.DeviceClaimConfigurationPatch']] = None,
1053
+ constraints: Optional[Sequence['outputs.DeviceConstraintPatch']] = None,
1054
+ requests: Optional[Sequence['outputs.DeviceRequestPatch']] = None):
1055
+ """
1056
+ DeviceClaim defines how to request devices with a ResourceClaim.
1057
+ :param Sequence['DeviceClaimConfigurationPatchArgs'] config: This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
1058
+ :param Sequence['DeviceConstraintPatchArgs'] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
1059
+ :param Sequence['DeviceRequestPatchArgs'] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1060
+ """
1061
+ if config is not None:
1062
+ pulumi.set(__self__, "config", config)
1063
+ if constraints is not None:
1064
+ pulumi.set(__self__, "constraints", constraints)
1065
+ if requests is not None:
1066
+ pulumi.set(__self__, "requests", requests)
1067
+
1068
+ @property
1069
+ @pulumi.getter
1070
+ def config(self) -> Optional[Sequence['outputs.DeviceClaimConfigurationPatch']]:
1071
+ """
1072
+ This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
1073
+ """
1074
+ return pulumi.get(self, "config")
1075
+
1076
+ @property
1077
+ @pulumi.getter
1078
+ def constraints(self) -> Optional[Sequence['outputs.DeviceConstraintPatch']]:
1079
+ """
1080
+ These constraints must be satisfied by the set of devices that get allocated for the claim.
1081
+ """
1082
+ return pulumi.get(self, "constraints")
1083
+
1084
+ @property
1085
+ @pulumi.getter
1086
+ def requests(self) -> Optional[Sequence['outputs.DeviceRequestPatch']]:
1087
+ """
1088
+ Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1089
+ """
1090
+ return pulumi.get(self, "requests")
1091
+
1092
+
1093
+ @pulumi.output_type
1094
+ class DeviceClass(dict):
1095
+ """
1096
+ DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.
1097
+
1098
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1099
+ """
1100
+ @staticmethod
1101
+ def __key_warning(key: str):
1102
+ suggest = None
1103
+ if key == "apiVersion":
1104
+ suggest = "api_version"
1105
+
1106
+ if suggest:
1107
+ pulumi.log.warn(f"Key '{key}' not found in DeviceClass. Access the value via the '{suggest}' property getter instead.")
1108
+
1109
+ def __getitem__(self, key: str) -> Any:
1110
+ DeviceClass.__key_warning(key)
1111
+ return super().__getitem__(key)
1112
+
1113
+ def get(self, key: str, default = None) -> Any:
1114
+ DeviceClass.__key_warning(key)
1115
+ return super().get(key, default)
1116
+
1117
+ def __init__(__self__, *,
1118
+ spec: 'outputs.DeviceClassSpec',
1119
+ api_version: Optional[str] = None,
1120
+ kind: Optional[str] = None,
1121
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
1122
+ """
1123
+ DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.
1124
+
1125
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1126
+ :param 'DeviceClassSpecArgs' spec: Spec defines what can be allocated and how to configure it.
1127
+
1128
+ This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
1129
+
1130
+ Changing the spec automatically increments the metadata.generation number.
1131
+ :param str api_version: 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
1132
+ :param str kind: 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
1133
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
1134
+ """
1135
+ pulumi.set(__self__, "spec", spec)
1136
+ if api_version is not None:
1137
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
1138
+ if kind is not None:
1139
+ pulumi.set(__self__, "kind", 'DeviceClass')
1140
+ if metadata is not None:
1141
+ pulumi.set(__self__, "metadata", metadata)
1142
+
1143
+ @property
1144
+ @pulumi.getter
1145
+ def spec(self) -> 'outputs.DeviceClassSpec':
1146
+ """
1147
+ Spec defines what can be allocated and how to configure it.
1148
+
1149
+ This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
1150
+
1151
+ Changing the spec automatically increments the metadata.generation number.
1152
+ """
1153
+ return pulumi.get(self, "spec")
1154
+
1155
+ @property
1156
+ @pulumi.getter(name="apiVersion")
1157
+ def api_version(self) -> Optional[str]:
1158
+ """
1159
+ 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
1160
+ """
1161
+ return pulumi.get(self, "api_version")
1162
+
1163
+ @property
1164
+ @pulumi.getter
1165
+ def kind(self) -> Optional[str]:
1166
+ """
1167
+ 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
1168
+ """
1169
+ return pulumi.get(self, "kind")
1170
+
1171
+ @property
1172
+ @pulumi.getter
1173
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
1174
+ """
1175
+ Standard object metadata
1176
+ """
1177
+ return pulumi.get(self, "metadata")
1178
+
1179
+
1180
+ @pulumi.output_type
1181
+ class DeviceClassConfiguration(dict):
1182
+ """
1183
+ DeviceClassConfiguration is used in DeviceClass.
1184
+ """
1185
+ def __init__(__self__, *,
1186
+ opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None):
1187
+ """
1188
+ DeviceClassConfiguration is used in DeviceClass.
1189
+ :param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
1190
+ """
1191
+ if opaque is not None:
1192
+ pulumi.set(__self__, "opaque", opaque)
1193
+
1194
+ @property
1195
+ @pulumi.getter
1196
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
1197
+ """
1198
+ Opaque provides driver-specific configuration parameters.
1199
+ """
1200
+ return pulumi.get(self, "opaque")
1201
+
1202
+
1203
+ @pulumi.output_type
1204
+ class DeviceClassConfigurationPatch(dict):
1205
+ """
1206
+ DeviceClassConfiguration is used in DeviceClass.
1207
+ """
1208
+ def __init__(__self__, *,
1209
+ opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None):
1210
+ """
1211
+ DeviceClassConfiguration is used in DeviceClass.
1212
+ :param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
1213
+ """
1214
+ if opaque is not None:
1215
+ pulumi.set(__self__, "opaque", opaque)
1216
+
1217
+ @property
1218
+ @pulumi.getter
1219
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
1220
+ """
1221
+ Opaque provides driver-specific configuration parameters.
1222
+ """
1223
+ return pulumi.get(self, "opaque")
1224
+
1225
+
1226
+ @pulumi.output_type
1227
+ class DeviceClassSpec(dict):
1228
+ """
1229
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1230
+ """
1231
+ def __init__(__self__, *,
1232
+ config: Optional[Sequence['outputs.DeviceClassConfiguration']] = None,
1233
+ selectors: Optional[Sequence['outputs.DeviceSelector']] = None):
1234
+ """
1235
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1236
+ :param Sequence['DeviceClassConfigurationArgs'] config: Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
1237
+
1238
+ They are passed to the driver, but are not considered while allocating the claim.
1239
+ :param Sequence['DeviceSelectorArgs'] selectors: Each selector must be satisfied by a device which is claimed via this class.
1240
+ """
1241
+ if config is not None:
1242
+ pulumi.set(__self__, "config", config)
1243
+ if selectors is not None:
1244
+ pulumi.set(__self__, "selectors", selectors)
1245
+
1246
+ @property
1247
+ @pulumi.getter
1248
+ def config(self) -> Optional[Sequence['outputs.DeviceClassConfiguration']]:
1249
+ """
1250
+ Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
1251
+
1252
+ They are passed to the driver, but are not considered while allocating the claim.
1253
+ """
1254
+ return pulumi.get(self, "config")
1255
+
1256
+ @property
1257
+ @pulumi.getter
1258
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
1259
+ """
1260
+ Each selector must be satisfied by a device which is claimed via this class.
1261
+ """
1262
+ return pulumi.get(self, "selectors")
1263
+
1264
+
1265
+ @pulumi.output_type
1266
+ class DeviceClassSpecPatch(dict):
1267
+ """
1268
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1269
+ """
1270
+ def __init__(__self__, *,
1271
+ config: Optional[Sequence['outputs.DeviceClassConfigurationPatch']] = None,
1272
+ selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None):
1273
+ """
1274
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1275
+ :param Sequence['DeviceClassConfigurationPatchArgs'] config: Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
1276
+
1277
+ They are passed to the driver, but are not considered while allocating the claim.
1278
+ :param Sequence['DeviceSelectorPatchArgs'] selectors: Each selector must be satisfied by a device which is claimed via this class.
1279
+ """
1280
+ if config is not None:
1281
+ pulumi.set(__self__, "config", config)
1282
+ if selectors is not None:
1283
+ pulumi.set(__self__, "selectors", selectors)
1284
+
1285
+ @property
1286
+ @pulumi.getter
1287
+ def config(self) -> Optional[Sequence['outputs.DeviceClassConfigurationPatch']]:
1288
+ """
1289
+ Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
1290
+
1291
+ They are passed to the driver, but are not considered while allocating the claim.
1292
+ """
1293
+ return pulumi.get(self, "config")
1294
+
1295
+ @property
1296
+ @pulumi.getter
1297
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
1298
+ """
1299
+ Each selector must be satisfied by a device which is claimed via this class.
1300
+ """
1301
+ return pulumi.get(self, "selectors")
1302
+
1303
+
1304
+ @pulumi.output_type
1305
+ class DeviceConstraint(dict):
1306
+ """
1307
+ DeviceConstraint must have exactly one field set besides Requests.
1308
+ """
1309
+ @staticmethod
1310
+ def __key_warning(key: str):
1311
+ suggest = None
1312
+ if key == "matchAttribute":
1313
+ suggest = "match_attribute"
1314
+
1315
+ if suggest:
1316
+ pulumi.log.warn(f"Key '{key}' not found in DeviceConstraint. Access the value via the '{suggest}' property getter instead.")
1317
+
1318
+ def __getitem__(self, key: str) -> Any:
1319
+ DeviceConstraint.__key_warning(key)
1320
+ return super().__getitem__(key)
1321
+
1322
+ def get(self, key: str, default = None) -> Any:
1323
+ DeviceConstraint.__key_warning(key)
1324
+ return super().get(key, default)
1325
+
1326
+ def __init__(__self__, *,
1327
+ match_attribute: Optional[str] = None,
1328
+ requests: Optional[Sequence[str]] = None):
1329
+ """
1330
+ DeviceConstraint must have exactly one field set besides Requests.
1331
+ :param str match_attribute: MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1332
+
1333
+ For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
1334
+
1335
+ Must include the domain qualifier.
1336
+ :param Sequence[str] requests: Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
1337
+ """
1338
+ if match_attribute is not None:
1339
+ pulumi.set(__self__, "match_attribute", match_attribute)
1340
+ if requests is not None:
1341
+ pulumi.set(__self__, "requests", requests)
1342
+
1343
+ @property
1344
+ @pulumi.getter(name="matchAttribute")
1345
+ def match_attribute(self) -> Optional[str]:
1346
+ """
1347
+ MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1348
+
1349
+ For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
1350
+
1351
+ Must include the domain qualifier.
1352
+ """
1353
+ return pulumi.get(self, "match_attribute")
1354
+
1355
+ @property
1356
+ @pulumi.getter
1357
+ def requests(self) -> Optional[Sequence[str]]:
1358
+ """
1359
+ Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
1360
+ """
1361
+ return pulumi.get(self, "requests")
1362
+
1363
+
1364
+ @pulumi.output_type
1365
+ class DeviceConstraintPatch(dict):
1366
+ """
1367
+ DeviceConstraint must have exactly one field set besides Requests.
1368
+ """
1369
+ @staticmethod
1370
+ def __key_warning(key: str):
1371
+ suggest = None
1372
+ if key == "matchAttribute":
1373
+ suggest = "match_attribute"
1374
+
1375
+ if suggest:
1376
+ pulumi.log.warn(f"Key '{key}' not found in DeviceConstraintPatch. Access the value via the '{suggest}' property getter instead.")
1377
+
1378
+ def __getitem__(self, key: str) -> Any:
1379
+ DeviceConstraintPatch.__key_warning(key)
1380
+ return super().__getitem__(key)
1381
+
1382
+ def get(self, key: str, default = None) -> Any:
1383
+ DeviceConstraintPatch.__key_warning(key)
1384
+ return super().get(key, default)
1385
+
1386
+ def __init__(__self__, *,
1387
+ match_attribute: Optional[str] = None,
1388
+ requests: Optional[Sequence[str]] = None):
1389
+ """
1390
+ DeviceConstraint must have exactly one field set besides Requests.
1391
+ :param str match_attribute: MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1392
+
1393
+ For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
1394
+
1395
+ Must include the domain qualifier.
1396
+ :param Sequence[str] requests: Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
1397
+ """
1398
+ if match_attribute is not None:
1399
+ pulumi.set(__self__, "match_attribute", match_attribute)
1400
+ if requests is not None:
1401
+ pulumi.set(__self__, "requests", requests)
1402
+
1403
+ @property
1404
+ @pulumi.getter(name="matchAttribute")
1405
+ def match_attribute(self) -> Optional[str]:
1406
+ """
1407
+ MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1408
+
1409
+ For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
1410
+
1411
+ Must include the domain qualifier.
1412
+ """
1413
+ return pulumi.get(self, "match_attribute")
1414
+
1415
+ @property
1416
+ @pulumi.getter
1417
+ def requests(self) -> Optional[Sequence[str]]:
1418
+ """
1419
+ Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
1420
+ """
1421
+ return pulumi.get(self, "requests")
1422
+
1423
+
1424
+ @pulumi.output_type
1425
+ class DevicePatch(dict):
1426
+ """
1427
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
1428
+ """
1429
+ def __init__(__self__, *,
1430
+ basic: Optional['outputs.BasicDevicePatch'] = None,
1431
+ name: Optional[str] = None):
1432
+ """
1433
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
1434
+ :param 'BasicDevicePatchArgs' basic: Basic defines one device instance.
1435
+ :param str name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
1436
+ """
1437
+ if basic is not None:
1438
+ pulumi.set(__self__, "basic", basic)
1439
+ if name is not None:
1440
+ pulumi.set(__self__, "name", name)
1441
+
1442
+ @property
1443
+ @pulumi.getter
1444
+ def basic(self) -> Optional['outputs.BasicDevicePatch']:
1445
+ """
1446
+ Basic defines one device instance.
1447
+ """
1448
+ return pulumi.get(self, "basic")
1449
+
1450
+ @property
1451
+ @pulumi.getter
1452
+ def name(self) -> Optional[str]:
1453
+ """
1454
+ Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
1455
+ """
1456
+ return pulumi.get(self, "name")
1457
+
1458
+
1459
+ @pulumi.output_type
1460
+ class DeviceRequest(dict):
1461
+ """
1462
+ DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
1463
+
1464
+ A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
1465
+ """
1466
+ @staticmethod
1467
+ def __key_warning(key: str):
1468
+ suggest = None
1469
+ if key == "deviceClassName":
1470
+ suggest = "device_class_name"
1471
+ elif key == "adminAccess":
1472
+ suggest = "admin_access"
1473
+ elif key == "allocationMode":
1474
+ suggest = "allocation_mode"
1475
+
1476
+ if suggest:
1477
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequest. Access the value via the '{suggest}' property getter instead.")
1478
+
1479
+ def __getitem__(self, key: str) -> Any:
1480
+ DeviceRequest.__key_warning(key)
1481
+ return super().__getitem__(key)
1482
+
1483
+ def get(self, key: str, default = None) -> Any:
1484
+ DeviceRequest.__key_warning(key)
1485
+ return super().get(key, default)
1486
+
1487
+ def __init__(__self__, *,
1488
+ device_class_name: str,
1489
+ name: str,
1490
+ admin_access: Optional[bool] = None,
1491
+ allocation_mode: Optional[str] = None,
1492
+ count: Optional[int] = None,
1493
+ selectors: Optional[Sequence['outputs.DeviceSelector']] = None):
1494
+ """
1495
+ DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
1496
+
1497
+ A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
1498
+ :param str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
1499
+
1500
+ A class is required. Which classes are available depends on the cluster.
1501
+
1502
+ Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
1503
+ :param str name: Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1504
+
1505
+ Must be a DNS label.
1506
+ :param bool admin_access: AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
1507
+
1508
+ This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
1509
+ :param str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
1510
+
1511
+ - ExactCount: This request is for a specific number of devices.
1512
+ This is the default. The exact number is provided in the
1513
+ count field.
1514
+
1515
+ - All: This request is for all of the matching devices in a pool.
1516
+ Allocation will fail if some devices are already allocated,
1517
+ unless adminAccess is requested.
1518
+
1519
+ If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
1520
+
1521
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
1522
+ :param int count: Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
1523
+ :param Sequence['DeviceSelectorArgs'] selectors: Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
1524
+ """
1525
+ pulumi.set(__self__, "device_class_name", device_class_name)
1526
+ pulumi.set(__self__, "name", name)
1527
+ if admin_access is not None:
1528
+ pulumi.set(__self__, "admin_access", admin_access)
1529
+ if allocation_mode is not None:
1530
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
1531
+ if count is not None:
1532
+ pulumi.set(__self__, "count", count)
1533
+ if selectors is not None:
1534
+ pulumi.set(__self__, "selectors", selectors)
1535
+
1536
+ @property
1537
+ @pulumi.getter(name="deviceClassName")
1538
+ def device_class_name(self) -> str:
1539
+ """
1540
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
1541
+
1542
+ A class is required. Which classes are available depends on the cluster.
1543
+
1544
+ Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
1545
+ """
1546
+ return pulumi.get(self, "device_class_name")
1547
+
1548
+ @property
1549
+ @pulumi.getter
1550
+ def name(self) -> str:
1551
+ """
1552
+ Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1553
+
1554
+ Must be a DNS label.
1555
+ """
1556
+ return pulumi.get(self, "name")
1557
+
1558
+ @property
1559
+ @pulumi.getter(name="adminAccess")
1560
+ def admin_access(self) -> Optional[bool]:
1561
+ """
1562
+ AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
1563
+
1564
+ This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
1565
+ """
1566
+ return pulumi.get(self, "admin_access")
1567
+
1568
+ @property
1569
+ @pulumi.getter(name="allocationMode")
1570
+ def allocation_mode(self) -> Optional[str]:
1571
+ """
1572
+ AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
1573
+
1574
+ - ExactCount: This request is for a specific number of devices.
1575
+ This is the default. The exact number is provided in the
1576
+ count field.
1577
+
1578
+ - All: This request is for all of the matching devices in a pool.
1579
+ Allocation will fail if some devices are already allocated,
1580
+ unless adminAccess is requested.
1581
+
1582
+ If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
1583
+
1584
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
1585
+ """
1586
+ return pulumi.get(self, "allocation_mode")
1587
+
1588
+ @property
1589
+ @pulumi.getter
1590
+ def count(self) -> Optional[int]:
1591
+ """
1592
+ Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
1593
+ """
1594
+ return pulumi.get(self, "count")
1595
+
1596
+ @property
1597
+ @pulumi.getter
1598
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
1599
+ """
1600
+ Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
1601
+ """
1602
+ return pulumi.get(self, "selectors")
1603
+
1604
+
1605
+ @pulumi.output_type
1606
+ class DeviceRequestAllocationResult(dict):
1607
+ """
1608
+ DeviceRequestAllocationResult contains the allocation result for one request.
1609
+ """
1610
+ @staticmethod
1611
+ def __key_warning(key: str):
1612
+ suggest = None
1613
+ if key == "adminAccess":
1614
+ suggest = "admin_access"
1615
+
1616
+ if suggest:
1617
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequestAllocationResult. Access the value via the '{suggest}' property getter instead.")
1618
+
1619
+ def __getitem__(self, key: str) -> Any:
1620
+ DeviceRequestAllocationResult.__key_warning(key)
1621
+ return super().__getitem__(key)
1622
+
1623
+ def get(self, key: str, default = None) -> Any:
1624
+ DeviceRequestAllocationResult.__key_warning(key)
1625
+ return super().get(key, default)
1626
+
1627
+ def __init__(__self__, *,
1628
+ device: str,
1629
+ driver: str,
1630
+ pool: str,
1631
+ request: str,
1632
+ admin_access: Optional[bool] = None):
1633
+ """
1634
+ DeviceRequestAllocationResult contains the allocation result for one request.
1635
+ :param str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
1636
+ :param str driver: Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
1637
+
1638
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
1639
+ :param str pool: This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
1640
+
1641
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
1642
+ :param str request: Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
1643
+ :param bool admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
1644
+
1645
+ This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
1646
+ """
1647
+ pulumi.set(__self__, "device", device)
1648
+ pulumi.set(__self__, "driver", driver)
1649
+ pulumi.set(__self__, "pool", pool)
1650
+ pulumi.set(__self__, "request", request)
1651
+ if admin_access is not None:
1652
+ pulumi.set(__self__, "admin_access", admin_access)
1653
+
1654
+ @property
1655
+ @pulumi.getter
1656
+ def device(self) -> str:
1657
+ """
1658
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
1659
+ """
1660
+ return pulumi.get(self, "device")
1661
+
1662
+ @property
1663
+ @pulumi.getter
1664
+ def driver(self) -> str:
1665
+ """
1666
+ Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
1667
+
1668
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
1669
+ """
1670
+ return pulumi.get(self, "driver")
1671
+
1672
+ @property
1673
+ @pulumi.getter
1674
+ def pool(self) -> str:
1675
+ """
1676
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
1677
+
1678
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
1679
+ """
1680
+ return pulumi.get(self, "pool")
1681
+
1682
+ @property
1683
+ @pulumi.getter
1684
+ def request(self) -> str:
1685
+ """
1686
+ Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
1687
+ """
1688
+ return pulumi.get(self, "request")
1689
+
1690
+ @property
1691
+ @pulumi.getter(name="adminAccess")
1692
+ def admin_access(self) -> Optional[bool]:
1693
+ """
1694
+ AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
1695
+
1696
+ This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
1697
+ """
1698
+ return pulumi.get(self, "admin_access")
1699
+
1700
+
1701
+ @pulumi.output_type
1702
+ class DeviceRequestAllocationResultPatch(dict):
1703
+ """
1704
+ DeviceRequestAllocationResult contains the allocation result for one request.
1705
+ """
1706
+ @staticmethod
1707
+ def __key_warning(key: str):
1708
+ suggest = None
1709
+ if key == "adminAccess":
1710
+ suggest = "admin_access"
1711
+
1712
+ if suggest:
1713
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequestAllocationResultPatch. Access the value via the '{suggest}' property getter instead.")
1714
+
1715
+ def __getitem__(self, key: str) -> Any:
1716
+ DeviceRequestAllocationResultPatch.__key_warning(key)
1717
+ return super().__getitem__(key)
1718
+
1719
+ def get(self, key: str, default = None) -> Any:
1720
+ DeviceRequestAllocationResultPatch.__key_warning(key)
1721
+ return super().get(key, default)
1722
+
1723
+ def __init__(__self__, *,
1724
+ admin_access: Optional[bool] = None,
1725
+ device: Optional[str] = None,
1726
+ driver: Optional[str] = None,
1727
+ pool: Optional[str] = None,
1728
+ request: Optional[str] = None):
1729
+ """
1730
+ DeviceRequestAllocationResult contains the allocation result for one request.
1731
+ :param bool admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
1732
+
1733
+ This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
1734
+ :param str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
1735
+ :param str driver: Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
1736
+
1737
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
1738
+ :param str pool: This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
1739
+
1740
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
1741
+ :param str request: Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
1742
+ """
1743
+ if admin_access is not None:
1744
+ pulumi.set(__self__, "admin_access", admin_access)
1745
+ if device is not None:
1746
+ pulumi.set(__self__, "device", device)
1747
+ if driver is not None:
1748
+ pulumi.set(__self__, "driver", driver)
1749
+ if pool is not None:
1750
+ pulumi.set(__self__, "pool", pool)
1751
+ if request is not None:
1752
+ pulumi.set(__self__, "request", request)
1753
+
1754
+ @property
1755
+ @pulumi.getter(name="adminAccess")
1756
+ def admin_access(self) -> Optional[bool]:
1757
+ """
1758
+ AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
1759
+
1760
+ This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
1761
+ """
1762
+ return pulumi.get(self, "admin_access")
1763
+
1764
+ @property
1765
+ @pulumi.getter
1766
+ def device(self) -> Optional[str]:
1767
+ """
1768
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
1769
+ """
1770
+ return pulumi.get(self, "device")
1771
+
1772
+ @property
1773
+ @pulumi.getter
1774
+ def driver(self) -> Optional[str]:
1775
+ """
1776
+ Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
1777
+
1778
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
1779
+ """
1780
+ return pulumi.get(self, "driver")
1781
+
1782
+ @property
1783
+ @pulumi.getter
1784
+ def pool(self) -> Optional[str]:
1785
+ """
1786
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
1787
+
1788
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
1789
+ """
1790
+ return pulumi.get(self, "pool")
1791
+
1792
+ @property
1793
+ @pulumi.getter
1794
+ def request(self) -> Optional[str]:
1795
+ """
1796
+ Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
1797
+ """
1798
+ return pulumi.get(self, "request")
1799
+
1800
+
1801
+ @pulumi.output_type
1802
+ class DeviceRequestPatch(dict):
1803
+ """
1804
+ DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
1805
+
1806
+ A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
1807
+ """
1808
+ @staticmethod
1809
+ def __key_warning(key: str):
1810
+ suggest = None
1811
+ if key == "adminAccess":
1812
+ suggest = "admin_access"
1813
+ elif key == "allocationMode":
1814
+ suggest = "allocation_mode"
1815
+ elif key == "deviceClassName":
1816
+ suggest = "device_class_name"
1817
+
1818
+ if suggest:
1819
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequestPatch. Access the value via the '{suggest}' property getter instead.")
1820
+
1821
+ def __getitem__(self, key: str) -> Any:
1822
+ DeviceRequestPatch.__key_warning(key)
1823
+ return super().__getitem__(key)
1824
+
1825
+ def get(self, key: str, default = None) -> Any:
1826
+ DeviceRequestPatch.__key_warning(key)
1827
+ return super().get(key, default)
1828
+
1829
+ def __init__(__self__, *,
1830
+ admin_access: Optional[bool] = None,
1831
+ allocation_mode: Optional[str] = None,
1832
+ count: Optional[int] = None,
1833
+ device_class_name: Optional[str] = None,
1834
+ name: Optional[str] = None,
1835
+ selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None):
1836
+ """
1837
+ DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
1838
+
1839
+ A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
1840
+ :param bool admin_access: AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
1841
+
1842
+ This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
1843
+ :param str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
1844
+
1845
+ - ExactCount: This request is for a specific number of devices.
1846
+ This is the default. The exact number is provided in the
1847
+ count field.
1848
+
1849
+ - All: This request is for all of the matching devices in a pool.
1850
+ Allocation will fail if some devices are already allocated,
1851
+ unless adminAccess is requested.
1852
+
1853
+ If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
1854
+
1855
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
1856
+ :param int count: Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
1857
+ :param str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
1858
+
1859
+ A class is required. Which classes are available depends on the cluster.
1860
+
1861
+ Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
1862
+ :param str name: Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1863
+
1864
+ Must be a DNS label.
1865
+ :param Sequence['DeviceSelectorPatchArgs'] selectors: Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
1866
+ """
1867
+ if admin_access is not None:
1868
+ pulumi.set(__self__, "admin_access", admin_access)
1869
+ if allocation_mode is not None:
1870
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
1871
+ if count is not None:
1872
+ pulumi.set(__self__, "count", count)
1873
+ if device_class_name is not None:
1874
+ pulumi.set(__self__, "device_class_name", device_class_name)
1875
+ if name is not None:
1876
+ pulumi.set(__self__, "name", name)
1877
+ if selectors is not None:
1878
+ pulumi.set(__self__, "selectors", selectors)
1879
+
1880
+ @property
1881
+ @pulumi.getter(name="adminAccess")
1882
+ def admin_access(self) -> Optional[bool]:
1883
+ """
1884
+ AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
1885
+
1886
+ This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
1887
+ """
1888
+ return pulumi.get(self, "admin_access")
1889
+
1890
+ @property
1891
+ @pulumi.getter(name="allocationMode")
1892
+ def allocation_mode(self) -> Optional[str]:
1893
+ """
1894
+ AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
1895
+
1896
+ - ExactCount: This request is for a specific number of devices.
1897
+ This is the default. The exact number is provided in the
1898
+ count field.
1899
+
1900
+ - All: This request is for all of the matching devices in a pool.
1901
+ Allocation will fail if some devices are already allocated,
1902
+ unless adminAccess is requested.
1903
+
1904
+ If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
1905
+
1906
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
1907
+ """
1908
+ return pulumi.get(self, "allocation_mode")
1909
+
1910
+ @property
1911
+ @pulumi.getter
1912
+ def count(self) -> Optional[int]:
1913
+ """
1914
+ Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
1915
+ """
1916
+ return pulumi.get(self, "count")
1917
+
1918
+ @property
1919
+ @pulumi.getter(name="deviceClassName")
1920
+ def device_class_name(self) -> Optional[str]:
1921
+ """
1922
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
1923
+
1924
+ A class is required. Which classes are available depends on the cluster.
1925
+
1926
+ Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
1927
+ """
1928
+ return pulumi.get(self, "device_class_name")
1929
+
1930
+ @property
1931
+ @pulumi.getter
1932
+ def name(self) -> Optional[str]:
1933
+ """
1934
+ Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1935
+
1936
+ Must be a DNS label.
1937
+ """
1938
+ return pulumi.get(self, "name")
1939
+
1940
+ @property
1941
+ @pulumi.getter
1942
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
1943
+ """
1944
+ Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
1945
+ """
1946
+ return pulumi.get(self, "selectors")
1947
+
1948
+
1949
+ @pulumi.output_type
1950
+ class DeviceSelector(dict):
1951
+ """
1952
+ DeviceSelector must have exactly one field set.
1953
+ """
1954
+ def __init__(__self__, *,
1955
+ cel: Optional['outputs.CELDeviceSelector'] = None):
1956
+ """
1957
+ DeviceSelector must have exactly one field set.
1958
+ :param 'CELDeviceSelectorArgs' cel: CEL contains a CEL expression for selecting a device.
1959
+ """
1960
+ if cel is not None:
1961
+ pulumi.set(__self__, "cel", cel)
1962
+
1963
+ @property
1964
+ @pulumi.getter
1965
+ def cel(self) -> Optional['outputs.CELDeviceSelector']:
1966
+ """
1967
+ CEL contains a CEL expression for selecting a device.
1968
+ """
1969
+ return pulumi.get(self, "cel")
1970
+
1971
+
1972
+ @pulumi.output_type
1973
+ class DeviceSelectorPatch(dict):
1974
+ """
1975
+ DeviceSelector must have exactly one field set.
1976
+ """
1977
+ def __init__(__self__, *,
1978
+ cel: Optional['outputs.CELDeviceSelectorPatch'] = None):
1979
+ """
1980
+ DeviceSelector must have exactly one field set.
1981
+ :param 'CELDeviceSelectorPatchArgs' cel: CEL contains a CEL expression for selecting a device.
1982
+ """
1983
+ if cel is not None:
1984
+ pulumi.set(__self__, "cel", cel)
1985
+
1986
+ @property
1987
+ @pulumi.getter
1988
+ def cel(self) -> Optional['outputs.CELDeviceSelectorPatch']:
1989
+ """
1990
+ CEL contains a CEL expression for selecting a device.
1991
+ """
1992
+ return pulumi.get(self, "cel")
1993
+
1994
+
1995
+ @pulumi.output_type
1996
+ class NetworkDeviceData(dict):
1997
+ """
1998
+ NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
1999
+ """
2000
+ @staticmethod
2001
+ def __key_warning(key: str):
2002
+ suggest = None
2003
+ if key == "hardwareAddress":
2004
+ suggest = "hardware_address"
2005
+ elif key == "interfaceName":
2006
+ suggest = "interface_name"
2007
+
2008
+ if suggest:
2009
+ pulumi.log.warn(f"Key '{key}' not found in NetworkDeviceData. Access the value via the '{suggest}' property getter instead.")
2010
+
2011
+ def __getitem__(self, key: str) -> Any:
2012
+ NetworkDeviceData.__key_warning(key)
2013
+ return super().__getitem__(key)
2014
+
2015
+ def get(self, key: str, default = None) -> Any:
2016
+ NetworkDeviceData.__key_warning(key)
2017
+ return super().get(key, default)
2018
+
2019
+ def __init__(__self__, *,
2020
+ hardware_address: Optional[str] = None,
2021
+ interface_name: Optional[str] = None,
2022
+ ips: Optional[Sequence[str]] = None):
2023
+ """
2024
+ NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
2025
+ :param str hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
2026
+
2027
+ Must not be longer than 128 characters.
2028
+ :param str interface_name: 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.
2029
+
2030
+ Must not be longer than 256 characters.
2031
+ :param Sequence[str] ips: 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.
2032
+ """
2033
+ if hardware_address is not None:
2034
+ pulumi.set(__self__, "hardware_address", hardware_address)
2035
+ if interface_name is not None:
2036
+ pulumi.set(__self__, "interface_name", interface_name)
2037
+ if ips is not None:
2038
+ pulumi.set(__self__, "ips", ips)
2039
+
2040
+ @property
2041
+ @pulumi.getter(name="hardwareAddress")
2042
+ def hardware_address(self) -> Optional[str]:
2043
+ """
2044
+ HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
2045
+
2046
+ Must not be longer than 128 characters.
2047
+ """
2048
+ return pulumi.get(self, "hardware_address")
2049
+
2050
+ @property
2051
+ @pulumi.getter(name="interfaceName")
2052
+ def interface_name(self) -> Optional[str]:
2053
+ """
2054
+ 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.
2055
+
2056
+ Must not be longer than 256 characters.
2057
+ """
2058
+ return pulumi.get(self, "interface_name")
2059
+
2060
+ @property
2061
+ @pulumi.getter
2062
+ def ips(self) -> Optional[Sequence[str]]:
2063
+ """
2064
+ 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.
2065
+ """
2066
+ return pulumi.get(self, "ips")
2067
+
2068
+
2069
+ @pulumi.output_type
2070
+ class NetworkDeviceDataPatch(dict):
2071
+ """
2072
+ NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
2073
+ """
2074
+ @staticmethod
2075
+ def __key_warning(key: str):
2076
+ suggest = None
2077
+ if key == "hardwareAddress":
2078
+ suggest = "hardware_address"
2079
+ elif key == "interfaceName":
2080
+ suggest = "interface_name"
2081
+
2082
+ if suggest:
2083
+ pulumi.log.warn(f"Key '{key}' not found in NetworkDeviceDataPatch. Access the value via the '{suggest}' property getter instead.")
2084
+
2085
+ def __getitem__(self, key: str) -> Any:
2086
+ NetworkDeviceDataPatch.__key_warning(key)
2087
+ return super().__getitem__(key)
2088
+
2089
+ def get(self, key: str, default = None) -> Any:
2090
+ NetworkDeviceDataPatch.__key_warning(key)
2091
+ return super().get(key, default)
2092
+
2093
+ def __init__(__self__, *,
2094
+ hardware_address: Optional[str] = None,
2095
+ interface_name: Optional[str] = None,
2096
+ ips: Optional[Sequence[str]] = None):
2097
+ """
2098
+ NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
2099
+ :param str hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
2100
+
2101
+ Must not be longer than 128 characters.
2102
+ :param str interface_name: 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.
2103
+
2104
+ Must not be longer than 256 characters.
2105
+ :param Sequence[str] ips: 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.
2106
+ """
2107
+ if hardware_address is not None:
2108
+ pulumi.set(__self__, "hardware_address", hardware_address)
2109
+ if interface_name is not None:
2110
+ pulumi.set(__self__, "interface_name", interface_name)
2111
+ if ips is not None:
2112
+ pulumi.set(__self__, "ips", ips)
2113
+
2114
+ @property
2115
+ @pulumi.getter(name="hardwareAddress")
2116
+ def hardware_address(self) -> Optional[str]:
2117
+ """
2118
+ HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
2119
+
2120
+ Must not be longer than 128 characters.
2121
+ """
2122
+ return pulumi.get(self, "hardware_address")
2123
+
2124
+ @property
2125
+ @pulumi.getter(name="interfaceName")
2126
+ def interface_name(self) -> Optional[str]:
2127
+ """
2128
+ 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.
2129
+
2130
+ Must not be longer than 256 characters.
2131
+ """
2132
+ return pulumi.get(self, "interface_name")
2133
+
2134
+ @property
2135
+ @pulumi.getter
2136
+ def ips(self) -> Optional[Sequence[str]]:
2137
+ """
2138
+ 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.
2139
+ """
2140
+ return pulumi.get(self, "ips")
2141
+
2142
+
2143
+ @pulumi.output_type
2144
+ class OpaqueDeviceConfiguration(dict):
2145
+ """
2146
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
2147
+ """
2148
+ def __init__(__self__, *,
2149
+ driver: str,
2150
+ parameters: Any):
2151
+ """
2152
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
2153
+ :param str driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
2154
+
2155
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
2156
+
2157
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2158
+ :param Any parameters: Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
2159
+
2160
+ The length of the raw data must be smaller or equal to 10 Ki.
2161
+ """
2162
+ pulumi.set(__self__, "driver", driver)
2163
+ pulumi.set(__self__, "parameters", parameters)
2164
+
2165
+ @property
2166
+ @pulumi.getter
2167
+ def driver(self) -> str:
2168
+ """
2169
+ Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
2170
+
2171
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
2172
+
2173
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2174
+ """
2175
+ return pulumi.get(self, "driver")
2176
+
2177
+ @property
2178
+ @pulumi.getter
2179
+ def parameters(self) -> Any:
2180
+ """
2181
+ Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
2182
+
2183
+ The length of the raw data must be smaller or equal to 10 Ki.
2184
+ """
2185
+ return pulumi.get(self, "parameters")
2186
+
2187
+
2188
+ @pulumi.output_type
2189
+ class OpaqueDeviceConfigurationPatch(dict):
2190
+ """
2191
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
2192
+ """
2193
+ def __init__(__self__, *,
2194
+ driver: Optional[str] = None,
2195
+ parameters: Optional[Any] = None):
2196
+ """
2197
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
2198
+ :param str driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
2199
+
2200
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
2201
+
2202
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2203
+ :param Any parameters: Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
2204
+
2205
+ The length of the raw data must be smaller or equal to 10 Ki.
2206
+ """
2207
+ if driver is not None:
2208
+ pulumi.set(__self__, "driver", driver)
2209
+ if parameters is not None:
2210
+ pulumi.set(__self__, "parameters", parameters)
2211
+
2212
+ @property
2213
+ @pulumi.getter
2214
+ def driver(self) -> Optional[str]:
2215
+ """
2216
+ Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
2217
+
2218
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
2219
+
2220
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2221
+ """
2222
+ return pulumi.get(self, "driver")
2223
+
2224
+ @property
2225
+ @pulumi.getter
2226
+ def parameters(self) -> Optional[Any]:
2227
+ """
2228
+ Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
2229
+
2230
+ The length of the raw data must be smaller or equal to 10 Ki.
2231
+ """
2232
+ return pulumi.get(self, "parameters")
2233
+
2234
+
2235
+ @pulumi.output_type
2236
+ class ResourceClaim(dict):
2237
+ """
2238
+ ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.
2239
+
2240
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
2241
+ """
2242
+ @staticmethod
2243
+ def __key_warning(key: str):
2244
+ suggest = None
2245
+ if key == "apiVersion":
2246
+ suggest = "api_version"
2247
+
2248
+ if suggest:
2249
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaim. Access the value via the '{suggest}' property getter instead.")
2250
+
2251
+ def __getitem__(self, key: str) -> Any:
2252
+ ResourceClaim.__key_warning(key)
2253
+ return super().__getitem__(key)
2254
+
2255
+ def get(self, key: str, default = None) -> Any:
2256
+ ResourceClaim.__key_warning(key)
2257
+ return super().get(key, default)
2258
+
2259
+ def __init__(__self__, *,
2260
+ spec: 'outputs.ResourceClaimSpec',
2261
+ api_version: Optional[str] = None,
2262
+ kind: Optional[str] = None,
2263
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
2264
+ status: Optional['outputs.ResourceClaimStatus'] = None):
2265
+ """
2266
+ ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.
2267
+
2268
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
2269
+ :param 'ResourceClaimSpecArgs' spec: Spec describes what is being requested and how to configure it. The spec is immutable.
2270
+ :param str api_version: 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
2271
+ :param str kind: 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
2272
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
2273
+ :param 'ResourceClaimStatusArgs' status: Status describes whether the claim is ready to use and what has been allocated.
2274
+ """
2275
+ pulumi.set(__self__, "spec", spec)
2276
+ if api_version is not None:
2277
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
2278
+ if kind is not None:
2279
+ pulumi.set(__self__, "kind", 'ResourceClaim')
2280
+ if metadata is not None:
2281
+ pulumi.set(__self__, "metadata", metadata)
2282
+ if status is not None:
2283
+ pulumi.set(__self__, "status", status)
2284
+
2285
+ @property
2286
+ @pulumi.getter
2287
+ def spec(self) -> 'outputs.ResourceClaimSpec':
2288
+ """
2289
+ Spec describes what is being requested and how to configure it. The spec is immutable.
2290
+ """
2291
+ return pulumi.get(self, "spec")
2292
+
2293
+ @property
2294
+ @pulumi.getter(name="apiVersion")
2295
+ def api_version(self) -> Optional[str]:
2296
+ """
2297
+ 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
2298
+ """
2299
+ return pulumi.get(self, "api_version")
2300
+
2301
+ @property
2302
+ @pulumi.getter
2303
+ def kind(self) -> Optional[str]:
2304
+ """
2305
+ 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
2306
+ """
2307
+ return pulumi.get(self, "kind")
2308
+
2309
+ @property
2310
+ @pulumi.getter
2311
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
2312
+ """
2313
+ Standard object metadata
2314
+ """
2315
+ return pulumi.get(self, "metadata")
2316
+
2317
+ @property
2318
+ @pulumi.getter
2319
+ def status(self) -> Optional['outputs.ResourceClaimStatus']:
2320
+ """
2321
+ Status describes whether the claim is ready to use and what has been allocated.
2322
+ """
2323
+ return pulumi.get(self, "status")
2324
+
2325
+
2326
+ @pulumi.output_type
2327
+ class ResourceClaimConsumerReference(dict):
2328
+ """
2329
+ ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
2330
+ """
2331
+ @staticmethod
2332
+ def __key_warning(key: str):
2333
+ suggest = None
2334
+ if key == "apiGroup":
2335
+ suggest = "api_group"
2336
+
2337
+ if suggest:
2338
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReference. Access the value via the '{suggest}' property getter instead.")
2339
+
2340
+ def __getitem__(self, key: str) -> Any:
2341
+ ResourceClaimConsumerReference.__key_warning(key)
2342
+ return super().__getitem__(key)
2343
+
2344
+ def get(self, key: str, default = None) -> Any:
2345
+ ResourceClaimConsumerReference.__key_warning(key)
2346
+ return super().get(key, default)
2347
+
2348
+ def __init__(__self__, *,
2349
+ name: str,
2350
+ resource: str,
2351
+ uid: str,
2352
+ api_group: Optional[str] = None):
2353
+ """
2354
+ ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
2355
+ :param str name: Name is the name of resource being referenced.
2356
+ :param str resource: Resource is the type of resource being referenced, for example "pods".
2357
+ :param str uid: UID identifies exactly one incarnation of the resource.
2358
+ :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
2359
+ """
2360
+ pulumi.set(__self__, "name", name)
2361
+ pulumi.set(__self__, "resource", resource)
2362
+ pulumi.set(__self__, "uid", uid)
2363
+ if api_group is not None:
2364
+ pulumi.set(__self__, "api_group", api_group)
2365
+
2366
+ @property
2367
+ @pulumi.getter
2368
+ def name(self) -> str:
2369
+ """
2370
+ Name is the name of resource being referenced.
2371
+ """
2372
+ return pulumi.get(self, "name")
2373
+
2374
+ @property
2375
+ @pulumi.getter
2376
+ def resource(self) -> str:
2377
+ """
2378
+ Resource is the type of resource being referenced, for example "pods".
2379
+ """
2380
+ return pulumi.get(self, "resource")
2381
+
2382
+ @property
2383
+ @pulumi.getter
2384
+ def uid(self) -> str:
2385
+ """
2386
+ UID identifies exactly one incarnation of the resource.
2387
+ """
2388
+ return pulumi.get(self, "uid")
2389
+
2390
+ @property
2391
+ @pulumi.getter(name="apiGroup")
2392
+ def api_group(self) -> Optional[str]:
2393
+ """
2394
+ APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
2395
+ """
2396
+ return pulumi.get(self, "api_group")
2397
+
2398
+
2399
+ @pulumi.output_type
2400
+ class ResourceClaimConsumerReferencePatch(dict):
2401
+ """
2402
+ ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
2403
+ """
2404
+ @staticmethod
2405
+ def __key_warning(key: str):
2406
+ suggest = None
2407
+ if key == "apiGroup":
2408
+ suggest = "api_group"
2409
+
2410
+ if suggest:
2411
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReferencePatch. Access the value via the '{suggest}' property getter instead.")
2412
+
2413
+ def __getitem__(self, key: str) -> Any:
2414
+ ResourceClaimConsumerReferencePatch.__key_warning(key)
2415
+ return super().__getitem__(key)
2416
+
2417
+ def get(self, key: str, default = None) -> Any:
2418
+ ResourceClaimConsumerReferencePatch.__key_warning(key)
2419
+ return super().get(key, default)
2420
+
2421
+ def __init__(__self__, *,
2422
+ api_group: Optional[str] = None,
2423
+ name: Optional[str] = None,
2424
+ resource: Optional[str] = None,
2425
+ uid: Optional[str] = None):
2426
+ """
2427
+ ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
2428
+ :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
2429
+ :param str name: Name is the name of resource being referenced.
2430
+ :param str resource: Resource is the type of resource being referenced, for example "pods".
2431
+ :param str uid: UID identifies exactly one incarnation of the resource.
2432
+ """
2433
+ if api_group is not None:
2434
+ pulumi.set(__self__, "api_group", api_group)
2435
+ if name is not None:
2436
+ pulumi.set(__self__, "name", name)
2437
+ if resource is not None:
2438
+ pulumi.set(__self__, "resource", resource)
2439
+ if uid is not None:
2440
+ pulumi.set(__self__, "uid", uid)
2441
+
2442
+ @property
2443
+ @pulumi.getter(name="apiGroup")
2444
+ def api_group(self) -> Optional[str]:
2445
+ """
2446
+ APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
2447
+ """
2448
+ return pulumi.get(self, "api_group")
2449
+
2450
+ @property
2451
+ @pulumi.getter
2452
+ def name(self) -> Optional[str]:
2453
+ """
2454
+ Name is the name of resource being referenced.
2455
+ """
2456
+ return pulumi.get(self, "name")
2457
+
2458
+ @property
2459
+ @pulumi.getter
2460
+ def resource(self) -> Optional[str]:
2461
+ """
2462
+ Resource is the type of resource being referenced, for example "pods".
2463
+ """
2464
+ return pulumi.get(self, "resource")
2465
+
2466
+ @property
2467
+ @pulumi.getter
2468
+ def uid(self) -> Optional[str]:
2469
+ """
2470
+ UID identifies exactly one incarnation of the resource.
2471
+ """
2472
+ return pulumi.get(self, "uid")
2473
+
2474
+
2475
+ @pulumi.output_type
2476
+ class ResourceClaimSpec(dict):
2477
+ """
2478
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
2479
+ """
2480
+ def __init__(__self__, *,
2481
+ devices: Optional['outputs.DeviceClaim'] = None):
2482
+ """
2483
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
2484
+ :param 'DeviceClaimArgs' devices: Devices defines how to request devices.
2485
+ """
2486
+ if devices is not None:
2487
+ pulumi.set(__self__, "devices", devices)
2488
+
2489
+ @property
2490
+ @pulumi.getter
2491
+ def devices(self) -> Optional['outputs.DeviceClaim']:
2492
+ """
2493
+ Devices defines how to request devices.
2494
+ """
2495
+ return pulumi.get(self, "devices")
2496
+
2497
+
2498
+ @pulumi.output_type
2499
+ class ResourceClaimSpecPatch(dict):
2500
+ """
2501
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
2502
+ """
2503
+ def __init__(__self__, *,
2504
+ devices: Optional['outputs.DeviceClaimPatch'] = None):
2505
+ """
2506
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
2507
+ :param 'DeviceClaimPatchArgs' devices: Devices defines how to request devices.
2508
+ """
2509
+ if devices is not None:
2510
+ pulumi.set(__self__, "devices", devices)
2511
+
2512
+ @property
2513
+ @pulumi.getter
2514
+ def devices(self) -> Optional['outputs.DeviceClaimPatch']:
2515
+ """
2516
+ Devices defines how to request devices.
2517
+ """
2518
+ return pulumi.get(self, "devices")
2519
+
2520
+
2521
+ @pulumi.output_type
2522
+ class ResourceClaimStatus(dict):
2523
+ """
2524
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
2525
+ """
2526
+ @staticmethod
2527
+ def __key_warning(key: str):
2528
+ suggest = None
2529
+ if key == "reservedFor":
2530
+ suggest = "reserved_for"
2531
+
2532
+ if suggest:
2533
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatus. Access the value via the '{suggest}' property getter instead.")
2534
+
2535
+ def __getitem__(self, key: str) -> Any:
2536
+ ResourceClaimStatus.__key_warning(key)
2537
+ return super().__getitem__(key)
2538
+
2539
+ def get(self, key: str, default = None) -> Any:
2540
+ ResourceClaimStatus.__key_warning(key)
2541
+ return super().get(key, default)
2542
+
2543
+ def __init__(__self__, *,
2544
+ allocation: Optional['outputs.AllocationResult'] = None,
2545
+ devices: Optional[Sequence['outputs.AllocatedDeviceStatus']] = None,
2546
+ reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReference']] = None):
2547
+ """
2548
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
2549
+ :param 'AllocationResultArgs' allocation: Allocation is set once the claim has been allocated successfully.
2550
+ :param Sequence['AllocatedDeviceStatusArgs'] devices: Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
2551
+ :param Sequence['ResourceClaimConsumerReferenceArgs'] reserved_for: ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
2552
+
2553
+ In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
2554
+
2555
+ Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
2556
+
2557
+ There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2558
+ """
2559
+ if allocation is not None:
2560
+ pulumi.set(__self__, "allocation", allocation)
2561
+ if devices is not None:
2562
+ pulumi.set(__self__, "devices", devices)
2563
+ if reserved_for is not None:
2564
+ pulumi.set(__self__, "reserved_for", reserved_for)
2565
+
2566
+ @property
2567
+ @pulumi.getter
2568
+ def allocation(self) -> Optional['outputs.AllocationResult']:
2569
+ """
2570
+ Allocation is set once the claim has been allocated successfully.
2571
+ """
2572
+ return pulumi.get(self, "allocation")
2573
+
2574
+ @property
2575
+ @pulumi.getter
2576
+ def devices(self) -> Optional[Sequence['outputs.AllocatedDeviceStatus']]:
2577
+ """
2578
+ Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
2579
+ """
2580
+ return pulumi.get(self, "devices")
2581
+
2582
+ @property
2583
+ @pulumi.getter(name="reservedFor")
2584
+ def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReference']]:
2585
+ """
2586
+ ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
2587
+
2588
+ In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
2589
+
2590
+ Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
2591
+
2592
+ There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2593
+ """
2594
+ return pulumi.get(self, "reserved_for")
2595
+
2596
+
2597
+ @pulumi.output_type
2598
+ class ResourceClaimStatusPatch(dict):
2599
+ """
2600
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
2601
+ """
2602
+ @staticmethod
2603
+ def __key_warning(key: str):
2604
+ suggest = None
2605
+ if key == "reservedFor":
2606
+ suggest = "reserved_for"
2607
+
2608
+ if suggest:
2609
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatusPatch. Access the value via the '{suggest}' property getter instead.")
2610
+
2611
+ def __getitem__(self, key: str) -> Any:
2612
+ ResourceClaimStatusPatch.__key_warning(key)
2613
+ return super().__getitem__(key)
2614
+
2615
+ def get(self, key: str, default = None) -> Any:
2616
+ ResourceClaimStatusPatch.__key_warning(key)
2617
+ return super().get(key, default)
2618
+
2619
+ def __init__(__self__, *,
2620
+ allocation: Optional['outputs.AllocationResultPatch'] = None,
2621
+ devices: Optional[Sequence['outputs.AllocatedDeviceStatusPatch']] = None,
2622
+ reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']] = None):
2623
+ """
2624
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
2625
+ :param 'AllocationResultPatchArgs' allocation: Allocation is set once the claim has been allocated successfully.
2626
+ :param Sequence['AllocatedDeviceStatusPatchArgs'] devices: Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
2627
+ :param Sequence['ResourceClaimConsumerReferencePatchArgs'] reserved_for: ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
2628
+
2629
+ In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
2630
+
2631
+ Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
2632
+
2633
+ There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2634
+ """
2635
+ if allocation is not None:
2636
+ pulumi.set(__self__, "allocation", allocation)
2637
+ if devices is not None:
2638
+ pulumi.set(__self__, "devices", devices)
2639
+ if reserved_for is not None:
2640
+ pulumi.set(__self__, "reserved_for", reserved_for)
2641
+
2642
+ @property
2643
+ @pulumi.getter
2644
+ def allocation(self) -> Optional['outputs.AllocationResultPatch']:
2645
+ """
2646
+ Allocation is set once the claim has been allocated successfully.
2647
+ """
2648
+ return pulumi.get(self, "allocation")
2649
+
2650
+ @property
2651
+ @pulumi.getter
2652
+ def devices(self) -> Optional[Sequence['outputs.AllocatedDeviceStatusPatch']]:
2653
+ """
2654
+ Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
2655
+ """
2656
+ return pulumi.get(self, "devices")
2657
+
2658
+ @property
2659
+ @pulumi.getter(name="reservedFor")
2660
+ def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']]:
2661
+ """
2662
+ ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
2663
+
2664
+ In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
2665
+
2666
+ Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
2667
+
2668
+ There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2669
+ """
2670
+ return pulumi.get(self, "reserved_for")
2671
+
2672
+
2673
+ @pulumi.output_type
2674
+ class ResourceClaimTemplate(dict):
2675
+ """
2676
+ ResourceClaimTemplate is used to produce ResourceClaim objects.
2677
+
2678
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
2679
+ """
2680
+ @staticmethod
2681
+ def __key_warning(key: str):
2682
+ suggest = None
2683
+ if key == "apiVersion":
2684
+ suggest = "api_version"
2685
+
2686
+ if suggest:
2687
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimTemplate. Access the value via the '{suggest}' property getter instead.")
2688
+
2689
+ def __getitem__(self, key: str) -> Any:
2690
+ ResourceClaimTemplate.__key_warning(key)
2691
+ return super().__getitem__(key)
2692
+
2693
+ def get(self, key: str, default = None) -> Any:
2694
+ ResourceClaimTemplate.__key_warning(key)
2695
+ return super().get(key, default)
2696
+
2697
+ def __init__(__self__, *,
2698
+ spec: 'outputs.ResourceClaimTemplateSpec',
2699
+ api_version: Optional[str] = None,
2700
+ kind: Optional[str] = None,
2701
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
2702
+ """
2703
+ ResourceClaimTemplate is used to produce ResourceClaim objects.
2704
+
2705
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
2706
+ :param 'ResourceClaimTemplateSpecArgs' spec: Describes the ResourceClaim that is to be generated.
2707
+
2708
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
2709
+ :param str api_version: 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
2710
+ :param str kind: 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
2711
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
2712
+ """
2713
+ pulumi.set(__self__, "spec", spec)
2714
+ if api_version is not None:
2715
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
2716
+ if kind is not None:
2717
+ pulumi.set(__self__, "kind", 'ResourceClaimTemplate')
2718
+ if metadata is not None:
2719
+ pulumi.set(__self__, "metadata", metadata)
2720
+
2721
+ @property
2722
+ @pulumi.getter
2723
+ def spec(self) -> 'outputs.ResourceClaimTemplateSpec':
2724
+ """
2725
+ Describes the ResourceClaim that is to be generated.
2726
+
2727
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
2728
+ """
2729
+ return pulumi.get(self, "spec")
2730
+
2731
+ @property
2732
+ @pulumi.getter(name="apiVersion")
2733
+ def api_version(self) -> Optional[str]:
2734
+ """
2735
+ 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
2736
+ """
2737
+ return pulumi.get(self, "api_version")
2738
+
2739
+ @property
2740
+ @pulumi.getter
2741
+ def kind(self) -> Optional[str]:
2742
+ """
2743
+ 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
2744
+ """
2745
+ return pulumi.get(self, "kind")
2746
+
2747
+ @property
2748
+ @pulumi.getter
2749
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
2750
+ """
2751
+ Standard object metadata
2752
+ """
2753
+ return pulumi.get(self, "metadata")
2754
+
2755
+
2756
+ @pulumi.output_type
2757
+ class ResourceClaimTemplateSpec(dict):
2758
+ """
2759
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
2760
+ """
2761
+ def __init__(__self__, *,
2762
+ spec: 'outputs.ResourceClaimSpec',
2763
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
2764
+ """
2765
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
2766
+ :param 'ResourceClaimSpecArgs' spec: Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
2767
+ :param '_meta.v1.ObjectMetaArgs' metadata: ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.
2768
+ """
2769
+ pulumi.set(__self__, "spec", spec)
2770
+ if metadata is not None:
2771
+ pulumi.set(__self__, "metadata", metadata)
2772
+
2773
+ @property
2774
+ @pulumi.getter
2775
+ def spec(self) -> 'outputs.ResourceClaimSpec':
2776
+ """
2777
+ Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
2778
+ """
2779
+ return pulumi.get(self, "spec")
2780
+
2781
+ @property
2782
+ @pulumi.getter
2783
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
2784
+ """
2785
+ ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.
2786
+ """
2787
+ return pulumi.get(self, "metadata")
2788
+
2789
+
2790
+ @pulumi.output_type
2791
+ class ResourceClaimTemplateSpecPatch(dict):
2792
+ """
2793
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
2794
+ """
2795
+ def __init__(__self__, *,
2796
+ metadata: Optional['_meta.v1.outputs.ObjectMetaPatch'] = None,
2797
+ spec: Optional['outputs.ResourceClaimSpecPatch'] = None):
2798
+ """
2799
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
2800
+ :param '_meta.v1.ObjectMetaPatchArgs' metadata: ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.
2801
+ :param 'ResourceClaimSpecPatchArgs' spec: Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
2802
+ """
2803
+ if metadata is not None:
2804
+ pulumi.set(__self__, "metadata", metadata)
2805
+ if spec is not None:
2806
+ pulumi.set(__self__, "spec", spec)
2807
+
2808
+ @property
2809
+ @pulumi.getter
2810
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMetaPatch']:
2811
+ """
2812
+ ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.
2813
+ """
2814
+ return pulumi.get(self, "metadata")
2815
+
2816
+ @property
2817
+ @pulumi.getter
2818
+ def spec(self) -> Optional['outputs.ResourceClaimSpecPatch']:
2819
+ """
2820
+ Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
2821
+ """
2822
+ return pulumi.get(self, "spec")
2823
+
2824
+
2825
+ @pulumi.output_type
2826
+ class ResourcePool(dict):
2827
+ """
2828
+ ResourcePool describes the pool that ResourceSlices belong to.
2829
+ """
2830
+ @staticmethod
2831
+ def __key_warning(key: str):
2832
+ suggest = None
2833
+ if key == "resourceSliceCount":
2834
+ suggest = "resource_slice_count"
2835
+
2836
+ if suggest:
2837
+ pulumi.log.warn(f"Key '{key}' not found in ResourcePool. Access the value via the '{suggest}' property getter instead.")
2838
+
2839
+ def __getitem__(self, key: str) -> Any:
2840
+ ResourcePool.__key_warning(key)
2841
+ return super().__getitem__(key)
2842
+
2843
+ def get(self, key: str, default = None) -> Any:
2844
+ ResourcePool.__key_warning(key)
2845
+ return super().get(key, default)
2846
+
2847
+ def __init__(__self__, *,
2848
+ generation: int,
2849
+ name: str,
2850
+ resource_slice_count: int):
2851
+ """
2852
+ ResourcePool describes the pool that ResourceSlices belong to.
2853
+ :param int generation: Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
2854
+
2855
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
2856
+ :param str name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
2857
+
2858
+ It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
2859
+ :param int resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
2860
+
2861
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
2862
+ """
2863
+ pulumi.set(__self__, "generation", generation)
2864
+ pulumi.set(__self__, "name", name)
2865
+ pulumi.set(__self__, "resource_slice_count", resource_slice_count)
2866
+
2867
+ @property
2868
+ @pulumi.getter
2869
+ def generation(self) -> int:
2870
+ """
2871
+ Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
2872
+
2873
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
2874
+ """
2875
+ return pulumi.get(self, "generation")
2876
+
2877
+ @property
2878
+ @pulumi.getter
2879
+ def name(self) -> str:
2880
+ """
2881
+ Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
2882
+
2883
+ It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
2884
+ """
2885
+ return pulumi.get(self, "name")
2886
+
2887
+ @property
2888
+ @pulumi.getter(name="resourceSliceCount")
2889
+ def resource_slice_count(self) -> int:
2890
+ """
2891
+ ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
2892
+
2893
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
2894
+ """
2895
+ return pulumi.get(self, "resource_slice_count")
2896
+
2897
+
2898
+ @pulumi.output_type
2899
+ class ResourcePoolPatch(dict):
2900
+ """
2901
+ ResourcePool describes the pool that ResourceSlices belong to.
2902
+ """
2903
+ @staticmethod
2904
+ def __key_warning(key: str):
2905
+ suggest = None
2906
+ if key == "resourceSliceCount":
2907
+ suggest = "resource_slice_count"
2908
+
2909
+ if suggest:
2910
+ pulumi.log.warn(f"Key '{key}' not found in ResourcePoolPatch. Access the value via the '{suggest}' property getter instead.")
2911
+
2912
+ def __getitem__(self, key: str) -> Any:
2913
+ ResourcePoolPatch.__key_warning(key)
2914
+ return super().__getitem__(key)
2915
+
2916
+ def get(self, key: str, default = None) -> Any:
2917
+ ResourcePoolPatch.__key_warning(key)
2918
+ return super().get(key, default)
2919
+
2920
+ def __init__(__self__, *,
2921
+ generation: Optional[int] = None,
2922
+ name: Optional[str] = None,
2923
+ resource_slice_count: Optional[int] = None):
2924
+ """
2925
+ ResourcePool describes the pool that ResourceSlices belong to.
2926
+ :param int generation: Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
2927
+
2928
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
2929
+ :param str name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
2930
+
2931
+ It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
2932
+ :param int resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
2933
+
2934
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
2935
+ """
2936
+ if generation is not None:
2937
+ pulumi.set(__self__, "generation", generation)
2938
+ if name is not None:
2939
+ pulumi.set(__self__, "name", name)
2940
+ if resource_slice_count is not None:
2941
+ pulumi.set(__self__, "resource_slice_count", resource_slice_count)
2942
+
2943
+ @property
2944
+ @pulumi.getter
2945
+ def generation(self) -> Optional[int]:
2946
+ """
2947
+ Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
2948
+
2949
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
2950
+ """
2951
+ return pulumi.get(self, "generation")
2952
+
2953
+ @property
2954
+ @pulumi.getter
2955
+ def name(self) -> Optional[str]:
2956
+ """
2957
+ Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
2958
+
2959
+ It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
2960
+ """
2961
+ return pulumi.get(self, "name")
2962
+
2963
+ @property
2964
+ @pulumi.getter(name="resourceSliceCount")
2965
+ def resource_slice_count(self) -> Optional[int]:
2966
+ """
2967
+ ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
2968
+
2969
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
2970
+ """
2971
+ return pulumi.get(self, "resource_slice_count")
2972
+
2973
+
2974
+ @pulumi.output_type
2975
+ class ResourceSlice(dict):
2976
+ """
2977
+ ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.
2978
+
2979
+ At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.
2980
+
2981
+ Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.
2982
+
2983
+ When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.
2984
+
2985
+ For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.
2986
+
2987
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
2988
+ """
2989
+ @staticmethod
2990
+ def __key_warning(key: str):
2991
+ suggest = None
2992
+ if key == "apiVersion":
2993
+ suggest = "api_version"
2994
+
2995
+ if suggest:
2996
+ pulumi.log.warn(f"Key '{key}' not found in ResourceSlice. Access the value via the '{suggest}' property getter instead.")
2997
+
2998
+ def __getitem__(self, key: str) -> Any:
2999
+ ResourceSlice.__key_warning(key)
3000
+ return super().__getitem__(key)
3001
+
3002
+ def get(self, key: str, default = None) -> Any:
3003
+ ResourceSlice.__key_warning(key)
3004
+ return super().get(key, default)
3005
+
3006
+ def __init__(__self__, *,
3007
+ spec: 'outputs.ResourceSliceSpec',
3008
+ api_version: Optional[str] = None,
3009
+ kind: Optional[str] = None,
3010
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
3011
+ """
3012
+ ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.
3013
+
3014
+ At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.
3015
+
3016
+ Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.
3017
+
3018
+ When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.
3019
+
3020
+ For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.
3021
+
3022
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3023
+ :param 'ResourceSliceSpecArgs' spec: Contains the information published by the driver.
3024
+
3025
+ Changing the spec automatically increments the metadata.generation number.
3026
+ :param str api_version: 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
3027
+ :param str kind: 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
3028
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
3029
+ """
3030
+ pulumi.set(__self__, "spec", spec)
3031
+ if api_version is not None:
3032
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
3033
+ if kind is not None:
3034
+ pulumi.set(__self__, "kind", 'ResourceSlice')
3035
+ if metadata is not None:
3036
+ pulumi.set(__self__, "metadata", metadata)
3037
+
3038
+ @property
3039
+ @pulumi.getter
3040
+ def spec(self) -> 'outputs.ResourceSliceSpec':
3041
+ """
3042
+ Contains the information published by the driver.
3043
+
3044
+ Changing the spec automatically increments the metadata.generation number.
3045
+ """
3046
+ return pulumi.get(self, "spec")
3047
+
3048
+ @property
3049
+ @pulumi.getter(name="apiVersion")
3050
+ def api_version(self) -> Optional[str]:
3051
+ """
3052
+ 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
3053
+ """
3054
+ return pulumi.get(self, "api_version")
3055
+
3056
+ @property
3057
+ @pulumi.getter
3058
+ def kind(self) -> Optional[str]:
3059
+ """
3060
+ 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
3061
+ """
3062
+ return pulumi.get(self, "kind")
3063
+
3064
+ @property
3065
+ @pulumi.getter
3066
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
3067
+ """
3068
+ Standard object metadata
3069
+ """
3070
+ return pulumi.get(self, "metadata")
3071
+
3072
+
3073
+ @pulumi.output_type
3074
+ class ResourceSliceSpec(dict):
3075
+ """
3076
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
3077
+ """
3078
+ @staticmethod
3079
+ def __key_warning(key: str):
3080
+ suggest = None
3081
+ if key == "allNodes":
3082
+ suggest = "all_nodes"
3083
+ elif key == "nodeName":
3084
+ suggest = "node_name"
3085
+ elif key == "nodeSelector":
3086
+ suggest = "node_selector"
3087
+
3088
+ if suggest:
3089
+ pulumi.log.warn(f"Key '{key}' not found in ResourceSliceSpec. Access the value via the '{suggest}' property getter instead.")
3090
+
3091
+ def __getitem__(self, key: str) -> Any:
3092
+ ResourceSliceSpec.__key_warning(key)
3093
+ return super().__getitem__(key)
3094
+
3095
+ def get(self, key: str, default = None) -> Any:
3096
+ ResourceSliceSpec.__key_warning(key)
3097
+ return super().get(key, default)
3098
+
3099
+ def __init__(__self__, *,
3100
+ driver: str,
3101
+ pool: 'outputs.ResourcePool',
3102
+ all_nodes: Optional[bool] = None,
3103
+ devices: Optional[Sequence['outputs.Device']] = None,
3104
+ node_name: Optional[str] = None,
3105
+ node_selector: Optional['_core.v1.outputs.NodeSelector'] = None):
3106
+ """
3107
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
3108
+ :param str driver: Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
3109
+
3110
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
3111
+ :param 'ResourcePoolArgs' pool: Pool describes the pool that this ResourceSlice belongs to.
3112
+ :param bool all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
3113
+
3114
+ Exactly one of NodeName, NodeSelector and AllNodes must be set.
3115
+ :param Sequence['DeviceArgs'] devices: Devices lists some or all of the devices in this pool.
3116
+
3117
+ Must not have more than 128 entries.
3118
+ :param str node_name: NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
3119
+
3120
+ This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
3121
+
3122
+ Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
3123
+ :param '_core.v1.NodeSelectorArgs' node_selector: NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
3124
+
3125
+ Must use exactly one term.
3126
+
3127
+ Exactly one of NodeName, NodeSelector and AllNodes must be set.
3128
+ """
3129
+ pulumi.set(__self__, "driver", driver)
3130
+ pulumi.set(__self__, "pool", pool)
3131
+ if all_nodes is not None:
3132
+ pulumi.set(__self__, "all_nodes", all_nodes)
3133
+ if devices is not None:
3134
+ pulumi.set(__self__, "devices", devices)
3135
+ if node_name is not None:
3136
+ pulumi.set(__self__, "node_name", node_name)
3137
+ if node_selector is not None:
3138
+ pulumi.set(__self__, "node_selector", node_selector)
3139
+
3140
+ @property
3141
+ @pulumi.getter
3142
+ def driver(self) -> str:
3143
+ """
3144
+ Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
3145
+
3146
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
3147
+ """
3148
+ return pulumi.get(self, "driver")
3149
+
3150
+ @property
3151
+ @pulumi.getter
3152
+ def pool(self) -> 'outputs.ResourcePool':
3153
+ """
3154
+ Pool describes the pool that this ResourceSlice belongs to.
3155
+ """
3156
+ return pulumi.get(self, "pool")
3157
+
3158
+ @property
3159
+ @pulumi.getter(name="allNodes")
3160
+ def all_nodes(self) -> Optional[bool]:
3161
+ """
3162
+ AllNodes indicates that all nodes have access to the resources in the pool.
3163
+
3164
+ Exactly one of NodeName, NodeSelector and AllNodes must be set.
3165
+ """
3166
+ return pulumi.get(self, "all_nodes")
3167
+
3168
+ @property
3169
+ @pulumi.getter
3170
+ def devices(self) -> Optional[Sequence['outputs.Device']]:
3171
+ """
3172
+ Devices lists some or all of the devices in this pool.
3173
+
3174
+ Must not have more than 128 entries.
3175
+ """
3176
+ return pulumi.get(self, "devices")
3177
+
3178
+ @property
3179
+ @pulumi.getter(name="nodeName")
3180
+ def node_name(self) -> Optional[str]:
3181
+ """
3182
+ NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
3183
+
3184
+ This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
3185
+
3186
+ Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
3187
+ """
3188
+ return pulumi.get(self, "node_name")
3189
+
3190
+ @property
3191
+ @pulumi.getter(name="nodeSelector")
3192
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
3193
+ """
3194
+ NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
3195
+
3196
+ Must use exactly one term.
3197
+
3198
+ Exactly one of NodeName, NodeSelector and AllNodes must be set.
3199
+ """
3200
+ return pulumi.get(self, "node_selector")
3201
+
3202
+
3203
+ @pulumi.output_type
3204
+ class ResourceSliceSpecPatch(dict):
3205
+ """
3206
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
3207
+ """
3208
+ @staticmethod
3209
+ def __key_warning(key: str):
3210
+ suggest = None
3211
+ if key == "allNodes":
3212
+ suggest = "all_nodes"
3213
+ elif key == "nodeName":
3214
+ suggest = "node_name"
3215
+ elif key == "nodeSelector":
3216
+ suggest = "node_selector"
3217
+
3218
+ if suggest:
3219
+ pulumi.log.warn(f"Key '{key}' not found in ResourceSliceSpecPatch. Access the value via the '{suggest}' property getter instead.")
3220
+
3221
+ def __getitem__(self, key: str) -> Any:
3222
+ ResourceSliceSpecPatch.__key_warning(key)
3223
+ return super().__getitem__(key)
3224
+
3225
+ def get(self, key: str, default = None) -> Any:
3226
+ ResourceSliceSpecPatch.__key_warning(key)
3227
+ return super().get(key, default)
3228
+
3229
+ def __init__(__self__, *,
3230
+ all_nodes: Optional[bool] = None,
3231
+ devices: Optional[Sequence['outputs.DevicePatch']] = None,
3232
+ driver: Optional[str] = None,
3233
+ node_name: Optional[str] = None,
3234
+ node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None,
3235
+ pool: Optional['outputs.ResourcePoolPatch'] = None):
3236
+ """
3237
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
3238
+ :param bool all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
3239
+
3240
+ Exactly one of NodeName, NodeSelector and AllNodes must be set.
3241
+ :param Sequence['DevicePatchArgs'] devices: Devices lists some or all of the devices in this pool.
3242
+
3243
+ Must not have more than 128 entries.
3244
+ :param str driver: Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
3245
+
3246
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
3247
+ :param str node_name: NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
3248
+
3249
+ This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
3250
+
3251
+ Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
3252
+ :param '_core.v1.NodeSelectorPatchArgs' node_selector: NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
3253
+
3254
+ Must use exactly one term.
3255
+
3256
+ Exactly one of NodeName, NodeSelector and AllNodes must be set.
3257
+ :param 'ResourcePoolPatchArgs' pool: Pool describes the pool that this ResourceSlice belongs to.
3258
+ """
3259
+ if all_nodes is not None:
3260
+ pulumi.set(__self__, "all_nodes", all_nodes)
3261
+ if devices is not None:
3262
+ pulumi.set(__self__, "devices", devices)
3263
+ if driver is not None:
3264
+ pulumi.set(__self__, "driver", driver)
3265
+ if node_name is not None:
3266
+ pulumi.set(__self__, "node_name", node_name)
3267
+ if node_selector is not None:
3268
+ pulumi.set(__self__, "node_selector", node_selector)
3269
+ if pool is not None:
3270
+ pulumi.set(__self__, "pool", pool)
3271
+
3272
+ @property
3273
+ @pulumi.getter(name="allNodes")
3274
+ def all_nodes(self) -> Optional[bool]:
3275
+ """
3276
+ AllNodes indicates that all nodes have access to the resources in the pool.
3277
+
3278
+ Exactly one of NodeName, NodeSelector and AllNodes must be set.
3279
+ """
3280
+ return pulumi.get(self, "all_nodes")
3281
+
3282
+ @property
3283
+ @pulumi.getter
3284
+ def devices(self) -> Optional[Sequence['outputs.DevicePatch']]:
3285
+ """
3286
+ Devices lists some or all of the devices in this pool.
3287
+
3288
+ Must not have more than 128 entries.
3289
+ """
3290
+ return pulumi.get(self, "devices")
3291
+
3292
+ @property
3293
+ @pulumi.getter
3294
+ def driver(self) -> Optional[str]:
3295
+ """
3296
+ Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
3297
+
3298
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
3299
+ """
3300
+ return pulumi.get(self, "driver")
3301
+
3302
+ @property
3303
+ @pulumi.getter(name="nodeName")
3304
+ def node_name(self) -> Optional[str]:
3305
+ """
3306
+ NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
3307
+
3308
+ This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
3309
+
3310
+ Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
3311
+ """
3312
+ return pulumi.get(self, "node_name")
3313
+
3314
+ @property
3315
+ @pulumi.getter(name="nodeSelector")
3316
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
3317
+ """
3318
+ NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
3319
+
3320
+ Must use exactly one term.
3321
+
3322
+ Exactly one of NodeName, NodeSelector and AllNodes must be set.
3323
+ """
3324
+ return pulumi.get(self, "node_selector")
3325
+
3326
+ @property
3327
+ @pulumi.getter
3328
+ def pool(self) -> Optional['outputs.ResourcePoolPatch']:
3329
+ """
3330
+ Pool describes the pool that this ResourceSlice belongs to.
3331
+ """
3332
+ return pulumi.get(self, "pool")
3333
+
3334
+