pulumi-nomad 2.3.0a1717543517__py3-none-any.whl → 2.3.1__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.
pulumi_nomad/__init__.py CHANGED
@@ -24,6 +24,7 @@ from .get_datacenters import *
24
24
  from .get_deployments import *
25
25
  from .get_job import *
26
26
  from .get_job_parser import *
27
+ from .get_jwks import *
27
28
  from .get_namespace import *
28
29
  from .get_namespaces import *
29
30
  from .get_node_pool import *
pulumi_nomad/_inputs.py CHANGED
@@ -58,56 +58,93 @@ __all__ = [
58
58
  @pulumi.input_type
59
59
  class AclAuthMethodConfigArgs:
60
60
  def __init__(__self__, *,
61
- allowed_redirect_uris: pulumi.Input[Sequence[pulumi.Input[str]]],
62
- oidc_client_id: pulumi.Input[str],
63
- oidc_client_secret: pulumi.Input[str],
64
- oidc_discovery_url: pulumi.Input[str],
61
+ allowed_redirect_uris: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
65
62
  bound_audiences: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
63
+ bound_issuers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
66
64
  claim_mappings: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
65
+ clock_skew_leeway: Optional[pulumi.Input[str]] = None,
67
66
  discovery_ca_pems: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
67
+ expiration_leeway: Optional[pulumi.Input[str]] = None,
68
+ jwks_ca_cert: Optional[pulumi.Input[str]] = None,
69
+ jwks_url: Optional[pulumi.Input[str]] = None,
70
+ jwt_validation_pub_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
68
71
  list_claim_mappings: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
72
+ not_before_leeway: Optional[pulumi.Input[str]] = None,
73
+ oidc_client_id: Optional[pulumi.Input[str]] = None,
74
+ oidc_client_secret: Optional[pulumi.Input[str]] = None,
69
75
  oidc_disable_userinfo: Optional[pulumi.Input[bool]] = None,
76
+ oidc_discovery_url: Optional[pulumi.Input[str]] = None,
70
77
  oidc_scopes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
71
78
  signing_algs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
72
79
  """
73
80
  :param pulumi.Input[Sequence[pulumi.Input[str]]] allowed_redirect_uris: `([]string: <optional>)` - A list of allowed values
74
81
  that can be used for the redirect URI.
75
- :param pulumi.Input[str] oidc_client_id: `(string: <required>)` - The OAuth Client ID configured
76
- with the OIDC provider.
77
- :param pulumi.Input[str] oidc_client_secret: `(string: <required>)` - The OAuth Client Secret
78
- configured with the OIDC provider.
79
- :param pulumi.Input[str] oidc_discovery_url: `(string: <required>)` - The OIDC Discovery URL,
80
- without any .well-known component (base path).
81
82
  :param pulumi.Input[Sequence[pulumi.Input[str]]] bound_audiences: `([]string: <optional>)` - List of auth claims that are
82
83
  valid for login.
83
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] claim_mappings: `(map[string]string: <optional>)` - Mappings of claims (key)
84
- that will be copied to a metadata field (value).
84
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] bound_issuers: `([]string: <optional>)` - The value against which to match
85
+ the iss claim in a JWT.
86
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] claim_mappings: Mappings of claims (key) that will be copied to a metadata field (value).
87
+ :param pulumi.Input[str] clock_skew_leeway: `(string: <optional>)` - Duration of leeway when validating
88
+ all claims in the form of a time duration such as "5m" or "1h".
85
89
  :param pulumi.Input[Sequence[pulumi.Input[str]]] discovery_ca_pems: `([]string: <optional>)` - PEM encoded CA certs for use
86
90
  by the TLS client used to talk with the OIDC Discovery URL.
87
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] list_claim_mappings: `(map[string]string: <optional>)` - Mappings of list
88
- claims (key) that will be copied to a metadata field (value).
91
+ :param pulumi.Input[str] expiration_leeway: `(string: <optional>)` - Duration of leeway when validating
92
+ expiration of a JWT in the form of a time duration such as "5m" or "1h".
93
+ :param pulumi.Input[str] jwks_ca_cert: `(string: <optional>)` - PEM encoded CA cert for use by the
94
+ TLS client used to talk with the JWKS server.
95
+ :param pulumi.Input[str] jwks_url: `(string: <optional>)` - JSON Web Key Sets url for authenticating
96
+ signatures.
97
+ :param pulumi.Input[Sequence[pulumi.Input[str]]] jwt_validation_pub_keys: `([]string: <optional>)` - List of PEM-encoded
98
+ public keys to use to authenticate signatures locally.
99
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] list_claim_mappings: Mappings of list claims (key) that will be copied to a metadata field (value).
100
+ :param pulumi.Input[str] not_before_leeway: `(string: <optional>)` - Duration of leeway when validating
101
+ not before values of a token in the form of a time duration such as "5m" or "1h".
102
+ :param pulumi.Input[str] oidc_client_id: `(string: <optional>)` - The OAuth Client ID configured
103
+ with the OIDC provider.
104
+ :param pulumi.Input[str] oidc_client_secret: `(string: <optional>)` - The OAuth Client Secret
105
+ configured with the OIDC provider.
89
106
  :param pulumi.Input[bool] oidc_disable_userinfo: `(bool: false)` - When set to `true`, Nomad will
90
107
  not make a request to the identity provider to get OIDC `UserInfo`.
91
108
  You may wish to set this if your identity provider doesn't send any
92
109
  additional claims from the `UserInfo` endpoint.
110
+ :param pulumi.Input[str] oidc_discovery_url: `(string: <optional>)` - The OIDC Discovery URL,
111
+ without any .well-known component (base path).
93
112
  :param pulumi.Input[Sequence[pulumi.Input[str]]] oidc_scopes: `([]string: <optional>)` - List of OIDC scopes.
94
113
  :param pulumi.Input[Sequence[pulumi.Input[str]]] signing_algs: `([]string: <optional>)` - A list of supported signing
95
114
  algorithms.
96
115
  """
97
- pulumi.set(__self__, "allowed_redirect_uris", allowed_redirect_uris)
98
- pulumi.set(__self__, "oidc_client_id", oidc_client_id)
99
- pulumi.set(__self__, "oidc_client_secret", oidc_client_secret)
100
- pulumi.set(__self__, "oidc_discovery_url", oidc_discovery_url)
116
+ if allowed_redirect_uris is not None:
117
+ pulumi.set(__self__, "allowed_redirect_uris", allowed_redirect_uris)
101
118
  if bound_audiences is not None:
102
119
  pulumi.set(__self__, "bound_audiences", bound_audiences)
120
+ if bound_issuers is not None:
121
+ pulumi.set(__self__, "bound_issuers", bound_issuers)
103
122
  if claim_mappings is not None:
104
123
  pulumi.set(__self__, "claim_mappings", claim_mappings)
124
+ if clock_skew_leeway is not None:
125
+ pulumi.set(__self__, "clock_skew_leeway", clock_skew_leeway)
105
126
  if discovery_ca_pems is not None:
106
127
  pulumi.set(__self__, "discovery_ca_pems", discovery_ca_pems)
128
+ if expiration_leeway is not None:
129
+ pulumi.set(__self__, "expiration_leeway", expiration_leeway)
130
+ if jwks_ca_cert is not None:
131
+ pulumi.set(__self__, "jwks_ca_cert", jwks_ca_cert)
132
+ if jwks_url is not None:
133
+ pulumi.set(__self__, "jwks_url", jwks_url)
134
+ if jwt_validation_pub_keys is not None:
135
+ pulumi.set(__self__, "jwt_validation_pub_keys", jwt_validation_pub_keys)
107
136
  if list_claim_mappings is not None:
108
137
  pulumi.set(__self__, "list_claim_mappings", list_claim_mappings)
138
+ if not_before_leeway is not None:
139
+ pulumi.set(__self__, "not_before_leeway", not_before_leeway)
140
+ if oidc_client_id is not None:
141
+ pulumi.set(__self__, "oidc_client_id", oidc_client_id)
142
+ if oidc_client_secret is not None:
143
+ pulumi.set(__self__, "oidc_client_secret", oidc_client_secret)
109
144
  if oidc_disable_userinfo is not None:
110
145
  pulumi.set(__self__, "oidc_disable_userinfo", oidc_disable_userinfo)
146
+ if oidc_discovery_url is not None:
147
+ pulumi.set(__self__, "oidc_discovery_url", oidc_discovery_url)
111
148
  if oidc_scopes is not None:
112
149
  pulumi.set(__self__, "oidc_scopes", oidc_scopes)
113
150
  if signing_algs is not None:
@@ -115,7 +152,7 @@ class AclAuthMethodConfigArgs:
115
152
 
116
153
  @property
117
154
  @pulumi.getter(name="allowedRedirectUris")
118
- def allowed_redirect_uris(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
155
+ def allowed_redirect_uris(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
119
156
  """
120
157
  `([]string: <optional>)` - A list of allowed values
121
158
  that can be used for the redirect URI.
@@ -123,48 +160,9 @@ class AclAuthMethodConfigArgs:
123
160
  return pulumi.get(self, "allowed_redirect_uris")
124
161
 
125
162
  @allowed_redirect_uris.setter
126
- def allowed_redirect_uris(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
163
+ def allowed_redirect_uris(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
127
164
  pulumi.set(self, "allowed_redirect_uris", value)
128
165
 
129
- @property
130
- @pulumi.getter(name="oidcClientId")
131
- def oidc_client_id(self) -> pulumi.Input[str]:
132
- """
133
- `(string: <required>)` - The OAuth Client ID configured
134
- with the OIDC provider.
135
- """
136
- return pulumi.get(self, "oidc_client_id")
137
-
138
- @oidc_client_id.setter
139
- def oidc_client_id(self, value: pulumi.Input[str]):
140
- pulumi.set(self, "oidc_client_id", value)
141
-
142
- @property
143
- @pulumi.getter(name="oidcClientSecret")
144
- def oidc_client_secret(self) -> pulumi.Input[str]:
145
- """
146
- `(string: <required>)` - The OAuth Client Secret
147
- configured with the OIDC provider.
148
- """
149
- return pulumi.get(self, "oidc_client_secret")
150
-
151
- @oidc_client_secret.setter
152
- def oidc_client_secret(self, value: pulumi.Input[str]):
153
- pulumi.set(self, "oidc_client_secret", value)
154
-
155
- @property
156
- @pulumi.getter(name="oidcDiscoveryUrl")
157
- def oidc_discovery_url(self) -> pulumi.Input[str]:
158
- """
159
- `(string: <required>)` - The OIDC Discovery URL,
160
- without any .well-known component (base path).
161
- """
162
- return pulumi.get(self, "oidc_discovery_url")
163
-
164
- @oidc_discovery_url.setter
165
- def oidc_discovery_url(self, value: pulumi.Input[str]):
166
- pulumi.set(self, "oidc_discovery_url", value)
167
-
168
166
  @property
169
167
  @pulumi.getter(name="boundAudiences")
170
168
  def bound_audiences(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
@@ -178,12 +176,24 @@ class AclAuthMethodConfigArgs:
178
176
  def bound_audiences(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
179
177
  pulumi.set(self, "bound_audiences", value)
180
178
 
179
+ @property
180
+ @pulumi.getter(name="boundIssuers")
181
+ def bound_issuers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
182
+ """
183
+ `([]string: <optional>)` - The value against which to match
184
+ the iss claim in a JWT.
185
+ """
186
+ return pulumi.get(self, "bound_issuers")
187
+
188
+ @bound_issuers.setter
189
+ def bound_issuers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
190
+ pulumi.set(self, "bound_issuers", value)
191
+
181
192
  @property
182
193
  @pulumi.getter(name="claimMappings")
183
194
  def claim_mappings(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
184
195
  """
185
- `(map[string]string: <optional>)` - Mappings of claims (key)
186
- that will be copied to a metadata field (value).
196
+ Mappings of claims (key) that will be copied to a metadata field (value).
187
197
  """
188
198
  return pulumi.get(self, "claim_mappings")
189
199
 
@@ -191,6 +201,19 @@ class AclAuthMethodConfigArgs:
191
201
  def claim_mappings(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
192
202
  pulumi.set(self, "claim_mappings", value)
193
203
 
204
+ @property
205
+ @pulumi.getter(name="clockSkewLeeway")
206
+ def clock_skew_leeway(self) -> Optional[pulumi.Input[str]]:
207
+ """
208
+ `(string: <optional>)` - Duration of leeway when validating
209
+ all claims in the form of a time duration such as "5m" or "1h".
210
+ """
211
+ return pulumi.get(self, "clock_skew_leeway")
212
+
213
+ @clock_skew_leeway.setter
214
+ def clock_skew_leeway(self, value: Optional[pulumi.Input[str]]):
215
+ pulumi.set(self, "clock_skew_leeway", value)
216
+
194
217
  @property
195
218
  @pulumi.getter(name="discoveryCaPems")
196
219
  def discovery_ca_pems(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
@@ -204,12 +227,63 @@ class AclAuthMethodConfigArgs:
204
227
  def discovery_ca_pems(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
205
228
  pulumi.set(self, "discovery_ca_pems", value)
206
229
 
230
+ @property
231
+ @pulumi.getter(name="expirationLeeway")
232
+ def expiration_leeway(self) -> Optional[pulumi.Input[str]]:
233
+ """
234
+ `(string: <optional>)` - Duration of leeway when validating
235
+ expiration of a JWT in the form of a time duration such as "5m" or "1h".
236
+ """
237
+ return pulumi.get(self, "expiration_leeway")
238
+
239
+ @expiration_leeway.setter
240
+ def expiration_leeway(self, value: Optional[pulumi.Input[str]]):
241
+ pulumi.set(self, "expiration_leeway", value)
242
+
243
+ @property
244
+ @pulumi.getter(name="jwksCaCert")
245
+ def jwks_ca_cert(self) -> Optional[pulumi.Input[str]]:
246
+ """
247
+ `(string: <optional>)` - PEM encoded CA cert for use by the
248
+ TLS client used to talk with the JWKS server.
249
+ """
250
+ return pulumi.get(self, "jwks_ca_cert")
251
+
252
+ @jwks_ca_cert.setter
253
+ def jwks_ca_cert(self, value: Optional[pulumi.Input[str]]):
254
+ pulumi.set(self, "jwks_ca_cert", value)
255
+
256
+ @property
257
+ @pulumi.getter(name="jwksUrl")
258
+ def jwks_url(self) -> Optional[pulumi.Input[str]]:
259
+ """
260
+ `(string: <optional>)` - JSON Web Key Sets url for authenticating
261
+ signatures.
262
+ """
263
+ return pulumi.get(self, "jwks_url")
264
+
265
+ @jwks_url.setter
266
+ def jwks_url(self, value: Optional[pulumi.Input[str]]):
267
+ pulumi.set(self, "jwks_url", value)
268
+
269
+ @property
270
+ @pulumi.getter(name="jwtValidationPubKeys")
271
+ def jwt_validation_pub_keys(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
272
+ """
273
+ `([]string: <optional>)` - List of PEM-encoded
274
+ public keys to use to authenticate signatures locally.
275
+ """
276
+ return pulumi.get(self, "jwt_validation_pub_keys")
277
+
278
+ @jwt_validation_pub_keys.setter
279
+ def jwt_validation_pub_keys(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
280
+ pulumi.set(self, "jwt_validation_pub_keys", value)
281
+
207
282
  @property
208
283
  @pulumi.getter(name="listClaimMappings")
209
284
  def list_claim_mappings(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
210
285
  """
211
- `(map[string]string: <optional>)` - Mappings of list
212
- claims (key) that will be copied to a metadata field (value).
286
+ Mappings of list claims (key) that will be copied to a metadata field (value).
213
287
  """
214
288
  return pulumi.get(self, "list_claim_mappings")
215
289
 
@@ -217,6 +291,45 @@ class AclAuthMethodConfigArgs:
217
291
  def list_claim_mappings(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
218
292
  pulumi.set(self, "list_claim_mappings", value)
219
293
 
294
+ @property
295
+ @pulumi.getter(name="notBeforeLeeway")
296
+ def not_before_leeway(self) -> Optional[pulumi.Input[str]]:
297
+ """
298
+ `(string: <optional>)` - Duration of leeway when validating
299
+ not before values of a token in the form of a time duration such as "5m" or "1h".
300
+ """
301
+ return pulumi.get(self, "not_before_leeway")
302
+
303
+ @not_before_leeway.setter
304
+ def not_before_leeway(self, value: Optional[pulumi.Input[str]]):
305
+ pulumi.set(self, "not_before_leeway", value)
306
+
307
+ @property
308
+ @pulumi.getter(name="oidcClientId")
309
+ def oidc_client_id(self) -> Optional[pulumi.Input[str]]:
310
+ """
311
+ `(string: <optional>)` - The OAuth Client ID configured
312
+ with the OIDC provider.
313
+ """
314
+ return pulumi.get(self, "oidc_client_id")
315
+
316
+ @oidc_client_id.setter
317
+ def oidc_client_id(self, value: Optional[pulumi.Input[str]]):
318
+ pulumi.set(self, "oidc_client_id", value)
319
+
320
+ @property
321
+ @pulumi.getter(name="oidcClientSecret")
322
+ def oidc_client_secret(self) -> Optional[pulumi.Input[str]]:
323
+ """
324
+ `(string: <optional>)` - The OAuth Client Secret
325
+ configured with the OIDC provider.
326
+ """
327
+ return pulumi.get(self, "oidc_client_secret")
328
+
329
+ @oidc_client_secret.setter
330
+ def oidc_client_secret(self, value: Optional[pulumi.Input[str]]):
331
+ pulumi.set(self, "oidc_client_secret", value)
332
+
220
333
  @property
221
334
  @pulumi.getter(name="oidcDisableUserinfo")
222
335
  def oidc_disable_userinfo(self) -> Optional[pulumi.Input[bool]]:
@@ -232,6 +345,19 @@ class AclAuthMethodConfigArgs:
232
345
  def oidc_disable_userinfo(self, value: Optional[pulumi.Input[bool]]):
233
346
  pulumi.set(self, "oidc_disable_userinfo", value)
234
347
 
348
+ @property
349
+ @pulumi.getter(name="oidcDiscoveryUrl")
350
+ def oidc_discovery_url(self) -> Optional[pulumi.Input[str]]:
351
+ """
352
+ `(string: <optional>)` - The OIDC Discovery URL,
353
+ without any .well-known component (base path).
354
+ """
355
+ return pulumi.get(self, "oidc_discovery_url")
356
+
357
+ @oidc_discovery_url.setter
358
+ def oidc_discovery_url(self, value: Optional[pulumi.Input[str]]):
359
+ pulumi.set(self, "oidc_discovery_url", value)
360
+
235
361
  @property
236
362
  @pulumi.getter(name="oidcScopes")
237
363
  def oidc_scopes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
@@ -572,12 +698,24 @@ class CsiVolumeRegistrationMountOptionsArgs:
572
698
  class CsiVolumeRegistrationTopologyArgs:
573
699
  def __init__(__self__, *,
574
700
  segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
701
+ """
702
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
703
+
704
+ In addition to the above arguments, the following attributes are exported and
705
+ can be referenced:
706
+ """
575
707
  if segments is not None:
576
708
  pulumi.set(__self__, "segments", segments)
577
709
 
578
710
  @property
579
711
  @pulumi.getter
580
712
  def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
713
+ """
714
+ `(map[string]string)` - Define the attributes for the topology request.
715
+
716
+ In addition to the above arguments, the following attributes are exported and
717
+ can be referenced:
718
+ """
581
719
  return pulumi.get(self, "segments")
582
720
 
583
721
  @segments.setter
@@ -656,12 +794,24 @@ class CsiVolumeRegistrationTopologyRequestRequiredTopologyArgs:
656
794
  class CsiVolumeTopologyArgs:
657
795
  def __init__(__self__, *,
658
796
  segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
797
+ """
798
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
799
+
800
+ In addition to the above arguments, the following attributes are exported and
801
+ can be referenced:
802
+ """
659
803
  if segments is not None:
660
804
  pulumi.set(__self__, "segments", segments)
661
805
 
662
806
  @property
663
807
  @pulumi.getter
664
808
  def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
809
+ """
810
+ `(map[string]string)` - Define the attributes for the topology request.
811
+
812
+ In addition to the above arguments, the following attributes are exported and
813
+ can be referenced:
814
+ """
665
815
  return pulumi.get(self, "segments")
666
816
 
667
817
  @segments.setter
@@ -890,12 +1040,24 @@ class ExternalVolumeMountOptionsArgs:
890
1040
  class ExternalVolumeTopologyArgs:
891
1041
  def __init__(__self__, *,
892
1042
  segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
1043
+ """
1044
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
1045
+
1046
+ In addition to the above arguments, the following attributes are exported and
1047
+ can be referenced:
1048
+ """
893
1049
  if segments is not None:
894
1050
  pulumi.set(__self__, "segments", segments)
895
1051
 
896
1052
  @property
897
1053
  @pulumi.getter
898
1054
  def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
1055
+ """
1056
+ `(map[string]string)` - Define the attributes for the topology request.
1057
+
1058
+ In addition to the above arguments, the following attributes are exported and
1059
+ can be referenced:
1060
+ """
899
1061
  return pulumi.get(self, "segments")
900
1062
 
901
1063
  @segments.setter
@@ -1068,14 +1230,12 @@ class JobHcl2Args:
1068
1230
 
1069
1231
  @property
1070
1232
  @pulumi.getter
1233
+ @_utilities.deprecated("""Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this field is no longer used and may be safely removed from your configuration files. Set 'hcl1 = true' if you must use HCL1 job parsing.""")
1071
1234
  def enabled(self) -> Optional[pulumi.Input[bool]]:
1072
1235
  """
1073
1236
  `(boolean: false)` - **Deprecated** All HCL jobs are parsed as
1074
1237
  HCL2 by default.
1075
1238
  """
1076
- warnings.warn("""Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this field is no longer used and may be safely removed from your configuration files. Set 'hcl1 = true' if you must use HCL1 job parsing.""", DeprecationWarning)
1077
- pulumi.log.warn("""enabled is deprecated: Starting with version 2.0.0 of the Nomad provider, jobs are parsed using HCL2 by default, so this field is no longer used and may be safely removed from your configuration files. Set 'hcl1 = true' if you must use HCL1 job parsing.""")
1078
-
1079
1239
  return pulumi.get(self, "enabled")
1080
1240
 
1081
1241
  @enabled.setter
@@ -1675,12 +1835,24 @@ class VolumeMountOptionsArgs:
1675
1835
  class VolumeTopologyArgs:
1676
1836
  def __init__(__self__, *,
1677
1837
  segments: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
1838
+ """
1839
+ :param pulumi.Input[Mapping[str, pulumi.Input[str]]] segments: `(map[string]string)` - Define the attributes for the topology request.
1840
+
1841
+ In addition to the above arguments, the following attributes are exported and
1842
+ can be referenced:
1843
+ """
1678
1844
  if segments is not None:
1679
1845
  pulumi.set(__self__, "segments", segments)
1680
1846
 
1681
1847
  @property
1682
1848
  @pulumi.getter
1683
1849
  def segments(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
1850
+ """
1851
+ `(map[string]string)` - Define the attributes for the topology request.
1852
+
1853
+ In addition to the above arguments, the following attributes are exported and
1854
+ can be referenced:
1855
+ """
1684
1856
  return pulumi.get(self, "segments")
1685
1857
 
1686
1858
  @segments.setter
@@ -4,6 +4,7 @@
4
4
 
5
5
 
6
6
  import asyncio
7
+ import functools
7
8
  import importlib.metadata
8
9
  import importlib.util
9
10
  import inspect
@@ -11,14 +12,19 @@ import json
11
12
  import os
12
13
  import sys
13
14
  import typing
15
+ import warnings
16
+ import base64
14
17
 
15
18
  import pulumi
16
19
  import pulumi.runtime
17
20
  from pulumi.runtime.sync_await import _sync_await
21
+ from pulumi.runtime.proto import resource_pb2
18
22
 
19
23
  from semver import VersionInfo as SemverVersion
20
24
  from parver import Version as PEP440Version
21
25
 
26
+ C = typing.TypeVar("C", bound=typing.Callable)
27
+
22
28
 
23
29
  def get_env(*args):
24
30
  for v in args:
@@ -96,10 +102,6 @@ def _get_semver_version():
96
102
  _version = _get_semver_version()
97
103
  _version_str = str(_version)
98
104
 
99
-
100
- def get_version():
101
- return _version_str
102
-
103
105
  def get_resource_opts_defaults() -> pulumi.ResourceOptions:
104
106
  return pulumi.ResourceOptions(
105
107
  version=get_version(),
@@ -287,5 +289,39 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo
287
289
  await o._resources,
288
290
  )
289
291
 
292
+
293
+ # This is included to provide an upgrade path for users who are using a version
294
+ # of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
295
+ def deprecated(message: str) -> typing.Callable[[C], C]:
296
+ """
297
+ Decorator to indicate a function is deprecated.
298
+
299
+ As well as inserting appropriate statements to indicate that the function is
300
+ deprecated, this decorator also tags the function with a special attribute
301
+ so that Pulumi code can detect that it is deprecated and react appropriately
302
+ in certain situations.
303
+
304
+ message is the deprecation message that should be printed if the function is called.
305
+ """
306
+
307
+ def decorator(fn: C) -> C:
308
+ if not callable(fn):
309
+ raise TypeError("Expected fn to be callable")
310
+
311
+ @functools.wraps(fn)
312
+ def deprecated_fn(*args, **kwargs):
313
+ warnings.warn(message)
314
+ pulumi.warn(f"{fn.__name__} is deprecated: {message}")
315
+
316
+ return fn(*args, **kwargs)
317
+
318
+ deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
319
+ return typing.cast(C, deprecated_fn)
320
+
321
+ return decorator
322
+
290
323
  def get_plugin_download_url():
291
324
  return None
325
+
326
+ def get_version():
327
+ return _version_str