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,216 +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__ = ['DeviceClassListArgs', 'DeviceClassList']
22
-
23
- @pulumi.input_type
24
- class DeviceClassListArgs:
25
- def __init__(__self__, *,
26
- items: pulumi.Input[Sequence[pulumi.Input['DeviceClassArgs']]],
27
- api_version: Optional[pulumi.Input[str]] = None,
28
- kind: Optional[pulumi.Input[str]] = None,
29
- metadata: Optional[pulumi.Input['_meta.v1.ListMetaArgs']] = None):
30
- """
31
- The set of arguments for constructing a DeviceClassList resource.
32
- :param pulumi.Input[Sequence[pulumi.Input['DeviceClassArgs']]] items: Items is the list of resource classes.
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.ListMetaArgs'] metadata: Standard list metadata
36
- """
37
- pulumi.set(__self__, "items", items)
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", 'DeviceClassList')
42
- if metadata is not None:
43
- pulumi.set(__self__, "metadata", metadata)
44
-
45
- @property
46
- @pulumi.getter
47
- def items(self) -> pulumi.Input[Sequence[pulumi.Input['DeviceClassArgs']]]:
48
- """
49
- Items is the list of resource classes.
50
- """
51
- return pulumi.get(self, "items")
52
-
53
- @items.setter
54
- def items(self, value: pulumi.Input[Sequence[pulumi.Input['DeviceClassArgs']]]):
55
- pulumi.set(self, "items", 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.ListMetaArgs']]:
84
- """
85
- Standard list metadata
86
- """
87
- return pulumi.get(self, "metadata")
88
-
89
- @metadata.setter
90
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ListMetaArgs']]):
91
- pulumi.set(self, "metadata", value)
92
-
93
-
94
- class DeviceClassList(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
- items: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DeviceClassArgs', 'DeviceClassArgsDict']]]]] = None,
101
- kind: Optional[pulumi.Input[str]] = None,
102
- metadata: Optional[pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']]] = None,
103
- __props__=None):
104
- """
105
- DeviceClassList is a collection of classes.
106
-
107
- :param str resource_name: The name of the resource.
108
- :param pulumi.ResourceOptions opts: Options for the resource.
109
- :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
110
- :param pulumi.Input[Sequence[pulumi.Input[Union['DeviceClassArgs', 'DeviceClassArgsDict']]]] items: Items is the list of resource classes.
111
- :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
112
- :param pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']] metadata: Standard list metadata
113
- """
114
- ...
115
- @overload
116
- def __init__(__self__,
117
- resource_name: str,
118
- args: DeviceClassListArgs,
119
- opts: Optional[pulumi.ResourceOptions] = None):
120
- """
121
- DeviceClassList is a collection of classes.
122
-
123
- :param str resource_name: The name of the resource.
124
- :param DeviceClassListArgs args: The arguments to use to populate this resource's properties.
125
- :param pulumi.ResourceOptions opts: Options for the resource.
126
- """
127
- ...
128
- def __init__(__self__, resource_name: str, *args, **kwargs):
129
- resource_args, opts = _utilities.get_resource_args_opts(DeviceClassListArgs, pulumi.ResourceOptions, *args, **kwargs)
130
- if resource_args is not None:
131
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
132
- else:
133
- __self__._internal_init(resource_name, *args, **kwargs)
134
-
135
- def _internal_init(__self__,
136
- resource_name: str,
137
- opts: Optional[pulumi.ResourceOptions] = None,
138
- api_version: Optional[pulumi.Input[str]] = None,
139
- items: Optional[pulumi.Input[Sequence[pulumi.Input[Union['DeviceClassArgs', 'DeviceClassArgsDict']]]]] = None,
140
- kind: Optional[pulumi.Input[str]] = None,
141
- metadata: Optional[pulumi.Input[Union['_meta.v1.ListMetaArgs', '_meta.v1.ListMetaArgsDict']]] = None,
142
- __props__=None):
143
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
144
- if not isinstance(opts, pulumi.ResourceOptions):
145
- raise TypeError('Expected resource options to be a ResourceOptions instance')
146
- if opts.id is None:
147
- if __props__ is not None:
148
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
149
- __props__ = DeviceClassListArgs.__new__(DeviceClassListArgs)
150
-
151
- __props__.__dict__["api_version"] = 'resource.k8s.io/v1alpha3'
152
- if items is None and not opts.urn:
153
- raise TypeError("Missing required property 'items'")
154
- __props__.__dict__["items"] = items
155
- __props__.__dict__["kind"] = 'DeviceClassList'
156
- __props__.__dict__["metadata"] = metadata
157
- super(DeviceClassList, __self__).__init__(
158
- 'kubernetes:resource.k8s.io/v1alpha3:DeviceClassList',
159
- resource_name,
160
- __props__,
161
- opts)
162
-
163
- @staticmethod
164
- def get(resource_name: str,
165
- id: pulumi.Input[str],
166
- opts: Optional[pulumi.ResourceOptions] = None) -> 'DeviceClassList':
167
- """
168
- Get an existing DeviceClassList resource's state with the given name, id, and optional extra
169
- properties used to qualify the lookup.
170
-
171
- :param str resource_name: The unique name of the resulting resource.
172
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
173
- :param pulumi.ResourceOptions opts: Options for the resource.
174
- """
175
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
176
-
177
- __props__ = DeviceClassListArgs.__new__(DeviceClassListArgs)
178
-
179
- __props__.__dict__["api_version"] = None
180
- __props__.__dict__["items"] = None
181
- __props__.__dict__["kind"] = None
182
- __props__.__dict__["metadata"] = None
183
- return DeviceClassList(resource_name, opts=opts, __props__=__props__)
184
-
185
- @property
186
- @pulumi.getter(name="apiVersion")
187
- def api_version(self) -> pulumi.Output[str]:
188
- """
189
- 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
190
- """
191
- return pulumi.get(self, "api_version")
192
-
193
- @property
194
- @pulumi.getter
195
- def items(self) -> pulumi.Output[Sequence['outputs.DeviceClass']]:
196
- """
197
- Items is the list of resource classes.
198
- """
199
- return pulumi.get(self, "items")
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.ListMeta']:
212
- """
213
- Standard list metadata
214
- """
215
- return pulumi.get(self, "metadata")
216
-
@@ -1,247 +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__ = ['DeviceClassPatchArgs', 'DeviceClassPatch']
22
-
23
- @pulumi.input_type
24
- class DeviceClassPatchArgs:
25
- def __init__(__self__, *,
26
- api_version: Optional[pulumi.Input[str]] = None,
27
- kind: Optional[pulumi.Input[str]] = None,
28
- metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']] = None,
29
- spec: Optional[pulumi.Input['DeviceClassSpecPatchArgs']] = None):
30
- """
31
- The set of arguments for constructing a DeviceClassPatch resource.
32
- :param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
33
- :param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
34
- :param pulumi.Input['_meta.v1.ObjectMetaPatchArgs'] metadata: Standard object metadata
35
- :param pulumi.Input['DeviceClassSpecPatchArgs'] spec: Spec defines what can be allocated and how to configure it.
36
-
37
- This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
38
-
39
- Changing the spec automatically increments the metadata.generation number.
40
- """
41
- if api_version is not None:
42
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha3')
43
- if kind is not None:
44
- pulumi.set(__self__, "kind", 'DeviceClass')
45
- if metadata is not None:
46
- pulumi.set(__self__, "metadata", metadata)
47
- if spec is not None:
48
- pulumi.set(__self__, "spec", spec)
49
-
50
- @property
51
- @pulumi.getter(name="apiVersion")
52
- def api_version(self) -> Optional[pulumi.Input[str]]:
53
- """
54
- APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
55
- """
56
- return pulumi.get(self, "api_version")
57
-
58
- @api_version.setter
59
- def api_version(self, value: Optional[pulumi.Input[str]]):
60
- pulumi.set(self, "api_version", value)
61
-
62
- @property
63
- @pulumi.getter
64
- def kind(self) -> Optional[pulumi.Input[str]]:
65
- """
66
- Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
67
- """
68
- return pulumi.get(self, "kind")
69
-
70
- @kind.setter
71
- def kind(self, value: Optional[pulumi.Input[str]]):
72
- pulumi.set(self, "kind", value)
73
-
74
- @property
75
- @pulumi.getter
76
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]:
77
- """
78
- Standard object metadata
79
- """
80
- return pulumi.get(self, "metadata")
81
-
82
- @metadata.setter
83
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]):
84
- pulumi.set(self, "metadata", value)
85
-
86
- @property
87
- @pulumi.getter
88
- def spec(self) -> Optional[pulumi.Input['DeviceClassSpecPatchArgs']]:
89
- """
90
- Spec defines what can be allocated and how to configure it.
91
-
92
- This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
93
-
94
- Changing the spec automatically increments the metadata.generation number.
95
- """
96
- return pulumi.get(self, "spec")
97
-
98
- @spec.setter
99
- def spec(self, value: Optional[pulumi.Input['DeviceClassSpecPatchArgs']]):
100
- pulumi.set(self, "spec", value)
101
-
102
-
103
- class DeviceClassPatch(pulumi.CustomResource):
104
- @overload
105
- def __init__(__self__,
106
- resource_name: str,
107
- opts: Optional[pulumi.ResourceOptions] = None,
108
- api_version: Optional[pulumi.Input[str]] = None,
109
- kind: Optional[pulumi.Input[str]] = None,
110
- metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
111
- spec: Optional[pulumi.Input[Union['DeviceClassSpecPatchArgs', 'DeviceClassSpecPatchArgsDict']]] = None,
112
- __props__=None):
113
- """
114
- Patch resources are used to modify existing Kubernetes resources by using
115
- Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
116
- one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
117
- Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
118
- [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
119
- additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
120
- 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.
121
-
122
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
123
-
124
- :param str resource_name: The name of the resource.
125
- :param pulumi.ResourceOptions opts: Options for the resource.
126
- :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
127
- :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
128
- :param pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']] metadata: Standard object metadata
129
- :param pulumi.Input[Union['DeviceClassSpecPatchArgs', 'DeviceClassSpecPatchArgsDict']] spec: Spec defines what can be allocated and how to configure it.
130
-
131
- 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.
132
-
133
- Changing the spec automatically increments the metadata.generation number.
134
- """
135
- ...
136
- @overload
137
- def __init__(__self__,
138
- resource_name: str,
139
- args: Optional[DeviceClassPatchArgs] = None,
140
- opts: Optional[pulumi.ResourceOptions] = None):
141
- """
142
- Patch resources are used to modify existing Kubernetes resources by using
143
- Server-Side Apply updates. The name of the resource must be specified, but all other properties are optional. More than
144
- one patch may be applied to the same resource, and a random FieldManager name will be used for each Patch resource.
145
- Conflicts will result in an error by default, but can be forced using the "pulumi.com/patchForce" annotation. See the
146
- [Server-Side Apply Docs](https://www.pulumi.com/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) for
147
- additional information about using Server-Side Apply to manage Kubernetes resources with Pulumi.
148
- 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.
149
-
150
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
151
-
152
- :param str resource_name: The name of the resource.
153
- :param DeviceClassPatchArgs args: The arguments to use to populate this resource's properties.
154
- :param pulumi.ResourceOptions opts: Options for the resource.
155
- """
156
- ...
157
- def __init__(__self__, resource_name: str, *args, **kwargs):
158
- resource_args, opts = _utilities.get_resource_args_opts(DeviceClassPatchArgs, pulumi.ResourceOptions, *args, **kwargs)
159
- if resource_args is not None:
160
- __self__._internal_init(resource_name, opts, **resource_args.__dict__)
161
- else:
162
- __self__._internal_init(resource_name, *args, **kwargs)
163
-
164
- def _internal_init(__self__,
165
- resource_name: str,
166
- opts: Optional[pulumi.ResourceOptions] = None,
167
- api_version: Optional[pulumi.Input[str]] = None,
168
- kind: Optional[pulumi.Input[str]] = None,
169
- metadata: Optional[pulumi.Input[Union['_meta.v1.ObjectMetaPatchArgs', '_meta.v1.ObjectMetaPatchArgsDict']]] = None,
170
- spec: Optional[pulumi.Input[Union['DeviceClassSpecPatchArgs', 'DeviceClassSpecPatchArgsDict']]] = None,
171
- __props__=None):
172
- opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
173
- if not isinstance(opts, pulumi.ResourceOptions):
174
- raise TypeError('Expected resource options to be a ResourceOptions instance')
175
- if opts.id is None:
176
- if __props__ is not None:
177
- raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
178
- __props__ = DeviceClassPatchArgs.__new__(DeviceClassPatchArgs)
179
-
180
- __props__.__dict__["api_version"] = 'resource.k8s.io/v1alpha3'
181
- __props__.__dict__["kind"] = 'DeviceClass'
182
- __props__.__dict__["metadata"] = metadata
183
- __props__.__dict__["spec"] = spec
184
- super(DeviceClassPatch, __self__).__init__(
185
- 'kubernetes:resource.k8s.io/v1alpha3:DeviceClassPatch',
186
- resource_name,
187
- __props__,
188
- opts)
189
-
190
- @staticmethod
191
- def get(resource_name: str,
192
- id: pulumi.Input[str],
193
- opts: Optional[pulumi.ResourceOptions] = None) -> 'DeviceClassPatch':
194
- """
195
- Get an existing DeviceClassPatch resource's state with the given name, id, and optional extra
196
- properties used to qualify the lookup.
197
-
198
- :param str resource_name: The unique name of the resulting resource.
199
- :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
200
- :param pulumi.ResourceOptions opts: Options for the resource.
201
- """
202
- opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
203
-
204
- __props__ = DeviceClassPatchArgs.__new__(DeviceClassPatchArgs)
205
-
206
- __props__.__dict__["api_version"] = None
207
- __props__.__dict__["kind"] = None
208
- __props__.__dict__["metadata"] = None
209
- __props__.__dict__["spec"] = None
210
- return DeviceClassPatch(resource_name, opts=opts, __props__=__props__)
211
-
212
- @property
213
- @pulumi.getter(name="apiVersion")
214
- def api_version(self) -> pulumi.Output[Optional[str]]:
215
- """
216
- 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
217
- """
218
- return pulumi.get(self, "api_version")
219
-
220
- @property
221
- @pulumi.getter
222
- def kind(self) -> pulumi.Output[Optional[str]]:
223
- """
224
- 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
225
- """
226
- return pulumi.get(self, "kind")
227
-
228
- @property
229
- @pulumi.getter
230
- def metadata(self) -> pulumi.Output[Optional['_meta.v1.outputs.ObjectMetaPatch']]:
231
- """
232
- Standard object metadata
233
- """
234
- return pulumi.get(self, "metadata")
235
-
236
- @property
237
- @pulumi.getter
238
- def spec(self) -> pulumi.Output[Optional['outputs.DeviceClassSpecPatch']]:
239
- """
240
- Spec defines what can be allocated and how to configure it.
241
-
242
- 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.
243
-
244
- Changing the spec automatically increments the metadata.generation number.
245
- """
246
- return pulumi.get(self, "spec")
247
-