pulumi-kubernetes 4.23.0a1746129859__py3-none-any.whl → 4.23.0a1746138483__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 (116) hide show
  1. pulumi_kubernetes/__init__.py +36 -2
  2. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +30 -30
  3. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +20 -20
  4. pulumi_kubernetes/apps/v1/ReplicaSetList.py +4 -4
  5. pulumi_kubernetes/apps/v1/_inputs.py +109 -56
  6. pulumi_kubernetes/apps/v1/outputs.py +129 -56
  7. pulumi_kubernetes/autoscaling/v2/_inputs.py +92 -12
  8. pulumi_kubernetes/autoscaling/v2/outputs.py +66 -10
  9. pulumi_kubernetes/batch/v1/_inputs.py +12 -42
  10. pulumi_kubernetes/batch/v1/outputs.py +8 -32
  11. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +2 -0
  12. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +2 -0
  13. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundle.py +229 -0
  14. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundleList.py +219 -0
  15. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundlePatch.py +240 -0
  16. pulumi_kubernetes/certificates/v1beta1/__init__.py +3 -0
  17. pulumi_kubernetes/certificates/v1beta1/_inputs.py +292 -0
  18. pulumi_kubernetes/certificates/v1beta1/outputs.py +241 -0
  19. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +1 -1
  20. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +1 -1
  21. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +1 -1
  22. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +1 -1
  23. pulumi_kubernetes/coordination/v1alpha2/_inputs.py +6 -6
  24. pulumi_kubernetes/coordination/v1alpha2/outputs.py +4 -4
  25. pulumi_kubernetes/coordination/v1beta1/LeaseCandidate.py +220 -0
  26. pulumi_kubernetes/coordination/v1beta1/LeaseCandidateList.py +219 -0
  27. pulumi_kubernetes/coordination/v1beta1/LeaseCandidatePatch.py +232 -0
  28. pulumi_kubernetes/coordination/v1beta1/__init__.py +3 -0
  29. pulumi_kubernetes/coordination/v1beta1/_inputs.py +371 -0
  30. pulumi_kubernetes/coordination/v1beta1/outputs.py +292 -0
  31. pulumi_kubernetes/core/v1/Endpoints.py +8 -0
  32. pulumi_kubernetes/core/v1/EndpointsList.py +2 -2
  33. pulumi_kubernetes/core/v1/EndpointsPatch.py +8 -0
  34. pulumi_kubernetes/core/v1/_inputs.py +240 -66
  35. pulumi_kubernetes/core/v1/outputs.py +251 -51
  36. pulumi_kubernetes/discovery/v1/EndpointSlice.py +10 -10
  37. pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +10 -10
  38. pulumi_kubernetes/discovery/v1/_inputs.py +159 -44
  39. pulumi_kubernetes/discovery/v1/outputs.py +107 -32
  40. pulumi_kubernetes/networking/v1/IPAddress.py +220 -0
  41. pulumi_kubernetes/networking/v1/IPAddressList.py +219 -0
  42. pulumi_kubernetes/networking/v1/IPAddressPatch.py +232 -0
  43. pulumi_kubernetes/networking/v1/ServiceCIDR.py +230 -0
  44. pulumi_kubernetes/networking/v1/ServiceCIDRList.py +219 -0
  45. pulumi_kubernetes/networking/v1/ServiceCIDRPatch.py +242 -0
  46. pulumi_kubernetes/networking/v1/__init__.py +6 -0
  47. pulumi_kubernetes/networking/v1/_inputs.py +599 -0
  48. pulumi_kubernetes/networking/v1/outputs.py +461 -0
  49. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +1 -1
  50. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +1 -1
  51. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +1 -1
  52. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +1 -1
  53. pulumi_kubernetes/networking/v1beta1/IPAddress.py +1 -1
  54. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +1 -1
  55. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +1 -1
  56. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +1 -1
  57. pulumi_kubernetes/policy/v1/_inputs.py +0 -12
  58. pulumi_kubernetes/policy/v1/outputs.py +0 -8
  59. pulumi_kubernetes/pulumi-plugin.json +1 -1
  60. pulumi_kubernetes/resource/__init__.py +3 -0
  61. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
  62. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
  63. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
  64. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
  65. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
  66. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
  67. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
  68. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
  69. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +1 -1
  70. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +1 -1
  71. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +1 -1
  72. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +1 -1
  73. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRule.py +227 -0
  74. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRuleList.py +219 -0
  75. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRulePatch.py +238 -0
  76. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +1 -1
  77. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +1 -1
  78. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +1 -1
  79. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +1 -1
  80. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +1 -1
  81. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +1 -1
  82. pulumi_kubernetes/resource/v1alpha3/__init__.py +3 -0
  83. pulumi_kubernetes/resource/v1alpha3/_inputs.py +2559 -213
  84. pulumi_kubernetes/resource/v1alpha3/outputs.py +2037 -256
  85. pulumi_kubernetes/resource/v1beta1/DeviceClass.py +1 -1
  86. pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +1 -1
  87. pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +1 -1
  88. pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +1 -1
  89. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +1 -1
  90. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +1 -1
  91. pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +1 -1
  92. pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +1 -1
  93. pulumi_kubernetes/resource/v1beta1/_inputs.py +2044 -176
  94. pulumi_kubernetes/resource/v1beta1/outputs.py +1536 -134
  95. pulumi_kubernetes/resource/v1beta2/DeviceClass.py +241 -0
  96. pulumi_kubernetes/resource/v1beta2/DeviceClassList.py +219 -0
  97. pulumi_kubernetes/resource/v1beta2/DeviceClassPatch.py +252 -0
  98. pulumi_kubernetes/resource/v1beta2/ResourceClaim.py +236 -0
  99. pulumi_kubernetes/resource/v1beta2/ResourceClaimList.py +220 -0
  100. pulumi_kubernetes/resource/v1beta2/ResourceClaimPatch.py +247 -0
  101. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplate.py +233 -0
  102. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplateList.py +219 -0
  103. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplatePatch.py +244 -0
  104. pulumi_kubernetes/resource/v1beta2/ResourceSlice.py +250 -0
  105. pulumi_kubernetes/resource/v1beta2/ResourceSliceList.py +220 -0
  106. pulumi_kubernetes/resource/v1beta2/ResourceSlicePatch.py +261 -0
  107. pulumi_kubernetes/resource/v1beta2/__init__.py +22 -0
  108. pulumi_kubernetes/resource/v1beta2/_inputs.py +5681 -0
  109. pulumi_kubernetes/resource/v1beta2/outputs.py +4726 -0
  110. pulumi_kubernetes/storage/v1/_inputs.py +90 -0
  111. pulumi_kubernetes/storage/v1/outputs.py +110 -0
  112. pulumi_kubernetes/yaml/yaml.py +108 -0
  113. {pulumi_kubernetes-4.23.0a1746129859.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/METADATA +1 -1
  114. {pulumi_kubernetes-4.23.0a1746129859.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/RECORD +116 -86
  115. {pulumi_kubernetes-4.23.0a1746129859.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/WHEEL +0 -0
  116. {pulumi_kubernetes-4.23.0a1746129859.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,252 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumigen. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from ... import _utilities
17
+ from . import outputs
18
+ from ... import meta as _meta
19
+ from ._inputs import *
20
+
21
+ __all__ = ['DeviceClassPatchArgs', 'DeviceClassPatch']
22
+
23
+ @pulumi.input_type
24
+ class DeviceClassPatchArgs:
25
+ def __init__(__self__, *,
26
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
27
+ kind: Optional[pulumi.Input[builtins.str]] = None,
28
+ metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']] = None,
29
+ spec: Optional[pulumi.Input['DeviceClassSpecPatchArgs']] = None):
30
+ """
31
+ The set of arguments for constructing a DeviceClassPatch resource.
32
+ :param pulumi.Input[builtins.str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
33
+ :param pulumi.Input[builtins.str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
34
+ :param pulumi.Input['_meta.v1.ObjectMetaPatchArgs'] metadata: Standard object metadata
35
+ :param pulumi.Input['DeviceClassSpecPatchArgs'] spec: Spec defines what can be allocated and how to configure it.
36
+
37
+ 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.
38
+
39
+ Changing the spec automatically increments the metadata.generation number.
40
+ """
41
+ if api_version is not None:
42
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
43
+ if kind is not None:
44
+ pulumi.set(__self__, "kind", 'DeviceClass')
45
+ if metadata is not None:
46
+ pulumi.set(__self__, "metadata", metadata)
47
+ if spec is not None:
48
+ pulumi.set(__self__, "spec", spec)
49
+
50
+ @property
51
+ @pulumi.getter(name="apiVersion")
52
+ def api_version(self) -> Optional[pulumi.Input[builtins.str]]:
53
+ """
54
+ 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
55
+ """
56
+ return pulumi.get(self, "api_version")
57
+
58
+ @api_version.setter
59
+ def api_version(self, value: Optional[pulumi.Input[builtins.str]]):
60
+ pulumi.set(self, "api_version", value)
61
+
62
+ @property
63
+ @pulumi.getter
64
+ def kind(self) -> Optional[pulumi.Input[builtins.str]]:
65
+ """
66
+ 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
67
+ """
68
+ return pulumi.get(self, "kind")
69
+
70
+ @kind.setter
71
+ def kind(self, value: Optional[pulumi.Input[builtins.str]]):
72
+ pulumi.set(self, "kind", value)
73
+
74
+ @property
75
+ @pulumi.getter
76
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]:
77
+ """
78
+ Standard object metadata
79
+ """
80
+ return pulumi.get(self, "metadata")
81
+
82
+ @metadata.setter
83
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]):
84
+ pulumi.set(self, "metadata", value)
85
+
86
+ @property
87
+ @pulumi.getter
88
+ def spec(self) -> Optional[pulumi.Input['DeviceClassSpecPatchArgs']]:
89
+ """
90
+ Spec defines what can be allocated and how to configure it.
91
+
92
+ 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.
93
+
94
+ Changing the spec automatically increments the metadata.generation number.
95
+ """
96
+ return pulumi.get(self, "spec")
97
+
98
+ @spec.setter
99
+ def spec(self, value: Optional[pulumi.Input['DeviceClassSpecPatchArgs']]):
100
+ pulumi.set(self, "spec", value)
101
+
102
+
103
+ class DeviceClassPatch(pulumi.CustomResource):
104
+
105
+ pulumi_type = "kubernetes:resource.k8s.io/v1beta2:DeviceClassPatch"
106
+
107
+ @overload
108
+ def __init__(__self__,
109
+ resource_name: str,
110
+ opts: Optional[pulumi.ResourceOptions] = None,
111
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
112
+ kind: Optional[pulumi.Input[builtins.str]] = None,
113
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
114
+ spec: Optional[pulumi.Input[Union['DeviceClassSpecPatchArgs', 'DeviceClassSpecPatchArgsDict']]] = None,
115
+ __props__=None):
116
+ """
117
+ Patch resources are used to modify existing Kubernetes resources by using
118
+ Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
119
+ one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
120
+ Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
121
+ [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
122
+ additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
123
+ 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.
124
+
125
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
126
+
127
+ :param str resource_name: The name of the resource.
128
+ :param pulumi.ResourceOptions opts: Options for the resource.
129
+ :param pulumi.Input[builtins.str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
130
+ :param pulumi.Input[builtins.str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
131
+ :param pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']] metadata: Standard object metadata
132
+ :param pulumi.Input[Union['DeviceClassSpecPatchArgs', 'DeviceClassSpecPatchArgsDict']] spec: Spec defines what can be allocated and how to configure it.
133
+
134
+ 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.
135
+
136
+ Changing the spec automatically increments the metadata.generation number.
137
+ """
138
+ ...
139
+ @overload
140
+ def __init__(__self__,
141
+ resource_name: str,
142
+ args: Optional[DeviceClassPatchArgs] = None,
143
+ opts: Optional[pulumi.ResourceOptions] = None):
144
+ """
145
+ Patch resources are used to modify existing Kubernetes resources by using
146
+ Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
147
+ one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
148
+ Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
149
+ [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
150
+ additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
151
+ 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.
152
+
153
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
154
+
155
+ :param str resource_name: The name of the resource.
156
+ :param DeviceClassPatchArgs args: The arguments to use to populate this resource's properties.
157
+ :param pulumi.ResourceOptions opts: Options for the resource.
158
+ """
159
+ ...
160
+ def __init__(__self__, resource_name: str, *args, **kwargs):
161
+ resource_args, opts = _utilities.get_resource_args_opts(DeviceClassPatchArgs, pulumi.ResourceOptions, *args, **kwargs)
162
+ if resource_args is not None:
163
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
164
+ else:
165
+ __self__._internal_init(resource_name, *args, **kwargs)
166
+
167
+ def _internal_init(__self__,
168
+ resource_name: str,
169
+ opts: Optional[pulumi.ResourceOptions] = None,
170
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
171
+ kind: Optional[pulumi.Input[builtins.str]] = None,
172
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
173
+ spec: Optional[pulumi.Input[Union['DeviceClassSpecPatchArgs', 'DeviceClassSpecPatchArgsDict']]] = None,
174
+ __props__=None):
175
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
176
+ if not isinstance(opts, pulumi.ResourceOptions):
177
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
178
+ if opts.id is None:
179
+ if __props__ is not None:
180
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
181
+ __props__ = DeviceClassPatchArgs.__new__(DeviceClassPatchArgs)
182
+
183
+ __props__.__dict__["api_version"] = 'resource.k8s.io/v1beta2'
184
+ __props__.__dict__["kind"] = 'DeviceClass'
185
+ __props__.__dict__["metadata"] = metadata
186
+ __props__.__dict__["spec"] = spec
187
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:resource.k8s.io/v1alpha3:DeviceClassPatch"), pulumi.Alias(type_="kubernetes:resource.k8s.io/v1beta1:DeviceClassPatch")])
188
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
189
+ super(DeviceClassPatch, __self__).__init__(
190
+ 'kubernetes:resource.k8s.io/v1beta2:DeviceClassPatch',
191
+ resource_name,
192
+ __props__,
193
+ opts)
194
+
195
+ @staticmethod
196
+ def get(resource_name: str,
197
+ id: pulumi.Input[str],
198
+ opts: Optional[pulumi.ResourceOptions] = None) -> 'DeviceClassPatch':
199
+ """
200
+ Get an existing DeviceClassPatch resource's state with the given name, id, and optional extra
201
+ properties used to qualify the lookup.
202
+
203
+ :param str resource_name: The unique name of the resulting resource.
204
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
205
+ :param pulumi.ResourceOptions opts: Options for the resource.
206
+ """
207
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
208
+
209
+ __props__ = DeviceClassPatchArgs.__new__(DeviceClassPatchArgs)
210
+
211
+ __props__.__dict__["api_version"] = None
212
+ __props__.__dict__["kind"] = None
213
+ __props__.__dict__["metadata"] = None
214
+ __props__.__dict__["spec"] = None
215
+ return DeviceClassPatch(resource_name, opts=opts, __props__=__props__)
216
+
217
+ @property
218
+ @pulumi.getter(name="apiVersion")
219
+ def api_version(self) -> pulumi.Output[Optional[builtins.str]]:
220
+ """
221
+ 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
222
+ """
223
+ return pulumi.get(self, "api_version")
224
+
225
+ @property
226
+ @pulumi.getter
227
+ def kind(self) -> pulumi.Output[Optional[builtins.str]]:
228
+ """
229
+ 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
230
+ """
231
+ return pulumi.get(self, "kind")
232
+
233
+ @property
234
+ @pulumi.getter
235
+ def metadata(self) -> pulumi.Output[Optional['_meta.v1.outputs.ObjectMetaPatch']]:
236
+ """
237
+ Standard object metadata
238
+ """
239
+ return pulumi.get(self, "metadata")
240
+
241
+ @property
242
+ @pulumi.getter
243
+ def spec(self) -> pulumi.Output[Optional['outputs.DeviceClassSpecPatch']]:
244
+ """
245
+ Spec defines what can be allocated and how to configure it.
246
+
247
+ 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.
248
+
249
+ Changing the spec automatically increments the metadata.generation number.
250
+ """
251
+ return pulumi.get(self, "spec")
252
+
@@ -0,0 +1,236 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumigen. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from ... import _utilities
17
+ from . import outputs
18
+ from ... import core as _core
19
+ from ... import meta as _meta
20
+ from ._inputs import *
21
+
22
+ __all__ = ['ResourceClaimInitArgs', 'ResourceClaim']
23
+
24
+ @pulumi.input_type
25
+ class ResourceClaimInitArgs:
26
+ def __init__(__self__, *,
27
+ spec: pulumi.Input['ResourceClaimSpecArgs'],
28
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
29
+ kind: Optional[pulumi.Input[builtins.str]] = None,
30
+ metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None):
31
+ """
32
+ The set of arguments for constructing a ResourceClaim resource.
33
+ :param pulumi.Input['ResourceClaimSpecArgs'] spec: Spec describes what is being requested and how to configure it. The spec is immutable.
34
+ :param pulumi.Input[builtins.str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
35
+ :param pulumi.Input[builtins.str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
36
+ :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
37
+ """
38
+ pulumi.set(__self__, "spec", spec)
39
+ if api_version is not None:
40
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
41
+ if kind is not None:
42
+ pulumi.set(__self__, "kind", 'ResourceClaim')
43
+ if metadata is not None:
44
+ pulumi.set(__self__, "metadata", metadata)
45
+
46
+ @property
47
+ @pulumi.getter
48
+ def spec(self) -> pulumi.Input['ResourceClaimSpecArgs']:
49
+ """
50
+ Spec describes what is being requested and how to configure it. The spec is immutable.
51
+ """
52
+ return pulumi.get(self, "spec")
53
+
54
+ @spec.setter
55
+ def spec(self, value: pulumi.Input['ResourceClaimSpecArgs']):
56
+ pulumi.set(self, "spec", value)
57
+
58
+ @property
59
+ @pulumi.getter(name="apiVersion")
60
+ def api_version(self) -> Optional[pulumi.Input[builtins.str]]:
61
+ """
62
+ 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
63
+ """
64
+ return pulumi.get(self, "api_version")
65
+
66
+ @api_version.setter
67
+ def api_version(self, value: Optional[pulumi.Input[builtins.str]]):
68
+ pulumi.set(self, "api_version", value)
69
+
70
+ @property
71
+ @pulumi.getter
72
+ def kind(self) -> Optional[pulumi.Input[builtins.str]]:
73
+ """
74
+ 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
75
+ """
76
+ return pulumi.get(self, "kind")
77
+
78
+ @kind.setter
79
+ def kind(self, value: Optional[pulumi.Input[builtins.str]]):
80
+ pulumi.set(self, "kind", value)
81
+
82
+ @property
83
+ @pulumi.getter
84
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
85
+ """
86
+ Standard object metadata
87
+ """
88
+ return pulumi.get(self, "metadata")
89
+
90
+ @metadata.setter
91
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
92
+ pulumi.set(self, "metadata", value)
93
+
94
+
95
+ class ResourceClaim(pulumi.CustomResource):
96
+
97
+ pulumi_type = "kubernetes:resource.k8s.io/v1beta2:ResourceClaim"
98
+
99
+ @overload
100
+ def __init__(__self__,
101
+ resource_name: str,
102
+ opts: Optional[pulumi.ResourceOptions] = None,
103
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
104
+ kind: Optional[pulumi.Input[builtins.str]] = None,
105
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
106
+ spec: Optional[pulumi.Input[Union['ResourceClaimSpecArgs', 'ResourceClaimSpecArgsDict']]] = None,
107
+ __props__=None):
108
+ """
109
+ 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.
110
+
111
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
112
+
113
+ :param str resource_name: The name of the resource.
114
+ :param pulumi.ResourceOptions opts: Options for the resource.
115
+ :param pulumi.Input[builtins.str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
116
+ :param pulumi.Input[builtins.str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
117
+ :param pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']] metadata: Standard object metadata
118
+ :param pulumi.Input[Union['ResourceClaimSpecArgs', 'ResourceClaimSpecArgsDict']] spec: Spec describes what is being requested and how to configure it. The spec is immutable.
119
+ """
120
+ ...
121
+ @overload
122
+ def __init__(__self__,
123
+ resource_name: str,
124
+ args: ResourceClaimInitArgs,
125
+ opts: Optional[pulumi.ResourceOptions] = None):
126
+ """
127
+ 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.
128
+
129
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
130
+
131
+ :param str resource_name: The name of the resource.
132
+ :param ResourceClaimInitArgs args: The arguments to use to populate this resource's properties.
133
+ :param pulumi.ResourceOptions opts: Options for the resource.
134
+ """
135
+ ...
136
+ def __init__(__self__, resource_name: str, *args, **kwargs):
137
+ resource_args, opts = _utilities.get_resource_args_opts(ResourceClaimInitArgs, pulumi.ResourceOptions, *args, **kwargs)
138
+ if resource_args is not None:
139
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
140
+ else:
141
+ __self__._internal_init(resource_name, *args, **kwargs)
142
+
143
+ def _internal_init(__self__,
144
+ resource_name: str,
145
+ opts: Optional[pulumi.ResourceOptions] = None,
146
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
147
+ kind: Optional[pulumi.Input[builtins.str]] = None,
148
+ metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
149
+ spec: Optional[pulumi.Input[Union['ResourceClaimSpecArgs', 'ResourceClaimSpecArgsDict']]] = None,
150
+ __props__=None):
151
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
152
+ if not isinstance(opts, pulumi.ResourceOptions):
153
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
154
+ if opts.id is None:
155
+ if __props__ is not None:
156
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
157
+ __props__ = ResourceClaimInitArgs.__new__(ResourceClaimInitArgs)
158
+
159
+ __props__.__dict__["api_version"] = 'resource.k8s.io/v1beta2'
160
+ __props__.__dict__["kind"] = 'ResourceClaim'
161
+ __props__.__dict__["metadata"] = metadata
162
+ if spec is None and not opts.urn:
163
+ raise TypeError("Missing required property 'spec'")
164
+ __props__.__dict__["spec"] = spec
165
+ __props__.__dict__["status"] = None
166
+ alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:resource.k8s.io/v1alpha1:ResourceClaim"), pulumi.Alias(type_="kubernetes:resource.k8s.io/v1alpha2:ResourceClaim"), pulumi.Alias(type_="kubernetes:resource.k8s.io/v1alpha3:ResourceClaim"), pulumi.Alias(type_="kubernetes:resource.k8s.io/v1beta1:ResourceClaim")])
167
+ opts = pulumi.ResourceOptions.merge(opts, alias_opts)
168
+ super(ResourceClaim, __self__).__init__(
169
+ 'kubernetes:resource.k8s.io/v1beta2:ResourceClaim',
170
+ resource_name,
171
+ __props__,
172
+ opts)
173
+
174
+ @staticmethod
175
+ def get(resource_name: str,
176
+ id: pulumi.Input[str],
177
+ opts: Optional[pulumi.ResourceOptions] = None) -> 'ResourceClaim':
178
+ """
179
+ Get an existing ResourceClaim resource's state with the given name, id, and optional extra
180
+ properties used to qualify the lookup.
181
+
182
+ :param str resource_name: The unique name of the resulting resource.
183
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
184
+ :param pulumi.ResourceOptions opts: Options for the resource.
185
+ """
186
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
187
+
188
+ __props__ = ResourceClaimInitArgs.__new__(ResourceClaimInitArgs)
189
+
190
+ __props__.__dict__["api_version"] = None
191
+ __props__.__dict__["kind"] = None
192
+ __props__.__dict__["metadata"] = None
193
+ __props__.__dict__["spec"] = None
194
+ __props__.__dict__["status"] = None
195
+ return ResourceClaim(resource_name, opts=opts, __props__=__props__)
196
+
197
+ @property
198
+ @pulumi.getter(name="apiVersion")
199
+ def api_version(self) -> pulumi.Output[builtins.str]:
200
+ """
201
+ 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
202
+ """
203
+ return pulumi.get(self, "api_version")
204
+
205
+ @property
206
+ @pulumi.getter
207
+ def kind(self) -> pulumi.Output[builtins.str]:
208
+ """
209
+ 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
210
+ """
211
+ return pulumi.get(self, "kind")
212
+
213
+ @property
214
+ @pulumi.getter
215
+ def metadata(self) -> pulumi.Output['_meta.v1.outputs.ObjectMeta']:
216
+ """
217
+ Standard object metadata
218
+ """
219
+ return pulumi.get(self, "metadata")
220
+
221
+ @property
222
+ @pulumi.getter
223
+ def spec(self) -> pulumi.Output['outputs.ResourceClaimSpec']:
224
+ """
225
+ Spec describes what is being requested and how to configure it. The spec is immutable.
226
+ """
227
+ return pulumi.get(self, "spec")
228
+
229
+ @property
230
+ @pulumi.getter
231
+ def status(self) -> pulumi.Output[Optional['outputs.ResourceClaimStatus']]:
232
+ """
233
+ Status describes whether the claim is ready to use and what has been allocated.
234
+ """
235
+ return pulumi.get(self, "status")
236
+