pulumi-kubernetes 4.23.0a1746131759__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.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/METADATA +1 -1
  114. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/RECORD +116 -86
  115. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/WHEEL +0 -0
  116. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746138483.dist-info}/top_level.txt +0 -0
@@ -17,6 +17,12 @@ from ... import _utilities
17
17
  from ... import meta as _meta
18
18
 
19
19
  __all__ = [
20
+ 'LeaseCandidateSpecPatchArgs',
21
+ 'LeaseCandidateSpecPatchArgsDict',
22
+ 'LeaseCandidateSpecArgs',
23
+ 'LeaseCandidateSpecArgsDict',
24
+ 'LeaseCandidateArgs',
25
+ 'LeaseCandidateArgsDict',
20
26
  'LeaseSpecPatchArgs',
21
27
  'LeaseSpecPatchArgsDict',
22
28
  'LeaseSpecArgs',
@@ -27,6 +33,371 @@ __all__ = [
27
33
 
28
34
  MYPY = False
29
35
 
36
+ if not MYPY:
37
+ class LeaseCandidateSpecPatchArgsDict(TypedDict):
38
+ """
39
+ LeaseCandidateSpec is a specification of a Lease.
40
+ """
41
+ binary_version: NotRequired[pulumi.Input[builtins.str]]
42
+ """
43
+ BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
44
+ """
45
+ emulation_version: NotRequired[pulumi.Input[builtins.str]]
46
+ """
47
+ EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
48
+ """
49
+ lease_name: NotRequired[pulumi.Input[builtins.str]]
50
+ """
51
+ LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.
52
+ """
53
+ ping_time: NotRequired[pulumi.Input[builtins.str]]
54
+ """
55
+ PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
56
+ """
57
+ renew_time: NotRequired[pulumi.Input[builtins.str]]
58
+ """
59
+ RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
60
+ """
61
+ strategy: NotRequired[pulumi.Input[builtins.str]]
62
+ """
63
+ Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.
64
+ """
65
+ elif False:
66
+ LeaseCandidateSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
67
+
68
+ @pulumi.input_type
69
+ class LeaseCandidateSpecPatchArgs:
70
+ def __init__(__self__, *,
71
+ binary_version: Optional[pulumi.Input[builtins.str]] = None,
72
+ emulation_version: Optional[pulumi.Input[builtins.str]] = None,
73
+ lease_name: Optional[pulumi.Input[builtins.str]] = None,
74
+ ping_time: Optional[pulumi.Input[builtins.str]] = None,
75
+ renew_time: Optional[pulumi.Input[builtins.str]] = None,
76
+ strategy: Optional[pulumi.Input[builtins.str]] = None):
77
+ """
78
+ LeaseCandidateSpec is a specification of a Lease.
79
+ :param pulumi.Input[builtins.str] binary_version: BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
80
+ :param pulumi.Input[builtins.str] emulation_version: EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
81
+ :param pulumi.Input[builtins.str] lease_name: LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.
82
+ :param pulumi.Input[builtins.str] ping_time: PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
83
+ :param pulumi.Input[builtins.str] renew_time: RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
84
+ :param pulumi.Input[builtins.str] strategy: Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.
85
+ """
86
+ if binary_version is not None:
87
+ pulumi.set(__self__, "binary_version", binary_version)
88
+ if emulation_version is not None:
89
+ pulumi.set(__self__, "emulation_version", emulation_version)
90
+ if lease_name is not None:
91
+ pulumi.set(__self__, "lease_name", lease_name)
92
+ if ping_time is not None:
93
+ pulumi.set(__self__, "ping_time", ping_time)
94
+ if renew_time is not None:
95
+ pulumi.set(__self__, "renew_time", renew_time)
96
+ if strategy is not None:
97
+ pulumi.set(__self__, "strategy", strategy)
98
+
99
+ @property
100
+ @pulumi.getter(name="binaryVersion")
101
+ def binary_version(self) -> Optional[pulumi.Input[builtins.str]]:
102
+ """
103
+ BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
104
+ """
105
+ return pulumi.get(self, "binary_version")
106
+
107
+ @binary_version.setter
108
+ def binary_version(self, value: Optional[pulumi.Input[builtins.str]]):
109
+ pulumi.set(self, "binary_version", value)
110
+
111
+ @property
112
+ @pulumi.getter(name="emulationVersion")
113
+ def emulation_version(self) -> Optional[pulumi.Input[builtins.str]]:
114
+ """
115
+ EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
116
+ """
117
+ return pulumi.get(self, "emulation_version")
118
+
119
+ @emulation_version.setter
120
+ def emulation_version(self, value: Optional[pulumi.Input[builtins.str]]):
121
+ pulumi.set(self, "emulation_version", value)
122
+
123
+ @property
124
+ @pulumi.getter(name="leaseName")
125
+ def lease_name(self) -> Optional[pulumi.Input[builtins.str]]:
126
+ """
127
+ LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.
128
+ """
129
+ return pulumi.get(self, "lease_name")
130
+
131
+ @lease_name.setter
132
+ def lease_name(self, value: Optional[pulumi.Input[builtins.str]]):
133
+ pulumi.set(self, "lease_name", value)
134
+
135
+ @property
136
+ @pulumi.getter(name="pingTime")
137
+ def ping_time(self) -> Optional[pulumi.Input[builtins.str]]:
138
+ """
139
+ PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
140
+ """
141
+ return pulumi.get(self, "ping_time")
142
+
143
+ @ping_time.setter
144
+ def ping_time(self, value: Optional[pulumi.Input[builtins.str]]):
145
+ pulumi.set(self, "ping_time", value)
146
+
147
+ @property
148
+ @pulumi.getter(name="renewTime")
149
+ def renew_time(self) -> Optional[pulumi.Input[builtins.str]]:
150
+ """
151
+ RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
152
+ """
153
+ return pulumi.get(self, "renew_time")
154
+
155
+ @renew_time.setter
156
+ def renew_time(self, value: Optional[pulumi.Input[builtins.str]]):
157
+ pulumi.set(self, "renew_time", value)
158
+
159
+ @property
160
+ @pulumi.getter
161
+ def strategy(self) -> Optional[pulumi.Input[builtins.str]]:
162
+ """
163
+ Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.
164
+ """
165
+ return pulumi.get(self, "strategy")
166
+
167
+ @strategy.setter
168
+ def strategy(self, value: Optional[pulumi.Input[builtins.str]]):
169
+ pulumi.set(self, "strategy", value)
170
+
171
+
172
+ if not MYPY:
173
+ class LeaseCandidateSpecArgsDict(TypedDict):
174
+ """
175
+ LeaseCandidateSpec is a specification of a Lease.
176
+ """
177
+ binary_version: pulumi.Input[builtins.str]
178
+ """
179
+ BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
180
+ """
181
+ lease_name: pulumi.Input[builtins.str]
182
+ """
183
+ LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.
184
+ """
185
+ strategy: pulumi.Input[builtins.str]
186
+ """
187
+ Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.
188
+ """
189
+ emulation_version: NotRequired[pulumi.Input[builtins.str]]
190
+ """
191
+ EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
192
+ """
193
+ ping_time: NotRequired[pulumi.Input[builtins.str]]
194
+ """
195
+ PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
196
+ """
197
+ renew_time: NotRequired[pulumi.Input[builtins.str]]
198
+ """
199
+ RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
200
+ """
201
+ elif False:
202
+ LeaseCandidateSpecArgsDict: TypeAlias = Mapping[str, Any]
203
+
204
+ @pulumi.input_type
205
+ class LeaseCandidateSpecArgs:
206
+ def __init__(__self__, *,
207
+ binary_version: pulumi.Input[builtins.str],
208
+ lease_name: pulumi.Input[builtins.str],
209
+ strategy: pulumi.Input[builtins.str],
210
+ emulation_version: Optional[pulumi.Input[builtins.str]] = None,
211
+ ping_time: Optional[pulumi.Input[builtins.str]] = None,
212
+ renew_time: Optional[pulumi.Input[builtins.str]] = None):
213
+ """
214
+ LeaseCandidateSpec is a specification of a Lease.
215
+ :param pulumi.Input[builtins.str] binary_version: BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
216
+ :param pulumi.Input[builtins.str] lease_name: LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.
217
+ :param pulumi.Input[builtins.str] strategy: Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.
218
+ :param pulumi.Input[builtins.str] emulation_version: EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
219
+ :param pulumi.Input[builtins.str] ping_time: PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
220
+ :param pulumi.Input[builtins.str] renew_time: RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
221
+ """
222
+ pulumi.set(__self__, "binary_version", binary_version)
223
+ pulumi.set(__self__, "lease_name", lease_name)
224
+ pulumi.set(__self__, "strategy", strategy)
225
+ if emulation_version is not None:
226
+ pulumi.set(__self__, "emulation_version", emulation_version)
227
+ if ping_time is not None:
228
+ pulumi.set(__self__, "ping_time", ping_time)
229
+ if renew_time is not None:
230
+ pulumi.set(__self__, "renew_time", renew_time)
231
+
232
+ @property
233
+ @pulumi.getter(name="binaryVersion")
234
+ def binary_version(self) -> pulumi.Input[builtins.str]:
235
+ """
236
+ BinaryVersion is the binary version. It must be in a semver format without leading `v`. This field is required.
237
+ """
238
+ return pulumi.get(self, "binary_version")
239
+
240
+ @binary_version.setter
241
+ def binary_version(self, value: pulumi.Input[builtins.str]):
242
+ pulumi.set(self, "binary_version", value)
243
+
244
+ @property
245
+ @pulumi.getter(name="leaseName")
246
+ def lease_name(self) -> pulumi.Input[builtins.str]:
247
+ """
248
+ LeaseName is the name of the lease for which this candidate is contending. The limits on this field are the same as on Lease.name. Multiple lease candidates may reference the same Lease.name. This field is immutable.
249
+ """
250
+ return pulumi.get(self, "lease_name")
251
+
252
+ @lease_name.setter
253
+ def lease_name(self, value: pulumi.Input[builtins.str]):
254
+ pulumi.set(self, "lease_name", value)
255
+
256
+ @property
257
+ @pulumi.getter
258
+ def strategy(self) -> pulumi.Input[builtins.str]:
259
+ """
260
+ Strategy is the strategy that coordinated leader election will use for picking the leader. If multiple candidates for the same Lease return different strategies, the strategy provided by the candidate with the latest BinaryVersion will be used. If there is still conflict, this is a user error and coordinated leader election will not operate the Lease until resolved.
261
+ """
262
+ return pulumi.get(self, "strategy")
263
+
264
+ @strategy.setter
265
+ def strategy(self, value: pulumi.Input[builtins.str]):
266
+ pulumi.set(self, "strategy", value)
267
+
268
+ @property
269
+ @pulumi.getter(name="emulationVersion")
270
+ def emulation_version(self) -> Optional[pulumi.Input[builtins.str]]:
271
+ """
272
+ EmulationVersion is the emulation version. It must be in a semver format without leading `v`. EmulationVersion must be less than or equal to BinaryVersion. This field is required when strategy is "OldestEmulationVersion"
273
+ """
274
+ return pulumi.get(self, "emulation_version")
275
+
276
+ @emulation_version.setter
277
+ def emulation_version(self, value: Optional[pulumi.Input[builtins.str]]):
278
+ pulumi.set(self, "emulation_version", value)
279
+
280
+ @property
281
+ @pulumi.getter(name="pingTime")
282
+ def ping_time(self) -> Optional[pulumi.Input[builtins.str]]:
283
+ """
284
+ PingTime is the last time that the server has requested the LeaseCandidate to renew. It is only done during leader election to check if any LeaseCandidates have become ineligible. When PingTime is updated, the LeaseCandidate will respond by updating RenewTime.
285
+ """
286
+ return pulumi.get(self, "ping_time")
287
+
288
+ @ping_time.setter
289
+ def ping_time(self, value: Optional[pulumi.Input[builtins.str]]):
290
+ pulumi.set(self, "ping_time", value)
291
+
292
+ @property
293
+ @pulumi.getter(name="renewTime")
294
+ def renew_time(self) -> Optional[pulumi.Input[builtins.str]]:
295
+ """
296
+ RenewTime is the time that the LeaseCandidate was last updated. Any time a Lease needs to do leader election, the PingTime field is updated to signal to the LeaseCandidate that they should update the RenewTime. Old LeaseCandidate objects are also garbage collected if it has been hours since the last renew. The PingTime field is updated regularly to prevent garbage collection for still active LeaseCandidates.
297
+ """
298
+ return pulumi.get(self, "renew_time")
299
+
300
+ @renew_time.setter
301
+ def renew_time(self, value: Optional[pulumi.Input[builtins.str]]):
302
+ pulumi.set(self, "renew_time", value)
303
+
304
+
305
+ if not MYPY:
306
+ class LeaseCandidateArgsDict(TypedDict):
307
+ """
308
+ LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
309
+ """
310
+ api_version: NotRequired[pulumi.Input[builtins.str]]
311
+ """
312
+ 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
313
+ """
314
+ kind: NotRequired[pulumi.Input[builtins.str]]
315
+ """
316
+ 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
317
+ """
318
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
319
+ """
320
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
321
+ """
322
+ spec: NotRequired[pulumi.Input['LeaseCandidateSpecArgsDict']]
323
+ """
324
+ spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
325
+ """
326
+ elif False:
327
+ LeaseCandidateArgsDict: TypeAlias = Mapping[str, Any]
328
+
329
+ @pulumi.input_type
330
+ class LeaseCandidateArgs:
331
+ def __init__(__self__, *,
332
+ api_version: Optional[pulumi.Input[builtins.str]] = None,
333
+ kind: Optional[pulumi.Input[builtins.str]] = None,
334
+ metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
335
+ spec: Optional[pulumi.Input['LeaseCandidateSpecArgs']] = None):
336
+ """
337
+ LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.
338
+ :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
339
+ :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
340
+ :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
341
+ :param pulumi.Input['LeaseCandidateSpecArgs'] spec: spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
342
+ """
343
+ if api_version is not None:
344
+ pulumi.set(__self__, "api_version", 'coordination.k8s.io/v1beta1')
345
+ if kind is not None:
346
+ pulumi.set(__self__, "kind", 'LeaseCandidate')
347
+ if metadata is not None:
348
+ pulumi.set(__self__, "metadata", metadata)
349
+ if spec is not None:
350
+ pulumi.set(__self__, "spec", spec)
351
+
352
+ @property
353
+ @pulumi.getter(name="apiVersion")
354
+ def api_version(self) -> Optional[pulumi.Input[builtins.str]]:
355
+ """
356
+ 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
357
+ """
358
+ return pulumi.get(self, "api_version")
359
+
360
+ @api_version.setter
361
+ def api_version(self, value: Optional[pulumi.Input[builtins.str]]):
362
+ pulumi.set(self, "api_version", value)
363
+
364
+ @property
365
+ @pulumi.getter
366
+ def kind(self) -> Optional[pulumi.Input[builtins.str]]:
367
+ """
368
+ 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
369
+ """
370
+ return pulumi.get(self, "kind")
371
+
372
+ @kind.setter
373
+ def kind(self, value: Optional[pulumi.Input[builtins.str]]):
374
+ pulumi.set(self, "kind", value)
375
+
376
+ @property
377
+ @pulumi.getter
378
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
379
+ """
380
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
381
+ """
382
+ return pulumi.get(self, "metadata")
383
+
384
+ @metadata.setter
385
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
386
+ pulumi.set(self, "metadata", value)
387
+
388
+ @property
389
+ @pulumi.getter
390
+ def spec(self) -> Optional[pulumi.Input['LeaseCandidateSpecArgs']]:
391
+ """
392
+ spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
393
+ """
394
+ return pulumi.get(self, "spec")
395
+
396
+ @spec.setter
397
+ def spec(self, value: Optional[pulumi.Input['LeaseCandidateSpecArgs']]):
398
+ pulumi.set(self, "spec", value)
399
+
400
+
30
401
  if not MYPY:
31
402
  class LeaseSpecPatchArgsDict(TypedDict):
32
403
  """