pulumi-kubernetes 4.10.0a1710355461__py3-none-any.whl → 4.20.0a1736823142__py3-none-any.whl

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

Potentially problematic release.


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

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