pulumi-kubernetes 4.17.0a1723576835__py3-none-any.whl → 4.26.0a1769215986__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.
Files changed (703) hide show
  1. pulumi_kubernetes/__init__.py +73 -2
  2. pulumi_kubernetes/_inputs.py +49 -49
  3. pulumi_kubernetes/_utilities.py +9 -5
  4. pulumi_kubernetes/admissionregistration/__init__.py +1 -0
  5. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +26 -25
  6. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +26 -25
  7. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py +26 -25
  8. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicy.py +27 -26
  9. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBinding.py +26 -25
  10. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +26 -25
  11. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingPatch.py +26 -25
  12. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +26 -25
  13. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyPatch.py +27 -26
  14. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +26 -25
  15. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +26 -25
  16. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py +26 -25
  17. pulumi_kubernetes/admissionregistration/v1/__init__.py +1 -0
  18. pulumi_kubernetes/admissionregistration/v1/_inputs.py +721 -721
  19. pulumi_kubernetes/admissionregistration/v1/outputs.py +516 -516
  20. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +215 -0
  21. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +223 -0
  22. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +216 -0
  23. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +235 -0
  24. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +216 -0
  25. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +227 -0
  26. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py +27 -26
  27. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +26 -33
  28. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +26 -25
  29. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +26 -33
  30. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +26 -25
  31. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py +27 -26
  32. pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +7 -0
  33. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +2219 -716
  34. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +1649 -530
  35. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +26 -25
  36. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +26 -25
  37. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py +26 -25
  38. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py +27 -26
  39. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py +26 -25
  40. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +26 -25
  41. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py +26 -25
  42. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +26 -25
  43. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py +27 -26
  44. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +26 -25
  45. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +26 -25
  46. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py +26 -25
  47. pulumi_kubernetes/admissionregistration/v1beta1/__init__.py +1 -0
  48. pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +717 -717
  49. pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +512 -512
  50. pulumi_kubernetes/apiextensions/__init__.py +1 -0
  51. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +27 -26
  52. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +26 -25
  53. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py +27 -26
  54. pulumi_kubernetes/apiextensions/v1/__init__.py +1 -0
  55. pulumi_kubernetes/apiextensions/v1/_inputs.py +912 -912
  56. pulumi_kubernetes/apiextensions/v1/outputs.py +624 -624
  57. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +27 -26
  58. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +26 -25
  59. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py +27 -26
  60. pulumi_kubernetes/apiextensions/v1beta1/__init__.py +1 -0
  61. pulumi_kubernetes/apiextensions/v1beta1/_inputs.py +834 -834
  62. pulumi_kubernetes/apiextensions/v1beta1/outputs.py +572 -572
  63. pulumi_kubernetes/apiregistration/__init__.py +1 -0
  64. pulumi_kubernetes/apiregistration/v1/APIService.py +27 -26
  65. pulumi_kubernetes/apiregistration/v1/APIServiceList.py +26 -25
  66. pulumi_kubernetes/apiregistration/v1/APIServicePatch.py +27 -26
  67. pulumi_kubernetes/apiregistration/v1/__init__.py +1 -0
  68. pulumi_kubernetes/apiregistration/v1/_inputs.py +157 -157
  69. pulumi_kubernetes/apiregistration/v1/outputs.py +128 -128
  70. pulumi_kubernetes/apiregistration/v1beta1/APIService.py +27 -26
  71. pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +26 -25
  72. pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py +27 -26
  73. pulumi_kubernetes/apiregistration/v1beta1/__init__.py +1 -0
  74. pulumi_kubernetes/apiregistration/v1beta1/_inputs.py +157 -157
  75. pulumi_kubernetes/apiregistration/v1beta1/outputs.py +128 -128
  76. pulumi_kubernetes/apps/__init__.py +1 -0
  77. pulumi_kubernetes/apps/v1/ControllerRevision.py +36 -35
  78. pulumi_kubernetes/apps/v1/ControllerRevisionList.py +26 -25
  79. pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py +36 -35
  80. pulumi_kubernetes/apps/v1/DaemonSet.py +27 -26
  81. pulumi_kubernetes/apps/v1/DaemonSetList.py +26 -25
  82. pulumi_kubernetes/apps/v1/DaemonSetPatch.py +27 -26
  83. pulumi_kubernetes/apps/v1/Deployment.py +27 -26
  84. pulumi_kubernetes/apps/v1/DeploymentList.py +26 -25
  85. pulumi_kubernetes/apps/v1/DeploymentPatch.py +27 -26
  86. pulumi_kubernetes/apps/v1/ReplicaSet.py +27 -26
  87. pulumi_kubernetes/apps/v1/ReplicaSetList.py +30 -29
  88. pulumi_kubernetes/apps/v1/ReplicaSetPatch.py +27 -26
  89. pulumi_kubernetes/apps/v1/StatefulSet.py +27 -26
  90. pulumi_kubernetes/apps/v1/StatefulSetList.py +26 -25
  91. pulumi_kubernetes/apps/v1/StatefulSetPatch.py +27 -26
  92. pulumi_kubernetes/apps/v1/__init__.py +1 -0
  93. pulumi_kubernetes/apps/v1/_inputs.py +835 -782
  94. pulumi_kubernetes/apps/v1/outputs.py +806 -733
  95. pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +36 -35
  96. pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +26 -25
  97. pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py +36 -35
  98. pulumi_kubernetes/apps/v1beta1/Deployment.py +27 -26
  99. pulumi_kubernetes/apps/v1beta1/DeploymentList.py +26 -25
  100. pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py +27 -26
  101. pulumi_kubernetes/apps/v1beta1/StatefulSet.py +27 -26
  102. pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +26 -25
  103. pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py +27 -26
  104. pulumi_kubernetes/apps/v1beta1/__init__.py +1 -0
  105. pulumi_kubernetes/apps/v1beta1/_inputs.py +409 -409
  106. pulumi_kubernetes/apps/v1beta1/outputs.py +381 -381
  107. pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +36 -35
  108. pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +26 -25
  109. pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py +36 -35
  110. pulumi_kubernetes/apps/v1beta2/DaemonSet.py +27 -26
  111. pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +26 -25
  112. pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py +27 -26
  113. pulumi_kubernetes/apps/v1beta2/Deployment.py +27 -26
  114. pulumi_kubernetes/apps/v1beta2/DeploymentList.py +26 -25
  115. pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py +27 -26
  116. pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +27 -26
  117. pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +26 -25
  118. pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py +27 -26
  119. pulumi_kubernetes/apps/v1beta2/StatefulSet.py +27 -26
  120. pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +26 -25
  121. pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py +27 -26
  122. pulumi_kubernetes/apps/v1beta2/__init__.py +1 -0
  123. pulumi_kubernetes/apps/v1beta2/_inputs.py +655 -655
  124. pulumi_kubernetes/apps/v1beta2/outputs.py +645 -645
  125. pulumi_kubernetes/auditregistration/__init__.py +1 -0
  126. pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +26 -25
  127. pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +26 -25
  128. pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py +26 -25
  129. pulumi_kubernetes/auditregistration/v1alpha1/__init__.py +1 -0
  130. pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py +145 -145
  131. pulumi_kubernetes/auditregistration/v1alpha1/outputs.py +101 -101
  132. pulumi_kubernetes/autoscaling/__init__.py +1 -0
  133. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +27 -26
  134. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +26 -25
  135. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py +27 -26
  136. pulumi_kubernetes/autoscaling/v1/__init__.py +1 -0
  137. pulumi_kubernetes/autoscaling/v1/_inputs.py +120 -120
  138. pulumi_kubernetes/autoscaling/v1/outputs.py +102 -102
  139. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py +27 -26
  140. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py +26 -25
  141. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py +27 -26
  142. pulumi_kubernetes/autoscaling/v2/__init__.py +1 -0
  143. pulumi_kubernetes/autoscaling/v2/_inputs.py +500 -420
  144. pulumi_kubernetes/autoscaling/v2/outputs.py +438 -382
  145. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +27 -26
  146. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +26 -25
  147. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py +27 -26
  148. pulumi_kubernetes/autoscaling/v2beta1/__init__.py +1 -0
  149. pulumi_kubernetes/autoscaling/v2beta1/_inputs.py +451 -451
  150. pulumi_kubernetes/autoscaling/v2beta1/outputs.py +424 -424
  151. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +27 -26
  152. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +26 -25
  153. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py +27 -26
  154. pulumi_kubernetes/autoscaling/v2beta2/__init__.py +1 -0
  155. pulumi_kubernetes/autoscaling/v2beta2/_inputs.py +398 -398
  156. pulumi_kubernetes/autoscaling/v2beta2/outputs.py +366 -366
  157. pulumi_kubernetes/batch/__init__.py +1 -0
  158. pulumi_kubernetes/batch/v1/CronJob.py +27 -26
  159. pulumi_kubernetes/batch/v1/CronJobList.py +26 -25
  160. pulumi_kubernetes/batch/v1/CronJobPatch.py +27 -26
  161. pulumi_kubernetes/batch/v1/Job.py +27 -26
  162. pulumi_kubernetes/batch/v1/JobList.py +26 -25
  163. pulumi_kubernetes/batch/v1/JobPatch.py +27 -26
  164. pulumi_kubernetes/batch/v1/__init__.py +1 -0
  165. pulumi_kubernetes/batch/v1/_inputs.py +508 -538
  166. pulumi_kubernetes/batch/v1/outputs.py +427 -451
  167. pulumi_kubernetes/batch/v1beta1/CronJob.py +27 -26
  168. pulumi_kubernetes/batch/v1beta1/CronJobList.py +26 -25
  169. pulumi_kubernetes/batch/v1beta1/CronJobPatch.py +27 -26
  170. pulumi_kubernetes/batch/v1beta1/__init__.py +1 -0
  171. pulumi_kubernetes/batch/v1beta1/_inputs.py +101 -101
  172. pulumi_kubernetes/batch/v1beta1/outputs.py +76 -76
  173. pulumi_kubernetes/batch/v2alpha1/CronJob.py +27 -26
  174. pulumi_kubernetes/batch/v2alpha1/CronJobList.py +26 -25
  175. pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py +27 -26
  176. pulumi_kubernetes/batch/v2alpha1/__init__.py +1 -0
  177. pulumi_kubernetes/batch/v2alpha1/_inputs.py +101 -101
  178. pulumi_kubernetes/batch/v2alpha1/outputs.py +76 -76
  179. pulumi_kubernetes/certificates/__init__.py +1 -0
  180. pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +27 -26
  181. pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +26 -25
  182. pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py +27 -26
  183. pulumi_kubernetes/certificates/v1/__init__.py +1 -0
  184. pulumi_kubernetes/certificates/v1/_inputs.py +155 -155
  185. pulumi_kubernetes/certificates/v1/outputs.py +134 -134
  186. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +28 -25
  187. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py +26 -25
  188. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +28 -25
  189. pulumi_kubernetes/certificates/v1alpha1/__init__.py +1 -0
  190. pulumi_kubernetes/certificates/v1alpha1/_inputs.py +39 -39
  191. pulumi_kubernetes/certificates/v1alpha1/outputs.py +27 -27
  192. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +27 -26
  193. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +26 -25
  194. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py +27 -26
  195. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundle.py +226 -0
  196. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundleList.py +216 -0
  197. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundlePatch.py +237 -0
  198. pulumi_kubernetes/certificates/v1beta1/__init__.py +4 -0
  199. pulumi_kubernetes/certificates/v1beta1/_inputs.py +436 -144
  200. pulumi_kubernetes/certificates/v1beta1/outputs.py +369 -128
  201. pulumi_kubernetes/coordination/__init__.py +4 -0
  202. pulumi_kubernetes/coordination/v1/Lease.py +26 -25
  203. pulumi_kubernetes/coordination/v1/LeaseList.py +26 -25
  204. pulumi_kubernetes/coordination/v1/LeasePatch.py +26 -25
  205. pulumi_kubernetes/coordination/v1/__init__.py +1 -0
  206. pulumi_kubernetes/coordination/v1/_inputs.py +99 -99
  207. pulumi_kubernetes/coordination/v1/outputs.py +67 -67
  208. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +28 -25
  209. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +26 -25
  210. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +28 -25
  211. pulumi_kubernetes/coordination/v1alpha1/__init__.py +1 -0
  212. pulumi_kubernetes/coordination/v1alpha1/_inputs.py +87 -87
  213. pulumi_kubernetes/coordination/v1alpha1/outputs.py +59 -59
  214. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +217 -0
  215. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +216 -0
  216. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +229 -0
  217. pulumi_kubernetes/coordination/v1alpha2/__init__.py +13 -0
  218. pulumi_kubernetes/coordination/v1alpha2/_inputs.py +393 -0
  219. pulumi_kubernetes/coordination/v1alpha2/outputs.py +313 -0
  220. pulumi_kubernetes/coordination/v1beta1/Lease.py +26 -25
  221. pulumi_kubernetes/coordination/v1beta1/LeaseCandidate.py +217 -0
  222. pulumi_kubernetes/coordination/v1beta1/LeaseCandidateList.py +216 -0
  223. pulumi_kubernetes/coordination/v1beta1/LeaseCandidatePatch.py +229 -0
  224. pulumi_kubernetes/coordination/v1beta1/LeaseList.py +26 -25
  225. pulumi_kubernetes/coordination/v1beta1/LeasePatch.py +26 -25
  226. pulumi_kubernetes/coordination/v1beta1/__init__.py +4 -0
  227. pulumi_kubernetes/coordination/v1beta1/_inputs.py +446 -75
  228. pulumi_kubernetes/coordination/v1beta1/outputs.py +343 -51
  229. pulumi_kubernetes/core/__init__.py +1 -0
  230. pulumi_kubernetes/core/v1/Binding.py +28 -27
  231. pulumi_kubernetes/core/v1/BindingPatch.py +28 -27
  232. pulumi_kubernetes/core/v1/ConfigMap.py +54 -53
  233. pulumi_kubernetes/core/v1/ConfigMapList.py +26 -25
  234. pulumi_kubernetes/core/v1/ConfigMapPatch.py +54 -53
  235. pulumi_kubernetes/core/v1/Endpoints.py +34 -25
  236. pulumi_kubernetes/core/v1/EndpointsList.py +28 -27
  237. pulumi_kubernetes/core/v1/EndpointsPatch.py +34 -25
  238. pulumi_kubernetes/core/v1/Event.py +132 -131
  239. pulumi_kubernetes/core/v1/EventList.py +26 -25
  240. pulumi_kubernetes/core/v1/EventPatch.py +132 -131
  241. pulumi_kubernetes/core/v1/LimitRange.py +26 -25
  242. pulumi_kubernetes/core/v1/LimitRangeList.py +26 -25
  243. pulumi_kubernetes/core/v1/LimitRangePatch.py +26 -25
  244. pulumi_kubernetes/core/v1/Namespace.py +27 -26
  245. pulumi_kubernetes/core/v1/NamespaceList.py +26 -25
  246. pulumi_kubernetes/core/v1/NamespacePatch.py +27 -26
  247. pulumi_kubernetes/core/v1/Node.py +27 -26
  248. pulumi_kubernetes/core/v1/NodeList.py +26 -25
  249. pulumi_kubernetes/core/v1/NodePatch.py +27 -26
  250. pulumi_kubernetes/core/v1/PersistentVolume.py +27 -26
  251. pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +27 -26
  252. pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +26 -25
  253. pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py +27 -26
  254. pulumi_kubernetes/core/v1/PersistentVolumeList.py +26 -25
  255. pulumi_kubernetes/core/v1/PersistentVolumePatch.py +27 -26
  256. pulumi_kubernetes/core/v1/Pod.py +27 -26
  257. pulumi_kubernetes/core/v1/PodList.py +26 -25
  258. pulumi_kubernetes/core/v1/PodPatch.py +27 -26
  259. pulumi_kubernetes/core/v1/PodTemplate.py +26 -25
  260. pulumi_kubernetes/core/v1/PodTemplateList.py +26 -25
  261. pulumi_kubernetes/core/v1/PodTemplatePatch.py +26 -25
  262. pulumi_kubernetes/core/v1/ReplicationController.py +27 -26
  263. pulumi_kubernetes/core/v1/ReplicationControllerList.py +26 -25
  264. pulumi_kubernetes/core/v1/ReplicationControllerPatch.py +27 -26
  265. pulumi_kubernetes/core/v1/ResourceQuota.py +27 -26
  266. pulumi_kubernetes/core/v1/ResourceQuotaList.py +26 -25
  267. pulumi_kubernetes/core/v1/ResourceQuotaPatch.py +27 -26
  268. pulumi_kubernetes/core/v1/Secret.py +64 -63
  269. pulumi_kubernetes/core/v1/SecretList.py +26 -25
  270. pulumi_kubernetes/core/v1/SecretPatch.py +68 -65
  271. pulumi_kubernetes/core/v1/Service.py +33 -48
  272. pulumi_kubernetes/core/v1/ServiceAccount.py +42 -41
  273. pulumi_kubernetes/core/v1/ServiceAccountList.py +26 -25
  274. pulumi_kubernetes/core/v1/ServiceAccountPatch.py +42 -41
  275. pulumi_kubernetes/core/v1/ServiceList.py +26 -25
  276. pulumi_kubernetes/core/v1/ServicePatch.py +33 -48
  277. pulumi_kubernetes/core/v1/__init__.py +1 -0
  278. pulumi_kubernetes/core/v1/_enums.py +4 -1
  279. pulumi_kubernetes/core/v1/_inputs.py +7862 -7453
  280. pulumi_kubernetes/core/v1/outputs.py +5980 -5608
  281. pulumi_kubernetes/discovery/__init__.py +1 -0
  282. pulumi_kubernetes/discovery/v1/EndpointSlice.py +46 -45
  283. pulumi_kubernetes/discovery/v1/EndpointSliceList.py +26 -25
  284. pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +46 -45
  285. pulumi_kubernetes/discovery/v1/__init__.py +1 -0
  286. pulumi_kubernetes/discovery/v1/_inputs.py +334 -219
  287. pulumi_kubernetes/discovery/v1/outputs.py +224 -149
  288. pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +38 -37
  289. pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +26 -25
  290. pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py +38 -37
  291. pulumi_kubernetes/discovery/v1beta1/__init__.py +1 -0
  292. pulumi_kubernetes/discovery/v1beta1/_inputs.py +158 -158
  293. pulumi_kubernetes/discovery/v1beta1/outputs.py +108 -108
  294. pulumi_kubernetes/events/__init__.py +1 -0
  295. pulumi_kubernetes/events/v1/Event.py +132 -131
  296. pulumi_kubernetes/events/v1/EventList.py +26 -25
  297. pulumi_kubernetes/events/v1/EventPatch.py +132 -131
  298. pulumi_kubernetes/events/v1/__init__.py +1 -0
  299. pulumi_kubernetes/events/v1/_inputs.py +102 -102
  300. pulumi_kubernetes/events/v1/outputs.py +70 -70
  301. pulumi_kubernetes/events/v1beta1/Event.py +132 -131
  302. pulumi_kubernetes/events/v1beta1/EventList.py +26 -25
  303. pulumi_kubernetes/events/v1beta1/EventPatch.py +132 -131
  304. pulumi_kubernetes/events/v1beta1/__init__.py +1 -0
  305. pulumi_kubernetes/events/v1beta1/_inputs.py +114 -114
  306. pulumi_kubernetes/events/v1beta1/outputs.py +78 -78
  307. pulumi_kubernetes/extensions/__init__.py +1 -0
  308. pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +27 -26
  309. pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +26 -25
  310. pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py +27 -26
  311. pulumi_kubernetes/extensions/v1beta1/Deployment.py +27 -26
  312. pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +26 -25
  313. pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py +27 -26
  314. pulumi_kubernetes/extensions/v1beta1/Ingress.py +27 -26
  315. pulumi_kubernetes/extensions/v1beta1/IngressList.py +26 -25
  316. pulumi_kubernetes/extensions/v1beta1/IngressPatch.py +27 -26
  317. pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +26 -25
  318. pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +26 -25
  319. pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py +26 -25
  320. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +26 -25
  321. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +26 -25
  322. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py +26 -25
  323. pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +27 -26
  324. pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +26 -25
  325. pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py +27 -26
  326. pulumi_kubernetes/extensions/v1beta1/__init__.py +1 -0
  327. pulumi_kubernetes/extensions/v1beta1/_inputs.py +1097 -1097
  328. pulumi_kubernetes/extensions/v1beta1/outputs.py +899 -899
  329. pulumi_kubernetes/flowcontrol/__init__.py +1 -0
  330. pulumi_kubernetes/flowcontrol/v1/FlowSchema.py +27 -26
  331. pulumi_kubernetes/flowcontrol/v1/FlowSchemaList.py +26 -25
  332. pulumi_kubernetes/flowcontrol/v1/FlowSchemaPatch.py +27 -26
  333. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfiguration.py +27 -26
  334. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationList.py +26 -25
  335. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationPatch.py +27 -26
  336. pulumi_kubernetes/flowcontrol/v1/__init__.py +1 -0
  337. pulumi_kubernetes/flowcontrol/v1/_inputs.py +419 -419
  338. pulumi_kubernetes/flowcontrol/v1/outputs.py +333 -333
  339. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +27 -26
  340. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +26 -25
  341. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py +27 -26
  342. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +27 -26
  343. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +26 -25
  344. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py +27 -26
  345. pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py +1 -0
  346. pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py +369 -369
  347. pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py +299 -299
  348. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +27 -26
  349. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +26 -25
  350. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py +27 -26
  351. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +27 -26
  352. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +26 -25
  353. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py +27 -26
  354. pulumi_kubernetes/flowcontrol/v1beta1/__init__.py +1 -0
  355. pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py +369 -369
  356. pulumi_kubernetes/flowcontrol/v1beta1/outputs.py +299 -299
  357. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py +27 -26
  358. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py +26 -25
  359. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py +27 -26
  360. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py +27 -26
  361. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py +26 -25
  362. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py +27 -26
  363. pulumi_kubernetes/flowcontrol/v1beta2/__init__.py +1 -0
  364. pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py +419 -419
  365. pulumi_kubernetes/flowcontrol/v1beta2/outputs.py +333 -333
  366. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py +27 -26
  367. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py +26 -25
  368. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py +27 -26
  369. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py +27 -26
  370. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py +26 -25
  371. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py +27 -26
  372. pulumi_kubernetes/flowcontrol/v1beta3/__init__.py +1 -0
  373. pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +431 -431
  374. pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +341 -341
  375. pulumi_kubernetes/helm/__init__.py +1 -0
  376. pulumi_kubernetes/helm/v3/Release.py +317 -316
  377. pulumi_kubernetes/helm/v3/__init__.py +1 -0
  378. pulumi_kubernetes/helm/v3/_inputs.py +39 -39
  379. pulumi_kubernetes/helm/v3/outputs.py +55 -55
  380. pulumi_kubernetes/helm/v4/Chart.py +114 -87
  381. pulumi_kubernetes/helm/v4/__init__.py +1 -0
  382. pulumi_kubernetes/helm/v4/_inputs.py +36 -36
  383. pulumi_kubernetes/kustomize/__init__.py +1 -0
  384. pulumi_kubernetes/kustomize/v2/Directory.py +36 -35
  385. pulumi_kubernetes/kustomize/v2/__init__.py +1 -0
  386. pulumi_kubernetes/meta/__init__.py +1 -0
  387. pulumi_kubernetes/meta/v1/Status.py +58 -57
  388. pulumi_kubernetes/meta/v1/StatusPatch.py +58 -57
  389. pulumi_kubernetes/meta/v1/__init__.py +1 -0
  390. pulumi_kubernetes/meta/v1/_inputs.py +551 -551
  391. pulumi_kubernetes/meta/v1/outputs.py +395 -395
  392. pulumi_kubernetes/networking/__init__.py +1 -0
  393. pulumi_kubernetes/networking/v1/IPAddress.py +217 -0
  394. pulumi_kubernetes/networking/v1/IPAddressList.py +216 -0
  395. pulumi_kubernetes/networking/v1/IPAddressPatch.py +229 -0
  396. pulumi_kubernetes/networking/v1/Ingress.py +27 -26
  397. pulumi_kubernetes/networking/v1/IngressClass.py +26 -25
  398. pulumi_kubernetes/networking/v1/IngressClassList.py +26 -25
  399. pulumi_kubernetes/networking/v1/IngressClassPatch.py +26 -25
  400. pulumi_kubernetes/networking/v1/IngressList.py +26 -25
  401. pulumi_kubernetes/networking/v1/IngressPatch.py +27 -26
  402. pulumi_kubernetes/networking/v1/NetworkPolicy.py +27 -26
  403. pulumi_kubernetes/networking/v1/NetworkPolicyList.py +26 -25
  404. pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py +27 -26
  405. pulumi_kubernetes/networking/v1/ServiceCIDR.py +227 -0
  406. pulumi_kubernetes/networking/v1/ServiceCIDRList.py +216 -0
  407. pulumi_kubernetes/networking/v1/ServiceCIDRPatch.py +239 -0
  408. pulumi_kubernetes/networking/v1/__init__.py +7 -0
  409. pulumi_kubernetes/networking/v1/_inputs.py +970 -371
  410. pulumi_kubernetes/networking/v1/outputs.py +746 -285
  411. pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py +26 -25
  412. pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py +26 -25
  413. pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py +26 -25
  414. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +27 -26
  415. pulumi_kubernetes/networking/v1alpha1/IPAddressList.py +26 -25
  416. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +27 -26
  417. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +28 -27
  418. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRList.py +26 -25
  419. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +28 -27
  420. pulumi_kubernetes/networking/v1alpha1/__init__.py +1 -0
  421. pulumi_kubernetes/networking/v1alpha1/_inputs.py +157 -157
  422. pulumi_kubernetes/networking/v1alpha1/outputs.py +110 -110
  423. pulumi_kubernetes/networking/v1beta1/IPAddress.py +27 -26
  424. pulumi_kubernetes/networking/v1beta1/IPAddressList.py +26 -25
  425. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +27 -26
  426. pulumi_kubernetes/networking/v1beta1/Ingress.py +27 -26
  427. pulumi_kubernetes/networking/v1beta1/IngressClass.py +26 -25
  428. pulumi_kubernetes/networking/v1beta1/IngressClassList.py +26 -25
  429. pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py +26 -25
  430. pulumi_kubernetes/networking/v1beta1/IngressList.py +26 -25
  431. pulumi_kubernetes/networking/v1beta1/IngressPatch.py +27 -26
  432. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +28 -27
  433. pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +26 -25
  434. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +28 -27
  435. pulumi_kubernetes/networking/v1beta1/__init__.py +1 -0
  436. pulumi_kubernetes/networking/v1beta1/_inputs.py +247 -247
  437. pulumi_kubernetes/networking/v1beta1/outputs.py +173 -173
  438. pulumi_kubernetes/node/__init__.py +1 -0
  439. pulumi_kubernetes/node/v1/RuntimeClass.py +38 -37
  440. pulumi_kubernetes/node/v1/RuntimeClassList.py +26 -25
  441. pulumi_kubernetes/node/v1/RuntimeClassPatch.py +38 -37
  442. pulumi_kubernetes/node/v1/__init__.py +1 -0
  443. pulumi_kubernetes/node/v1/_inputs.py +48 -48
  444. pulumi_kubernetes/node/v1/outputs.py +34 -34
  445. pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +26 -25
  446. pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +26 -25
  447. pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py +26 -25
  448. pulumi_kubernetes/node/v1alpha1/__init__.py +1 -0
  449. pulumi_kubernetes/node/v1alpha1/_inputs.py +57 -57
  450. pulumi_kubernetes/node/v1alpha1/outputs.py +41 -41
  451. pulumi_kubernetes/node/v1beta1/RuntimeClass.py +38 -37
  452. pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +26 -25
  453. pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py +38 -37
  454. pulumi_kubernetes/node/v1beta1/__init__.py +1 -0
  455. pulumi_kubernetes/node/v1beta1/_inputs.py +48 -48
  456. pulumi_kubernetes/node/v1beta1/outputs.py +34 -34
  457. pulumi_kubernetes/policy/__init__.py +1 -0
  458. pulumi_kubernetes/policy/v1/PodDisruptionBudget.py +27 -26
  459. pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py +26 -25
  460. pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py +27 -26
  461. pulumi_kubernetes/policy/v1/__init__.py +1 -0
  462. pulumi_kubernetes/policy/v1/_inputs.py +91 -103
  463. pulumi_kubernetes/policy/v1/outputs.py +80 -88
  464. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +27 -26
  465. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +26 -25
  466. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py +27 -26
  467. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +26 -25
  468. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +26 -25
  469. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py +26 -25
  470. pulumi_kubernetes/policy/v1beta1/__init__.py +1 -0
  471. pulumi_kubernetes/policy/v1beta1/_inputs.py +470 -470
  472. pulumi_kubernetes/policy/v1beta1/outputs.py +342 -342
  473. pulumi_kubernetes/provider.py +139 -99
  474. pulumi_kubernetes/pulumi-plugin.json +1 -1
  475. pulumi_kubernetes/rbac/__init__.py +1 -0
  476. pulumi_kubernetes/rbac/v1/ClusterRole.py +28 -27
  477. pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +28 -27
  478. pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +26 -25
  479. pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py +28 -27
  480. pulumi_kubernetes/rbac/v1/ClusterRoleList.py +26 -25
  481. pulumi_kubernetes/rbac/v1/ClusterRolePatch.py +28 -27
  482. pulumi_kubernetes/rbac/v1/Role.py +26 -25
  483. pulumi_kubernetes/rbac/v1/RoleBinding.py +28 -27
  484. pulumi_kubernetes/rbac/v1/RoleBindingList.py +26 -25
  485. pulumi_kubernetes/rbac/v1/RoleBindingPatch.py +28 -27
  486. pulumi_kubernetes/rbac/v1/RoleList.py +26 -25
  487. pulumi_kubernetes/rbac/v1/RolePatch.py +26 -25
  488. pulumi_kubernetes/rbac/v1/__init__.py +1 -0
  489. pulumi_kubernetes/rbac/v1/_inputs.py +206 -206
  490. pulumi_kubernetes/rbac/v1/outputs.py +142 -142
  491. pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +28 -27
  492. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +28 -27
  493. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +26 -25
  494. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py +28 -27
  495. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +26 -25
  496. pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py +28 -27
  497. pulumi_kubernetes/rbac/v1alpha1/Role.py +26 -25
  498. pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +28 -27
  499. pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +26 -25
  500. pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py +28 -27
  501. pulumi_kubernetes/rbac/v1alpha1/RoleList.py +26 -25
  502. pulumi_kubernetes/rbac/v1alpha1/RolePatch.py +26 -25
  503. pulumi_kubernetes/rbac/v1alpha1/__init__.py +1 -0
  504. pulumi_kubernetes/rbac/v1alpha1/_inputs.py +206 -206
  505. pulumi_kubernetes/rbac/v1alpha1/outputs.py +142 -142
  506. pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +28 -27
  507. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +28 -27
  508. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +26 -25
  509. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py +28 -27
  510. pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +26 -25
  511. pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py +28 -27
  512. pulumi_kubernetes/rbac/v1beta1/Role.py +26 -25
  513. pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +28 -27
  514. pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +26 -25
  515. pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py +28 -27
  516. pulumi_kubernetes/rbac/v1beta1/RoleList.py +26 -25
  517. pulumi_kubernetes/rbac/v1beta1/RolePatch.py +26 -25
  518. pulumi_kubernetes/rbac/v1beta1/__init__.py +1 -0
  519. pulumi_kubernetes/rbac/v1beta1/_inputs.py +206 -206
  520. pulumi_kubernetes/rbac/v1beta1/outputs.py +142 -142
  521. pulumi_kubernetes/resource/__init__.py +7 -0
  522. pulumi_kubernetes/resource/v1alpha1/PodScheduling.py +27 -26
  523. pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py +26 -25
  524. pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py +27 -26
  525. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +28 -27
  526. pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py +26 -25
  527. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +28 -27
  528. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +27 -26
  529. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py +26 -25
  530. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +27 -26
  531. pulumi_kubernetes/resource/v1alpha1/ResourceClass.py +38 -37
  532. pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py +26 -25
  533. pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py +38 -37
  534. pulumi_kubernetes/resource/v1alpha1/__init__.py +1 -0
  535. pulumi_kubernetes/resource/v1alpha1/_inputs.py +268 -268
  536. pulumi_kubernetes/resource/v1alpha1/outputs.py +230 -230
  537. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +27 -26
  538. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py +26 -25
  539. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +27 -26
  540. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +28 -27
  541. pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py +26 -25
  542. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParameters.py +38 -37
  543. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersList.py +26 -25
  544. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersPatch.py +38 -37
  545. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +28 -27
  546. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +27 -26
  547. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py +26 -25
  548. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +27 -26
  549. pulumi_kubernetes/resource/v1alpha2/ResourceClass.py +48 -47
  550. pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py +26 -25
  551. pulumi_kubernetes/resource/v1alpha2/ResourceClassParameters.py +30 -29
  552. pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersList.py +26 -25
  553. pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersPatch.py +30 -29
  554. pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py +48 -47
  555. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +47 -46
  556. pulumi_kubernetes/resource/v1alpha2/ResourceSliceList.py +26 -25
  557. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +47 -46
  558. pulumi_kubernetes/resource/v1alpha2/__init__.py +1 -0
  559. pulumi_kubernetes/resource/v1alpha2/_inputs.py +550 -550
  560. pulumi_kubernetes/resource/v1alpha2/outputs.py +449 -449
  561. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +28 -25
  562. pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +26 -25
  563. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +28 -25
  564. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRule.py +224 -0
  565. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRuleList.py +216 -0
  566. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRulePatch.py +235 -0
  567. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +27 -26
  568. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +26 -25
  569. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +27 -26
  570. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +28 -27
  571. pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +26 -25
  572. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +28 -27
  573. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +27 -26
  574. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +26 -25
  575. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +27 -26
  576. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +34 -33
  577. pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +246 -0
  578. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +27 -26
  579. pulumi_kubernetes/resource/v1alpha3/__init__.py +5 -0
  580. pulumi_kubernetes/resource/v1alpha3/_inputs.py +3400 -606
  581. pulumi_kubernetes/resource/v1alpha3/outputs.py +2933 -565
  582. pulumi_kubernetes/resource/v1beta1/DeviceClass.py +238 -0
  583. pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +216 -0
  584. pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +249 -0
  585. pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +233 -0
  586. pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +217 -0
  587. pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +244 -0
  588. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +230 -0
  589. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +216 -0
  590. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +241 -0
  591. pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +247 -0
  592. pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +217 -0
  593. pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +258 -0
  594. pulumi_kubernetes/resource/v1beta1/__init__.py +22 -0
  595. pulumi_kubernetes/resource/v1beta1/_inputs.py +5735 -0
  596. pulumi_kubernetes/resource/v1beta1/outputs.py +4736 -0
  597. pulumi_kubernetes/resource/v1beta2/DeviceClass.py +238 -0
  598. pulumi_kubernetes/resource/v1beta2/DeviceClassList.py +216 -0
  599. pulumi_kubernetes/resource/v1beta2/DeviceClassPatch.py +249 -0
  600. pulumi_kubernetes/resource/v1beta2/ResourceClaim.py +233 -0
  601. pulumi_kubernetes/resource/v1beta2/ResourceClaimList.py +217 -0
  602. pulumi_kubernetes/resource/v1beta2/ResourceClaimPatch.py +244 -0
  603. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplate.py +230 -0
  604. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplateList.py +216 -0
  605. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplatePatch.py +241 -0
  606. pulumi_kubernetes/resource/v1beta2/ResourceSlice.py +247 -0
  607. pulumi_kubernetes/resource/v1beta2/ResourceSliceList.py +217 -0
  608. pulumi_kubernetes/resource/v1beta2/ResourceSlicePatch.py +258 -0
  609. pulumi_kubernetes/resource/v1beta2/__init__.py +22 -0
  610. pulumi_kubernetes/resource/v1beta2/_inputs.py +5680 -0
  611. pulumi_kubernetes/resource/v1beta2/outputs.py +4725 -0
  612. pulumi_kubernetes/scheduling/__init__.py +1 -0
  613. pulumi_kubernetes/scheduling/v1/PriorityClass.py +64 -63
  614. pulumi_kubernetes/scheduling/v1/PriorityClassList.py +26 -25
  615. pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py +64 -63
  616. pulumi_kubernetes/scheduling/v1/__init__.py +1 -0
  617. pulumi_kubernetes/scheduling/v1/_inputs.py +38 -38
  618. pulumi_kubernetes/scheduling/v1/outputs.py +26 -26
  619. pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +64 -63
  620. pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +26 -25
  621. pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py +64 -63
  622. pulumi_kubernetes/scheduling/v1alpha1/__init__.py +1 -0
  623. pulumi_kubernetes/scheduling/v1alpha1/_inputs.py +38 -38
  624. pulumi_kubernetes/scheduling/v1alpha1/outputs.py +26 -26
  625. pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +64 -63
  626. pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +26 -25
  627. pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py +64 -63
  628. pulumi_kubernetes/scheduling/v1beta1/__init__.py +1 -0
  629. pulumi_kubernetes/scheduling/v1beta1/_inputs.py +38 -38
  630. pulumi_kubernetes/scheduling/v1beta1/outputs.py +26 -26
  631. pulumi_kubernetes/settings/__init__.py +1 -0
  632. pulumi_kubernetes/settings/v1alpha1/PodPreset.py +26 -25
  633. pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +26 -25
  634. pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py +26 -25
  635. pulumi_kubernetes/settings/v1alpha1/__init__.py +1 -0
  636. pulumi_kubernetes/settings/v1alpha1/_inputs.py +25 -25
  637. pulumi_kubernetes/settings/v1alpha1/outputs.py +21 -21
  638. pulumi_kubernetes/storage/__init__.py +1 -0
  639. pulumi_kubernetes/storage/v1/CSIDriver.py +26 -25
  640. pulumi_kubernetes/storage/v1/CSIDriverList.py +26 -25
  641. pulumi_kubernetes/storage/v1/CSIDriverPatch.py +26 -25
  642. pulumi_kubernetes/storage/v1/CSINode.py +26 -25
  643. pulumi_kubernetes/storage/v1/CSINodeList.py +26 -25
  644. pulumi_kubernetes/storage/v1/CSINodePatch.py +26 -25
  645. pulumi_kubernetes/storage/v1/CSIStorageCapacity.py +56 -55
  646. pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py +26 -25
  647. pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py +56 -55
  648. pulumi_kubernetes/storage/v1/StorageClass.py +86 -85
  649. pulumi_kubernetes/storage/v1/StorageClassList.py +26 -25
  650. pulumi_kubernetes/storage/v1/StorageClassPatch.py +86 -85
  651. pulumi_kubernetes/storage/v1/VolumeAttachment.py +27 -26
  652. pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +26 -25
  653. pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py +27 -26
  654. pulumi_kubernetes/storage/v1/__init__.py +1 -0
  655. pulumi_kubernetes/storage/v1/_inputs.py +448 -358
  656. pulumi_kubernetes/storage/v1/outputs.py +376 -266
  657. pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +27 -26
  658. pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +26 -25
  659. pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py +27 -26
  660. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +44 -43
  661. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassList.py +26 -25
  662. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +44 -43
  663. pulumi_kubernetes/storage/v1alpha1/__init__.py +1 -0
  664. pulumi_kubernetes/storage/v1alpha1/_inputs.py +107 -107
  665. pulumi_kubernetes/storage/v1alpha1/outputs.py +93 -93
  666. pulumi_kubernetes/storage/v1beta1/CSIDriver.py +26 -25
  667. pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +26 -25
  668. pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py +26 -25
  669. pulumi_kubernetes/storage/v1beta1/CSINode.py +26 -25
  670. pulumi_kubernetes/storage/v1beta1/CSINodeList.py +26 -25
  671. pulumi_kubernetes/storage/v1beta1/CSINodePatch.py +26 -25
  672. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py +56 -55
  673. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py +26 -25
  674. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py +56 -55
  675. pulumi_kubernetes/storage/v1beta1/StorageClass.py +86 -85
  676. pulumi_kubernetes/storage/v1beta1/StorageClassList.py +26 -25
  677. pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py +86 -85
  678. pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +27 -26
  679. pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +26 -25
  680. pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py +27 -26
  681. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +44 -43
  682. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +26 -25
  683. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +44 -43
  684. pulumi_kubernetes/storage/v1beta1/__init__.py +1 -0
  685. pulumi_kubernetes/storage/v1beta1/_inputs.py +367 -367
  686. pulumi_kubernetes/storage/v1beta1/outputs.py +271 -271
  687. pulumi_kubernetes/storagemigration/__init__.py +1 -0
  688. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigration.py +27 -26
  689. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationList.py +26 -25
  690. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationPatch.py +27 -26
  691. pulumi_kubernetes/storagemigration/v1alpha1/__init__.py +1 -0
  692. pulumi_kubernetes/storagemigration/v1alpha1/_inputs.py +103 -103
  693. pulumi_kubernetes/storagemigration/v1alpha1/outputs.py +96 -96
  694. pulumi_kubernetes/yaml/__init__.py +1 -0
  695. pulumi_kubernetes/yaml/v2/ConfigFile.py +31 -28
  696. pulumi_kubernetes/yaml/v2/ConfigGroup.py +36 -35
  697. pulumi_kubernetes/yaml/v2/__init__.py +1 -0
  698. pulumi_kubernetes/yaml/yaml.py +198 -0
  699. {pulumi_kubernetes-4.17.0a1723576835.dist-info → pulumi_kubernetes-4.26.0a1769215986.dist-info}/METADATA +9 -9
  700. pulumi_kubernetes-4.26.0a1769215986.dist-info/RECORD +709 -0
  701. {pulumi_kubernetes-4.17.0a1723576835.dist-info → pulumi_kubernetes-4.26.0a1769215986.dist-info}/WHEEL +1 -1
  702. pulumi_kubernetes-4.17.0a1723576835.dist-info/RECORD +0 -651
  703. {pulumi_kubernetes-4.17.0a1723576835.dist-info → pulumi_kubernetes-4.26.0a1769215986.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,4725 @@
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 builtins as _builtins
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
+ 'CELDeviceSelector',
26
+ 'CELDeviceSelectorPatch',
27
+ 'Counter',
28
+ 'CounterSet',
29
+ 'CounterSetPatch',
30
+ 'Device',
31
+ 'DeviceAllocationConfiguration',
32
+ 'DeviceAllocationConfigurationPatch',
33
+ 'DeviceAllocationResult',
34
+ 'DeviceAllocationResultPatch',
35
+ 'DeviceAttribute',
36
+ 'DeviceCapacity',
37
+ 'DeviceClaim',
38
+ 'DeviceClaimConfiguration',
39
+ 'DeviceClaimConfigurationPatch',
40
+ 'DeviceClaimPatch',
41
+ 'DeviceClass',
42
+ 'DeviceClassConfiguration',
43
+ 'DeviceClassConfigurationPatch',
44
+ 'DeviceClassSpec',
45
+ 'DeviceClassSpecPatch',
46
+ 'DeviceConstraint',
47
+ 'DeviceConstraintPatch',
48
+ 'DeviceCounterConsumption',
49
+ 'DeviceCounterConsumptionPatch',
50
+ 'DevicePatch',
51
+ 'DeviceRequest',
52
+ 'DeviceRequestAllocationResult',
53
+ 'DeviceRequestAllocationResultPatch',
54
+ 'DeviceRequestPatch',
55
+ 'DeviceSelector',
56
+ 'DeviceSelectorPatch',
57
+ 'DeviceSubRequest',
58
+ 'DeviceSubRequestPatch',
59
+ 'DeviceTaint',
60
+ 'DeviceTaintPatch',
61
+ 'DeviceToleration',
62
+ 'DeviceTolerationPatch',
63
+ 'ExactDeviceRequest',
64
+ 'ExactDeviceRequestPatch',
65
+ 'NetworkDeviceData',
66
+ 'NetworkDeviceDataPatch',
67
+ 'OpaqueDeviceConfiguration',
68
+ 'OpaqueDeviceConfigurationPatch',
69
+ 'ResourceClaim',
70
+ 'ResourceClaimConsumerReference',
71
+ 'ResourceClaimConsumerReferencePatch',
72
+ 'ResourceClaimSpec',
73
+ 'ResourceClaimSpecPatch',
74
+ 'ResourceClaimStatus',
75
+ 'ResourceClaimStatusPatch',
76
+ 'ResourceClaimTemplate',
77
+ 'ResourceClaimTemplateSpec',
78
+ 'ResourceClaimTemplateSpecPatch',
79
+ 'ResourcePool',
80
+ 'ResourcePoolPatch',
81
+ 'ResourceSlice',
82
+ 'ResourceSliceSpec',
83
+ 'ResourceSliceSpecPatch',
84
+ ]
85
+
86
+ @pulumi.output_type
87
+ class AllocatedDeviceStatus(dict):
88
+ """
89
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
90
+ """
91
+ @staticmethod
92
+ def __key_warning(key: str):
93
+ suggest = None
94
+ if key == "networkData":
95
+ suggest = "network_data"
96
+
97
+ if suggest:
98
+ pulumi.log.warn(f"Key '{key}' not found in AllocatedDeviceStatus. Access the value via the '{suggest}' property getter instead.")
99
+
100
+ def __getitem__(self, key: str) -> Any:
101
+ AllocatedDeviceStatus.__key_warning(key)
102
+ return super().__getitem__(key)
103
+
104
+ def get(self, key: str, default = None) -> Any:
105
+ AllocatedDeviceStatus.__key_warning(key)
106
+ return super().get(key, default)
107
+
108
+ def __init__(__self__, *,
109
+ device: _builtins.str,
110
+ driver: _builtins.str,
111
+ pool: _builtins.str,
112
+ conditions: Optional[Sequence['_meta.v1.outputs.Condition']] = None,
113
+ data: Optional[Any] = None,
114
+ network_data: Optional['outputs.NetworkDeviceData'] = None):
115
+ """
116
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
117
+ :param _builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
118
+ :param _builtins.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.
119
+
120
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
121
+ :param _builtins.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>`).
122
+
123
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
124
+ :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.
125
+
126
+ Must not contain more than 8 entries.
127
+ :param Any data: Data contains arbitrary driver-specific data.
128
+
129
+ The length of the raw data must be smaller or equal to 10 Ki.
130
+ :param 'NetworkDeviceDataArgs' network_data: NetworkData contains network-related information specific to the device.
131
+ """
132
+ pulumi.set(__self__, "device", device)
133
+ pulumi.set(__self__, "driver", driver)
134
+ pulumi.set(__self__, "pool", pool)
135
+ if conditions is not None:
136
+ pulumi.set(__self__, "conditions", conditions)
137
+ if data is not None:
138
+ pulumi.set(__self__, "data", data)
139
+ if network_data is not None:
140
+ pulumi.set(__self__, "network_data", network_data)
141
+
142
+ @_builtins.property
143
+ @pulumi.getter
144
+ def device(self) -> _builtins.str:
145
+ """
146
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
147
+ """
148
+ return pulumi.get(self, "device")
149
+
150
+ @_builtins.property
151
+ @pulumi.getter
152
+ def driver(self) -> _builtins.str:
153
+ """
154
+ 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.
155
+
156
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
157
+ """
158
+ return pulumi.get(self, "driver")
159
+
160
+ @_builtins.property
161
+ @pulumi.getter
162
+ def pool(self) -> _builtins.str:
163
+ """
164
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
165
+
166
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
167
+ """
168
+ return pulumi.get(self, "pool")
169
+
170
+ @_builtins.property
171
+ @pulumi.getter
172
+ def conditions(self) -> Optional[Sequence['_meta.v1.outputs.Condition']]:
173
+ """
174
+ 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.
175
+
176
+ Must not contain more than 8 entries.
177
+ """
178
+ return pulumi.get(self, "conditions")
179
+
180
+ @_builtins.property
181
+ @pulumi.getter
182
+ def data(self) -> Optional[Any]:
183
+ """
184
+ Data contains arbitrary driver-specific data.
185
+
186
+ The length of the raw data must be smaller or equal to 10 Ki.
187
+ """
188
+ return pulumi.get(self, "data")
189
+
190
+ @_builtins.property
191
+ @pulumi.getter(name="networkData")
192
+ def network_data(self) -> Optional['outputs.NetworkDeviceData']:
193
+ """
194
+ NetworkData contains network-related information specific to the device.
195
+ """
196
+ return pulumi.get(self, "network_data")
197
+
198
+
199
+ @pulumi.output_type
200
+ class AllocatedDeviceStatusPatch(dict):
201
+ """
202
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
203
+ """
204
+ @staticmethod
205
+ def __key_warning(key: str):
206
+ suggest = None
207
+ if key == "networkData":
208
+ suggest = "network_data"
209
+
210
+ if suggest:
211
+ pulumi.log.warn(f"Key '{key}' not found in AllocatedDeviceStatusPatch. Access the value via the '{suggest}' property getter instead.")
212
+
213
+ def __getitem__(self, key: str) -> Any:
214
+ AllocatedDeviceStatusPatch.__key_warning(key)
215
+ return super().__getitem__(key)
216
+
217
+ def get(self, key: str, default = None) -> Any:
218
+ AllocatedDeviceStatusPatch.__key_warning(key)
219
+ return super().get(key, default)
220
+
221
+ def __init__(__self__, *,
222
+ conditions: Optional[Sequence['_meta.v1.outputs.ConditionPatch']] = None,
223
+ data: Optional[Any] = None,
224
+ device: Optional[_builtins.str] = None,
225
+ driver: Optional[_builtins.str] = None,
226
+ network_data: Optional['outputs.NetworkDeviceDataPatch'] = None,
227
+ pool: Optional[_builtins.str] = None):
228
+ """
229
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
230
+ :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.
231
+
232
+ Must not contain more than 8 entries.
233
+ :param Any data: Data contains arbitrary driver-specific data.
234
+
235
+ The length of the raw data must be smaller or equal to 10 Ki.
236
+ :param _builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
237
+ :param _builtins.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.
238
+
239
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
240
+ :param 'NetworkDeviceDataPatchArgs' network_data: NetworkData contains network-related information specific to the device.
241
+ :param _builtins.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>`).
242
+
243
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
244
+ """
245
+ if conditions is not None:
246
+ pulumi.set(__self__, "conditions", conditions)
247
+ if data is not None:
248
+ pulumi.set(__self__, "data", data)
249
+ if device is not None:
250
+ pulumi.set(__self__, "device", device)
251
+ if driver is not None:
252
+ pulumi.set(__self__, "driver", driver)
253
+ if network_data is not None:
254
+ pulumi.set(__self__, "network_data", network_data)
255
+ if pool is not None:
256
+ pulumi.set(__self__, "pool", pool)
257
+
258
+ @_builtins.property
259
+ @pulumi.getter
260
+ def conditions(self) -> Optional[Sequence['_meta.v1.outputs.ConditionPatch']]:
261
+ """
262
+ 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.
263
+
264
+ Must not contain more than 8 entries.
265
+ """
266
+ return pulumi.get(self, "conditions")
267
+
268
+ @_builtins.property
269
+ @pulumi.getter
270
+ def data(self) -> Optional[Any]:
271
+ """
272
+ Data contains arbitrary driver-specific data.
273
+
274
+ The length of the raw data must be smaller or equal to 10 Ki.
275
+ """
276
+ return pulumi.get(self, "data")
277
+
278
+ @_builtins.property
279
+ @pulumi.getter
280
+ def device(self) -> Optional[_builtins.str]:
281
+ """
282
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
283
+ """
284
+ return pulumi.get(self, "device")
285
+
286
+ @_builtins.property
287
+ @pulumi.getter
288
+ def driver(self) -> Optional[_builtins.str]:
289
+ """
290
+ 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.
291
+
292
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
293
+ """
294
+ return pulumi.get(self, "driver")
295
+
296
+ @_builtins.property
297
+ @pulumi.getter(name="networkData")
298
+ def network_data(self) -> Optional['outputs.NetworkDeviceDataPatch']:
299
+ """
300
+ NetworkData contains network-related information specific to the device.
301
+ """
302
+ return pulumi.get(self, "network_data")
303
+
304
+ @_builtins.property
305
+ @pulumi.getter
306
+ def pool(self) -> Optional[_builtins.str]:
307
+ """
308
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
309
+
310
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
311
+ """
312
+ return pulumi.get(self, "pool")
313
+
314
+
315
+ @pulumi.output_type
316
+ class AllocationResult(dict):
317
+ """
318
+ AllocationResult contains attributes of an allocated resource.
319
+ """
320
+ @staticmethod
321
+ def __key_warning(key: str):
322
+ suggest = None
323
+ if key == "nodeSelector":
324
+ suggest = "node_selector"
325
+
326
+ if suggest:
327
+ pulumi.log.warn(f"Key '{key}' not found in AllocationResult. Access the value via the '{suggest}' property getter instead.")
328
+
329
+ def __getitem__(self, key: str) -> Any:
330
+ AllocationResult.__key_warning(key)
331
+ return super().__getitem__(key)
332
+
333
+ def get(self, key: str, default = None) -> Any:
334
+ AllocationResult.__key_warning(key)
335
+ return super().get(key, default)
336
+
337
+ def __init__(__self__, *,
338
+ devices: Optional['outputs.DeviceAllocationResult'] = None,
339
+ node_selector: Optional['_core.v1.outputs.NodeSelector'] = None):
340
+ """
341
+ AllocationResult contains attributes of an allocated resource.
342
+ :param 'DeviceAllocationResultArgs' devices: Devices is the result of allocating devices.
343
+ :param '_core.v1.NodeSelectorArgs' node_selector: NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
344
+ """
345
+ if devices is not None:
346
+ pulumi.set(__self__, "devices", devices)
347
+ if node_selector is not None:
348
+ pulumi.set(__self__, "node_selector", node_selector)
349
+
350
+ @_builtins.property
351
+ @pulumi.getter
352
+ def devices(self) -> Optional['outputs.DeviceAllocationResult']:
353
+ """
354
+ Devices is the result of allocating devices.
355
+ """
356
+ return pulumi.get(self, "devices")
357
+
358
+ @_builtins.property
359
+ @pulumi.getter(name="nodeSelector")
360
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
361
+ """
362
+ NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
363
+ """
364
+ return pulumi.get(self, "node_selector")
365
+
366
+
367
+ @pulumi.output_type
368
+ class AllocationResultPatch(dict):
369
+ """
370
+ AllocationResult contains attributes of an allocated resource.
371
+ """
372
+ @staticmethod
373
+ def __key_warning(key: str):
374
+ suggest = None
375
+ if key == "nodeSelector":
376
+ suggest = "node_selector"
377
+
378
+ if suggest:
379
+ pulumi.log.warn(f"Key '{key}' not found in AllocationResultPatch. Access the value via the '{suggest}' property getter instead.")
380
+
381
+ def __getitem__(self, key: str) -> Any:
382
+ AllocationResultPatch.__key_warning(key)
383
+ return super().__getitem__(key)
384
+
385
+ def get(self, key: str, default = None) -> Any:
386
+ AllocationResultPatch.__key_warning(key)
387
+ return super().get(key, default)
388
+
389
+ def __init__(__self__, *,
390
+ devices: Optional['outputs.DeviceAllocationResultPatch'] = None,
391
+ node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None):
392
+ """
393
+ AllocationResult contains attributes of an allocated resource.
394
+ :param 'DeviceAllocationResultPatchArgs' devices: Devices is the result of allocating devices.
395
+ :param '_core.v1.NodeSelectorPatchArgs' node_selector: NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
396
+ """
397
+ if devices is not None:
398
+ pulumi.set(__self__, "devices", devices)
399
+ if node_selector is not None:
400
+ pulumi.set(__self__, "node_selector", node_selector)
401
+
402
+ @_builtins.property
403
+ @pulumi.getter
404
+ def devices(self) -> Optional['outputs.DeviceAllocationResultPatch']:
405
+ """
406
+ Devices is the result of allocating devices.
407
+ """
408
+ return pulumi.get(self, "devices")
409
+
410
+ @_builtins.property
411
+ @pulumi.getter(name="nodeSelector")
412
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
413
+ """
414
+ NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
415
+ """
416
+ return pulumi.get(self, "node_selector")
417
+
418
+
419
+ @pulumi.output_type
420
+ class CELDeviceSelector(dict):
421
+ """
422
+ CELDeviceSelector contains a CEL expression for selecting a device.
423
+ """
424
+ def __init__(__self__, *,
425
+ expression: _builtins.str):
426
+ """
427
+ CELDeviceSelector contains a CEL expression for selecting a device.
428
+ :param _builtins.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.
429
+
430
+ The expression's input is an object named "device", which carries the following properties:
431
+ - driver (string): the name of the driver which defines this device.
432
+ - attributes (map[string]object): the device's attributes, grouped by prefix
433
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
434
+ of the attributes which were prefixed by "dra.example.com".
435
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
436
+
437
+ 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:
438
+
439
+ device.driver
440
+ device.attributes["dra.example.com"].model
441
+ device.attributes["ext.example.com"].family
442
+ device.capacity["dra.example.com"].modules
443
+
444
+ 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.
445
+
446
+ 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.
447
+
448
+ 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.
449
+
450
+ A robust expression should check for the existence of attributes before referencing them.
451
+
452
+ 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:
453
+
454
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
455
+
456
+ 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.
457
+ """
458
+ pulumi.set(__self__, "expression", expression)
459
+
460
+ @_builtins.property
461
+ @pulumi.getter
462
+ def expression(self) -> _builtins.str:
463
+ """
464
+ 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.
465
+
466
+ The expression's input is an object named "device", which carries the following properties:
467
+ - driver (string): the name of the driver which defines this device.
468
+ - attributes (map[string]object): the device's attributes, grouped by prefix
469
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
470
+ of the attributes which were prefixed by "dra.example.com".
471
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
472
+
473
+ 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:
474
+
475
+ device.driver
476
+ device.attributes["dra.example.com"].model
477
+ device.attributes["ext.example.com"].family
478
+ device.capacity["dra.example.com"].modules
479
+
480
+ 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.
481
+
482
+ 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.
483
+
484
+ 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.
485
+
486
+ A robust expression should check for the existence of attributes before referencing them.
487
+
488
+ 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:
489
+
490
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
491
+
492
+ 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.
493
+ """
494
+ return pulumi.get(self, "expression")
495
+
496
+
497
+ @pulumi.output_type
498
+ class CELDeviceSelectorPatch(dict):
499
+ """
500
+ CELDeviceSelector contains a CEL expression for selecting a device.
501
+ """
502
+ def __init__(__self__, *,
503
+ expression: Optional[_builtins.str] = None):
504
+ """
505
+ CELDeviceSelector contains a CEL expression for selecting a device.
506
+ :param _builtins.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.
507
+
508
+ The expression's input is an object named "device", which carries the following properties:
509
+ - driver (string): the name of the driver which defines this device.
510
+ - attributes (map[string]object): the device's attributes, grouped by prefix
511
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
512
+ of the attributes which were prefixed by "dra.example.com".
513
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
514
+
515
+ 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:
516
+
517
+ device.driver
518
+ device.attributes["dra.example.com"].model
519
+ device.attributes["ext.example.com"].family
520
+ device.capacity["dra.example.com"].modules
521
+
522
+ 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.
523
+
524
+ 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.
525
+
526
+ 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.
527
+
528
+ A robust expression should check for the existence of attributes before referencing them.
529
+
530
+ 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:
531
+
532
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
533
+
534
+ 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.
535
+ """
536
+ if expression is not None:
537
+ pulumi.set(__self__, "expression", expression)
538
+
539
+ @_builtins.property
540
+ @pulumi.getter
541
+ def expression(self) -> Optional[_builtins.str]:
542
+ """
543
+ 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.
544
+
545
+ The expression's input is an object named "device", which carries the following properties:
546
+ - driver (string): the name of the driver which defines this device.
547
+ - attributes (map[string]object): the device's attributes, grouped by prefix
548
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
549
+ of the attributes which were prefixed by "dra.example.com".
550
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
551
+
552
+ 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:
553
+
554
+ device.driver
555
+ device.attributes["dra.example.com"].model
556
+ device.attributes["ext.example.com"].family
557
+ device.capacity["dra.example.com"].modules
558
+
559
+ 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.
560
+
561
+ 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.
562
+
563
+ 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.
564
+
565
+ A robust expression should check for the existence of attributes before referencing them.
566
+
567
+ 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:
568
+
569
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
570
+
571
+ 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.
572
+ """
573
+ return pulumi.get(self, "expression")
574
+
575
+
576
+ @pulumi.output_type
577
+ class Counter(dict):
578
+ """
579
+ Counter describes a quantity associated with a device.
580
+ """
581
+ def __init__(__self__, *,
582
+ value: _builtins.str):
583
+ """
584
+ Counter describes a quantity associated with a device.
585
+ :param _builtins.str value: Value defines how much of a certain device counter is available.
586
+ """
587
+ pulumi.set(__self__, "value", value)
588
+
589
+ @_builtins.property
590
+ @pulumi.getter
591
+ def value(self) -> _builtins.str:
592
+ """
593
+ Value defines how much of a certain device counter is available.
594
+ """
595
+ return pulumi.get(self, "value")
596
+
597
+
598
+ @pulumi.output_type
599
+ class CounterSet(dict):
600
+ """
601
+ CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
602
+
603
+ The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
604
+ """
605
+ def __init__(__self__, *,
606
+ counters: Mapping[str, 'outputs.Counter'],
607
+ name: _builtins.str):
608
+ """
609
+ CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
610
+
611
+ The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
612
+ :param Mapping[str, 'CounterArgs'] counters: Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
613
+
614
+ The maximum number of counters in all sets is 32.
615
+ :param _builtins.str name: Name defines the name of the counter set. It must be a DNS label.
616
+ """
617
+ pulumi.set(__self__, "counters", counters)
618
+ pulumi.set(__self__, "name", name)
619
+
620
+ @_builtins.property
621
+ @pulumi.getter
622
+ def counters(self) -> Mapping[str, 'outputs.Counter']:
623
+ """
624
+ Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
625
+
626
+ The maximum number of counters in all sets is 32.
627
+ """
628
+ return pulumi.get(self, "counters")
629
+
630
+ @_builtins.property
631
+ @pulumi.getter
632
+ def name(self) -> _builtins.str:
633
+ """
634
+ Name defines the name of the counter set. It must be a DNS label.
635
+ """
636
+ return pulumi.get(self, "name")
637
+
638
+
639
+ @pulumi.output_type
640
+ class CounterSetPatch(dict):
641
+ """
642
+ CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
643
+
644
+ The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
645
+ """
646
+ def __init__(__self__, *,
647
+ counters: Optional[Mapping[str, 'outputs.Counter']] = None,
648
+ name: Optional[_builtins.str] = None):
649
+ """
650
+ CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
651
+
652
+ The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
653
+ :param Mapping[str, 'CounterArgs'] counters: Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
654
+
655
+ The maximum number of counters in all sets is 32.
656
+ :param _builtins.str name: Name defines the name of the counter set. It must be a DNS label.
657
+ """
658
+ if counters is not None:
659
+ pulumi.set(__self__, "counters", counters)
660
+ if name is not None:
661
+ pulumi.set(__self__, "name", name)
662
+
663
+ @_builtins.property
664
+ @pulumi.getter
665
+ def counters(self) -> Optional[Mapping[str, 'outputs.Counter']]:
666
+ """
667
+ Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
668
+
669
+ The maximum number of counters in all sets is 32.
670
+ """
671
+ return pulumi.get(self, "counters")
672
+
673
+ @_builtins.property
674
+ @pulumi.getter
675
+ def name(self) -> Optional[_builtins.str]:
676
+ """
677
+ Name defines the name of the counter set. It must be a DNS label.
678
+ """
679
+ return pulumi.get(self, "name")
680
+
681
+
682
+ @pulumi.output_type
683
+ class Device(dict):
684
+ """
685
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
686
+ """
687
+ @staticmethod
688
+ def __key_warning(key: str):
689
+ suggest = None
690
+ if key == "allNodes":
691
+ suggest = "all_nodes"
692
+ elif key == "consumesCounters":
693
+ suggest = "consumes_counters"
694
+ elif key == "nodeName":
695
+ suggest = "node_name"
696
+ elif key == "nodeSelector":
697
+ suggest = "node_selector"
698
+
699
+ if suggest:
700
+ pulumi.log.warn(f"Key '{key}' not found in Device. Access the value via the '{suggest}' property getter instead.")
701
+
702
+ def __getitem__(self, key: str) -> Any:
703
+ Device.__key_warning(key)
704
+ return super().__getitem__(key)
705
+
706
+ def get(self, key: str, default = None) -> Any:
707
+ Device.__key_warning(key)
708
+ return super().get(key, default)
709
+
710
+ def __init__(__self__, *,
711
+ name: _builtins.str,
712
+ all_nodes: Optional[_builtins.bool] = None,
713
+ attributes: Optional[Mapping[str, 'outputs.DeviceAttribute']] = None,
714
+ capacity: Optional[Mapping[str, 'outputs.DeviceCapacity']] = None,
715
+ consumes_counters: Optional[Sequence['outputs.DeviceCounterConsumption']] = None,
716
+ node_name: Optional[_builtins.str] = None,
717
+ node_selector: Optional['_core.v1.outputs.NodeSelector'] = None,
718
+ taints: Optional[Sequence['outputs.DeviceTaint']] = None):
719
+ """
720
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
721
+ :param _builtins.str name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
722
+ :param _builtins.bool all_nodes: AllNodes indicates that all nodes have access to the device.
723
+
724
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
725
+ :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.
726
+
727
+ The maximum number of attributes and capacities combined is 32.
728
+ :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.
729
+
730
+ The maximum number of attributes and capacities combined is 32.
731
+ :param Sequence['DeviceCounterConsumptionArgs'] consumes_counters: ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
732
+
733
+ There can only be a single entry per counterSet.
734
+
735
+ The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
736
+ :param _builtins.str node_name: NodeName identifies the node where the device is available.
737
+
738
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
739
+ :param '_core.v1.NodeSelectorArgs' node_selector: NodeSelector defines the nodes where the device is available.
740
+
741
+ Must use exactly one term.
742
+
743
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
744
+ :param Sequence['DeviceTaintArgs'] taints: If specified, these are the driver-defined taints.
745
+
746
+ The maximum number of taints is 4.
747
+
748
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
749
+ """
750
+ pulumi.set(__self__, "name", name)
751
+ if all_nodes is not None:
752
+ pulumi.set(__self__, "all_nodes", all_nodes)
753
+ if attributes is not None:
754
+ pulumi.set(__self__, "attributes", attributes)
755
+ if capacity is not None:
756
+ pulumi.set(__self__, "capacity", capacity)
757
+ if consumes_counters is not None:
758
+ pulumi.set(__self__, "consumes_counters", consumes_counters)
759
+ if node_name is not None:
760
+ pulumi.set(__self__, "node_name", node_name)
761
+ if node_selector is not None:
762
+ pulumi.set(__self__, "node_selector", node_selector)
763
+ if taints is not None:
764
+ pulumi.set(__self__, "taints", taints)
765
+
766
+ @_builtins.property
767
+ @pulumi.getter
768
+ def name(self) -> _builtins.str:
769
+ """
770
+ Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
771
+ """
772
+ return pulumi.get(self, "name")
773
+
774
+ @_builtins.property
775
+ @pulumi.getter(name="allNodes")
776
+ def all_nodes(self) -> Optional[_builtins.bool]:
777
+ """
778
+ AllNodes indicates that all nodes have access to the device.
779
+
780
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
781
+ """
782
+ return pulumi.get(self, "all_nodes")
783
+
784
+ @_builtins.property
785
+ @pulumi.getter
786
+ def attributes(self) -> Optional[Mapping[str, 'outputs.DeviceAttribute']]:
787
+ """
788
+ Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
789
+
790
+ The maximum number of attributes and capacities combined is 32.
791
+ """
792
+ return pulumi.get(self, "attributes")
793
+
794
+ @_builtins.property
795
+ @pulumi.getter
796
+ def capacity(self) -> Optional[Mapping[str, 'outputs.DeviceCapacity']]:
797
+ """
798
+ Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
799
+
800
+ The maximum number of attributes and capacities combined is 32.
801
+ """
802
+ return pulumi.get(self, "capacity")
803
+
804
+ @_builtins.property
805
+ @pulumi.getter(name="consumesCounters")
806
+ def consumes_counters(self) -> Optional[Sequence['outputs.DeviceCounterConsumption']]:
807
+ """
808
+ ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
809
+
810
+ There can only be a single entry per counterSet.
811
+
812
+ The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
813
+ """
814
+ return pulumi.get(self, "consumes_counters")
815
+
816
+ @_builtins.property
817
+ @pulumi.getter(name="nodeName")
818
+ def node_name(self) -> Optional[_builtins.str]:
819
+ """
820
+ NodeName identifies the node where the device is available.
821
+
822
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
823
+ """
824
+ return pulumi.get(self, "node_name")
825
+
826
+ @_builtins.property
827
+ @pulumi.getter(name="nodeSelector")
828
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
829
+ """
830
+ NodeSelector defines the nodes where the device is available.
831
+
832
+ Must use exactly one term.
833
+
834
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
835
+ """
836
+ return pulumi.get(self, "node_selector")
837
+
838
+ @_builtins.property
839
+ @pulumi.getter
840
+ def taints(self) -> Optional[Sequence['outputs.DeviceTaint']]:
841
+ """
842
+ If specified, these are the driver-defined taints.
843
+
844
+ The maximum number of taints is 4.
845
+
846
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
847
+ """
848
+ return pulumi.get(self, "taints")
849
+
850
+
851
+ @pulumi.output_type
852
+ class DeviceAllocationConfiguration(dict):
853
+ """
854
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
855
+ """
856
+ def __init__(__self__, *,
857
+ source: _builtins.str,
858
+ opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None,
859
+ requests: Optional[Sequence[_builtins.str]] = None):
860
+ """
861
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
862
+ :param _builtins.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.
863
+ :param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
864
+ :param Sequence[_builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
865
+
866
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
867
+ """
868
+ pulumi.set(__self__, "source", source)
869
+ if opaque is not None:
870
+ pulumi.set(__self__, "opaque", opaque)
871
+ if requests is not None:
872
+ pulumi.set(__self__, "requests", requests)
873
+
874
+ @_builtins.property
875
+ @pulumi.getter
876
+ def source(self) -> _builtins.str:
877
+ """
878
+ 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.
879
+ """
880
+ return pulumi.get(self, "source")
881
+
882
+ @_builtins.property
883
+ @pulumi.getter
884
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
885
+ """
886
+ Opaque provides driver-specific configuration parameters.
887
+ """
888
+ return pulumi.get(self, "opaque")
889
+
890
+ @_builtins.property
891
+ @pulumi.getter
892
+ def requests(self) -> Optional[Sequence[_builtins.str]]:
893
+ """
894
+ Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
895
+
896
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
897
+ """
898
+ return pulumi.get(self, "requests")
899
+
900
+
901
+ @pulumi.output_type
902
+ class DeviceAllocationConfigurationPatch(dict):
903
+ """
904
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
905
+ """
906
+ def __init__(__self__, *,
907
+ opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None,
908
+ requests: Optional[Sequence[_builtins.str]] = None,
909
+ source: Optional[_builtins.str] = None):
910
+ """
911
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
912
+ :param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
913
+ :param Sequence[_builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
914
+
915
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
916
+ :param _builtins.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.
917
+ """
918
+ if opaque is not None:
919
+ pulumi.set(__self__, "opaque", opaque)
920
+ if requests is not None:
921
+ pulumi.set(__self__, "requests", requests)
922
+ if source is not None:
923
+ pulumi.set(__self__, "source", source)
924
+
925
+ @_builtins.property
926
+ @pulumi.getter
927
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
928
+ """
929
+ Opaque provides driver-specific configuration parameters.
930
+ """
931
+ return pulumi.get(self, "opaque")
932
+
933
+ @_builtins.property
934
+ @pulumi.getter
935
+ def requests(self) -> Optional[Sequence[_builtins.str]]:
936
+ """
937
+ Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
938
+
939
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
940
+ """
941
+ return pulumi.get(self, "requests")
942
+
943
+ @_builtins.property
944
+ @pulumi.getter
945
+ def source(self) -> Optional[_builtins.str]:
946
+ """
947
+ 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.
948
+ """
949
+ return pulumi.get(self, "source")
950
+
951
+
952
+ @pulumi.output_type
953
+ class DeviceAllocationResult(dict):
954
+ """
955
+ DeviceAllocationResult is the result of allocating devices.
956
+ """
957
+ def __init__(__self__, *,
958
+ config: Optional[Sequence['outputs.DeviceAllocationConfiguration']] = None,
959
+ results: Optional[Sequence['outputs.DeviceRequestAllocationResult']] = None):
960
+ """
961
+ DeviceAllocationResult is the result of allocating devices.
962
+ :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.
963
+
964
+ 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.
965
+ :param Sequence['DeviceRequestAllocationResultArgs'] results: Results lists all allocated devices.
966
+ """
967
+ if config is not None:
968
+ pulumi.set(__self__, "config", config)
969
+ if results is not None:
970
+ pulumi.set(__self__, "results", results)
971
+
972
+ @_builtins.property
973
+ @pulumi.getter
974
+ def config(self) -> Optional[Sequence['outputs.DeviceAllocationConfiguration']]:
975
+ """
976
+ This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
977
+
978
+ 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.
979
+ """
980
+ return pulumi.get(self, "config")
981
+
982
+ @_builtins.property
983
+ @pulumi.getter
984
+ def results(self) -> Optional[Sequence['outputs.DeviceRequestAllocationResult']]:
985
+ """
986
+ Results lists all allocated devices.
987
+ """
988
+ return pulumi.get(self, "results")
989
+
990
+
991
+ @pulumi.output_type
992
+ class DeviceAllocationResultPatch(dict):
993
+ """
994
+ DeviceAllocationResult is the result of allocating devices.
995
+ """
996
+ def __init__(__self__, *,
997
+ config: Optional[Sequence['outputs.DeviceAllocationConfigurationPatch']] = None,
998
+ results: Optional[Sequence['outputs.DeviceRequestAllocationResultPatch']] = None):
999
+ """
1000
+ DeviceAllocationResult is the result of allocating devices.
1001
+ :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.
1002
+
1003
+ 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.
1004
+ :param Sequence['DeviceRequestAllocationResultPatchArgs'] results: Results lists all allocated devices.
1005
+ """
1006
+ if config is not None:
1007
+ pulumi.set(__self__, "config", config)
1008
+ if results is not None:
1009
+ pulumi.set(__self__, "results", results)
1010
+
1011
+ @_builtins.property
1012
+ @pulumi.getter
1013
+ def config(self) -> Optional[Sequence['outputs.DeviceAllocationConfigurationPatch']]:
1014
+ """
1015
+ This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
1016
+
1017
+ 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.
1018
+ """
1019
+ return pulumi.get(self, "config")
1020
+
1021
+ @_builtins.property
1022
+ @pulumi.getter
1023
+ def results(self) -> Optional[Sequence['outputs.DeviceRequestAllocationResultPatch']]:
1024
+ """
1025
+ Results lists all allocated devices.
1026
+ """
1027
+ return pulumi.get(self, "results")
1028
+
1029
+
1030
+ @pulumi.output_type
1031
+ class DeviceAttribute(dict):
1032
+ """
1033
+ DeviceAttribute must have exactly one field set.
1034
+ """
1035
+ def __init__(__self__, *,
1036
+ bool: Optional[_builtins.bool] = None,
1037
+ int: Optional[_builtins.int] = None,
1038
+ string: Optional[_builtins.str] = None,
1039
+ version: Optional[_builtins.str] = None):
1040
+ """
1041
+ DeviceAttribute must have exactly one field set.
1042
+ :param _builtins.bool bool: BoolValue is a true/false value.
1043
+ :param _builtins.int int: IntValue is a number.
1044
+ :param _builtins.str string: StringValue is a string. Must not be longer than 64 characters.
1045
+ :param _builtins.str version: VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
1046
+ """
1047
+ if bool is not None:
1048
+ pulumi.set(__self__, "bool", bool)
1049
+ if int is not None:
1050
+ pulumi.set(__self__, "int", int)
1051
+ if string is not None:
1052
+ pulumi.set(__self__, "string", string)
1053
+ if version is not None:
1054
+ pulumi.set(__self__, "version", version)
1055
+
1056
+ @_builtins.property
1057
+ @pulumi.getter
1058
+ def bool(self) -> Optional[_builtins.bool]:
1059
+ """
1060
+ BoolValue is a true/false value.
1061
+ """
1062
+ return pulumi.get(self, "bool")
1063
+
1064
+ @_builtins.property
1065
+ @pulumi.getter
1066
+ def int(self) -> Optional[_builtins.int]:
1067
+ """
1068
+ IntValue is a number.
1069
+ """
1070
+ return pulumi.get(self, "int")
1071
+
1072
+ @_builtins.property
1073
+ @pulumi.getter
1074
+ def string(self) -> Optional[_builtins.str]:
1075
+ """
1076
+ StringValue is a string. Must not be longer than 64 characters.
1077
+ """
1078
+ return pulumi.get(self, "string")
1079
+
1080
+ @_builtins.property
1081
+ @pulumi.getter
1082
+ def version(self) -> Optional[_builtins.str]:
1083
+ """
1084
+ VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
1085
+ """
1086
+ return pulumi.get(self, "version")
1087
+
1088
+
1089
+ @pulumi.output_type
1090
+ class DeviceCapacity(dict):
1091
+ """
1092
+ DeviceCapacity describes a quantity associated with a device.
1093
+ """
1094
+ def __init__(__self__, *,
1095
+ value: _builtins.str):
1096
+ """
1097
+ DeviceCapacity describes a quantity associated with a device.
1098
+ :param _builtins.str value: Value defines how much of a certain device capacity is available.
1099
+ """
1100
+ pulumi.set(__self__, "value", value)
1101
+
1102
+ @_builtins.property
1103
+ @pulumi.getter
1104
+ def value(self) -> _builtins.str:
1105
+ """
1106
+ Value defines how much of a certain device capacity is available.
1107
+ """
1108
+ return pulumi.get(self, "value")
1109
+
1110
+
1111
+ @pulumi.output_type
1112
+ class DeviceClaim(dict):
1113
+ """
1114
+ DeviceClaim defines how to request devices with a ResourceClaim.
1115
+ """
1116
+ def __init__(__self__, *,
1117
+ config: Optional[Sequence['outputs.DeviceClaimConfiguration']] = None,
1118
+ constraints: Optional[Sequence['outputs.DeviceConstraint']] = None,
1119
+ requests: Optional[Sequence['outputs.DeviceRequest']] = None):
1120
+ """
1121
+ DeviceClaim defines how to request devices with a ResourceClaim.
1122
+ :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.
1123
+ :param Sequence['DeviceConstraintArgs'] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
1124
+ :param Sequence['DeviceRequestArgs'] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1125
+ """
1126
+ if config is not None:
1127
+ pulumi.set(__self__, "config", config)
1128
+ if constraints is not None:
1129
+ pulumi.set(__self__, "constraints", constraints)
1130
+ if requests is not None:
1131
+ pulumi.set(__self__, "requests", requests)
1132
+
1133
+ @_builtins.property
1134
+ @pulumi.getter
1135
+ def config(self) -> Optional[Sequence['outputs.DeviceClaimConfiguration']]:
1136
+ """
1137
+ This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
1138
+ """
1139
+ return pulumi.get(self, "config")
1140
+
1141
+ @_builtins.property
1142
+ @pulumi.getter
1143
+ def constraints(self) -> Optional[Sequence['outputs.DeviceConstraint']]:
1144
+ """
1145
+ These constraints must be satisfied by the set of devices that get allocated for the claim.
1146
+ """
1147
+ return pulumi.get(self, "constraints")
1148
+
1149
+ @_builtins.property
1150
+ @pulumi.getter
1151
+ def requests(self) -> Optional[Sequence['outputs.DeviceRequest']]:
1152
+ """
1153
+ Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1154
+ """
1155
+ return pulumi.get(self, "requests")
1156
+
1157
+
1158
+ @pulumi.output_type
1159
+ class DeviceClaimConfiguration(dict):
1160
+ """
1161
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
1162
+ """
1163
+ def __init__(__self__, *,
1164
+ opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None,
1165
+ requests: Optional[Sequence[_builtins.str]] = None):
1166
+ """
1167
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
1168
+ :param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
1169
+ :param Sequence[_builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1170
+
1171
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
1172
+ """
1173
+ if opaque is not None:
1174
+ pulumi.set(__self__, "opaque", opaque)
1175
+ if requests is not None:
1176
+ pulumi.set(__self__, "requests", requests)
1177
+
1178
+ @_builtins.property
1179
+ @pulumi.getter
1180
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
1181
+ """
1182
+ Opaque provides driver-specific configuration parameters.
1183
+ """
1184
+ return pulumi.get(self, "opaque")
1185
+
1186
+ @_builtins.property
1187
+ @pulumi.getter
1188
+ def requests(self) -> Optional[Sequence[_builtins.str]]:
1189
+ """
1190
+ Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1191
+
1192
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
1193
+ """
1194
+ return pulumi.get(self, "requests")
1195
+
1196
+
1197
+ @pulumi.output_type
1198
+ class DeviceClaimConfigurationPatch(dict):
1199
+ """
1200
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
1201
+ """
1202
+ def __init__(__self__, *,
1203
+ opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None,
1204
+ requests: Optional[Sequence[_builtins.str]] = None):
1205
+ """
1206
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
1207
+ :param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
1208
+ :param Sequence[_builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1209
+
1210
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
1211
+ """
1212
+ if opaque is not None:
1213
+ pulumi.set(__self__, "opaque", opaque)
1214
+ if requests is not None:
1215
+ pulumi.set(__self__, "requests", requests)
1216
+
1217
+ @_builtins.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
+ @_builtins.property
1226
+ @pulumi.getter
1227
+ def requests(self) -> Optional[Sequence[_builtins.str]]:
1228
+ """
1229
+ Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1230
+
1231
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
1232
+ """
1233
+ return pulumi.get(self, "requests")
1234
+
1235
+
1236
+ @pulumi.output_type
1237
+ class DeviceClaimPatch(dict):
1238
+ """
1239
+ DeviceClaim defines how to request devices with a ResourceClaim.
1240
+ """
1241
+ def __init__(__self__, *,
1242
+ config: Optional[Sequence['outputs.DeviceClaimConfigurationPatch']] = None,
1243
+ constraints: Optional[Sequence['outputs.DeviceConstraintPatch']] = None,
1244
+ requests: Optional[Sequence['outputs.DeviceRequestPatch']] = None):
1245
+ """
1246
+ DeviceClaim defines how to request devices with a ResourceClaim.
1247
+ :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.
1248
+ :param Sequence['DeviceConstraintPatchArgs'] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
1249
+ :param Sequence['DeviceRequestPatchArgs'] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1250
+ """
1251
+ if config is not None:
1252
+ pulumi.set(__self__, "config", config)
1253
+ if constraints is not None:
1254
+ pulumi.set(__self__, "constraints", constraints)
1255
+ if requests is not None:
1256
+ pulumi.set(__self__, "requests", requests)
1257
+
1258
+ @_builtins.property
1259
+ @pulumi.getter
1260
+ def config(self) -> Optional[Sequence['outputs.DeviceClaimConfigurationPatch']]:
1261
+ """
1262
+ This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
1263
+ """
1264
+ return pulumi.get(self, "config")
1265
+
1266
+ @_builtins.property
1267
+ @pulumi.getter
1268
+ def constraints(self) -> Optional[Sequence['outputs.DeviceConstraintPatch']]:
1269
+ """
1270
+ These constraints must be satisfied by the set of devices that get allocated for the claim.
1271
+ """
1272
+ return pulumi.get(self, "constraints")
1273
+
1274
+ @_builtins.property
1275
+ @pulumi.getter
1276
+ def requests(self) -> Optional[Sequence['outputs.DeviceRequestPatch']]:
1277
+ """
1278
+ Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1279
+ """
1280
+ return pulumi.get(self, "requests")
1281
+
1282
+
1283
+ @pulumi.output_type
1284
+ class DeviceClass(dict):
1285
+ """
1286
+ 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.
1287
+
1288
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1289
+ """
1290
+ @staticmethod
1291
+ def __key_warning(key: str):
1292
+ suggest = None
1293
+ if key == "apiVersion":
1294
+ suggest = "api_version"
1295
+
1296
+ if suggest:
1297
+ pulumi.log.warn(f"Key '{key}' not found in DeviceClass. Access the value via the '{suggest}' property getter instead.")
1298
+
1299
+ def __getitem__(self, key: str) -> Any:
1300
+ DeviceClass.__key_warning(key)
1301
+ return super().__getitem__(key)
1302
+
1303
+ def get(self, key: str, default = None) -> Any:
1304
+ DeviceClass.__key_warning(key)
1305
+ return super().get(key, default)
1306
+
1307
+ def __init__(__self__, *,
1308
+ spec: 'outputs.DeviceClassSpec',
1309
+ api_version: Optional[_builtins.str] = None,
1310
+ kind: Optional[_builtins.str] = None,
1311
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
1312
+ """
1313
+ 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.
1314
+
1315
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1316
+ :param 'DeviceClassSpecArgs' spec: Spec defines what can be allocated and how to configure it.
1317
+
1318
+ 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.
1319
+
1320
+ Changing the spec automatically increments the metadata.generation number.
1321
+ :param _builtins.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
1322
+ :param _builtins.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
1323
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
1324
+ """
1325
+ pulumi.set(__self__, "spec", spec)
1326
+ if api_version is not None:
1327
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
1328
+ if kind is not None:
1329
+ pulumi.set(__self__, "kind", 'DeviceClass')
1330
+ if metadata is not None:
1331
+ pulumi.set(__self__, "metadata", metadata)
1332
+
1333
+ @_builtins.property
1334
+ @pulumi.getter
1335
+ def spec(self) -> 'outputs.DeviceClassSpec':
1336
+ """
1337
+ Spec defines what can be allocated and how to configure it.
1338
+
1339
+ 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.
1340
+
1341
+ Changing the spec automatically increments the metadata.generation number.
1342
+ """
1343
+ return pulumi.get(self, "spec")
1344
+
1345
+ @_builtins.property
1346
+ @pulumi.getter(name="apiVersion")
1347
+ def api_version(self) -> Optional[_builtins.str]:
1348
+ """
1349
+ 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
1350
+ """
1351
+ return pulumi.get(self, "api_version")
1352
+
1353
+ @_builtins.property
1354
+ @pulumi.getter
1355
+ def kind(self) -> Optional[_builtins.str]:
1356
+ """
1357
+ 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
1358
+ """
1359
+ return pulumi.get(self, "kind")
1360
+
1361
+ @_builtins.property
1362
+ @pulumi.getter
1363
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
1364
+ """
1365
+ Standard object metadata
1366
+ """
1367
+ return pulumi.get(self, "metadata")
1368
+
1369
+
1370
+ @pulumi.output_type
1371
+ class DeviceClassConfiguration(dict):
1372
+ """
1373
+ DeviceClassConfiguration is used in DeviceClass.
1374
+ """
1375
+ def __init__(__self__, *,
1376
+ opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None):
1377
+ """
1378
+ DeviceClassConfiguration is used in DeviceClass.
1379
+ :param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
1380
+ """
1381
+ if opaque is not None:
1382
+ pulumi.set(__self__, "opaque", opaque)
1383
+
1384
+ @_builtins.property
1385
+ @pulumi.getter
1386
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
1387
+ """
1388
+ Opaque provides driver-specific configuration parameters.
1389
+ """
1390
+ return pulumi.get(self, "opaque")
1391
+
1392
+
1393
+ @pulumi.output_type
1394
+ class DeviceClassConfigurationPatch(dict):
1395
+ """
1396
+ DeviceClassConfiguration is used in DeviceClass.
1397
+ """
1398
+ def __init__(__self__, *,
1399
+ opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None):
1400
+ """
1401
+ DeviceClassConfiguration is used in DeviceClass.
1402
+ :param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
1403
+ """
1404
+ if opaque is not None:
1405
+ pulumi.set(__self__, "opaque", opaque)
1406
+
1407
+ @_builtins.property
1408
+ @pulumi.getter
1409
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
1410
+ """
1411
+ Opaque provides driver-specific configuration parameters.
1412
+ """
1413
+ return pulumi.get(self, "opaque")
1414
+
1415
+
1416
+ @pulumi.output_type
1417
+ class DeviceClassSpec(dict):
1418
+ """
1419
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1420
+ """
1421
+ def __init__(__self__, *,
1422
+ config: Optional[Sequence['outputs.DeviceClassConfiguration']] = None,
1423
+ selectors: Optional[Sequence['outputs.DeviceSelector']] = None):
1424
+ """
1425
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1426
+ :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.
1427
+
1428
+ They are passed to the driver, but are not considered while allocating the claim.
1429
+ :param Sequence['DeviceSelectorArgs'] selectors: Each selector must be satisfied by a device which is claimed via this class.
1430
+ """
1431
+ if config is not None:
1432
+ pulumi.set(__self__, "config", config)
1433
+ if selectors is not None:
1434
+ pulumi.set(__self__, "selectors", selectors)
1435
+
1436
+ @_builtins.property
1437
+ @pulumi.getter
1438
+ def config(self) -> Optional[Sequence['outputs.DeviceClassConfiguration']]:
1439
+ """
1440
+ 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.
1441
+
1442
+ They are passed to the driver, but are not considered while allocating the claim.
1443
+ """
1444
+ return pulumi.get(self, "config")
1445
+
1446
+ @_builtins.property
1447
+ @pulumi.getter
1448
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
1449
+ """
1450
+ Each selector must be satisfied by a device which is claimed via this class.
1451
+ """
1452
+ return pulumi.get(self, "selectors")
1453
+
1454
+
1455
+ @pulumi.output_type
1456
+ class DeviceClassSpecPatch(dict):
1457
+ """
1458
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1459
+ """
1460
+ def __init__(__self__, *,
1461
+ config: Optional[Sequence['outputs.DeviceClassConfigurationPatch']] = None,
1462
+ selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None):
1463
+ """
1464
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1465
+ :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.
1466
+
1467
+ They are passed to the driver, but are not considered while allocating the claim.
1468
+ :param Sequence['DeviceSelectorPatchArgs'] selectors: Each selector must be satisfied by a device which is claimed via this class.
1469
+ """
1470
+ if config is not None:
1471
+ pulumi.set(__self__, "config", config)
1472
+ if selectors is not None:
1473
+ pulumi.set(__self__, "selectors", selectors)
1474
+
1475
+ @_builtins.property
1476
+ @pulumi.getter
1477
+ def config(self) -> Optional[Sequence['outputs.DeviceClassConfigurationPatch']]:
1478
+ """
1479
+ 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.
1480
+
1481
+ They are passed to the driver, but are not considered while allocating the claim.
1482
+ """
1483
+ return pulumi.get(self, "config")
1484
+
1485
+ @_builtins.property
1486
+ @pulumi.getter
1487
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
1488
+ """
1489
+ Each selector must be satisfied by a device which is claimed via this class.
1490
+ """
1491
+ return pulumi.get(self, "selectors")
1492
+
1493
+
1494
+ @pulumi.output_type
1495
+ class DeviceConstraint(dict):
1496
+ """
1497
+ DeviceConstraint must have exactly one field set besides Requests.
1498
+ """
1499
+ @staticmethod
1500
+ def __key_warning(key: str):
1501
+ suggest = None
1502
+ if key == "matchAttribute":
1503
+ suggest = "match_attribute"
1504
+
1505
+ if suggest:
1506
+ pulumi.log.warn(f"Key '{key}' not found in DeviceConstraint. Access the value via the '{suggest}' property getter instead.")
1507
+
1508
+ def __getitem__(self, key: str) -> Any:
1509
+ DeviceConstraint.__key_warning(key)
1510
+ return super().__getitem__(key)
1511
+
1512
+ def get(self, key: str, default = None) -> Any:
1513
+ DeviceConstraint.__key_warning(key)
1514
+ return super().get(key, default)
1515
+
1516
+ def __init__(__self__, *,
1517
+ match_attribute: Optional[_builtins.str] = None,
1518
+ requests: Optional[Sequence[_builtins.str]] = None):
1519
+ """
1520
+ DeviceConstraint must have exactly one field set besides Requests.
1521
+ :param _builtins.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.
1522
+
1523
+ 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.
1524
+
1525
+ Must include the domain qualifier.
1526
+ :param Sequence[_builtins.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.
1527
+
1528
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
1529
+ """
1530
+ if match_attribute is not None:
1531
+ pulumi.set(__self__, "match_attribute", match_attribute)
1532
+ if requests is not None:
1533
+ pulumi.set(__self__, "requests", requests)
1534
+
1535
+ @_builtins.property
1536
+ @pulumi.getter(name="matchAttribute")
1537
+ def match_attribute(self) -> Optional[_builtins.str]:
1538
+ """
1539
+ MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1540
+
1541
+ 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.
1542
+
1543
+ Must include the domain qualifier.
1544
+ """
1545
+ return pulumi.get(self, "match_attribute")
1546
+
1547
+ @_builtins.property
1548
+ @pulumi.getter
1549
+ def requests(self) -> Optional[Sequence[_builtins.str]]:
1550
+ """
1551
+ 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.
1552
+
1553
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
1554
+ """
1555
+ return pulumi.get(self, "requests")
1556
+
1557
+
1558
+ @pulumi.output_type
1559
+ class DeviceConstraintPatch(dict):
1560
+ """
1561
+ DeviceConstraint must have exactly one field set besides Requests.
1562
+ """
1563
+ @staticmethod
1564
+ def __key_warning(key: str):
1565
+ suggest = None
1566
+ if key == "matchAttribute":
1567
+ suggest = "match_attribute"
1568
+
1569
+ if suggest:
1570
+ pulumi.log.warn(f"Key '{key}' not found in DeviceConstraintPatch. Access the value via the '{suggest}' property getter instead.")
1571
+
1572
+ def __getitem__(self, key: str) -> Any:
1573
+ DeviceConstraintPatch.__key_warning(key)
1574
+ return super().__getitem__(key)
1575
+
1576
+ def get(self, key: str, default = None) -> Any:
1577
+ DeviceConstraintPatch.__key_warning(key)
1578
+ return super().get(key, default)
1579
+
1580
+ def __init__(__self__, *,
1581
+ match_attribute: Optional[_builtins.str] = None,
1582
+ requests: Optional[Sequence[_builtins.str]] = None):
1583
+ """
1584
+ DeviceConstraint must have exactly one field set besides Requests.
1585
+ :param _builtins.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.
1586
+
1587
+ 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.
1588
+
1589
+ Must include the domain qualifier.
1590
+ :param Sequence[_builtins.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.
1591
+
1592
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
1593
+ """
1594
+ if match_attribute is not None:
1595
+ pulumi.set(__self__, "match_attribute", match_attribute)
1596
+ if requests is not None:
1597
+ pulumi.set(__self__, "requests", requests)
1598
+
1599
+ @_builtins.property
1600
+ @pulumi.getter(name="matchAttribute")
1601
+ def match_attribute(self) -> Optional[_builtins.str]:
1602
+ """
1603
+ MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1604
+
1605
+ 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.
1606
+
1607
+ Must include the domain qualifier.
1608
+ """
1609
+ return pulumi.get(self, "match_attribute")
1610
+
1611
+ @_builtins.property
1612
+ @pulumi.getter
1613
+ def requests(self) -> Optional[Sequence[_builtins.str]]:
1614
+ """
1615
+ 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.
1616
+
1617
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
1618
+ """
1619
+ return pulumi.get(self, "requests")
1620
+
1621
+
1622
+ @pulumi.output_type
1623
+ class DeviceCounterConsumption(dict):
1624
+ """
1625
+ DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
1626
+ """
1627
+ @staticmethod
1628
+ def __key_warning(key: str):
1629
+ suggest = None
1630
+ if key == "counterSet":
1631
+ suggest = "counter_set"
1632
+
1633
+ if suggest:
1634
+ pulumi.log.warn(f"Key '{key}' not found in DeviceCounterConsumption. Access the value via the '{suggest}' property getter instead.")
1635
+
1636
+ def __getitem__(self, key: str) -> Any:
1637
+ DeviceCounterConsumption.__key_warning(key)
1638
+ return super().__getitem__(key)
1639
+
1640
+ def get(self, key: str, default = None) -> Any:
1641
+ DeviceCounterConsumption.__key_warning(key)
1642
+ return super().get(key, default)
1643
+
1644
+ def __init__(__self__, *,
1645
+ counter_set: _builtins.str,
1646
+ counters: Mapping[str, 'outputs.Counter']):
1647
+ """
1648
+ DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
1649
+ :param _builtins.str counter_set: CounterSet is the name of the set from which the counters defined will be consumed.
1650
+ :param Mapping[str, 'CounterArgs'] counters: Counters defines the counters that will be consumed by the device.
1651
+
1652
+ The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
1653
+ """
1654
+ pulumi.set(__self__, "counter_set", counter_set)
1655
+ pulumi.set(__self__, "counters", counters)
1656
+
1657
+ @_builtins.property
1658
+ @pulumi.getter(name="counterSet")
1659
+ def counter_set(self) -> _builtins.str:
1660
+ """
1661
+ CounterSet is the name of the set from which the counters defined will be consumed.
1662
+ """
1663
+ return pulumi.get(self, "counter_set")
1664
+
1665
+ @_builtins.property
1666
+ @pulumi.getter
1667
+ def counters(self) -> Mapping[str, 'outputs.Counter']:
1668
+ """
1669
+ Counters defines the counters that will be consumed by the device.
1670
+
1671
+ The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
1672
+ """
1673
+ return pulumi.get(self, "counters")
1674
+
1675
+
1676
+ @pulumi.output_type
1677
+ class DeviceCounterConsumptionPatch(dict):
1678
+ """
1679
+ DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
1680
+ """
1681
+ @staticmethod
1682
+ def __key_warning(key: str):
1683
+ suggest = None
1684
+ if key == "counterSet":
1685
+ suggest = "counter_set"
1686
+
1687
+ if suggest:
1688
+ pulumi.log.warn(f"Key '{key}' not found in DeviceCounterConsumptionPatch. Access the value via the '{suggest}' property getter instead.")
1689
+
1690
+ def __getitem__(self, key: str) -> Any:
1691
+ DeviceCounterConsumptionPatch.__key_warning(key)
1692
+ return super().__getitem__(key)
1693
+
1694
+ def get(self, key: str, default = None) -> Any:
1695
+ DeviceCounterConsumptionPatch.__key_warning(key)
1696
+ return super().get(key, default)
1697
+
1698
+ def __init__(__self__, *,
1699
+ counter_set: Optional[_builtins.str] = None,
1700
+ counters: Optional[Mapping[str, 'outputs.Counter']] = None):
1701
+ """
1702
+ DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
1703
+ :param _builtins.str counter_set: CounterSet is the name of the set from which the counters defined will be consumed.
1704
+ :param Mapping[str, 'CounterArgs'] counters: Counters defines the counters that will be consumed by the device.
1705
+
1706
+ The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
1707
+ """
1708
+ if counter_set is not None:
1709
+ pulumi.set(__self__, "counter_set", counter_set)
1710
+ if counters is not None:
1711
+ pulumi.set(__self__, "counters", counters)
1712
+
1713
+ @_builtins.property
1714
+ @pulumi.getter(name="counterSet")
1715
+ def counter_set(self) -> Optional[_builtins.str]:
1716
+ """
1717
+ CounterSet is the name of the set from which the counters defined will be consumed.
1718
+ """
1719
+ return pulumi.get(self, "counter_set")
1720
+
1721
+ @_builtins.property
1722
+ @pulumi.getter
1723
+ def counters(self) -> Optional[Mapping[str, 'outputs.Counter']]:
1724
+ """
1725
+ Counters defines the counters that will be consumed by the device.
1726
+
1727
+ The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
1728
+ """
1729
+ return pulumi.get(self, "counters")
1730
+
1731
+
1732
+ @pulumi.output_type
1733
+ class DevicePatch(dict):
1734
+ """
1735
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
1736
+ """
1737
+ @staticmethod
1738
+ def __key_warning(key: str):
1739
+ suggest = None
1740
+ if key == "allNodes":
1741
+ suggest = "all_nodes"
1742
+ elif key == "consumesCounters":
1743
+ suggest = "consumes_counters"
1744
+ elif key == "nodeName":
1745
+ suggest = "node_name"
1746
+ elif key == "nodeSelector":
1747
+ suggest = "node_selector"
1748
+
1749
+ if suggest:
1750
+ pulumi.log.warn(f"Key '{key}' not found in DevicePatch. Access the value via the '{suggest}' property getter instead.")
1751
+
1752
+ def __getitem__(self, key: str) -> Any:
1753
+ DevicePatch.__key_warning(key)
1754
+ return super().__getitem__(key)
1755
+
1756
+ def get(self, key: str, default = None) -> Any:
1757
+ DevicePatch.__key_warning(key)
1758
+ return super().get(key, default)
1759
+
1760
+ def __init__(__self__, *,
1761
+ all_nodes: Optional[_builtins.bool] = None,
1762
+ attributes: Optional[Mapping[str, 'outputs.DeviceAttribute']] = None,
1763
+ capacity: Optional[Mapping[str, 'outputs.DeviceCapacity']] = None,
1764
+ consumes_counters: Optional[Sequence['outputs.DeviceCounterConsumptionPatch']] = None,
1765
+ name: Optional[_builtins.str] = None,
1766
+ node_name: Optional[_builtins.str] = None,
1767
+ node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None,
1768
+ taints: Optional[Sequence['outputs.DeviceTaintPatch']] = None):
1769
+ """
1770
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
1771
+ :param _builtins.bool all_nodes: AllNodes indicates that all nodes have access to the device.
1772
+
1773
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1774
+ :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.
1775
+
1776
+ The maximum number of attributes and capacities combined is 32.
1777
+ :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.
1778
+
1779
+ The maximum number of attributes and capacities combined is 32.
1780
+ :param Sequence['DeviceCounterConsumptionPatchArgs'] consumes_counters: ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
1781
+
1782
+ There can only be a single entry per counterSet.
1783
+
1784
+ The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
1785
+ :param _builtins.str name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
1786
+ :param _builtins.str node_name: NodeName identifies the node where the device is available.
1787
+
1788
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1789
+ :param '_core.v1.NodeSelectorPatchArgs' node_selector: NodeSelector defines the nodes where the device is available.
1790
+
1791
+ Must use exactly one term.
1792
+
1793
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1794
+ :param Sequence['DeviceTaintPatchArgs'] taints: If specified, these are the driver-defined taints.
1795
+
1796
+ The maximum number of taints is 4.
1797
+
1798
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
1799
+ """
1800
+ if all_nodes is not None:
1801
+ pulumi.set(__self__, "all_nodes", all_nodes)
1802
+ if attributes is not None:
1803
+ pulumi.set(__self__, "attributes", attributes)
1804
+ if capacity is not None:
1805
+ pulumi.set(__self__, "capacity", capacity)
1806
+ if consumes_counters is not None:
1807
+ pulumi.set(__self__, "consumes_counters", consumes_counters)
1808
+ if name is not None:
1809
+ pulumi.set(__self__, "name", name)
1810
+ if node_name is not None:
1811
+ pulumi.set(__self__, "node_name", node_name)
1812
+ if node_selector is not None:
1813
+ pulumi.set(__self__, "node_selector", node_selector)
1814
+ if taints is not None:
1815
+ pulumi.set(__self__, "taints", taints)
1816
+
1817
+ @_builtins.property
1818
+ @pulumi.getter(name="allNodes")
1819
+ def all_nodes(self) -> Optional[_builtins.bool]:
1820
+ """
1821
+ AllNodes indicates that all nodes have access to the device.
1822
+
1823
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1824
+ """
1825
+ return pulumi.get(self, "all_nodes")
1826
+
1827
+ @_builtins.property
1828
+ @pulumi.getter
1829
+ def attributes(self) -> Optional[Mapping[str, 'outputs.DeviceAttribute']]:
1830
+ """
1831
+ Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
1832
+
1833
+ The maximum number of attributes and capacities combined is 32.
1834
+ """
1835
+ return pulumi.get(self, "attributes")
1836
+
1837
+ @_builtins.property
1838
+ @pulumi.getter
1839
+ def capacity(self) -> Optional[Mapping[str, 'outputs.DeviceCapacity']]:
1840
+ """
1841
+ Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
1842
+
1843
+ The maximum number of attributes and capacities combined is 32.
1844
+ """
1845
+ return pulumi.get(self, "capacity")
1846
+
1847
+ @_builtins.property
1848
+ @pulumi.getter(name="consumesCounters")
1849
+ def consumes_counters(self) -> Optional[Sequence['outputs.DeviceCounterConsumptionPatch']]:
1850
+ """
1851
+ ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
1852
+
1853
+ There can only be a single entry per counterSet.
1854
+
1855
+ The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
1856
+ """
1857
+ return pulumi.get(self, "consumes_counters")
1858
+
1859
+ @_builtins.property
1860
+ @pulumi.getter
1861
+ def name(self) -> Optional[_builtins.str]:
1862
+ """
1863
+ Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
1864
+ """
1865
+ return pulumi.get(self, "name")
1866
+
1867
+ @_builtins.property
1868
+ @pulumi.getter(name="nodeName")
1869
+ def node_name(self) -> Optional[_builtins.str]:
1870
+ """
1871
+ NodeName identifies the node where the device is available.
1872
+
1873
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1874
+ """
1875
+ return pulumi.get(self, "node_name")
1876
+
1877
+ @_builtins.property
1878
+ @pulumi.getter(name="nodeSelector")
1879
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
1880
+ """
1881
+ NodeSelector defines the nodes where the device is available.
1882
+
1883
+ Must use exactly one term.
1884
+
1885
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1886
+ """
1887
+ return pulumi.get(self, "node_selector")
1888
+
1889
+ @_builtins.property
1890
+ @pulumi.getter
1891
+ def taints(self) -> Optional[Sequence['outputs.DeviceTaintPatch']]:
1892
+ """
1893
+ If specified, these are the driver-defined taints.
1894
+
1895
+ The maximum number of taints is 4.
1896
+
1897
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
1898
+ """
1899
+ return pulumi.get(self, "taints")
1900
+
1901
+
1902
+ @pulumi.output_type
1903
+ class DeviceRequest(dict):
1904
+ """
1905
+ 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. With FirstAvailable it is also possible to provide a prioritized list of requests.
1906
+ """
1907
+ @staticmethod
1908
+ def __key_warning(key: str):
1909
+ suggest = None
1910
+ if key == "firstAvailable":
1911
+ suggest = "first_available"
1912
+
1913
+ if suggest:
1914
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequest. Access the value via the '{suggest}' property getter instead.")
1915
+
1916
+ def __getitem__(self, key: str) -> Any:
1917
+ DeviceRequest.__key_warning(key)
1918
+ return super().__getitem__(key)
1919
+
1920
+ def get(self, key: str, default = None) -> Any:
1921
+ DeviceRequest.__key_warning(key)
1922
+ return super().get(key, default)
1923
+
1924
+ def __init__(__self__, *,
1925
+ name: _builtins.str,
1926
+ exactly: Optional['outputs.ExactDeviceRequest'] = None,
1927
+ first_available: Optional[Sequence['outputs.DeviceSubRequest']] = None):
1928
+ """
1929
+ 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. With FirstAvailable it is also possible to provide a prioritized list of requests.
1930
+ :param _builtins.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.
1931
+
1932
+ References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.
1933
+
1934
+ Must be a DNS label.
1935
+ :param 'ExactDeviceRequestArgs' exactly: Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.
1936
+
1937
+ One of Exactly or FirstAvailable must be set.
1938
+ :param Sequence['DeviceSubRequestArgs'] first_available: FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.
1939
+
1940
+ DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
1941
+ """
1942
+ pulumi.set(__self__, "name", name)
1943
+ if exactly is not None:
1944
+ pulumi.set(__self__, "exactly", exactly)
1945
+ if first_available is not None:
1946
+ pulumi.set(__self__, "first_available", first_available)
1947
+
1948
+ @_builtins.property
1949
+ @pulumi.getter
1950
+ def name(self) -> _builtins.str:
1951
+ """
1952
+ Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1953
+
1954
+ References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.
1955
+
1956
+ Must be a DNS label.
1957
+ """
1958
+ return pulumi.get(self, "name")
1959
+
1960
+ @_builtins.property
1961
+ @pulumi.getter
1962
+ def exactly(self) -> Optional['outputs.ExactDeviceRequest']:
1963
+ """
1964
+ Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.
1965
+
1966
+ One of Exactly or FirstAvailable must be set.
1967
+ """
1968
+ return pulumi.get(self, "exactly")
1969
+
1970
+ @_builtins.property
1971
+ @pulumi.getter(name="firstAvailable")
1972
+ def first_available(self) -> Optional[Sequence['outputs.DeviceSubRequest']]:
1973
+ """
1974
+ FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.
1975
+
1976
+ DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
1977
+ """
1978
+ return pulumi.get(self, "first_available")
1979
+
1980
+
1981
+ @pulumi.output_type
1982
+ class DeviceRequestAllocationResult(dict):
1983
+ """
1984
+ DeviceRequestAllocationResult contains the allocation result for one request.
1985
+ """
1986
+ @staticmethod
1987
+ def __key_warning(key: str):
1988
+ suggest = None
1989
+ if key == "adminAccess":
1990
+ suggest = "admin_access"
1991
+
1992
+ if suggest:
1993
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequestAllocationResult. Access the value via the '{suggest}' property getter instead.")
1994
+
1995
+ def __getitem__(self, key: str) -> Any:
1996
+ DeviceRequestAllocationResult.__key_warning(key)
1997
+ return super().__getitem__(key)
1998
+
1999
+ def get(self, key: str, default = None) -> Any:
2000
+ DeviceRequestAllocationResult.__key_warning(key)
2001
+ return super().get(key, default)
2002
+
2003
+ def __init__(__self__, *,
2004
+ device: _builtins.str,
2005
+ driver: _builtins.str,
2006
+ pool: _builtins.str,
2007
+ request: _builtins.str,
2008
+ admin_access: Optional[_builtins.bool] = None,
2009
+ tolerations: Optional[Sequence['outputs.DeviceToleration']] = None):
2010
+ """
2011
+ DeviceRequestAllocationResult contains the allocation result for one request.
2012
+ :param _builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
2013
+ :param _builtins.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.
2014
+
2015
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2016
+ :param _builtins.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>`).
2017
+
2018
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
2019
+ :param _builtins.str request: Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
2020
+
2021
+ Multiple devices may have been allocated per request.
2022
+ :param _builtins.bool admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
2023
+
2024
+ 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.
2025
+ :param Sequence['DeviceTolerationArgs'] tolerations: A copy of all tolerations specified in the request at the time when the device got allocated.
2026
+
2027
+ The maximum number of tolerations is 16.
2028
+
2029
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2030
+ """
2031
+ pulumi.set(__self__, "device", device)
2032
+ pulumi.set(__self__, "driver", driver)
2033
+ pulumi.set(__self__, "pool", pool)
2034
+ pulumi.set(__self__, "request", request)
2035
+ if admin_access is not None:
2036
+ pulumi.set(__self__, "admin_access", admin_access)
2037
+ if tolerations is not None:
2038
+ pulumi.set(__self__, "tolerations", tolerations)
2039
+
2040
+ @_builtins.property
2041
+ @pulumi.getter
2042
+ def device(self) -> _builtins.str:
2043
+ """
2044
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
2045
+ """
2046
+ return pulumi.get(self, "device")
2047
+
2048
+ @_builtins.property
2049
+ @pulumi.getter
2050
+ def driver(self) -> _builtins.str:
2051
+ """
2052
+ 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.
2053
+
2054
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2055
+ """
2056
+ return pulumi.get(self, "driver")
2057
+
2058
+ @_builtins.property
2059
+ @pulumi.getter
2060
+ def pool(self) -> _builtins.str:
2061
+ """
2062
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
2063
+
2064
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
2065
+ """
2066
+ return pulumi.get(self, "pool")
2067
+
2068
+ @_builtins.property
2069
+ @pulumi.getter
2070
+ def request(self) -> _builtins.str:
2071
+ """
2072
+ Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
2073
+
2074
+ Multiple devices may have been allocated per request.
2075
+ """
2076
+ return pulumi.get(self, "request")
2077
+
2078
+ @_builtins.property
2079
+ @pulumi.getter(name="adminAccess")
2080
+ def admin_access(self) -> Optional[_builtins.bool]:
2081
+ """
2082
+ AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
2083
+
2084
+ 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.
2085
+ """
2086
+ return pulumi.get(self, "admin_access")
2087
+
2088
+ @_builtins.property
2089
+ @pulumi.getter
2090
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceToleration']]:
2091
+ """
2092
+ A copy of all tolerations specified in the request at the time when the device got allocated.
2093
+
2094
+ The maximum number of tolerations is 16.
2095
+
2096
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2097
+ """
2098
+ return pulumi.get(self, "tolerations")
2099
+
2100
+
2101
+ @pulumi.output_type
2102
+ class DeviceRequestAllocationResultPatch(dict):
2103
+ """
2104
+ DeviceRequestAllocationResult contains the allocation result for one request.
2105
+ """
2106
+ @staticmethod
2107
+ def __key_warning(key: str):
2108
+ suggest = None
2109
+ if key == "adminAccess":
2110
+ suggest = "admin_access"
2111
+
2112
+ if suggest:
2113
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequestAllocationResultPatch. Access the value via the '{suggest}' property getter instead.")
2114
+
2115
+ def __getitem__(self, key: str) -> Any:
2116
+ DeviceRequestAllocationResultPatch.__key_warning(key)
2117
+ return super().__getitem__(key)
2118
+
2119
+ def get(self, key: str, default = None) -> Any:
2120
+ DeviceRequestAllocationResultPatch.__key_warning(key)
2121
+ return super().get(key, default)
2122
+
2123
+ def __init__(__self__, *,
2124
+ admin_access: Optional[_builtins.bool] = None,
2125
+ device: Optional[_builtins.str] = None,
2126
+ driver: Optional[_builtins.str] = None,
2127
+ pool: Optional[_builtins.str] = None,
2128
+ request: Optional[_builtins.str] = None,
2129
+ tolerations: Optional[Sequence['outputs.DeviceTolerationPatch']] = None):
2130
+ """
2131
+ DeviceRequestAllocationResult contains the allocation result for one request.
2132
+ :param _builtins.bool admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
2133
+
2134
+ 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.
2135
+ :param _builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
2136
+ :param _builtins.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.
2137
+
2138
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2139
+ :param _builtins.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>`).
2140
+
2141
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
2142
+ :param _builtins.str request: Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
2143
+
2144
+ Multiple devices may have been allocated per request.
2145
+ :param Sequence['DeviceTolerationPatchArgs'] tolerations: A copy of all tolerations specified in the request at the time when the device got allocated.
2146
+
2147
+ The maximum number of tolerations is 16.
2148
+
2149
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2150
+ """
2151
+ if admin_access is not None:
2152
+ pulumi.set(__self__, "admin_access", admin_access)
2153
+ if device is not None:
2154
+ pulumi.set(__self__, "device", device)
2155
+ if driver is not None:
2156
+ pulumi.set(__self__, "driver", driver)
2157
+ if pool is not None:
2158
+ pulumi.set(__self__, "pool", pool)
2159
+ if request is not None:
2160
+ pulumi.set(__self__, "request", request)
2161
+ if tolerations is not None:
2162
+ pulumi.set(__self__, "tolerations", tolerations)
2163
+
2164
+ @_builtins.property
2165
+ @pulumi.getter(name="adminAccess")
2166
+ def admin_access(self) -> Optional[_builtins.bool]:
2167
+ """
2168
+ AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
2169
+
2170
+ 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.
2171
+ """
2172
+ return pulumi.get(self, "admin_access")
2173
+
2174
+ @_builtins.property
2175
+ @pulumi.getter
2176
+ def device(self) -> Optional[_builtins.str]:
2177
+ """
2178
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
2179
+ """
2180
+ return pulumi.get(self, "device")
2181
+
2182
+ @_builtins.property
2183
+ @pulumi.getter
2184
+ def driver(self) -> Optional[_builtins.str]:
2185
+ """
2186
+ 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.
2187
+
2188
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2189
+ """
2190
+ return pulumi.get(self, "driver")
2191
+
2192
+ @_builtins.property
2193
+ @pulumi.getter
2194
+ def pool(self) -> Optional[_builtins.str]:
2195
+ """
2196
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
2197
+
2198
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
2199
+ """
2200
+ return pulumi.get(self, "pool")
2201
+
2202
+ @_builtins.property
2203
+ @pulumi.getter
2204
+ def request(self) -> Optional[_builtins.str]:
2205
+ """
2206
+ Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
2207
+
2208
+ Multiple devices may have been allocated per request.
2209
+ """
2210
+ return pulumi.get(self, "request")
2211
+
2212
+ @_builtins.property
2213
+ @pulumi.getter
2214
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceTolerationPatch']]:
2215
+ """
2216
+ A copy of all tolerations specified in the request at the time when the device got allocated.
2217
+
2218
+ The maximum number of tolerations is 16.
2219
+
2220
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2221
+ """
2222
+ return pulumi.get(self, "tolerations")
2223
+
2224
+
2225
+ @pulumi.output_type
2226
+ class DeviceRequestPatch(dict):
2227
+ """
2228
+ 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. With FirstAvailable it is also possible to provide a prioritized list of requests.
2229
+ """
2230
+ @staticmethod
2231
+ def __key_warning(key: str):
2232
+ suggest = None
2233
+ if key == "firstAvailable":
2234
+ suggest = "first_available"
2235
+
2236
+ if suggest:
2237
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequestPatch. Access the value via the '{suggest}' property getter instead.")
2238
+
2239
+ def __getitem__(self, key: str) -> Any:
2240
+ DeviceRequestPatch.__key_warning(key)
2241
+ return super().__getitem__(key)
2242
+
2243
+ def get(self, key: str, default = None) -> Any:
2244
+ DeviceRequestPatch.__key_warning(key)
2245
+ return super().get(key, default)
2246
+
2247
+ def __init__(__self__, *,
2248
+ exactly: Optional['outputs.ExactDeviceRequestPatch'] = None,
2249
+ first_available: Optional[Sequence['outputs.DeviceSubRequestPatch']] = None,
2250
+ name: Optional[_builtins.str] = None):
2251
+ """
2252
+ 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. With FirstAvailable it is also possible to provide a prioritized list of requests.
2253
+ :param 'ExactDeviceRequestPatchArgs' exactly: Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.
2254
+
2255
+ One of Exactly or FirstAvailable must be set.
2256
+ :param Sequence['DeviceSubRequestPatchArgs'] first_available: FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.
2257
+
2258
+ DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
2259
+ :param _builtins.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.
2260
+
2261
+ References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.
2262
+
2263
+ Must be a DNS label.
2264
+ """
2265
+ if exactly is not None:
2266
+ pulumi.set(__self__, "exactly", exactly)
2267
+ if first_available is not None:
2268
+ pulumi.set(__self__, "first_available", first_available)
2269
+ if name is not None:
2270
+ pulumi.set(__self__, "name", name)
2271
+
2272
+ @_builtins.property
2273
+ @pulumi.getter
2274
+ def exactly(self) -> Optional['outputs.ExactDeviceRequestPatch']:
2275
+ """
2276
+ Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.
2277
+
2278
+ One of Exactly or FirstAvailable must be set.
2279
+ """
2280
+ return pulumi.get(self, "exactly")
2281
+
2282
+ @_builtins.property
2283
+ @pulumi.getter(name="firstAvailable")
2284
+ def first_available(self) -> Optional[Sequence['outputs.DeviceSubRequestPatch']]:
2285
+ """
2286
+ FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.
2287
+
2288
+ DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
2289
+ """
2290
+ return pulumi.get(self, "first_available")
2291
+
2292
+ @_builtins.property
2293
+ @pulumi.getter
2294
+ def name(self) -> Optional[_builtins.str]:
2295
+ """
2296
+ Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
2297
+
2298
+ References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.
2299
+
2300
+ Must be a DNS label.
2301
+ """
2302
+ return pulumi.get(self, "name")
2303
+
2304
+
2305
+ @pulumi.output_type
2306
+ class DeviceSelector(dict):
2307
+ """
2308
+ DeviceSelector must have exactly one field set.
2309
+ """
2310
+ def __init__(__self__, *,
2311
+ cel: Optional['outputs.CELDeviceSelector'] = None):
2312
+ """
2313
+ DeviceSelector must have exactly one field set.
2314
+ :param 'CELDeviceSelectorArgs' cel: CEL contains a CEL expression for selecting a device.
2315
+ """
2316
+ if cel is not None:
2317
+ pulumi.set(__self__, "cel", cel)
2318
+
2319
+ @_builtins.property
2320
+ @pulumi.getter
2321
+ def cel(self) -> Optional['outputs.CELDeviceSelector']:
2322
+ """
2323
+ CEL contains a CEL expression for selecting a device.
2324
+ """
2325
+ return pulumi.get(self, "cel")
2326
+
2327
+
2328
+ @pulumi.output_type
2329
+ class DeviceSelectorPatch(dict):
2330
+ """
2331
+ DeviceSelector must have exactly one field set.
2332
+ """
2333
+ def __init__(__self__, *,
2334
+ cel: Optional['outputs.CELDeviceSelectorPatch'] = None):
2335
+ """
2336
+ DeviceSelector must have exactly one field set.
2337
+ :param 'CELDeviceSelectorPatchArgs' cel: CEL contains a CEL expression for selecting a device.
2338
+ """
2339
+ if cel is not None:
2340
+ pulumi.set(__self__, "cel", cel)
2341
+
2342
+ @_builtins.property
2343
+ @pulumi.getter
2344
+ def cel(self) -> Optional['outputs.CELDeviceSelectorPatch']:
2345
+ """
2346
+ CEL contains a CEL expression for selecting a device.
2347
+ """
2348
+ return pulumi.get(self, "cel")
2349
+
2350
+
2351
+ @pulumi.output_type
2352
+ class DeviceSubRequest(dict):
2353
+ """
2354
+ DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
2355
+
2356
+ DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.
2357
+ """
2358
+ @staticmethod
2359
+ def __key_warning(key: str):
2360
+ suggest = None
2361
+ if key == "deviceClassName":
2362
+ suggest = "device_class_name"
2363
+ elif key == "allocationMode":
2364
+ suggest = "allocation_mode"
2365
+
2366
+ if suggest:
2367
+ pulumi.log.warn(f"Key '{key}' not found in DeviceSubRequest. Access the value via the '{suggest}' property getter instead.")
2368
+
2369
+ def __getitem__(self, key: str) -> Any:
2370
+ DeviceSubRequest.__key_warning(key)
2371
+ return super().__getitem__(key)
2372
+
2373
+ def get(self, key: str, default = None) -> Any:
2374
+ DeviceSubRequest.__key_warning(key)
2375
+ return super().get(key, default)
2376
+
2377
+ def __init__(__self__, *,
2378
+ device_class_name: _builtins.str,
2379
+ name: _builtins.str,
2380
+ allocation_mode: Optional[_builtins.str] = None,
2381
+ count: Optional[_builtins.int] = None,
2382
+ selectors: Optional[Sequence['outputs.DeviceSelector']] = None,
2383
+ tolerations: Optional[Sequence['outputs.DeviceToleration']] = None):
2384
+ """
2385
+ DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
2386
+
2387
+ DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.
2388
+ :param _builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
2389
+
2390
+ A class is required. Which classes are available depends on the cluster.
2391
+
2392
+ 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.
2393
+ :param _builtins.str name: Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
2394
+
2395
+ Must be a DNS label.
2396
+ :param _builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
2397
+
2398
+ - ExactCount: This request is for a specific number of devices.
2399
+ This is the default. The exact number is provided in the
2400
+ count field.
2401
+
2402
+ - All: This subrequest is for all of the matching devices in a pool.
2403
+ Allocation will fail if some devices are already allocated,
2404
+ unless adminAccess is requested.
2405
+
2406
+ If AllocationMode 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 subrequests must specify this field.
2407
+
2408
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
2409
+ :param _builtins.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.
2410
+ :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 subrequest. All selectors must be satisfied for a device to be considered.
2411
+ :param Sequence['DeviceTolerationArgs'] tolerations: If specified, the request's tolerations.
2412
+
2413
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
2414
+
2415
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
2416
+
2417
+ The maximum number of tolerations is 16.
2418
+
2419
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2420
+ """
2421
+ pulumi.set(__self__, "device_class_name", device_class_name)
2422
+ pulumi.set(__self__, "name", name)
2423
+ if allocation_mode is not None:
2424
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
2425
+ if count is not None:
2426
+ pulumi.set(__self__, "count", count)
2427
+ if selectors is not None:
2428
+ pulumi.set(__self__, "selectors", selectors)
2429
+ if tolerations is not None:
2430
+ pulumi.set(__self__, "tolerations", tolerations)
2431
+
2432
+ @_builtins.property
2433
+ @pulumi.getter(name="deviceClassName")
2434
+ def device_class_name(self) -> _builtins.str:
2435
+ """
2436
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
2437
+
2438
+ A class is required. Which classes are available depends on the cluster.
2439
+
2440
+ 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.
2441
+ """
2442
+ return pulumi.get(self, "device_class_name")
2443
+
2444
+ @_builtins.property
2445
+ @pulumi.getter
2446
+ def name(self) -> _builtins.str:
2447
+ """
2448
+ Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
2449
+
2450
+ Must be a DNS label.
2451
+ """
2452
+ return pulumi.get(self, "name")
2453
+
2454
+ @_builtins.property
2455
+ @pulumi.getter(name="allocationMode")
2456
+ def allocation_mode(self) -> Optional[_builtins.str]:
2457
+ """
2458
+ AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
2459
+
2460
+ - ExactCount: This request is for a specific number of devices.
2461
+ This is the default. The exact number is provided in the
2462
+ count field.
2463
+
2464
+ - All: This subrequest is for all of the matching devices in a pool.
2465
+ Allocation will fail if some devices are already allocated,
2466
+ unless adminAccess is requested.
2467
+
2468
+ If AllocationMode 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 subrequests must specify this field.
2469
+
2470
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
2471
+ """
2472
+ return pulumi.get(self, "allocation_mode")
2473
+
2474
+ @_builtins.property
2475
+ @pulumi.getter
2476
+ def count(self) -> Optional[_builtins.int]:
2477
+ """
2478
+ 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.
2479
+ """
2480
+ return pulumi.get(self, "count")
2481
+
2482
+ @_builtins.property
2483
+ @pulumi.getter
2484
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
2485
+ """
2486
+ Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.
2487
+ """
2488
+ return pulumi.get(self, "selectors")
2489
+
2490
+ @_builtins.property
2491
+ @pulumi.getter
2492
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceToleration']]:
2493
+ """
2494
+ If specified, the request's tolerations.
2495
+
2496
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
2497
+
2498
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
2499
+
2500
+ The maximum number of tolerations is 16.
2501
+
2502
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2503
+ """
2504
+ return pulumi.get(self, "tolerations")
2505
+
2506
+
2507
+ @pulumi.output_type
2508
+ class DeviceSubRequestPatch(dict):
2509
+ """
2510
+ DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
2511
+
2512
+ DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.
2513
+ """
2514
+ @staticmethod
2515
+ def __key_warning(key: str):
2516
+ suggest = None
2517
+ if key == "allocationMode":
2518
+ suggest = "allocation_mode"
2519
+ elif key == "deviceClassName":
2520
+ suggest = "device_class_name"
2521
+
2522
+ if suggest:
2523
+ pulumi.log.warn(f"Key '{key}' not found in DeviceSubRequestPatch. Access the value via the '{suggest}' property getter instead.")
2524
+
2525
+ def __getitem__(self, key: str) -> Any:
2526
+ DeviceSubRequestPatch.__key_warning(key)
2527
+ return super().__getitem__(key)
2528
+
2529
+ def get(self, key: str, default = None) -> Any:
2530
+ DeviceSubRequestPatch.__key_warning(key)
2531
+ return super().get(key, default)
2532
+
2533
+ def __init__(__self__, *,
2534
+ allocation_mode: Optional[_builtins.str] = None,
2535
+ count: Optional[_builtins.int] = None,
2536
+ device_class_name: Optional[_builtins.str] = None,
2537
+ name: Optional[_builtins.str] = None,
2538
+ selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None,
2539
+ tolerations: Optional[Sequence['outputs.DeviceTolerationPatch']] = None):
2540
+ """
2541
+ DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
2542
+
2543
+ DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.
2544
+ :param _builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
2545
+
2546
+ - ExactCount: This request is for a specific number of devices.
2547
+ This is the default. The exact number is provided in the
2548
+ count field.
2549
+
2550
+ - All: This subrequest is for all of the matching devices in a pool.
2551
+ Allocation will fail if some devices are already allocated,
2552
+ unless adminAccess is requested.
2553
+
2554
+ If AllocationMode 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 subrequests must specify this field.
2555
+
2556
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
2557
+ :param _builtins.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.
2558
+ :param _builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
2559
+
2560
+ A class is required. Which classes are available depends on the cluster.
2561
+
2562
+ 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.
2563
+ :param _builtins.str name: Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
2564
+
2565
+ Must be a DNS label.
2566
+ :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 subrequest. All selectors must be satisfied for a device to be considered.
2567
+ :param Sequence['DeviceTolerationPatchArgs'] tolerations: If specified, the request's tolerations.
2568
+
2569
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
2570
+
2571
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
2572
+
2573
+ The maximum number of tolerations is 16.
2574
+
2575
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2576
+ """
2577
+ if allocation_mode is not None:
2578
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
2579
+ if count is not None:
2580
+ pulumi.set(__self__, "count", count)
2581
+ if device_class_name is not None:
2582
+ pulumi.set(__self__, "device_class_name", device_class_name)
2583
+ if name is not None:
2584
+ pulumi.set(__self__, "name", name)
2585
+ if selectors is not None:
2586
+ pulumi.set(__self__, "selectors", selectors)
2587
+ if tolerations is not None:
2588
+ pulumi.set(__self__, "tolerations", tolerations)
2589
+
2590
+ @_builtins.property
2591
+ @pulumi.getter(name="allocationMode")
2592
+ def allocation_mode(self) -> Optional[_builtins.str]:
2593
+ """
2594
+ AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
2595
+
2596
+ - ExactCount: This request is for a specific number of devices.
2597
+ This is the default. The exact number is provided in the
2598
+ count field.
2599
+
2600
+ - All: This subrequest is for all of the matching devices in a pool.
2601
+ Allocation will fail if some devices are already allocated,
2602
+ unless adminAccess is requested.
2603
+
2604
+ If AllocationMode 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 subrequests must specify this field.
2605
+
2606
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
2607
+ """
2608
+ return pulumi.get(self, "allocation_mode")
2609
+
2610
+ @_builtins.property
2611
+ @pulumi.getter
2612
+ def count(self) -> Optional[_builtins.int]:
2613
+ """
2614
+ 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.
2615
+ """
2616
+ return pulumi.get(self, "count")
2617
+
2618
+ @_builtins.property
2619
+ @pulumi.getter(name="deviceClassName")
2620
+ def device_class_name(self) -> Optional[_builtins.str]:
2621
+ """
2622
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
2623
+
2624
+ A class is required. Which classes are available depends on the cluster.
2625
+
2626
+ 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.
2627
+ """
2628
+ return pulumi.get(self, "device_class_name")
2629
+
2630
+ @_builtins.property
2631
+ @pulumi.getter
2632
+ def name(self) -> Optional[_builtins.str]:
2633
+ """
2634
+ Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
2635
+
2636
+ Must be a DNS label.
2637
+ """
2638
+ return pulumi.get(self, "name")
2639
+
2640
+ @_builtins.property
2641
+ @pulumi.getter
2642
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
2643
+ """
2644
+ Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.
2645
+ """
2646
+ return pulumi.get(self, "selectors")
2647
+
2648
+ @_builtins.property
2649
+ @pulumi.getter
2650
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceTolerationPatch']]:
2651
+ """
2652
+ If specified, the request's tolerations.
2653
+
2654
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
2655
+
2656
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
2657
+
2658
+ The maximum number of tolerations is 16.
2659
+
2660
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2661
+ """
2662
+ return pulumi.get(self, "tolerations")
2663
+
2664
+
2665
+ @pulumi.output_type
2666
+ class DeviceTaint(dict):
2667
+ """
2668
+ The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
2669
+ """
2670
+ @staticmethod
2671
+ def __key_warning(key: str):
2672
+ suggest = None
2673
+ if key == "timeAdded":
2674
+ suggest = "time_added"
2675
+
2676
+ if suggest:
2677
+ pulumi.log.warn(f"Key '{key}' not found in DeviceTaint. Access the value via the '{suggest}' property getter instead.")
2678
+
2679
+ def __getitem__(self, key: str) -> Any:
2680
+ DeviceTaint.__key_warning(key)
2681
+ return super().__getitem__(key)
2682
+
2683
+ def get(self, key: str, default = None) -> Any:
2684
+ DeviceTaint.__key_warning(key)
2685
+ return super().get(key, default)
2686
+
2687
+ def __init__(__self__, *,
2688
+ effect: _builtins.str,
2689
+ key: _builtins.str,
2690
+ time_added: Optional[_builtins.str] = None,
2691
+ value: Optional[_builtins.str] = None):
2692
+ """
2693
+ The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
2694
+ :param _builtins.str effect: The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
2695
+ :param _builtins.str key: The taint key to be applied to a device. Must be a label name.
2696
+ :param _builtins.str time_added: TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
2697
+ :param _builtins.str value: The taint value corresponding to the taint key. Must be a label value.
2698
+ """
2699
+ pulumi.set(__self__, "effect", effect)
2700
+ pulumi.set(__self__, "key", key)
2701
+ if time_added is not None:
2702
+ pulumi.set(__self__, "time_added", time_added)
2703
+ if value is not None:
2704
+ pulumi.set(__self__, "value", value)
2705
+
2706
+ @_builtins.property
2707
+ @pulumi.getter
2708
+ def effect(self) -> _builtins.str:
2709
+ """
2710
+ The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
2711
+ """
2712
+ return pulumi.get(self, "effect")
2713
+
2714
+ @_builtins.property
2715
+ @pulumi.getter
2716
+ def key(self) -> _builtins.str:
2717
+ """
2718
+ The taint key to be applied to a device. Must be a label name.
2719
+ """
2720
+ return pulumi.get(self, "key")
2721
+
2722
+ @_builtins.property
2723
+ @pulumi.getter(name="timeAdded")
2724
+ def time_added(self) -> Optional[_builtins.str]:
2725
+ """
2726
+ TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
2727
+ """
2728
+ return pulumi.get(self, "time_added")
2729
+
2730
+ @_builtins.property
2731
+ @pulumi.getter
2732
+ def value(self) -> Optional[_builtins.str]:
2733
+ """
2734
+ The taint value corresponding to the taint key. Must be a label value.
2735
+ """
2736
+ return pulumi.get(self, "value")
2737
+
2738
+
2739
+ @pulumi.output_type
2740
+ class DeviceTaintPatch(dict):
2741
+ """
2742
+ The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
2743
+ """
2744
+ @staticmethod
2745
+ def __key_warning(key: str):
2746
+ suggest = None
2747
+ if key == "timeAdded":
2748
+ suggest = "time_added"
2749
+
2750
+ if suggest:
2751
+ pulumi.log.warn(f"Key '{key}' not found in DeviceTaintPatch. Access the value via the '{suggest}' property getter instead.")
2752
+
2753
+ def __getitem__(self, key: str) -> Any:
2754
+ DeviceTaintPatch.__key_warning(key)
2755
+ return super().__getitem__(key)
2756
+
2757
+ def get(self, key: str, default = None) -> Any:
2758
+ DeviceTaintPatch.__key_warning(key)
2759
+ return super().get(key, default)
2760
+
2761
+ def __init__(__self__, *,
2762
+ effect: Optional[_builtins.str] = None,
2763
+ key: Optional[_builtins.str] = None,
2764
+ time_added: Optional[_builtins.str] = None,
2765
+ value: Optional[_builtins.str] = None):
2766
+ """
2767
+ The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
2768
+ :param _builtins.str effect: The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
2769
+ :param _builtins.str key: The taint key to be applied to a device. Must be a label name.
2770
+ :param _builtins.str time_added: TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
2771
+ :param _builtins.str value: The taint value corresponding to the taint key. Must be a label value.
2772
+ """
2773
+ if effect is not None:
2774
+ pulumi.set(__self__, "effect", effect)
2775
+ if key is not None:
2776
+ pulumi.set(__self__, "key", key)
2777
+ if time_added is not None:
2778
+ pulumi.set(__self__, "time_added", time_added)
2779
+ if value is not None:
2780
+ pulumi.set(__self__, "value", value)
2781
+
2782
+ @_builtins.property
2783
+ @pulumi.getter
2784
+ def effect(self) -> Optional[_builtins.str]:
2785
+ """
2786
+ The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
2787
+ """
2788
+ return pulumi.get(self, "effect")
2789
+
2790
+ @_builtins.property
2791
+ @pulumi.getter
2792
+ def key(self) -> Optional[_builtins.str]:
2793
+ """
2794
+ The taint key to be applied to a device. Must be a label name.
2795
+ """
2796
+ return pulumi.get(self, "key")
2797
+
2798
+ @_builtins.property
2799
+ @pulumi.getter(name="timeAdded")
2800
+ def time_added(self) -> Optional[_builtins.str]:
2801
+ """
2802
+ TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
2803
+ """
2804
+ return pulumi.get(self, "time_added")
2805
+
2806
+ @_builtins.property
2807
+ @pulumi.getter
2808
+ def value(self) -> Optional[_builtins.str]:
2809
+ """
2810
+ The taint value corresponding to the taint key. Must be a label value.
2811
+ """
2812
+ return pulumi.get(self, "value")
2813
+
2814
+
2815
+ @pulumi.output_type
2816
+ class DeviceToleration(dict):
2817
+ """
2818
+ The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
2819
+ """
2820
+ @staticmethod
2821
+ def __key_warning(key: str):
2822
+ suggest = None
2823
+ if key == "tolerationSeconds":
2824
+ suggest = "toleration_seconds"
2825
+
2826
+ if suggest:
2827
+ pulumi.log.warn(f"Key '{key}' not found in DeviceToleration. Access the value via the '{suggest}' property getter instead.")
2828
+
2829
+ def __getitem__(self, key: str) -> Any:
2830
+ DeviceToleration.__key_warning(key)
2831
+ return super().__getitem__(key)
2832
+
2833
+ def get(self, key: str, default = None) -> Any:
2834
+ DeviceToleration.__key_warning(key)
2835
+ return super().get(key, default)
2836
+
2837
+ def __init__(__self__, *,
2838
+ effect: Optional[_builtins.str] = None,
2839
+ key: Optional[_builtins.str] = None,
2840
+ operator: Optional[_builtins.str] = None,
2841
+ toleration_seconds: Optional[_builtins.int] = None,
2842
+ value: Optional[_builtins.str] = None):
2843
+ """
2844
+ The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
2845
+ :param _builtins.str effect: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
2846
+ :param _builtins.str key: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
2847
+ :param _builtins.str operator: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
2848
+ :param _builtins.int toleration_seconds: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
2849
+ :param _builtins.str value: Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
2850
+ """
2851
+ if effect is not None:
2852
+ pulumi.set(__self__, "effect", effect)
2853
+ if key is not None:
2854
+ pulumi.set(__self__, "key", key)
2855
+ if operator is not None:
2856
+ pulumi.set(__self__, "operator", operator)
2857
+ if toleration_seconds is not None:
2858
+ pulumi.set(__self__, "toleration_seconds", toleration_seconds)
2859
+ if value is not None:
2860
+ pulumi.set(__self__, "value", value)
2861
+
2862
+ @_builtins.property
2863
+ @pulumi.getter
2864
+ def effect(self) -> Optional[_builtins.str]:
2865
+ """
2866
+ Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
2867
+ """
2868
+ return pulumi.get(self, "effect")
2869
+
2870
+ @_builtins.property
2871
+ @pulumi.getter
2872
+ def key(self) -> Optional[_builtins.str]:
2873
+ """
2874
+ Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
2875
+ """
2876
+ return pulumi.get(self, "key")
2877
+
2878
+ @_builtins.property
2879
+ @pulumi.getter
2880
+ def operator(self) -> Optional[_builtins.str]:
2881
+ """
2882
+ Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
2883
+ """
2884
+ return pulumi.get(self, "operator")
2885
+
2886
+ @_builtins.property
2887
+ @pulumi.getter(name="tolerationSeconds")
2888
+ def toleration_seconds(self) -> Optional[_builtins.int]:
2889
+ """
2890
+ TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
2891
+ """
2892
+ return pulumi.get(self, "toleration_seconds")
2893
+
2894
+ @_builtins.property
2895
+ @pulumi.getter
2896
+ def value(self) -> Optional[_builtins.str]:
2897
+ """
2898
+ Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
2899
+ """
2900
+ return pulumi.get(self, "value")
2901
+
2902
+
2903
+ @pulumi.output_type
2904
+ class DeviceTolerationPatch(dict):
2905
+ """
2906
+ The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
2907
+ """
2908
+ @staticmethod
2909
+ def __key_warning(key: str):
2910
+ suggest = None
2911
+ if key == "tolerationSeconds":
2912
+ suggest = "toleration_seconds"
2913
+
2914
+ if suggest:
2915
+ pulumi.log.warn(f"Key '{key}' not found in DeviceTolerationPatch. Access the value via the '{suggest}' property getter instead.")
2916
+
2917
+ def __getitem__(self, key: str) -> Any:
2918
+ DeviceTolerationPatch.__key_warning(key)
2919
+ return super().__getitem__(key)
2920
+
2921
+ def get(self, key: str, default = None) -> Any:
2922
+ DeviceTolerationPatch.__key_warning(key)
2923
+ return super().get(key, default)
2924
+
2925
+ def __init__(__self__, *,
2926
+ effect: Optional[_builtins.str] = None,
2927
+ key: Optional[_builtins.str] = None,
2928
+ operator: Optional[_builtins.str] = None,
2929
+ toleration_seconds: Optional[_builtins.int] = None,
2930
+ value: Optional[_builtins.str] = None):
2931
+ """
2932
+ The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
2933
+ :param _builtins.str effect: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
2934
+ :param _builtins.str key: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
2935
+ :param _builtins.str operator: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
2936
+ :param _builtins.int toleration_seconds: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
2937
+ :param _builtins.str value: Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
2938
+ """
2939
+ if effect is not None:
2940
+ pulumi.set(__self__, "effect", effect)
2941
+ if key is not None:
2942
+ pulumi.set(__self__, "key", key)
2943
+ if operator is not None:
2944
+ pulumi.set(__self__, "operator", operator)
2945
+ if toleration_seconds is not None:
2946
+ pulumi.set(__self__, "toleration_seconds", toleration_seconds)
2947
+ if value is not None:
2948
+ pulumi.set(__self__, "value", value)
2949
+
2950
+ @_builtins.property
2951
+ @pulumi.getter
2952
+ def effect(self) -> Optional[_builtins.str]:
2953
+ """
2954
+ Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
2955
+ """
2956
+ return pulumi.get(self, "effect")
2957
+
2958
+ @_builtins.property
2959
+ @pulumi.getter
2960
+ def key(self) -> Optional[_builtins.str]:
2961
+ """
2962
+ Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
2963
+ """
2964
+ return pulumi.get(self, "key")
2965
+
2966
+ @_builtins.property
2967
+ @pulumi.getter
2968
+ def operator(self) -> Optional[_builtins.str]:
2969
+ """
2970
+ Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
2971
+ """
2972
+ return pulumi.get(self, "operator")
2973
+
2974
+ @_builtins.property
2975
+ @pulumi.getter(name="tolerationSeconds")
2976
+ def toleration_seconds(self) -> Optional[_builtins.int]:
2977
+ """
2978
+ TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
2979
+ """
2980
+ return pulumi.get(self, "toleration_seconds")
2981
+
2982
+ @_builtins.property
2983
+ @pulumi.getter
2984
+ def value(self) -> Optional[_builtins.str]:
2985
+ """
2986
+ Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
2987
+ """
2988
+ return pulumi.get(self, "value")
2989
+
2990
+
2991
+ @pulumi.output_type
2992
+ class ExactDeviceRequest(dict):
2993
+ """
2994
+ ExactDeviceRequest is a request for one or more identical devices.
2995
+ """
2996
+ @staticmethod
2997
+ def __key_warning(key: str):
2998
+ suggest = None
2999
+ if key == "deviceClassName":
3000
+ suggest = "device_class_name"
3001
+ elif key == "adminAccess":
3002
+ suggest = "admin_access"
3003
+ elif key == "allocationMode":
3004
+ suggest = "allocation_mode"
3005
+
3006
+ if suggest:
3007
+ pulumi.log.warn(f"Key '{key}' not found in ExactDeviceRequest. Access the value via the '{suggest}' property getter instead.")
3008
+
3009
+ def __getitem__(self, key: str) -> Any:
3010
+ ExactDeviceRequest.__key_warning(key)
3011
+ return super().__getitem__(key)
3012
+
3013
+ def get(self, key: str, default = None) -> Any:
3014
+ ExactDeviceRequest.__key_warning(key)
3015
+ return super().get(key, default)
3016
+
3017
+ def __init__(__self__, *,
3018
+ device_class_name: _builtins.str,
3019
+ admin_access: Optional[_builtins.bool] = None,
3020
+ allocation_mode: Optional[_builtins.str] = None,
3021
+ count: Optional[_builtins.int] = None,
3022
+ selectors: Optional[Sequence['outputs.DeviceSelector']] = None,
3023
+ tolerations: Optional[Sequence['outputs.DeviceToleration']] = None):
3024
+ """
3025
+ ExactDeviceRequest is a request for one or more identical devices.
3026
+ :param _builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
3027
+
3028
+ A DeviceClassName is required.
3029
+
3030
+ 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.
3031
+ :param _builtins.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.
3032
+
3033
+ 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.
3034
+ :param _builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
3035
+
3036
+ - ExactCount: This request is for a specific number of devices.
3037
+ This is the default. The exact number is provided in the
3038
+ count field.
3039
+
3040
+ - All: This request is for all of the matching devices in a pool.
3041
+ At least one device must exist on the node for the allocation to succeed.
3042
+ Allocation will fail if some devices are already allocated,
3043
+ unless adminAccess is requested.
3044
+
3045
+ If AllocationMode 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.
3046
+
3047
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
3048
+ :param _builtins.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.
3049
+ :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.
3050
+ :param Sequence['DeviceTolerationArgs'] tolerations: If specified, the request's tolerations.
3051
+
3052
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
3053
+
3054
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
3055
+
3056
+ The maximum number of tolerations is 16.
3057
+
3058
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
3059
+ """
3060
+ pulumi.set(__self__, "device_class_name", device_class_name)
3061
+ if admin_access is not None:
3062
+ pulumi.set(__self__, "admin_access", admin_access)
3063
+ if allocation_mode is not None:
3064
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
3065
+ if count is not None:
3066
+ pulumi.set(__self__, "count", count)
3067
+ if selectors is not None:
3068
+ pulumi.set(__self__, "selectors", selectors)
3069
+ if tolerations is not None:
3070
+ pulumi.set(__self__, "tolerations", tolerations)
3071
+
3072
+ @_builtins.property
3073
+ @pulumi.getter(name="deviceClassName")
3074
+ def device_class_name(self) -> _builtins.str:
3075
+ """
3076
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
3077
+
3078
+ A DeviceClassName is required.
3079
+
3080
+ 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.
3081
+ """
3082
+ return pulumi.get(self, "device_class_name")
3083
+
3084
+ @_builtins.property
3085
+ @pulumi.getter(name="adminAccess")
3086
+ def admin_access(self) -> Optional[_builtins.bool]:
3087
+ """
3088
+ 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.
3089
+
3090
+ 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.
3091
+ """
3092
+ return pulumi.get(self, "admin_access")
3093
+
3094
+ @_builtins.property
3095
+ @pulumi.getter(name="allocationMode")
3096
+ def allocation_mode(self) -> Optional[_builtins.str]:
3097
+ """
3098
+ AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
3099
+
3100
+ - ExactCount: This request is for a specific number of devices.
3101
+ This is the default. The exact number is provided in the
3102
+ count field.
3103
+
3104
+ - All: This request is for all of the matching devices in a pool.
3105
+ At least one device must exist on the node for the allocation to succeed.
3106
+ Allocation will fail if some devices are already allocated,
3107
+ unless adminAccess is requested.
3108
+
3109
+ If AllocationMode 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.
3110
+
3111
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
3112
+ """
3113
+ return pulumi.get(self, "allocation_mode")
3114
+
3115
+ @_builtins.property
3116
+ @pulumi.getter
3117
+ def count(self) -> Optional[_builtins.int]:
3118
+ """
3119
+ 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.
3120
+ """
3121
+ return pulumi.get(self, "count")
3122
+
3123
+ @_builtins.property
3124
+ @pulumi.getter
3125
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
3126
+ """
3127
+ 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.
3128
+ """
3129
+ return pulumi.get(self, "selectors")
3130
+
3131
+ @_builtins.property
3132
+ @pulumi.getter
3133
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceToleration']]:
3134
+ """
3135
+ If specified, the request's tolerations.
3136
+
3137
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
3138
+
3139
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
3140
+
3141
+ The maximum number of tolerations is 16.
3142
+
3143
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
3144
+ """
3145
+ return pulumi.get(self, "tolerations")
3146
+
3147
+
3148
+ @pulumi.output_type
3149
+ class ExactDeviceRequestPatch(dict):
3150
+ """
3151
+ ExactDeviceRequest is a request for one or more identical devices.
3152
+ """
3153
+ @staticmethod
3154
+ def __key_warning(key: str):
3155
+ suggest = None
3156
+ if key == "adminAccess":
3157
+ suggest = "admin_access"
3158
+ elif key == "allocationMode":
3159
+ suggest = "allocation_mode"
3160
+ elif key == "deviceClassName":
3161
+ suggest = "device_class_name"
3162
+
3163
+ if suggest:
3164
+ pulumi.log.warn(f"Key '{key}' not found in ExactDeviceRequestPatch. Access the value via the '{suggest}' property getter instead.")
3165
+
3166
+ def __getitem__(self, key: str) -> Any:
3167
+ ExactDeviceRequestPatch.__key_warning(key)
3168
+ return super().__getitem__(key)
3169
+
3170
+ def get(self, key: str, default = None) -> Any:
3171
+ ExactDeviceRequestPatch.__key_warning(key)
3172
+ return super().get(key, default)
3173
+
3174
+ def __init__(__self__, *,
3175
+ admin_access: Optional[_builtins.bool] = None,
3176
+ allocation_mode: Optional[_builtins.str] = None,
3177
+ count: Optional[_builtins.int] = None,
3178
+ device_class_name: Optional[_builtins.str] = None,
3179
+ selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None,
3180
+ tolerations: Optional[Sequence['outputs.DeviceTolerationPatch']] = None):
3181
+ """
3182
+ ExactDeviceRequest is a request for one or more identical devices.
3183
+ :param _builtins.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.
3184
+
3185
+ 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.
3186
+ :param _builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
3187
+
3188
+ - ExactCount: This request is for a specific number of devices.
3189
+ This is the default. The exact number is provided in the
3190
+ count field.
3191
+
3192
+ - All: This request is for all of the matching devices in a pool.
3193
+ At least one device must exist on the node for the allocation to succeed.
3194
+ Allocation will fail if some devices are already allocated,
3195
+ unless adminAccess is requested.
3196
+
3197
+ If AllocationMode 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.
3198
+
3199
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
3200
+ :param _builtins.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.
3201
+ :param _builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
3202
+
3203
+ A DeviceClassName is required.
3204
+
3205
+ 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.
3206
+ :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.
3207
+ :param Sequence['DeviceTolerationPatchArgs'] tolerations: If specified, the request's tolerations.
3208
+
3209
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
3210
+
3211
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
3212
+
3213
+ The maximum number of tolerations is 16.
3214
+
3215
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
3216
+ """
3217
+ if admin_access is not None:
3218
+ pulumi.set(__self__, "admin_access", admin_access)
3219
+ if allocation_mode is not None:
3220
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
3221
+ if count is not None:
3222
+ pulumi.set(__self__, "count", count)
3223
+ if device_class_name is not None:
3224
+ pulumi.set(__self__, "device_class_name", device_class_name)
3225
+ if selectors is not None:
3226
+ pulumi.set(__self__, "selectors", selectors)
3227
+ if tolerations is not None:
3228
+ pulumi.set(__self__, "tolerations", tolerations)
3229
+
3230
+ @_builtins.property
3231
+ @pulumi.getter(name="adminAccess")
3232
+ def admin_access(self) -> Optional[_builtins.bool]:
3233
+ """
3234
+ 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.
3235
+
3236
+ 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.
3237
+ """
3238
+ return pulumi.get(self, "admin_access")
3239
+
3240
+ @_builtins.property
3241
+ @pulumi.getter(name="allocationMode")
3242
+ def allocation_mode(self) -> Optional[_builtins.str]:
3243
+ """
3244
+ AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
3245
+
3246
+ - ExactCount: This request is for a specific number of devices.
3247
+ This is the default. The exact number is provided in the
3248
+ count field.
3249
+
3250
+ - All: This request is for all of the matching devices in a pool.
3251
+ At least one device must exist on the node for the allocation to succeed.
3252
+ Allocation will fail if some devices are already allocated,
3253
+ unless adminAccess is requested.
3254
+
3255
+ If AllocationMode 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.
3256
+
3257
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
3258
+ """
3259
+ return pulumi.get(self, "allocation_mode")
3260
+
3261
+ @_builtins.property
3262
+ @pulumi.getter
3263
+ def count(self) -> Optional[_builtins.int]:
3264
+ """
3265
+ 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.
3266
+ """
3267
+ return pulumi.get(self, "count")
3268
+
3269
+ @_builtins.property
3270
+ @pulumi.getter(name="deviceClassName")
3271
+ def device_class_name(self) -> Optional[_builtins.str]:
3272
+ """
3273
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
3274
+
3275
+ A DeviceClassName is required.
3276
+
3277
+ 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.
3278
+ """
3279
+ return pulumi.get(self, "device_class_name")
3280
+
3281
+ @_builtins.property
3282
+ @pulumi.getter
3283
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
3284
+ """
3285
+ 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.
3286
+ """
3287
+ return pulumi.get(self, "selectors")
3288
+
3289
+ @_builtins.property
3290
+ @pulumi.getter
3291
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceTolerationPatch']]:
3292
+ """
3293
+ If specified, the request's tolerations.
3294
+
3295
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
3296
+
3297
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
3298
+
3299
+ The maximum number of tolerations is 16.
3300
+
3301
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
3302
+ """
3303
+ return pulumi.get(self, "tolerations")
3304
+
3305
+
3306
+ @pulumi.output_type
3307
+ class NetworkDeviceData(dict):
3308
+ """
3309
+ 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.
3310
+ """
3311
+ @staticmethod
3312
+ def __key_warning(key: str):
3313
+ suggest = None
3314
+ if key == "hardwareAddress":
3315
+ suggest = "hardware_address"
3316
+ elif key == "interfaceName":
3317
+ suggest = "interface_name"
3318
+
3319
+ if suggest:
3320
+ pulumi.log.warn(f"Key '{key}' not found in NetworkDeviceData. Access the value via the '{suggest}' property getter instead.")
3321
+
3322
+ def __getitem__(self, key: str) -> Any:
3323
+ NetworkDeviceData.__key_warning(key)
3324
+ return super().__getitem__(key)
3325
+
3326
+ def get(self, key: str, default = None) -> Any:
3327
+ NetworkDeviceData.__key_warning(key)
3328
+ return super().get(key, default)
3329
+
3330
+ def __init__(__self__, *,
3331
+ hardware_address: Optional[_builtins.str] = None,
3332
+ interface_name: Optional[_builtins.str] = None,
3333
+ ips: Optional[Sequence[_builtins.str]] = None):
3334
+ """
3335
+ 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.
3336
+ :param _builtins.str hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
3337
+
3338
+ Must not be longer than 128 characters.
3339
+ :param _builtins.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.
3340
+
3341
+ Must not be longer than 256 characters.
3342
+ :param Sequence[_builtins.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.
3343
+ """
3344
+ if hardware_address is not None:
3345
+ pulumi.set(__self__, "hardware_address", hardware_address)
3346
+ if interface_name is not None:
3347
+ pulumi.set(__self__, "interface_name", interface_name)
3348
+ if ips is not None:
3349
+ pulumi.set(__self__, "ips", ips)
3350
+
3351
+ @_builtins.property
3352
+ @pulumi.getter(name="hardwareAddress")
3353
+ def hardware_address(self) -> Optional[_builtins.str]:
3354
+ """
3355
+ HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
3356
+
3357
+ Must not be longer than 128 characters.
3358
+ """
3359
+ return pulumi.get(self, "hardware_address")
3360
+
3361
+ @_builtins.property
3362
+ @pulumi.getter(name="interfaceName")
3363
+ def interface_name(self) -> Optional[_builtins.str]:
3364
+ """
3365
+ 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.
3366
+
3367
+ Must not be longer than 256 characters.
3368
+ """
3369
+ return pulumi.get(self, "interface_name")
3370
+
3371
+ @_builtins.property
3372
+ @pulumi.getter
3373
+ def ips(self) -> Optional[Sequence[_builtins.str]]:
3374
+ """
3375
+ 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.
3376
+ """
3377
+ return pulumi.get(self, "ips")
3378
+
3379
+
3380
+ @pulumi.output_type
3381
+ class NetworkDeviceDataPatch(dict):
3382
+ """
3383
+ 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.
3384
+ """
3385
+ @staticmethod
3386
+ def __key_warning(key: str):
3387
+ suggest = None
3388
+ if key == "hardwareAddress":
3389
+ suggest = "hardware_address"
3390
+ elif key == "interfaceName":
3391
+ suggest = "interface_name"
3392
+
3393
+ if suggest:
3394
+ pulumi.log.warn(f"Key '{key}' not found in NetworkDeviceDataPatch. Access the value via the '{suggest}' property getter instead.")
3395
+
3396
+ def __getitem__(self, key: str) -> Any:
3397
+ NetworkDeviceDataPatch.__key_warning(key)
3398
+ return super().__getitem__(key)
3399
+
3400
+ def get(self, key: str, default = None) -> Any:
3401
+ NetworkDeviceDataPatch.__key_warning(key)
3402
+ return super().get(key, default)
3403
+
3404
+ def __init__(__self__, *,
3405
+ hardware_address: Optional[_builtins.str] = None,
3406
+ interface_name: Optional[_builtins.str] = None,
3407
+ ips: Optional[Sequence[_builtins.str]] = None):
3408
+ """
3409
+ 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.
3410
+ :param _builtins.str hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
3411
+
3412
+ Must not be longer than 128 characters.
3413
+ :param _builtins.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.
3414
+
3415
+ Must not be longer than 256 characters.
3416
+ :param Sequence[_builtins.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.
3417
+ """
3418
+ if hardware_address is not None:
3419
+ pulumi.set(__self__, "hardware_address", hardware_address)
3420
+ if interface_name is not None:
3421
+ pulumi.set(__self__, "interface_name", interface_name)
3422
+ if ips is not None:
3423
+ pulumi.set(__self__, "ips", ips)
3424
+
3425
+ @_builtins.property
3426
+ @pulumi.getter(name="hardwareAddress")
3427
+ def hardware_address(self) -> Optional[_builtins.str]:
3428
+ """
3429
+ HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
3430
+
3431
+ Must not be longer than 128 characters.
3432
+ """
3433
+ return pulumi.get(self, "hardware_address")
3434
+
3435
+ @_builtins.property
3436
+ @pulumi.getter(name="interfaceName")
3437
+ def interface_name(self) -> Optional[_builtins.str]:
3438
+ """
3439
+ 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.
3440
+
3441
+ Must not be longer than 256 characters.
3442
+ """
3443
+ return pulumi.get(self, "interface_name")
3444
+
3445
+ @_builtins.property
3446
+ @pulumi.getter
3447
+ def ips(self) -> Optional[Sequence[_builtins.str]]:
3448
+ """
3449
+ 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.
3450
+ """
3451
+ return pulumi.get(self, "ips")
3452
+
3453
+
3454
+ @pulumi.output_type
3455
+ class OpaqueDeviceConfiguration(dict):
3456
+ """
3457
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
3458
+ """
3459
+ def __init__(__self__, *,
3460
+ driver: _builtins.str,
3461
+ parameters: Any):
3462
+ """
3463
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
3464
+ :param _builtins.str driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
3465
+
3466
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
3467
+
3468
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
3469
+ :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.
3470
+
3471
+ The length of the raw data must be smaller or equal to 10 Ki.
3472
+ """
3473
+ pulumi.set(__self__, "driver", driver)
3474
+ pulumi.set(__self__, "parameters", parameters)
3475
+
3476
+ @_builtins.property
3477
+ @pulumi.getter
3478
+ def driver(self) -> _builtins.str:
3479
+ """
3480
+ Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
3481
+
3482
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
3483
+
3484
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
3485
+ """
3486
+ return pulumi.get(self, "driver")
3487
+
3488
+ @_builtins.property
3489
+ @pulumi.getter
3490
+ def parameters(self) -> Any:
3491
+ """
3492
+ 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.
3493
+
3494
+ The length of the raw data must be smaller or equal to 10 Ki.
3495
+ """
3496
+ return pulumi.get(self, "parameters")
3497
+
3498
+
3499
+ @pulumi.output_type
3500
+ class OpaqueDeviceConfigurationPatch(dict):
3501
+ """
3502
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
3503
+ """
3504
+ def __init__(__self__, *,
3505
+ driver: Optional[_builtins.str] = None,
3506
+ parameters: Optional[Any] = None):
3507
+ """
3508
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
3509
+ :param _builtins.str driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
3510
+
3511
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
3512
+
3513
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
3514
+ :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.
3515
+
3516
+ The length of the raw data must be smaller or equal to 10 Ki.
3517
+ """
3518
+ if driver is not None:
3519
+ pulumi.set(__self__, "driver", driver)
3520
+ if parameters is not None:
3521
+ pulumi.set(__self__, "parameters", parameters)
3522
+
3523
+ @_builtins.property
3524
+ @pulumi.getter
3525
+ def driver(self) -> Optional[_builtins.str]:
3526
+ """
3527
+ Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
3528
+
3529
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
3530
+
3531
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
3532
+ """
3533
+ return pulumi.get(self, "driver")
3534
+
3535
+ @_builtins.property
3536
+ @pulumi.getter
3537
+ def parameters(self) -> Optional[Any]:
3538
+ """
3539
+ 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.
3540
+
3541
+ The length of the raw data must be smaller or equal to 10 Ki.
3542
+ """
3543
+ return pulumi.get(self, "parameters")
3544
+
3545
+
3546
+ @pulumi.output_type
3547
+ class ResourceClaim(dict):
3548
+ """
3549
+ 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.
3550
+
3551
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3552
+ """
3553
+ @staticmethod
3554
+ def __key_warning(key: str):
3555
+ suggest = None
3556
+ if key == "apiVersion":
3557
+ suggest = "api_version"
3558
+
3559
+ if suggest:
3560
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaim. Access the value via the '{suggest}' property getter instead.")
3561
+
3562
+ def __getitem__(self, key: str) -> Any:
3563
+ ResourceClaim.__key_warning(key)
3564
+ return super().__getitem__(key)
3565
+
3566
+ def get(self, key: str, default = None) -> Any:
3567
+ ResourceClaim.__key_warning(key)
3568
+ return super().get(key, default)
3569
+
3570
+ def __init__(__self__, *,
3571
+ spec: 'outputs.ResourceClaimSpec',
3572
+ api_version: Optional[_builtins.str] = None,
3573
+ kind: Optional[_builtins.str] = None,
3574
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
3575
+ status: Optional['outputs.ResourceClaimStatus'] = None):
3576
+ """
3577
+ 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.
3578
+
3579
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3580
+ :param 'ResourceClaimSpecArgs' spec: Spec describes what is being requested and how to configure it. The spec is immutable.
3581
+ :param _builtins.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
3582
+ :param _builtins.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
3583
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
3584
+ :param 'ResourceClaimStatusArgs' status: Status describes whether the claim is ready to use and what has been allocated.
3585
+ """
3586
+ pulumi.set(__self__, "spec", spec)
3587
+ if api_version is not None:
3588
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
3589
+ if kind is not None:
3590
+ pulumi.set(__self__, "kind", 'ResourceClaim')
3591
+ if metadata is not None:
3592
+ pulumi.set(__self__, "metadata", metadata)
3593
+ if status is not None:
3594
+ pulumi.set(__self__, "status", status)
3595
+
3596
+ @_builtins.property
3597
+ @pulumi.getter
3598
+ def spec(self) -> 'outputs.ResourceClaimSpec':
3599
+ """
3600
+ Spec describes what is being requested and how to configure it. The spec is immutable.
3601
+ """
3602
+ return pulumi.get(self, "spec")
3603
+
3604
+ @_builtins.property
3605
+ @pulumi.getter(name="apiVersion")
3606
+ def api_version(self) -> Optional[_builtins.str]:
3607
+ """
3608
+ 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
3609
+ """
3610
+ return pulumi.get(self, "api_version")
3611
+
3612
+ @_builtins.property
3613
+ @pulumi.getter
3614
+ def kind(self) -> Optional[_builtins.str]:
3615
+ """
3616
+ 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
3617
+ """
3618
+ return pulumi.get(self, "kind")
3619
+
3620
+ @_builtins.property
3621
+ @pulumi.getter
3622
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
3623
+ """
3624
+ Standard object metadata
3625
+ """
3626
+ return pulumi.get(self, "metadata")
3627
+
3628
+ @_builtins.property
3629
+ @pulumi.getter
3630
+ def status(self) -> Optional['outputs.ResourceClaimStatus']:
3631
+ """
3632
+ Status describes whether the claim is ready to use and what has been allocated.
3633
+ """
3634
+ return pulumi.get(self, "status")
3635
+
3636
+
3637
+ @pulumi.output_type
3638
+ class ResourceClaimConsumerReference(dict):
3639
+ """
3640
+ 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.
3641
+ """
3642
+ @staticmethod
3643
+ def __key_warning(key: str):
3644
+ suggest = None
3645
+ if key == "apiGroup":
3646
+ suggest = "api_group"
3647
+
3648
+ if suggest:
3649
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReference. Access the value via the '{suggest}' property getter instead.")
3650
+
3651
+ def __getitem__(self, key: str) -> Any:
3652
+ ResourceClaimConsumerReference.__key_warning(key)
3653
+ return super().__getitem__(key)
3654
+
3655
+ def get(self, key: str, default = None) -> Any:
3656
+ ResourceClaimConsumerReference.__key_warning(key)
3657
+ return super().get(key, default)
3658
+
3659
+ def __init__(__self__, *,
3660
+ name: _builtins.str,
3661
+ resource: _builtins.str,
3662
+ uid: _builtins.str,
3663
+ api_group: Optional[_builtins.str] = None):
3664
+ """
3665
+ 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.
3666
+ :param _builtins.str name: Name is the name of resource being referenced.
3667
+ :param _builtins.str resource: Resource is the type of resource being referenced, for example "pods".
3668
+ :param _builtins.str uid: UID identifies exactly one incarnation of the resource.
3669
+ :param _builtins.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.
3670
+ """
3671
+ pulumi.set(__self__, "name", name)
3672
+ pulumi.set(__self__, "resource", resource)
3673
+ pulumi.set(__self__, "uid", uid)
3674
+ if api_group is not None:
3675
+ pulumi.set(__self__, "api_group", api_group)
3676
+
3677
+ @_builtins.property
3678
+ @pulumi.getter
3679
+ def name(self) -> _builtins.str:
3680
+ """
3681
+ Name is the name of resource being referenced.
3682
+ """
3683
+ return pulumi.get(self, "name")
3684
+
3685
+ @_builtins.property
3686
+ @pulumi.getter
3687
+ def resource(self) -> _builtins.str:
3688
+ """
3689
+ Resource is the type of resource being referenced, for example "pods".
3690
+ """
3691
+ return pulumi.get(self, "resource")
3692
+
3693
+ @_builtins.property
3694
+ @pulumi.getter
3695
+ def uid(self) -> _builtins.str:
3696
+ """
3697
+ UID identifies exactly one incarnation of the resource.
3698
+ """
3699
+ return pulumi.get(self, "uid")
3700
+
3701
+ @_builtins.property
3702
+ @pulumi.getter(name="apiGroup")
3703
+ def api_group(self) -> Optional[_builtins.str]:
3704
+ """
3705
+ 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.
3706
+ """
3707
+ return pulumi.get(self, "api_group")
3708
+
3709
+
3710
+ @pulumi.output_type
3711
+ class ResourceClaimConsumerReferencePatch(dict):
3712
+ """
3713
+ 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.
3714
+ """
3715
+ @staticmethod
3716
+ def __key_warning(key: str):
3717
+ suggest = None
3718
+ if key == "apiGroup":
3719
+ suggest = "api_group"
3720
+
3721
+ if suggest:
3722
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReferencePatch. Access the value via the '{suggest}' property getter instead.")
3723
+
3724
+ def __getitem__(self, key: str) -> Any:
3725
+ ResourceClaimConsumerReferencePatch.__key_warning(key)
3726
+ return super().__getitem__(key)
3727
+
3728
+ def get(self, key: str, default = None) -> Any:
3729
+ ResourceClaimConsumerReferencePatch.__key_warning(key)
3730
+ return super().get(key, default)
3731
+
3732
+ def __init__(__self__, *,
3733
+ api_group: Optional[_builtins.str] = None,
3734
+ name: Optional[_builtins.str] = None,
3735
+ resource: Optional[_builtins.str] = None,
3736
+ uid: Optional[_builtins.str] = None):
3737
+ """
3738
+ 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.
3739
+ :param _builtins.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.
3740
+ :param _builtins.str name: Name is the name of resource being referenced.
3741
+ :param _builtins.str resource: Resource is the type of resource being referenced, for example "pods".
3742
+ :param _builtins.str uid: UID identifies exactly one incarnation of the resource.
3743
+ """
3744
+ if api_group is not None:
3745
+ pulumi.set(__self__, "api_group", api_group)
3746
+ if name is not None:
3747
+ pulumi.set(__self__, "name", name)
3748
+ if resource is not None:
3749
+ pulumi.set(__self__, "resource", resource)
3750
+ if uid is not None:
3751
+ pulumi.set(__self__, "uid", uid)
3752
+
3753
+ @_builtins.property
3754
+ @pulumi.getter(name="apiGroup")
3755
+ def api_group(self) -> Optional[_builtins.str]:
3756
+ """
3757
+ 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.
3758
+ """
3759
+ return pulumi.get(self, "api_group")
3760
+
3761
+ @_builtins.property
3762
+ @pulumi.getter
3763
+ def name(self) -> Optional[_builtins.str]:
3764
+ """
3765
+ Name is the name of resource being referenced.
3766
+ """
3767
+ return pulumi.get(self, "name")
3768
+
3769
+ @_builtins.property
3770
+ @pulumi.getter
3771
+ def resource(self) -> Optional[_builtins.str]:
3772
+ """
3773
+ Resource is the type of resource being referenced, for example "pods".
3774
+ """
3775
+ return pulumi.get(self, "resource")
3776
+
3777
+ @_builtins.property
3778
+ @pulumi.getter
3779
+ def uid(self) -> Optional[_builtins.str]:
3780
+ """
3781
+ UID identifies exactly one incarnation of the resource.
3782
+ """
3783
+ return pulumi.get(self, "uid")
3784
+
3785
+
3786
+ @pulumi.output_type
3787
+ class ResourceClaimSpec(dict):
3788
+ """
3789
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
3790
+ """
3791
+ def __init__(__self__, *,
3792
+ devices: Optional['outputs.DeviceClaim'] = None):
3793
+ """
3794
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
3795
+ :param 'DeviceClaimArgs' devices: Devices defines how to request devices.
3796
+ """
3797
+ if devices is not None:
3798
+ pulumi.set(__self__, "devices", devices)
3799
+
3800
+ @_builtins.property
3801
+ @pulumi.getter
3802
+ def devices(self) -> Optional['outputs.DeviceClaim']:
3803
+ """
3804
+ Devices defines how to request devices.
3805
+ """
3806
+ return pulumi.get(self, "devices")
3807
+
3808
+
3809
+ @pulumi.output_type
3810
+ class ResourceClaimSpecPatch(dict):
3811
+ """
3812
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
3813
+ """
3814
+ def __init__(__self__, *,
3815
+ devices: Optional['outputs.DeviceClaimPatch'] = None):
3816
+ """
3817
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
3818
+ :param 'DeviceClaimPatchArgs' devices: Devices defines how to request devices.
3819
+ """
3820
+ if devices is not None:
3821
+ pulumi.set(__self__, "devices", devices)
3822
+
3823
+ @_builtins.property
3824
+ @pulumi.getter
3825
+ def devices(self) -> Optional['outputs.DeviceClaimPatch']:
3826
+ """
3827
+ Devices defines how to request devices.
3828
+ """
3829
+ return pulumi.get(self, "devices")
3830
+
3831
+
3832
+ @pulumi.output_type
3833
+ class ResourceClaimStatus(dict):
3834
+ """
3835
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
3836
+ """
3837
+ @staticmethod
3838
+ def __key_warning(key: str):
3839
+ suggest = None
3840
+ if key == "reservedFor":
3841
+ suggest = "reserved_for"
3842
+
3843
+ if suggest:
3844
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatus. Access the value via the '{suggest}' property getter instead.")
3845
+
3846
+ def __getitem__(self, key: str) -> Any:
3847
+ ResourceClaimStatus.__key_warning(key)
3848
+ return super().__getitem__(key)
3849
+
3850
+ def get(self, key: str, default = None) -> Any:
3851
+ ResourceClaimStatus.__key_warning(key)
3852
+ return super().get(key, default)
3853
+
3854
+ def __init__(__self__, *,
3855
+ allocation: Optional['outputs.AllocationResult'] = None,
3856
+ devices: Optional[Sequence['outputs.AllocatedDeviceStatus']] = None,
3857
+ reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReference']] = None):
3858
+ """
3859
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
3860
+ :param 'AllocationResultArgs' allocation: Allocation is set once the claim has been allocated successfully.
3861
+ :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.
3862
+ :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.
3863
+
3864
+ 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.
3865
+
3866
+ 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.
3867
+
3868
+ There can be at most 256 such reservations. This may get increased in the future, but not reduced.
3869
+ """
3870
+ if allocation is not None:
3871
+ pulumi.set(__self__, "allocation", allocation)
3872
+ if devices is not None:
3873
+ pulumi.set(__self__, "devices", devices)
3874
+ if reserved_for is not None:
3875
+ pulumi.set(__self__, "reserved_for", reserved_for)
3876
+
3877
+ @_builtins.property
3878
+ @pulumi.getter
3879
+ def allocation(self) -> Optional['outputs.AllocationResult']:
3880
+ """
3881
+ Allocation is set once the claim has been allocated successfully.
3882
+ """
3883
+ return pulumi.get(self, "allocation")
3884
+
3885
+ @_builtins.property
3886
+ @pulumi.getter
3887
+ def devices(self) -> Optional[Sequence['outputs.AllocatedDeviceStatus']]:
3888
+ """
3889
+ 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.
3890
+ """
3891
+ return pulumi.get(self, "devices")
3892
+
3893
+ @_builtins.property
3894
+ @pulumi.getter(name="reservedFor")
3895
+ def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReference']]:
3896
+ """
3897
+ 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.
3898
+
3899
+ 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.
3900
+
3901
+ 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.
3902
+
3903
+ There can be at most 256 such reservations. This may get increased in the future, but not reduced.
3904
+ """
3905
+ return pulumi.get(self, "reserved_for")
3906
+
3907
+
3908
+ @pulumi.output_type
3909
+ class ResourceClaimStatusPatch(dict):
3910
+ """
3911
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
3912
+ """
3913
+ @staticmethod
3914
+ def __key_warning(key: str):
3915
+ suggest = None
3916
+ if key == "reservedFor":
3917
+ suggest = "reserved_for"
3918
+
3919
+ if suggest:
3920
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatusPatch. Access the value via the '{suggest}' property getter instead.")
3921
+
3922
+ def __getitem__(self, key: str) -> Any:
3923
+ ResourceClaimStatusPatch.__key_warning(key)
3924
+ return super().__getitem__(key)
3925
+
3926
+ def get(self, key: str, default = None) -> Any:
3927
+ ResourceClaimStatusPatch.__key_warning(key)
3928
+ return super().get(key, default)
3929
+
3930
+ def __init__(__self__, *,
3931
+ allocation: Optional['outputs.AllocationResultPatch'] = None,
3932
+ devices: Optional[Sequence['outputs.AllocatedDeviceStatusPatch']] = None,
3933
+ reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']] = None):
3934
+ """
3935
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
3936
+ :param 'AllocationResultPatchArgs' allocation: Allocation is set once the claim has been allocated successfully.
3937
+ :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.
3938
+ :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.
3939
+
3940
+ 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.
3941
+
3942
+ 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.
3943
+
3944
+ There can be at most 256 such reservations. This may get increased in the future, but not reduced.
3945
+ """
3946
+ if allocation is not None:
3947
+ pulumi.set(__self__, "allocation", allocation)
3948
+ if devices is not None:
3949
+ pulumi.set(__self__, "devices", devices)
3950
+ if reserved_for is not None:
3951
+ pulumi.set(__self__, "reserved_for", reserved_for)
3952
+
3953
+ @_builtins.property
3954
+ @pulumi.getter
3955
+ def allocation(self) -> Optional['outputs.AllocationResultPatch']:
3956
+ """
3957
+ Allocation is set once the claim has been allocated successfully.
3958
+ """
3959
+ return pulumi.get(self, "allocation")
3960
+
3961
+ @_builtins.property
3962
+ @pulumi.getter
3963
+ def devices(self) -> Optional[Sequence['outputs.AllocatedDeviceStatusPatch']]:
3964
+ """
3965
+ 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.
3966
+ """
3967
+ return pulumi.get(self, "devices")
3968
+
3969
+ @_builtins.property
3970
+ @pulumi.getter(name="reservedFor")
3971
+ def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']]:
3972
+ """
3973
+ 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.
3974
+
3975
+ 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.
3976
+
3977
+ 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.
3978
+
3979
+ There can be at most 256 such reservations. This may get increased in the future, but not reduced.
3980
+ """
3981
+ return pulumi.get(self, "reserved_for")
3982
+
3983
+
3984
+ @pulumi.output_type
3985
+ class ResourceClaimTemplate(dict):
3986
+ """
3987
+ ResourceClaimTemplate is used to produce ResourceClaim objects.
3988
+
3989
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3990
+ """
3991
+ @staticmethod
3992
+ def __key_warning(key: str):
3993
+ suggest = None
3994
+ if key == "apiVersion":
3995
+ suggest = "api_version"
3996
+
3997
+ if suggest:
3998
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimTemplate. Access the value via the '{suggest}' property getter instead.")
3999
+
4000
+ def __getitem__(self, key: str) -> Any:
4001
+ ResourceClaimTemplate.__key_warning(key)
4002
+ return super().__getitem__(key)
4003
+
4004
+ def get(self, key: str, default = None) -> Any:
4005
+ ResourceClaimTemplate.__key_warning(key)
4006
+ return super().get(key, default)
4007
+
4008
+ def __init__(__self__, *,
4009
+ spec: 'outputs.ResourceClaimTemplateSpec',
4010
+ api_version: Optional[_builtins.str] = None,
4011
+ kind: Optional[_builtins.str] = None,
4012
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
4013
+ """
4014
+ ResourceClaimTemplate is used to produce ResourceClaim objects.
4015
+
4016
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
4017
+ :param 'ResourceClaimTemplateSpecArgs' spec: Describes the ResourceClaim that is to be generated.
4018
+
4019
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
4020
+ :param _builtins.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
4021
+ :param _builtins.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
4022
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
4023
+ """
4024
+ pulumi.set(__self__, "spec", spec)
4025
+ if api_version is not None:
4026
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
4027
+ if kind is not None:
4028
+ pulumi.set(__self__, "kind", 'ResourceClaimTemplate')
4029
+ if metadata is not None:
4030
+ pulumi.set(__self__, "metadata", metadata)
4031
+
4032
+ @_builtins.property
4033
+ @pulumi.getter
4034
+ def spec(self) -> 'outputs.ResourceClaimTemplateSpec':
4035
+ """
4036
+ Describes the ResourceClaim that is to be generated.
4037
+
4038
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
4039
+ """
4040
+ return pulumi.get(self, "spec")
4041
+
4042
+ @_builtins.property
4043
+ @pulumi.getter(name="apiVersion")
4044
+ def api_version(self) -> Optional[_builtins.str]:
4045
+ """
4046
+ 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
4047
+ """
4048
+ return pulumi.get(self, "api_version")
4049
+
4050
+ @_builtins.property
4051
+ @pulumi.getter
4052
+ def kind(self) -> Optional[_builtins.str]:
4053
+ """
4054
+ 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
4055
+ """
4056
+ return pulumi.get(self, "kind")
4057
+
4058
+ @_builtins.property
4059
+ @pulumi.getter
4060
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
4061
+ """
4062
+ Standard object metadata
4063
+ """
4064
+ return pulumi.get(self, "metadata")
4065
+
4066
+
4067
+ @pulumi.output_type
4068
+ class ResourceClaimTemplateSpec(dict):
4069
+ """
4070
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
4071
+ """
4072
+ def __init__(__self__, *,
4073
+ spec: 'outputs.ResourceClaimSpec',
4074
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
4075
+ """
4076
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
4077
+ :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.
4078
+ :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.
4079
+ """
4080
+ pulumi.set(__self__, "spec", spec)
4081
+ if metadata is not None:
4082
+ pulumi.set(__self__, "metadata", metadata)
4083
+
4084
+ @_builtins.property
4085
+ @pulumi.getter
4086
+ def spec(self) -> 'outputs.ResourceClaimSpec':
4087
+ """
4088
+ 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.
4089
+ """
4090
+ return pulumi.get(self, "spec")
4091
+
4092
+ @_builtins.property
4093
+ @pulumi.getter
4094
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
4095
+ """
4096
+ 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.
4097
+ """
4098
+ return pulumi.get(self, "metadata")
4099
+
4100
+
4101
+ @pulumi.output_type
4102
+ class ResourceClaimTemplateSpecPatch(dict):
4103
+ """
4104
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
4105
+ """
4106
+ def __init__(__self__, *,
4107
+ metadata: Optional['_meta.v1.outputs.ObjectMetaPatch'] = None,
4108
+ spec: Optional['outputs.ResourceClaimSpecPatch'] = None):
4109
+ """
4110
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
4111
+ :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.
4112
+ :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.
4113
+ """
4114
+ if metadata is not None:
4115
+ pulumi.set(__self__, "metadata", metadata)
4116
+ if spec is not None:
4117
+ pulumi.set(__self__, "spec", spec)
4118
+
4119
+ @_builtins.property
4120
+ @pulumi.getter
4121
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMetaPatch']:
4122
+ """
4123
+ 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.
4124
+ """
4125
+ return pulumi.get(self, "metadata")
4126
+
4127
+ @_builtins.property
4128
+ @pulumi.getter
4129
+ def spec(self) -> Optional['outputs.ResourceClaimSpecPatch']:
4130
+ """
4131
+ 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.
4132
+ """
4133
+ return pulumi.get(self, "spec")
4134
+
4135
+
4136
+ @pulumi.output_type
4137
+ class ResourcePool(dict):
4138
+ """
4139
+ ResourcePool describes the pool that ResourceSlices belong to.
4140
+ """
4141
+ @staticmethod
4142
+ def __key_warning(key: str):
4143
+ suggest = None
4144
+ if key == "resourceSliceCount":
4145
+ suggest = "resource_slice_count"
4146
+
4147
+ if suggest:
4148
+ pulumi.log.warn(f"Key '{key}' not found in ResourcePool. Access the value via the '{suggest}' property getter instead.")
4149
+
4150
+ def __getitem__(self, key: str) -> Any:
4151
+ ResourcePool.__key_warning(key)
4152
+ return super().__getitem__(key)
4153
+
4154
+ def get(self, key: str, default = None) -> Any:
4155
+ ResourcePool.__key_warning(key)
4156
+ return super().get(key, default)
4157
+
4158
+ def __init__(__self__, *,
4159
+ generation: _builtins.int,
4160
+ name: _builtins.str,
4161
+ resource_slice_count: _builtins.int):
4162
+ """
4163
+ ResourcePool describes the pool that ResourceSlices belong to.
4164
+ :param _builtins.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.
4165
+
4166
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
4167
+ :param _builtins.str name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
4168
+
4169
+ 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.
4170
+ :param _builtins.int resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
4171
+
4172
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
4173
+ """
4174
+ pulumi.set(__self__, "generation", generation)
4175
+ pulumi.set(__self__, "name", name)
4176
+ pulumi.set(__self__, "resource_slice_count", resource_slice_count)
4177
+
4178
+ @_builtins.property
4179
+ @pulumi.getter
4180
+ def generation(self) -> _builtins.int:
4181
+ """
4182
+ 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.
4183
+
4184
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
4185
+ """
4186
+ return pulumi.get(self, "generation")
4187
+
4188
+ @_builtins.property
4189
+ @pulumi.getter
4190
+ def name(self) -> _builtins.str:
4191
+ """
4192
+ Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
4193
+
4194
+ 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.
4195
+ """
4196
+ return pulumi.get(self, "name")
4197
+
4198
+ @_builtins.property
4199
+ @pulumi.getter(name="resourceSliceCount")
4200
+ def resource_slice_count(self) -> _builtins.int:
4201
+ """
4202
+ ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
4203
+
4204
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
4205
+ """
4206
+ return pulumi.get(self, "resource_slice_count")
4207
+
4208
+
4209
+ @pulumi.output_type
4210
+ class ResourcePoolPatch(dict):
4211
+ """
4212
+ ResourcePool describes the pool that ResourceSlices belong to.
4213
+ """
4214
+ @staticmethod
4215
+ def __key_warning(key: str):
4216
+ suggest = None
4217
+ if key == "resourceSliceCount":
4218
+ suggest = "resource_slice_count"
4219
+
4220
+ if suggest:
4221
+ pulumi.log.warn(f"Key '{key}' not found in ResourcePoolPatch. Access the value via the '{suggest}' property getter instead.")
4222
+
4223
+ def __getitem__(self, key: str) -> Any:
4224
+ ResourcePoolPatch.__key_warning(key)
4225
+ return super().__getitem__(key)
4226
+
4227
+ def get(self, key: str, default = None) -> Any:
4228
+ ResourcePoolPatch.__key_warning(key)
4229
+ return super().get(key, default)
4230
+
4231
+ def __init__(__self__, *,
4232
+ generation: Optional[_builtins.int] = None,
4233
+ name: Optional[_builtins.str] = None,
4234
+ resource_slice_count: Optional[_builtins.int] = None):
4235
+ """
4236
+ ResourcePool describes the pool that ResourceSlices belong to.
4237
+ :param _builtins.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.
4238
+
4239
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
4240
+ :param _builtins.str name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
4241
+
4242
+ 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.
4243
+ :param _builtins.int resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
4244
+
4245
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
4246
+ """
4247
+ if generation is not None:
4248
+ pulumi.set(__self__, "generation", generation)
4249
+ if name is not None:
4250
+ pulumi.set(__self__, "name", name)
4251
+ if resource_slice_count is not None:
4252
+ pulumi.set(__self__, "resource_slice_count", resource_slice_count)
4253
+
4254
+ @_builtins.property
4255
+ @pulumi.getter
4256
+ def generation(self) -> Optional[_builtins.int]:
4257
+ """
4258
+ 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.
4259
+
4260
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
4261
+ """
4262
+ return pulumi.get(self, "generation")
4263
+
4264
+ @_builtins.property
4265
+ @pulumi.getter
4266
+ def name(self) -> Optional[_builtins.str]:
4267
+ """
4268
+ Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
4269
+
4270
+ 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.
4271
+ """
4272
+ return pulumi.get(self, "name")
4273
+
4274
+ @_builtins.property
4275
+ @pulumi.getter(name="resourceSliceCount")
4276
+ def resource_slice_count(self) -> Optional[_builtins.int]:
4277
+ """
4278
+ ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
4279
+
4280
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
4281
+ """
4282
+ return pulumi.get(self, "resource_slice_count")
4283
+
4284
+
4285
+ @pulumi.output_type
4286
+ class ResourceSlice(dict):
4287
+ """
4288
+ 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.
4289
+
4290
+ 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>.
4291
+
4292
+ 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.
4293
+
4294
+ 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.
4295
+
4296
+ 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.
4297
+
4298
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
4299
+ """
4300
+ @staticmethod
4301
+ def __key_warning(key: str):
4302
+ suggest = None
4303
+ if key == "apiVersion":
4304
+ suggest = "api_version"
4305
+
4306
+ if suggest:
4307
+ pulumi.log.warn(f"Key '{key}' not found in ResourceSlice. Access the value via the '{suggest}' property getter instead.")
4308
+
4309
+ def __getitem__(self, key: str) -> Any:
4310
+ ResourceSlice.__key_warning(key)
4311
+ return super().__getitem__(key)
4312
+
4313
+ def get(self, key: str, default = None) -> Any:
4314
+ ResourceSlice.__key_warning(key)
4315
+ return super().get(key, default)
4316
+
4317
+ def __init__(__self__, *,
4318
+ spec: 'outputs.ResourceSliceSpec',
4319
+ api_version: Optional[_builtins.str] = None,
4320
+ kind: Optional[_builtins.str] = None,
4321
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
4322
+ """
4323
+ 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.
4324
+
4325
+ 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>.
4326
+
4327
+ 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.
4328
+
4329
+ 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.
4330
+
4331
+ 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.
4332
+
4333
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
4334
+ :param 'ResourceSliceSpecArgs' spec: Contains the information published by the driver.
4335
+
4336
+ Changing the spec automatically increments the metadata.generation number.
4337
+ :param _builtins.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
4338
+ :param _builtins.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
4339
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
4340
+ """
4341
+ pulumi.set(__self__, "spec", spec)
4342
+ if api_version is not None:
4343
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
4344
+ if kind is not None:
4345
+ pulumi.set(__self__, "kind", 'ResourceSlice')
4346
+ if metadata is not None:
4347
+ pulumi.set(__self__, "metadata", metadata)
4348
+
4349
+ @_builtins.property
4350
+ @pulumi.getter
4351
+ def spec(self) -> 'outputs.ResourceSliceSpec':
4352
+ """
4353
+ Contains the information published by the driver.
4354
+
4355
+ Changing the spec automatically increments the metadata.generation number.
4356
+ """
4357
+ return pulumi.get(self, "spec")
4358
+
4359
+ @_builtins.property
4360
+ @pulumi.getter(name="apiVersion")
4361
+ def api_version(self) -> Optional[_builtins.str]:
4362
+ """
4363
+ 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
4364
+ """
4365
+ return pulumi.get(self, "api_version")
4366
+
4367
+ @_builtins.property
4368
+ @pulumi.getter
4369
+ def kind(self) -> Optional[_builtins.str]:
4370
+ """
4371
+ 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
4372
+ """
4373
+ return pulumi.get(self, "kind")
4374
+
4375
+ @_builtins.property
4376
+ @pulumi.getter
4377
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
4378
+ """
4379
+ Standard object metadata
4380
+ """
4381
+ return pulumi.get(self, "metadata")
4382
+
4383
+
4384
+ @pulumi.output_type
4385
+ class ResourceSliceSpec(dict):
4386
+ """
4387
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
4388
+ """
4389
+ @staticmethod
4390
+ def __key_warning(key: str):
4391
+ suggest = None
4392
+ if key == "allNodes":
4393
+ suggest = "all_nodes"
4394
+ elif key == "nodeName":
4395
+ suggest = "node_name"
4396
+ elif key == "nodeSelector":
4397
+ suggest = "node_selector"
4398
+ elif key == "perDeviceNodeSelection":
4399
+ suggest = "per_device_node_selection"
4400
+ elif key == "sharedCounters":
4401
+ suggest = "shared_counters"
4402
+
4403
+ if suggest:
4404
+ pulumi.log.warn(f"Key '{key}' not found in ResourceSliceSpec. Access the value via the '{suggest}' property getter instead.")
4405
+
4406
+ def __getitem__(self, key: str) -> Any:
4407
+ ResourceSliceSpec.__key_warning(key)
4408
+ return super().__getitem__(key)
4409
+
4410
+ def get(self, key: str, default = None) -> Any:
4411
+ ResourceSliceSpec.__key_warning(key)
4412
+ return super().get(key, default)
4413
+
4414
+ def __init__(__self__, *,
4415
+ driver: _builtins.str,
4416
+ pool: 'outputs.ResourcePool',
4417
+ all_nodes: Optional[_builtins.bool] = None,
4418
+ devices: Optional[Sequence['outputs.Device']] = None,
4419
+ node_name: Optional[_builtins.str] = None,
4420
+ node_selector: Optional['_core.v1.outputs.NodeSelector'] = None,
4421
+ per_device_node_selection: Optional[_builtins.bool] = None,
4422
+ shared_counters: Optional[Sequence['outputs.CounterSet']] = None):
4423
+ """
4424
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
4425
+ :param _builtins.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.
4426
+
4427
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
4428
+ :param 'ResourcePoolArgs' pool: Pool describes the pool that this ResourceSlice belongs to.
4429
+ :param _builtins.bool all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
4430
+
4431
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4432
+ :param Sequence['DeviceArgs'] devices: Devices lists some or all of the devices in this pool.
4433
+
4434
+ Must not have more than 128 entries.
4435
+ :param _builtins.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.
4436
+
4437
+ 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.
4438
+
4439
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
4440
+ :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.
4441
+
4442
+ Must use exactly one term.
4443
+
4444
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4445
+ :param _builtins.bool per_device_node_selection: PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
4446
+
4447
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4448
+ :param Sequence['CounterSetArgs'] shared_counters: SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
4449
+
4450
+ The names of the SharedCounters must be unique in the ResourceSlice.
4451
+
4452
+ The maximum number of counters in all sets is 32.
4453
+ """
4454
+ pulumi.set(__self__, "driver", driver)
4455
+ pulumi.set(__self__, "pool", pool)
4456
+ if all_nodes is not None:
4457
+ pulumi.set(__self__, "all_nodes", all_nodes)
4458
+ if devices is not None:
4459
+ pulumi.set(__self__, "devices", devices)
4460
+ if node_name is not None:
4461
+ pulumi.set(__self__, "node_name", node_name)
4462
+ if node_selector is not None:
4463
+ pulumi.set(__self__, "node_selector", node_selector)
4464
+ if per_device_node_selection is not None:
4465
+ pulumi.set(__self__, "per_device_node_selection", per_device_node_selection)
4466
+ if shared_counters is not None:
4467
+ pulumi.set(__self__, "shared_counters", shared_counters)
4468
+
4469
+ @_builtins.property
4470
+ @pulumi.getter
4471
+ def driver(self) -> _builtins.str:
4472
+ """
4473
+ 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.
4474
+
4475
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
4476
+ """
4477
+ return pulumi.get(self, "driver")
4478
+
4479
+ @_builtins.property
4480
+ @pulumi.getter
4481
+ def pool(self) -> 'outputs.ResourcePool':
4482
+ """
4483
+ Pool describes the pool that this ResourceSlice belongs to.
4484
+ """
4485
+ return pulumi.get(self, "pool")
4486
+
4487
+ @_builtins.property
4488
+ @pulumi.getter(name="allNodes")
4489
+ def all_nodes(self) -> Optional[_builtins.bool]:
4490
+ """
4491
+ AllNodes indicates that all nodes have access to the resources in the pool.
4492
+
4493
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4494
+ """
4495
+ return pulumi.get(self, "all_nodes")
4496
+
4497
+ @_builtins.property
4498
+ @pulumi.getter
4499
+ def devices(self) -> Optional[Sequence['outputs.Device']]:
4500
+ """
4501
+ Devices lists some or all of the devices in this pool.
4502
+
4503
+ Must not have more than 128 entries.
4504
+ """
4505
+ return pulumi.get(self, "devices")
4506
+
4507
+ @_builtins.property
4508
+ @pulumi.getter(name="nodeName")
4509
+ def node_name(self) -> Optional[_builtins.str]:
4510
+ """
4511
+ 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.
4512
+
4513
+ 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.
4514
+
4515
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
4516
+ """
4517
+ return pulumi.get(self, "node_name")
4518
+
4519
+ @_builtins.property
4520
+ @pulumi.getter(name="nodeSelector")
4521
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
4522
+ """
4523
+ NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
4524
+
4525
+ Must use exactly one term.
4526
+
4527
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4528
+ """
4529
+ return pulumi.get(self, "node_selector")
4530
+
4531
+ @_builtins.property
4532
+ @pulumi.getter(name="perDeviceNodeSelection")
4533
+ def per_device_node_selection(self) -> Optional[_builtins.bool]:
4534
+ """
4535
+ PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
4536
+
4537
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4538
+ """
4539
+ return pulumi.get(self, "per_device_node_selection")
4540
+
4541
+ @_builtins.property
4542
+ @pulumi.getter(name="sharedCounters")
4543
+ def shared_counters(self) -> Optional[Sequence['outputs.CounterSet']]:
4544
+ """
4545
+ SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
4546
+
4547
+ The names of the SharedCounters must be unique in the ResourceSlice.
4548
+
4549
+ The maximum number of counters in all sets is 32.
4550
+ """
4551
+ return pulumi.get(self, "shared_counters")
4552
+
4553
+
4554
+ @pulumi.output_type
4555
+ class ResourceSliceSpecPatch(dict):
4556
+ """
4557
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
4558
+ """
4559
+ @staticmethod
4560
+ def __key_warning(key: str):
4561
+ suggest = None
4562
+ if key == "allNodes":
4563
+ suggest = "all_nodes"
4564
+ elif key == "nodeName":
4565
+ suggest = "node_name"
4566
+ elif key == "nodeSelector":
4567
+ suggest = "node_selector"
4568
+ elif key == "perDeviceNodeSelection":
4569
+ suggest = "per_device_node_selection"
4570
+ elif key == "sharedCounters":
4571
+ suggest = "shared_counters"
4572
+
4573
+ if suggest:
4574
+ pulumi.log.warn(f"Key '{key}' not found in ResourceSliceSpecPatch. Access the value via the '{suggest}' property getter instead.")
4575
+
4576
+ def __getitem__(self, key: str) -> Any:
4577
+ ResourceSliceSpecPatch.__key_warning(key)
4578
+ return super().__getitem__(key)
4579
+
4580
+ def get(self, key: str, default = None) -> Any:
4581
+ ResourceSliceSpecPatch.__key_warning(key)
4582
+ return super().get(key, default)
4583
+
4584
+ def __init__(__self__, *,
4585
+ all_nodes: Optional[_builtins.bool] = None,
4586
+ devices: Optional[Sequence['outputs.DevicePatch']] = None,
4587
+ driver: Optional[_builtins.str] = None,
4588
+ node_name: Optional[_builtins.str] = None,
4589
+ node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None,
4590
+ per_device_node_selection: Optional[_builtins.bool] = None,
4591
+ pool: Optional['outputs.ResourcePoolPatch'] = None,
4592
+ shared_counters: Optional[Sequence['outputs.CounterSetPatch']] = None):
4593
+ """
4594
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
4595
+ :param _builtins.bool all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
4596
+
4597
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4598
+ :param Sequence['DevicePatchArgs'] devices: Devices lists some or all of the devices in this pool.
4599
+
4600
+ Must not have more than 128 entries.
4601
+ :param _builtins.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.
4602
+
4603
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
4604
+ :param _builtins.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.
4605
+
4606
+ 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.
4607
+
4608
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
4609
+ :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.
4610
+
4611
+ Must use exactly one term.
4612
+
4613
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4614
+ :param _builtins.bool per_device_node_selection: PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
4615
+
4616
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4617
+ :param 'ResourcePoolPatchArgs' pool: Pool describes the pool that this ResourceSlice belongs to.
4618
+ :param Sequence['CounterSetPatchArgs'] shared_counters: SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
4619
+
4620
+ The names of the SharedCounters must be unique in the ResourceSlice.
4621
+
4622
+ The maximum number of counters in all sets is 32.
4623
+ """
4624
+ if all_nodes is not None:
4625
+ pulumi.set(__self__, "all_nodes", all_nodes)
4626
+ if devices is not None:
4627
+ pulumi.set(__self__, "devices", devices)
4628
+ if driver is not None:
4629
+ pulumi.set(__self__, "driver", driver)
4630
+ if node_name is not None:
4631
+ pulumi.set(__self__, "node_name", node_name)
4632
+ if node_selector is not None:
4633
+ pulumi.set(__self__, "node_selector", node_selector)
4634
+ if per_device_node_selection is not None:
4635
+ pulumi.set(__self__, "per_device_node_selection", per_device_node_selection)
4636
+ if pool is not None:
4637
+ pulumi.set(__self__, "pool", pool)
4638
+ if shared_counters is not None:
4639
+ pulumi.set(__self__, "shared_counters", shared_counters)
4640
+
4641
+ @_builtins.property
4642
+ @pulumi.getter(name="allNodes")
4643
+ def all_nodes(self) -> Optional[_builtins.bool]:
4644
+ """
4645
+ AllNodes indicates that all nodes have access to the resources in the pool.
4646
+
4647
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4648
+ """
4649
+ return pulumi.get(self, "all_nodes")
4650
+
4651
+ @_builtins.property
4652
+ @pulumi.getter
4653
+ def devices(self) -> Optional[Sequence['outputs.DevicePatch']]:
4654
+ """
4655
+ Devices lists some or all of the devices in this pool.
4656
+
4657
+ Must not have more than 128 entries.
4658
+ """
4659
+ return pulumi.get(self, "devices")
4660
+
4661
+ @_builtins.property
4662
+ @pulumi.getter
4663
+ def driver(self) -> Optional[_builtins.str]:
4664
+ """
4665
+ 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.
4666
+
4667
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
4668
+ """
4669
+ return pulumi.get(self, "driver")
4670
+
4671
+ @_builtins.property
4672
+ @pulumi.getter(name="nodeName")
4673
+ def node_name(self) -> Optional[_builtins.str]:
4674
+ """
4675
+ 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.
4676
+
4677
+ 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.
4678
+
4679
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
4680
+ """
4681
+ return pulumi.get(self, "node_name")
4682
+
4683
+ @_builtins.property
4684
+ @pulumi.getter(name="nodeSelector")
4685
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
4686
+ """
4687
+ NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
4688
+
4689
+ Must use exactly one term.
4690
+
4691
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4692
+ """
4693
+ return pulumi.get(self, "node_selector")
4694
+
4695
+ @_builtins.property
4696
+ @pulumi.getter(name="perDeviceNodeSelection")
4697
+ def per_device_node_selection(self) -> Optional[_builtins.bool]:
4698
+ """
4699
+ PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
4700
+
4701
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4702
+ """
4703
+ return pulumi.get(self, "per_device_node_selection")
4704
+
4705
+ @_builtins.property
4706
+ @pulumi.getter
4707
+ def pool(self) -> Optional['outputs.ResourcePoolPatch']:
4708
+ """
4709
+ Pool describes the pool that this ResourceSlice belongs to.
4710
+ """
4711
+ return pulumi.get(self, "pool")
4712
+
4713
+ @_builtins.property
4714
+ @pulumi.getter(name="sharedCounters")
4715
+ def shared_counters(self) -> Optional[Sequence['outputs.CounterSetPatch']]:
4716
+ """
4717
+ SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
4718
+
4719
+ The names of the SharedCounters must be unique in the ResourceSlice.
4720
+
4721
+ The maximum number of counters in all sets is 32.
4722
+ """
4723
+ return pulumi.get(self, "shared_counters")
4724
+
4725
+