pulumi-kubernetes 4.17.0__py3-none-any.whl → 4.17.0a1723228048__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 (83) hide show
  1. pulumi_kubernetes/__init__.py +2 -42
  2. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +17 -18
  3. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +17 -18
  4. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +17 -18
  5. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +17 -18
  6. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +17 -18
  7. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +17 -18
  8. pulumi_kubernetes/apiextensions/v1/_inputs.py +6 -6
  9. pulumi_kubernetes/apiextensions/v1/outputs.py +4 -4
  10. pulumi_kubernetes/apps/v1/_inputs.py +12 -12
  11. pulumi_kubernetes/apps/v1/outputs.py +8 -8
  12. pulumi_kubernetes/batch/v1/_inputs.py +27 -15
  13. pulumi_kubernetes/batch/v1/outputs.py +20 -12
  14. pulumi_kubernetes/coordination/__init__.py +0 -3
  15. pulumi_kubernetes/coordination/v1/_inputs.py +14 -94
  16. pulumi_kubernetes/coordination/v1/outputs.py +10 -62
  17. pulumi_kubernetes/core/v1/Service.py +22 -6
  18. pulumi_kubernetes/core/v1/ServicePatch.py +22 -6
  19. pulumi_kubernetes/core/v1/_inputs.py +206 -961
  20. pulumi_kubernetes/core/v1/outputs.py +163 -1038
  21. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +0 -2
  22. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +0 -2
  23. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +0 -2
  24. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +0 -2
  25. pulumi_kubernetes/networking/v1beta1/__init__.py +0 -6
  26. pulumi_kubernetes/networking/v1beta1/_inputs.py +0 -599
  27. pulumi_kubernetes/networking/v1beta1/outputs.py +0 -461
  28. pulumi_kubernetes/pulumi-plugin.json +1 -1
  29. pulumi_kubernetes/resource/__init__.py +0 -3
  30. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
  31. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
  32. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
  33. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
  34. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +0 -2
  35. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +0 -2
  36. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
  37. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
  38. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
  39. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
  40. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +0 -2
  41. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +0 -2
  42. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +0 -2
  43. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +0 -2
  44. pulumi_kubernetes/storage/v1beta1/__init__.py +0 -3
  45. pulumi_kubernetes/storage/v1beta1/_inputs.py +0 -123
  46. pulumi_kubernetes/storage/v1beta1/outputs.py +0 -94
  47. pulumi_kubernetes/yaml/yaml.py +0 -102
  48. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/METADATA +1 -1
  49. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/RECORD +51 -83
  50. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/WHEEL +1 -1
  51. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +0 -214
  52. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +0 -215
  53. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +0 -226
  54. pulumi_kubernetes/coordination/v1alpha1/__init__.py +0 -12
  55. pulumi_kubernetes/coordination/v1alpha1/_inputs.py +0 -418
  56. pulumi_kubernetes/coordination/v1alpha1/outputs.py +0 -334
  57. pulumi_kubernetes/networking/v1beta1/IPAddress.py +0 -216
  58. pulumi_kubernetes/networking/v1beta1/IPAddressList.py +0 -215
  59. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +0 -228
  60. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +0 -226
  61. pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +0 -215
  62. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +0 -238
  63. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +0 -236
  64. pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +0 -216
  65. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +0 -247
  66. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +0 -231
  67. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +0 -215
  68. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +0 -242
  69. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +0 -232
  70. pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +0 -216
  71. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +0 -243
  72. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +0 -229
  73. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +0 -215
  74. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +0 -240
  75. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +0 -246
  76. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +0 -257
  77. pulumi_kubernetes/resource/v1alpha3/__init__.py +0 -23
  78. pulumi_kubernetes/resource/v1alpha3/_inputs.py +0 -3924
  79. pulumi_kubernetes/resource/v1alpha3/outputs.py +0 -3327
  80. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +0 -252
  81. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +0 -215
  82. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +0 -263
  83. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/top_level.txt +0 -0
