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,238 +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__ = ['ServiceCIDRPatchArgs', 'ServiceCIDRPatch']
21
-
22
- @pulumi.input_type
23
- class ServiceCIDRPatchArgs:
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['ServiceCIDRSpecPatchArgs']] = None):
29
- """
30
- The set of arguments for constructing a ServiceCIDRPatch 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's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
34
- :param pulumi.Input['ServiceCIDRSpecPatchArgs'] spec: spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
35
- """
36
- if api_version is not None:
37
- pulumi.set(__self__, "api_version", 'networking.k8s.io/v1beta1')
38
- if kind is not None:
39
- pulumi.set(__self__, "kind", 'ServiceCIDR')
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's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#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['ServiceCIDRSpecPatchArgs']]:
84
- """
85
- spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
86
- """
87
- return pulumi.get(self, "spec")
88
-
89
- @spec.setter
90
- def spec(self, value: Optional[pulumi.Input['ServiceCIDRSpecPatchArgs']]):
91
- pulumi.set(self, "spec", value)
92
-
93
-
94
- class ServiceCIDRPatch(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['ServiceCIDRSpecPatchArgs', 'ServiceCIDRSpecPatchArgsDict']]] = 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
- ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.
112
-
113
- :param str resource_name: The name of the resource.
114
- :param pulumi.ResourceOptions opts: Options for the resource.
115
- :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
116
- :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
117
- :param pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']] metadata: Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
118
- :param pulumi.Input[Union['ServiceCIDRSpecPatchArgs', 'ServiceCIDRSpecPatchArgsDict']] spec: spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
119
- """
120
- ...
121
- @overload
122
- def __init__(__self__,
123
- resource_name: str,
124
- args: Optional[ServiceCIDRPatchArgs] = None,
125
- opts: Optional[pulumi.ResourceOptions] = None):
126
- """
127
- Patch resources are used to modify existing Kubernetes resources by using
128
- Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
129
- one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
130
- Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
131
- [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
132
- additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
133
- ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.
134
-
135
- :param str resource_name: The name of the resource.
136
- :param ServiceCIDRPatchArgs args: The arguments to use to populate this resource's properties.
137
- :param pulumi.ResourceOptions opts: Options for the resource.
138
- """
139
- ...
140
- def __init__(__self__, resource_name: str, *args, **kwargs):
141
- resource_args, opts = _utilities.get_resource_args_opts(ServiceCIDRPatchArgs, pulumi.ResourceOptions, *args, **kwargs)
142
- if resource_args is not None:
143
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
144
- else:
145
- __self__._internal_init(resource_name, *args, **kwargs)
146
-
147
- def _internal_init(__self__,
148
- resource_name: str,
149
- opts: Optional[pulumi.ResourceOptions] = None,
150
- api_version: Optional[pulumi.Input[str]] = None,
151
- kind: Optional[pulumi.Input[str]] = None,
152
- metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
153
- spec: Optional[pulumi.Input[Union['ServiceCIDRSpecPatchArgs', 'ServiceCIDRSpecPatchArgsDict']]] = None,
154
- __props__=None):
155
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
156
- if not isinstance(opts, pulumi.ResourceOptions):
157
- raise TypeError('Expected resource options to be a ResourceOptions instance')
158
- if opts.id is None:
159
- if __props__ is not None:
160
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
161
- __props__ = ServiceCIDRPatchArgs.__new__(ServiceCIDRPatchArgs)
162
-
163
- __props__.__dict__["api_version"] = 'networking.k8s.io/v1beta1'
164
- __props__.__dict__["kind"] = 'ServiceCIDR'
165
- __props__.__dict__["metadata"] = metadata
166
- __props__.__dict__["spec"] = spec
167
- __props__.__dict__["status"] = None
168
- alias_opts = pulumi.ResourceOptions(aliases=[pulumi.Alias(type_="kubernetes:networking.k8s.io/v1alpha1:ServiceCIDRPatch")])
169
- opts = pulumi.ResourceOptions.merge(opts, alias_opts)
170
- super(ServiceCIDRPatch, __self__).__init__(
171
- 'kubernetes:networking.k8s.io/v1beta1:ServiceCIDRPatch',
172
- resource_name,
173
- __props__,
174
- opts)
175
-
176
- @staticmethod
177
- def get(resource_name: str,
178
- id: pulumi.Input[str],
179
- opts: Optional[pulumi.ResourceOptions] = None) -> 'ServiceCIDRPatch':
180
- """
181
- Get an existing ServiceCIDRPatch resource's state with the given name, id, and optional extra
182
- properties used to qualify the lookup.
183
-
184
- :param str resource_name: The unique name of the resulting resource.
185
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
186
- :param pulumi.ResourceOptions opts: Options for the resource.
187
- """
188
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
189
-
190
- __props__ = ServiceCIDRPatchArgs.__new__(ServiceCIDRPatchArgs)
191
-
192
- __props__.__dict__["api_version"] = None
193
- __props__.__dict__["kind"] = None
194
- __props__.__dict__["metadata"] = None
195
- __props__.__dict__["spec"] = None
196
- __props__.__dict__["status"] = None
197
- return ServiceCIDRPatch(resource_name, opts=opts, __props__=__props__)
198
-
199
- @property
200
- @pulumi.getter(name="apiVersion")
201
- def api_version(self) -> pulumi.Output[Optional[str]]:
202
- """
203
- 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
204
- """
205
- return pulumi.get(self, "api_version")
206
-
207
- @property
208
- @pulumi.getter
209
- def kind(self) -> pulumi.Output[Optional[str]]:
210
- """
211
- 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
212
- """
213
- return pulumi.get(self, "kind")
214
-
215
- @property
216
- @pulumi.getter
217
- def metadata(self) -> pulumi.Output[Optional['_meta.v1.outputs.ObjectMetaPatch']]:
218
- """
219
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
220
- """
221
- return pulumi.get(self, "metadata")
222
-
223
- @property
224
- @pulumi.getter
225
- def spec(self) -> pulumi.Output[Optional['outputs.ServiceCIDRSpecPatch']]:
226
- """
227
- spec is the desired state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
228
- """
229
- return pulumi.get(self, "spec")
230
-
231
- @property
232
- @pulumi.getter
233
- def status(self) -> pulumi.Output[Optional['outputs.ServiceCIDRStatusPatch']]:
234
- """
235
- status represents the current state of the ServiceCIDR. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
236
- """
237
- return pulumi.get(self, "status")
238
-
@@ -1,236 +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__ = ['DeviceClassInitArgs', 'DeviceClass']
22
-
23
- @pulumi.input_type
24
- class DeviceClassInitArgs:
25
- def __init__(__self__, *,
26
- spec: pulumi.Input['DeviceClassSpecArgs'],
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 DeviceClass resource.
32
- :param pulumi.Input['DeviceClassSpecArgs'] spec: Spec defines what can be allocated and how to configure it.
33
-
34
- 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.
35
-
36
- Changing the spec automatically increments the metadata.generation number.
37
- :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
38
- :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
39
- :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
40
- """
41
- pulumi.set(__self__, "spec", spec)
42
- if api_version is not None:
43
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha3')
44
- if kind is not None:
45
- pulumi.set(__self__, "kind", 'DeviceClass')
46
- if metadata is not None:
47
- pulumi.set(__self__, "metadata", metadata)
48
-
49
- @property
50
- @pulumi.getter
51
- def spec(self) -> pulumi.Input['DeviceClassSpecArgs']:
52
- """
53
- Spec defines what can be allocated and how to configure it.
54
-
55
- 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.
56
-
57
- Changing the spec automatically increments the metadata.generation number.
58
- """
59
- return pulumi.get(self, "spec")
60
-
61
- @spec.setter
62
- def spec(self, value: pulumi.Input['DeviceClassSpecArgs']):
63
- pulumi.set(self, "spec", value)
64
-
65
- @property
66
- @pulumi.getter(name="apiVersion")
67
- def api_version(self) -> Optional[pulumi.Input[str]]:
68
- """
69
- 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
70
- """
71
- return pulumi.get(self, "api_version")
72
-
73
- @api_version.setter
74
- def api_version(self, value: Optional[pulumi.Input[str]]):
75
- pulumi.set(self, "api_version", value)
76
-
77
- @property
78
- @pulumi.getter
79
- def kind(self) -> Optional[pulumi.Input[str]]:
80
- """
81
- 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
82
- """
83
- return pulumi.get(self, "kind")
84
-
85
- @kind.setter
86
- def kind(self, value: Optional[pulumi.Input[str]]):
87
- pulumi.set(self, "kind", value)
88
-
89
- @property
90
- @pulumi.getter
91
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
92
- """
93
- Standard object metadata
94
- """
95
- return pulumi.get(self, "metadata")
96
-
97
- @metadata.setter
98
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
99
- pulumi.set(self, "metadata", value)
100
-
101
-
102
- class DeviceClass(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.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
110
- spec: Optional[pulumi.Input[Union['DeviceClassSpecArgs', 'DeviceClassSpecArgsDict']]] = None,
111
- __props__=None):
112
- """
113
- 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.
114
-
115
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
116
-
117
- :param str resource_name: The name of the resource.
118
- :param pulumi.ResourceOptions opts: Options for the resource.
119
- :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
120
- :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
121
- :param pulumi.Input[Union['_meta.v1.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']] metadata: Standard object metadata
122
- :param pulumi.Input[Union['DeviceClassSpecArgs', 'DeviceClassSpecArgsDict']] spec: Spec defines what can be allocated and how to configure it.
123
-
124
- 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.
125
-
126
- Changing the spec automatically increments the metadata.generation number.
127
- """
128
- ...
129
- @overload
130
- def __init__(__self__,
131
- resource_name: str,
132
- args: DeviceClassInitArgs,
133
- opts: Optional[pulumi.ResourceOptions] = None):
134
- """
135
- 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.
136
-
137
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
138
-
139
- :param str resource_name: The name of the resource.
140
- :param DeviceClassInitArgs 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(DeviceClassInitArgs, 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.ObjectMetaArgs', '_meta.v1.ObjectMetaArgsDict']]] = None,
157
- spec: Optional[pulumi.Input[Union['DeviceClassSpecArgs', 'DeviceClassSpecArgsDict']]] = 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__ = DeviceClassInitArgs.__new__(DeviceClassInitArgs)
166
-
167
- __props__.__dict__["api_version"] = 'resource.k8s.io/v1alpha3'
168
- __props__.__dict__["kind"] = 'DeviceClass'
169
- __props__.__dict__["metadata"] = metadata
170
- if spec is None and not opts.urn:
171
- raise TypeError("Missing required property 'spec'")
172
- __props__.__dict__["spec"] = spec
173
- super(DeviceClass, __self__).__init__(
174
- 'kubernetes:resource.k8s.io/v1alpha3:DeviceClass',
175
- resource_name,
176
- __props__,
177
- opts)
178
-
179
- @staticmethod
180
- def get(resource_name: str,
181
- id: pulumi.Input[str],
182
- opts: Optional[pulumi.ResourceOptions] = None) -> 'DeviceClass':
183
- """
184
- Get an existing DeviceClass resource's state with the given name, id, and optional extra
185
- properties used to qualify the lookup.
186
-
187
- :param str resource_name: The unique name of the resulting resource.
188
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
189
- :param pulumi.ResourceOptions opts: Options for the resource.
190
- """
191
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
192
-
193
- __props__ = DeviceClassInitArgs.__new__(DeviceClassInitArgs)
194
-
195
- __props__.__dict__["api_version"] = None
196
- __props__.__dict__["kind"] = None
197
- __props__.__dict__["metadata"] = None
198
- __props__.__dict__["spec"] = None
199
- return DeviceClass(resource_name, opts=opts, __props__=__props__)
200
-
201
- @property
202
- @pulumi.getter(name="apiVersion")
203
- def api_version(self) -> pulumi.Output[str]:
204
- """
205
- 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
206
- """
207
- return pulumi.get(self, "api_version")
208
-
209
- @property
210
- @pulumi.getter
211
- def kind(self) -> pulumi.Output[str]:
212
- """
213
- 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
214
- """
215
- return pulumi.get(self, "kind")
216
-
217
- @property
218
- @pulumi.getter
219
- def metadata(self) -> pulumi.Output['_meta.v1.outputs.ObjectMeta']:
220
- """
221
- Standard object metadata
222
- """
223
- return pulumi.get(self, "metadata")
224
-
225
- @property
226
- @pulumi.getter
227
- def spec(self) -> pulumi.Output['outputs.DeviceClassSpec']:
228
- """
229
- Spec defines what can be allocated and how to configure it.
230
-
231
- 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.
232
-
233
- Changing the spec automatically increments the metadata.generation number.
234
- """
235
- return pulumi.get(self, "spec")
236
-