pulumi-kubernetes 4.23.0a1746129859__py3-none-any.whl → 4.23.0a1746138483__py3-none-any.whl

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

Potentially problematic release.


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

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