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

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

Potentially problematic release.


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

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