@@ -1,242 +0,0 @@
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__ = ['PodSchedulingContextPatchArgs', 'PodSchedulingContextPatch']
21
-
22
- @pulumi.input_type
23
- class PodSchedulingContextPatchArgs:
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['PodSchedulingContextSpecPatchArgs']] = None):
29
- """
30
- The set of arguments for constructing a PodSchedulingContextPatch 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['PodSchedulingContextSpecPatchArgs'] spec: Spec describes where resources for the Pod are needed.
35
- """
36
- if api_version is not None:
37
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha3')
38
- if kind is not None:
39
- pulumi.set(__self__, "kind", 'PodSchedulingContext')
40
- if metadata is not None:
41
- pulumi.set(__self__, "metadata", metadata)
42
- if spec is not None:
43
- pulumi.set(__self__, "spec", spec)
44
-
45
- @property
46
- @pulumi.getter(name="apiVersion")
47
- def api_version(self) -> Optional[pulumi.Input[str]]:
48
- """
49
- 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
50
- """
51
- return pulumi.get(self, "api_version")
52
-
53
- @api_version.setter
54
- def api_version(self, value: Optional[pulumi.Input[str]]):
55
- pulumi.set(self, "api_version", value)
56
-
57
- @property
58
- @pulumi.getter
59
- def kind(self) -> Optional[pulumi.Input[str]]:
60
- """
61
- 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
62
- """
63
- return pulumi.get(self, "kind")
64
-
65
- @kind.setter
66
- def kind(self, value: Optional[pulumi.Input[str]]):
67
- pulumi.set(self, "kind", value)
68
-
69
- @property
70
- @pulumi.getter
71
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]:
72
- """
73
- Standard object metadata
74
- """
75
- return pulumi.get(self, "metadata")
76
-
77
- @metadata.setter
78
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]):
79
- pulumi.set(self, "metadata", value)
80
-
81
- @property
82
- @pulumi.getter
83
- def spec(self) -> Optional[pulumi.Input['PodSchedulingContextSpecPatchArgs']]:
84
- """
85
- Spec describes where resources for the Pod are needed.
86
- """
87
- return pulumi.get(self, "spec")
88
-
89
- @spec.setter
90
- def spec(self, value: Optional[pulumi.Input['PodSchedulingContextSpecPatchArgs']]):
91
- pulumi.set(self, "spec", value)
92
-
93
-
94
- class PodSchedulingContextPatch(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.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
102
- spec: Optional[pulumi.Input[Union['PodSchedulingContextSpecPatchArgs', 'PodSchedulingContextSpecPatchArgsDict']]] = None,
103
- __props__=None):
104
- """
105
- Patch resources are used to modify existing Kubernetes resources by using
106
- Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
107
- one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
108
- Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
109
- [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
110
- additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
111
- PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode.
112
-
113
- This is an alpha type and requires enabling the DRAControlPlaneController feature gate.
114
-
115
- :param str resource_name: The name of the resource.
116
- :param pulumi.ResourceOptions opts: Options for the resource.
117
- :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
118
- :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
119
- :param pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']] metadata: Standard object metadata
120
- :param pulumi.Input[Union['PodSchedulingContextSpecPatchArgs', 'PodSchedulingContextSpecPatchArgsDict']] spec: Spec describes where resources for the Pod are needed.
121
- """
122
- ...
123
- @overload
124
- def __init__(__self__,
125
- resource_name: str,
126
- args: Optional[PodSchedulingContextPatchArgs] = None,
127
- opts: Optional[pulumi.ResourceOptions] = None):
128
- """
129
- Patch resources are used to modify existing Kubernetes resources by using
130
- Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
131
- one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
132
- Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
133
- [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
134
- additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
135
- PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode.
136
-
137
- This is an alpha type and requires enabling the DRAControlPlaneController feature gate.
138
-
139
- :param str resource_name: The name of the resource.
140
- :param PodSchedulingContextPatchArgs args: The arguments to use to populate this resource's properties.
141
- :param pulumi.ResourceOptions opts: Options for the resource.
142
- """
143
- ...
144
- def __init__(__self__, resource_name: str, *args, **kwargs):
145
- resource_args, opts = _utilities.get_resource_args_opts(PodSchedulingContextPatchArgs, pulumi.ResourceOptions, *args, **kwargs)
146
- if resource_args is not None:
147
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
148
- else:
149
- __self__._internal_init(resource_name, *args, **kwargs)
150
-
151
- def _internal_init(__self__,
152
- resource_name: str,
153
- opts: Optional[pulumi.ResourceOptions] = None,
154
- api_version: Optional[pulumi.Input[str]] = None,
155
- kind: Optional[pulumi.Input[str]] = None,
156
- metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
157
- spec: Optional[pulumi.Input[Union['PodSchedulingContextSpecPatchArgs', 'PodSchedulingContextSpecPatchArgsDict']]] = None,
158
- __props__=None):
159
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
160
- if not isinstance(opts, pulumi.ResourceOptions):
161
- raise TypeError('Expected resource options to be a ResourceOptions instance')
162
- if opts.id is None:
163
- if __props__ is not None:
164
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
165
- __props__ = PodSchedulingContextPatchArgs.__new__(PodSchedulingContextPatchArgs)
166
-
167
- __props__.__dict__["api_version"] = 'resource.k8s.io/v1alpha3'
168
- __props__.__dict__["kind"] = 'PodSchedulingContext'
169
- __props__.__dict__["metadata"] = metadata
170
- __props__.__dict__["spec"] = spec
171
- __props__.__dict__["status"] = None
172
- alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:resource.k8s.io/v1alpha2:PodSchedulingContextPatch")])
173
- opts = pulumi.ResourceOptions.merge(opts, alias_opts)
174
- super(PodSchedulingContextPatch, __self__).__init__(
175
- 'kubernetes:resource.k8s.io/v1alpha3:PodSchedulingContextPatch',
176
- resource_name,
177
- __props__,
178
- opts)
179
-
180
- @staticmethod
181
- def get(resource_name: str,
182
- id: pulumi.Input[str],
183
- opts: Optional[pulumi.ResourceOptions] = None) -> 'PodSchedulingContextPatch':
184
- """
185
- Get an existing PodSchedulingContextPatch resource's state with the given name, id, and optional extra
186
- properties used to qualify the lookup.
187
-
188
- :param str resource_name: The unique name of the resulting resource.
189
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
190
- :param pulumi.ResourceOptions opts: Options for the resource.
191
- """
192
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
193
-
194
- __props__ = PodSchedulingContextPatchArgs.__new__(PodSchedulingContextPatchArgs)
195
-
196
- __props__.__dict__["api_version"] = None
197
- __props__.__dict__["kind"] = None
198
- __props__.__dict__["metadata"] = None
199
- __props__.__dict__["spec"] = None
200
- __props__.__dict__["status"] = None
201
- return PodSchedulingContextPatch(resource_name, opts=opts, __props__=__props__)
202
-
203
- @property
204
- @pulumi.getter(name="apiVersion")
205
- def api_version(self) -> pulumi.Output[Optional[str]]:
206
- """
207
- 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
208
- """
209
- return pulumi.get(self, "api_version")
210
-
211
- @property
212
- @pulumi.getter
213
- def kind(self) -> pulumi.Output[Optional[str]]:
214
- """
215
- 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
216
- """
217
- return pulumi.get(self, "kind")
218
-
219
- @property
220
- @pulumi.getter
221
- def metadata(self) -> pulumi.Output[Optional['_meta.v1.outputs.ObjectMetaPatch']]:
222
- """
223
- Standard object metadata
224
- """
225
- return pulumi.get(self, "metadata")
226
-
227
- @property
228
- @pulumi.getter
229
- def spec(self) -> pulumi.Output[Optional['outputs.PodSchedulingContextSpecPatch']]:
230
- """
231
- Spec describes where resources for the Pod are needed.
232
- """
233
- return pulumi.get(self, "spec")
234
-
235
- @property
236
- @pulumi.getter
237
- def status(self) -> pulumi.Output[Optional['outputs.PodSchedulingContextStatusPatch']]:
238
- """
239
- Status describes where resources for the Pod can be allocated.
240
- """
241
- return pulumi.get(self, "status")
242
-
@@ -1,232 +0,0 @@
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/v1alpha3')
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/v1alpha3'
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")])
163
- opts = pulumi.ResourceOptions.merge(opts, alias_opts)
164
- super(ResourceClaim, __self__).__init__(
165
- 'kubernetes:resource.k8s.io/v1alpha3: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
-