pulumi-consul 3.12.0a1719033650__py3-none-any.whl → 3.12.0a1719295110__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-consul might be problematic. Click here for more details.

pulumi_consul/_inputs.py CHANGED
@@ -3606,10 +3606,8 @@ class KeysKeyArgs:
3606
3606
 
3607
3607
  @property
3608
3608
  @pulumi.getter
3609
+ @_utilities.deprecated("""Using Keys resource to *read* is deprecated; please use Keys data source instead""")
3609
3610
  def name(self) -> Optional[pulumi.Input[str]]:
3610
- warnings.warn("""Using Keys resource to *read* is deprecated; please use Keys data source instead""", DeprecationWarning)
3611
- pulumi.log.warn("""name is deprecated: Using Keys resource to *read* is deprecated; please use Keys data source instead""")
3612
-
3613
3611
  return pulumi.get(self, "name")
3614
3612
 
3615
3613
  @name.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,6 +12,7 @@ import json
11
12
  import os
12
13
  import sys
13
14
  import typing
15
+ import warnings
14
16
 
15
17
  import pulumi
16
18
  import pulumi.runtime
@@ -19,6 +21,8 @@ from pulumi.runtime.sync_await import _sync_await
19
21
  from semver import VersionInfo as SemverVersion
20
22
  from parver import Version as PEP440Version
21
23
 
24
+ C = typing.TypeVar("C", bound=typing.Callable)
25
+
22
26
 
23
27
  def get_env(*args):
24
28
  for v in args:
@@ -287,5 +291,36 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo
287
291
  await o._resources,
288
292
  )
289
293
 
294
+
295
+ # This is included to provide an upgrade path for users who are using a version
296
+ # of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
297
+ def deprecated(message: str) -> typing.Callable[[C], C]:
298
+ """
299
+ Decorator to indicate a function is deprecated.
300
+
301
+ As well as inserting appropriate statements to indicate that the function is
302
+ deprecated, this decorator also tags the function with a special attribute
303
+ so that Pulumi code can detect that it is deprecated and react appropriately
304
+ in certain situations.
305
+
306
+ message is the deprecation message that should be printed if the function is called.
307
+ """
308
+
309
+ def decorator(fn: C) -> C:
310
+ if not callable(fn):
311
+ raise TypeError("Expected fn to be callable")
312
+
313
+ @functools.wraps(fn)
314
+ def deprecated_fn(*args, **kwargs):
315
+ warnings.warn(message)
316
+ pulumi.warn(f"{fn.__name__} is deprecated: {message}")
317
+
318
+ return fn(*args, **kwargs)
319
+
320
+ deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
321
+ return typing.cast(C, deprecated_fn)
322
+
323
+ return decorator
324
+
290
325
  def get_plugin_download_url():
291
326
  return None
@@ -80,13 +80,11 @@ class AclAuthMethodArgs:
80
80
 
81
81
  @property
82
82
  @pulumi.getter
83
+ @_utilities.deprecated("""The config attribute is deprecated, please use `config_json` instead.""")
83
84
  def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
84
85
  """
85
86
  The raw configuration for this ACL auth method.
86
87
  """
87
- warnings.warn("""The config attribute is deprecated, please use `config_json` instead.""", DeprecationWarning)
88
- pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use `config_json` instead.""")
89
-
90
88
  return pulumi.get(self, "config")
91
89
 
92
90
  @config.setter
@@ -258,13 +256,11 @@ class _AclAuthMethodState:
258
256
 
259
257
  @property
260
258
  @pulumi.getter
259
+ @_utilities.deprecated("""The config attribute is deprecated, please use `config_json` instead.""")
261
260
  def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
262
261
  """
263
262
  The raw configuration for this ACL auth method.
264
263
  """
265
- warnings.warn("""The config attribute is deprecated, please use `config_json` instead.""", DeprecationWarning)
266
- pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use `config_json` instead.""")
267
-
268
264
  return pulumi.get(self, "config")
269
265
 
270
266
  @config.setter
@@ -646,13 +642,11 @@ class AclAuthMethod(pulumi.CustomResource):
646
642
 
647
643
  @property
648
644
  @pulumi.getter
645
+ @_utilities.deprecated("""The config attribute is deprecated, please use `config_json` instead.""")
649
646
  def config(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
650
647
  """
651
648
  The raw configuration for this ACL auth method.
652
649
  """
653
- warnings.warn("""The config attribute is deprecated, please use `config_json` instead.""", DeprecationWarning)
654
- pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use `config_json` instead.""")
655
-
656
650
  return pulumi.get(self, "config")
657
651
 
658
652
  @property
@@ -101,15 +101,12 @@ Please use the token argument in the provider configuration""")
101
101
 
102
102
  @property
103
103
  @pulumi.getter
104
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
105
+ Please use the token argument in the provider configuration""")
104
106
  def token(self) -> Optional[pulumi.Input[str]]:
105
107
  """
106
108
  ACL token.
107
109
  """
108
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
109
- Please use the token argument in the provider configuration""", DeprecationWarning)
110
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
111
- Please use the token argument in the provider configuration""")
112
-
113
110
  return pulumi.get(self, "token")
114
111
 
115
112
  @token.setter
@@ -207,15 +204,12 @@ Please use the token argument in the provider configuration""")
207
204
 
208
205
  @property
209
206
  @pulumi.getter
207
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
208
+ Please use the token argument in the provider configuration""")
210
209
  def token(self) -> Optional[pulumi.Input[str]]:
211
210
  """
212
211
  ACL token.
213
212
  """
214
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
215
- Please use the token argument in the provider configuration""", DeprecationWarning)
216
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
217
- Please use the token argument in the provider configuration""")
218
-
219
213
  return pulumi.get(self, "token")
220
214
 
221
215
  @token.setter
@@ -389,14 +383,11 @@ class CatalogEntry(pulumi.CustomResource):
389
383
 
390
384
  @property
391
385
  @pulumi.getter
386
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
387
+ Please use the token argument in the provider configuration""")
392
388
  def token(self) -> pulumi.Output[Optional[str]]:
393
389
  """
394
390
  ACL token.
395
391
  """
396
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
397
- Please use the token argument in the provider configuration""", DeprecationWarning)
398
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
399
- Please use the token argument in the provider configuration""")
400
-
401
392
  return pulumi.get(self, "token")
402
393
 
@@ -44,10 +44,8 @@ class CertificateAuthorityArgs:
44
44
 
45
45
  @property
46
46
  @pulumi.getter
47
+ @_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
47
48
  def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
48
- warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
49
- pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
50
-
51
49
  return pulumi.get(self, "config")
52
50
 
53
51
  @config.setter
@@ -86,10 +84,8 @@ class _CertificateAuthorityState:
86
84
 
87
85
  @property
88
86
  @pulumi.getter
87
+ @_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
89
88
  def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
90
- warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
91
- pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
92
-
93
89
  return pulumi.get(self, "config")
94
90
 
95
91
  @config.setter
@@ -224,10 +220,8 @@ class CertificateAuthority(pulumi.CustomResource):
224
220
 
225
221
  @property
226
222
  @pulumi.getter
223
+ @_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
227
224
  def config(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
228
- warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
229
- pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
230
-
231
225
  return pulumi.get(self, "config")
232
226
 
233
227
  @property
@@ -62,6 +62,7 @@ class GetAclAuthMethodResult:
62
62
 
63
63
  @property
64
64
  @pulumi.getter
65
+ @_utilities.deprecated("""The config attribute is deprecated, please use config_json instead.""")
65
66
  def config(self) -> Mapping[str, str]:
66
67
  """
67
68
  The configuration options of the ACL Auth Method. This attribute is
@@ -69,9 +70,6 @@ class GetAclAuthMethodResult:
69
70
  too complex to be represented as a map of strings, it will be blank.
70
71
  `config_json` should be used instead.
71
72
  """
72
- warnings.warn("""The config attribute is deprecated, please use config_json instead.""", DeprecationWarning)
73
- pulumi.log.warn("""config is deprecated: The config attribute is deprecated, please use config_json instead.""")
74
-
75
73
  return pulumi.get(self, "config")
76
74
 
77
75
  @property
@@ -104,12 +104,9 @@ class GetKeyPrefixResult:
104
104
 
105
105
  @property
106
106
  @pulumi.getter
107
- def token(self) -> Optional[str]:
108
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
109
- Please use the token argument in the provider configuration""", DeprecationWarning)
110
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
107
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
111
108
  Please use the token argument in the provider configuration""")
112
-
109
+ def token(self) -> Optional[str]:
113
110
  return pulumi.get(self, "token")
114
111
 
115
112
  @property
pulumi_consul/get_keys.py CHANGED
@@ -99,15 +99,12 @@ class GetKeysResult:
99
99
 
100
100
  @property
101
101
  @pulumi.getter
102
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
103
+ Please use the token argument in the provider configuration""")
102
104
  def token(self) -> Optional[str]:
103
105
  """
104
106
  The ACL token to use. This overrides the token that the agent provides by default.
105
107
  """
106
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
107
- Please use the token argument in the provider configuration""", DeprecationWarning)
108
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
109
- Please use the token argument in the provider configuration""")
110
-
111
108
  return pulumi.get(self, "token")
112
109
 
113
110
  @property
@@ -65,12 +65,9 @@ class GetNetworkAreaMembersResult:
65
65
 
66
66
  @property
67
67
  @pulumi.getter
68
- def token(self) -> Optional[str]:
69
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
70
- Please use the token argument in the provider configuration""", DeprecationWarning)
71
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
68
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
72
69
  Please use the token argument in the provider configuration""")
73
-
70
+ def token(self) -> Optional[str]:
74
71
  return pulumi.get(self, "token")
75
72
 
76
73
  @property
@@ -61,12 +61,9 @@ class GetNetworkSegmentsResult:
61
61
 
62
62
  @property
63
63
  @pulumi.getter
64
- def token(self) -> Optional[str]:
65
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
66
- Please use the token argument in the provider configuration""", DeprecationWarning)
67
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
64
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
68
65
  Please use the token argument in the provider configuration""")
69
-
66
+ def token(self) -> Optional[str]:
70
67
  return pulumi.get(self, "token")
71
68
 
72
69
 
@@ -141,16 +141,13 @@ Please use the token argument in the provider configuration""")
141
141
 
142
142
  @property
143
143
  @pulumi.getter
144
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
145
+ Please use the token argument in the provider configuration""")
144
146
  def token(self) -> Optional[pulumi.Input[str]]:
145
147
  """
146
148
  The ACL token to use. This overrides the
147
149
  token that the agent provides by default.
148
150
  """
149
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
150
- Please use the token argument in the provider configuration""", DeprecationWarning)
151
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
152
- Please use the token argument in the provider configuration""")
153
-
154
151
  return pulumi.get(self, "token")
155
152
 
156
153
  @token.setter
@@ -287,16 +284,13 @@ Please use the token argument in the provider configuration""")
287
284
 
288
285
  @property
289
286
  @pulumi.getter
287
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
288
+ Please use the token argument in the provider configuration""")
290
289
  def token(self) -> Optional[pulumi.Input[str]]:
291
290
  """
292
291
  The ACL token to use. This overrides the
293
292
  token that the agent provides by default.
294
293
  """
295
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
296
- Please use the token argument in the provider configuration""", DeprecationWarning)
297
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
298
- Please use the token argument in the provider configuration""")
299
-
300
294
  return pulumi.get(self, "token")
301
295
 
302
296
  @token.setter
@@ -563,15 +557,12 @@ class KeyPrefix(pulumi.CustomResource):
563
557
 
564
558
  @property
565
559
  @pulumi.getter
560
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
561
+ Please use the token argument in the provider configuration""")
566
562
  def token(self) -> pulumi.Output[Optional[str]]:
567
563
  """
568
564
  The ACL token to use. This overrides the
569
565
  token that the agent provides by default.
570
566
  """
571
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
572
- Please use the token argument in the provider configuration""", DeprecationWarning)
573
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
574
- Please use the token argument in the provider configuration""")
575
-
576
567
  return pulumi.get(self, "token")
577
568
 
pulumi_consul/keys.py CHANGED
@@ -100,16 +100,13 @@ Please use the token argument in the provider configuration""")
100
100
 
101
101
  @property
102
102
  @pulumi.getter
103
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
104
+ Please use the token argument in the provider configuration""")
103
105
  def token(self) -> Optional[pulumi.Input[str]]:
104
106
  """
105
107
  The ACL token to use. This overrides the
106
108
  token that the agent provides by default.
107
109
  """
108
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
109
- Please use the token argument in the provider configuration""", DeprecationWarning)
110
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
111
- Please use the token argument in the provider configuration""")
112
-
113
110
  return pulumi.get(self, "token")
114
111
 
115
112
  @token.setter
@@ -207,16 +204,13 @@ Please use the token argument in the provider configuration""")
207
204
 
208
205
  @property
209
206
  @pulumi.getter
207
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
208
+ Please use the token argument in the provider configuration""")
210
209
  def token(self) -> Optional[pulumi.Input[str]]:
211
210
  """
212
211
  The ACL token to use. This overrides the
213
212
  token that the agent provides by default.
214
213
  """
215
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
216
- Please use the token argument in the provider configuration""", DeprecationWarning)
217
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
218
- Please use the token argument in the provider configuration""")
219
-
220
214
  return pulumi.get(self, "token")
221
215
 
222
216
  @token.setter
@@ -410,16 +404,13 @@ class Keys(pulumi.CustomResource):
410
404
 
411
405
  @property
412
406
  @pulumi.getter
407
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
408
+ Please use the token argument in the provider configuration""")
413
409
  def token(self) -> pulumi.Output[Optional[str]]:
414
410
  """
415
411
  The ACL token to use. This overrides the
416
412
  token that the agent provides by default.
417
413
  """
418
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
419
- Please use the token argument in the provider configuration""", DeprecationWarning)
420
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
421
- Please use the token argument in the provider configuration""")
422
-
423
414
  return pulumi.get(self, "token")
424
415
 
425
416
  @property
@@ -88,16 +88,13 @@ Please use the token argument in the provider configuration""")
88
88
 
89
89
  @property
90
90
  @pulumi.getter
91
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
92
+ Please use the token argument in the provider configuration""")
91
93
  def token(self) -> Optional[pulumi.Input[str]]:
92
94
  """
93
95
  The ACL token to use. This overrides the
94
96
  token that the agent provides by default.
95
97
  """
96
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
97
- Please use the token argument in the provider configuration""", DeprecationWarning)
98
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
99
- Please use the token argument in the provider configuration""")
100
-
101
98
  return pulumi.get(self, "token")
102
99
 
103
100
  @token.setter
@@ -196,16 +193,13 @@ Please use the token argument in the provider configuration""")
196
193
 
197
194
  @property
198
195
  @pulumi.getter
196
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
197
+ Please use the token argument in the provider configuration""")
199
198
  def token(self) -> Optional[pulumi.Input[str]]:
200
199
  """
201
200
  The ACL token to use. This overrides the
202
201
  token that the agent provides by default.
203
202
  """
204
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
205
- Please use the token argument in the provider configuration""", DeprecationWarning)
206
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
207
- Please use the token argument in the provider configuration""")
208
-
209
203
  return pulumi.get(self, "token")
210
204
 
211
205
  @token.setter
@@ -413,16 +407,13 @@ class NetworkArea(pulumi.CustomResource):
413
407
 
414
408
  @property
415
409
  @pulumi.getter
410
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
411
+ Please use the token argument in the provider configuration""")
416
412
  def token(self) -> pulumi.Output[Optional[str]]:
417
413
  """
418
414
  The ACL token to use. This overrides the
419
415
  token that the agent provides by default.
420
416
  """
421
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
422
- Please use the token argument in the provider configuration""", DeprecationWarning)
423
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
424
- Please use the token argument in the provider configuration""")
425
-
426
417
  return pulumi.get(self, "token")
427
418
 
428
419
  @property
pulumi_consul/node.py CHANGED
@@ -107,12 +107,9 @@ Please use the token argument in the provider configuration""")
107
107
 
108
108
  @property
109
109
  @pulumi.getter
110
- def token(self) -> Optional[pulumi.Input[str]]:
111
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
112
- Please use the token argument in the provider configuration""", DeprecationWarning)
113
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
110
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
114
111
  Please use the token argument in the provider configuration""")
115
-
112
+ def token(self) -> Optional[pulumi.Input[str]]:
116
113
  return pulumi.get(self, "token")
117
114
 
118
115
  @token.setter
@@ -217,12 +214,9 @@ Please use the token argument in the provider configuration""")
217
214
 
218
215
  @property
219
216
  @pulumi.getter
220
- def token(self) -> Optional[pulumi.Input[str]]:
221
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
222
- Please use the token argument in the provider configuration""", DeprecationWarning)
223
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
217
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
224
218
  Please use the token argument in the provider configuration""")
225
-
219
+ def token(self) -> Optional[pulumi.Input[str]]:
226
220
  return pulumi.get(self, "token")
227
221
 
228
222
  @token.setter
@@ -425,11 +419,8 @@ class Node(pulumi.CustomResource):
425
419
 
426
420
  @property
427
421
  @pulumi.getter
428
- def token(self) -> pulumi.Output[Optional[str]]:
429
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
430
- Please use the token argument in the provider configuration""", DeprecationWarning)
431
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
422
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
432
423
  Please use the token argument in the provider configuration""")
433
-
424
+ def token(self) -> pulumi.Output[Optional[str]]:
434
425
  return pulumi.get(self, "token")
435
426
 
pulumi_consul/outputs.py CHANGED
@@ -3415,10 +3415,8 @@ class KeysKey(dict):
3415
3415
 
3416
3416
  @property
3417
3417
  @pulumi.getter
3418
+ @_utilities.deprecated("""Using Keys resource to *read* is deprecated; please use Keys data source instead""")
3418
3419
  def name(self) -> Optional[str]:
3419
- warnings.warn("""Using Keys resource to *read* is deprecated; please use Keys data source instead""", DeprecationWarning)
3420
- pulumi.log.warn("""name is deprecated: Using Keys resource to *read* is deprecated; please use Keys data source instead""")
3421
-
3422
3420
  return pulumi.get(self, "name")
3423
3421
 
3424
3422
  @property
@@ -270,15 +270,12 @@ Please use the token argument in the provider configuration""")
270
270
 
271
271
  @property
272
272
  @pulumi.getter
273
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
274
+ Please use the token argument in the provider configuration""")
273
275
  def token(self) -> Optional[pulumi.Input[str]]:
274
276
  """
275
277
  The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
276
278
  """
277
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
278
- Please use the token argument in the provider configuration""", DeprecationWarning)
279
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
280
- Please use the token argument in the provider configuration""")
281
-
282
279
  return pulumi.get(self, "token")
283
280
 
284
281
  @token.setter
@@ -544,15 +541,12 @@ Please use the token argument in the provider configuration""")
544
541
 
545
542
  @property
546
543
  @pulumi.getter
544
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
545
+ Please use the token argument in the provider configuration""")
547
546
  def token(self) -> Optional[pulumi.Input[str]]:
548
547
  """
549
548
  The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
550
549
  """
551
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
552
- Please use the token argument in the provider configuration""", DeprecationWarning)
553
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
554
- Please use the token argument in the provider configuration""")
555
-
556
550
  return pulumi.get(self, "token")
557
551
 
558
552
  @token.setter
@@ -997,14 +991,11 @@ class PreparedQuery(pulumi.CustomResource):
997
991
 
998
992
  @property
999
993
  @pulumi.getter
994
+ @_utilities.deprecated("""The token argument has been deprecated and will be removed in a future release.
995
+ Please use the token argument in the provider configuration""")
1000
996
  def token(self) -> pulumi.Output[Optional[str]]:
1001
997
  """
1002
998
  The ACL token to use when saving the prepared query. This overrides the token that the agent provides by default.
1003
999
  """
1004
- warnings.warn("""The token argument has been deprecated and will be removed in a future release.
1005
- Please use the token argument in the provider configuration""", DeprecationWarning)
1006
- pulumi.log.warn("""token is deprecated: The token argument has been deprecated and will be removed in a future release.
1007
- Please use the token argument in the provider configuration""")
1008
-
1009
1000
  return pulumi.get(self, "token")
1010
1001
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "consul",
4
- "version": "3.12.0-alpha.1719033650"
4
+ "version": "3.12.0-alpha.1719295110"
5
5
  }
pulumi_consul/service.py CHANGED
@@ -131,10 +131,8 @@ class ServiceArgs:
131
131
 
132
132
  @property
133
133
  @pulumi.getter
134
+ @_utilities.deprecated("""The external field has been deprecated and does nothing.""")
134
135
  def external(self) -> Optional[pulumi.Input[bool]]:
135
- warnings.warn("""The external field has been deprecated and does nothing.""", DeprecationWarning)
136
- pulumi.log.warn("""external is deprecated: The external field has been deprecated and does nothing.""")
137
-
138
136
  return pulumi.get(self, "external")
139
137
 
140
138
  @external.setter
@@ -333,10 +331,8 @@ class _ServiceState:
333
331
 
334
332
  @property
335
333
  @pulumi.getter
334
+ @_utilities.deprecated("""The external field has been deprecated and does nothing.""")
336
335
  def external(self) -> Optional[pulumi.Input[bool]]:
337
- warnings.warn("""The external field has been deprecated and does nothing.""", DeprecationWarning)
338
- pulumi.log.warn("""external is deprecated: The external field has been deprecated and does nothing.""")
339
-
340
336
  return pulumi.get(self, "external")
341
337
 
342
338
  @external.setter
@@ -769,10 +765,8 @@ class Service(pulumi.CustomResource):
769
765
 
770
766
  @property
771
767
  @pulumi.getter
768
+ @_utilities.deprecated("""The external field has been deprecated and does nothing.""")
772
769
  def external(self) -> pulumi.Output[Optional[bool]]:
773
- warnings.warn("""The external field has been deprecated and does nothing.""", DeprecationWarning)
774
- pulumi.log.warn("""external is deprecated: The external field has been deprecated and does nothing.""")
775
-
776
770
  return pulumi.get(self, "external")
777
771
 
778
772
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_consul
3
- Version: 3.12.0a1719033650
3
+ Version: 3.12.0a1719295110
4
4
  Summary: A Pulumi package for creating and managing consul resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,7 +1,7 @@
1
1
  pulumi_consul/__init__.py,sha256=WEdXDw8m0r_d5zps4HIp-KZjaIErfJLypM_JVn9whIA,8027
2
- pulumi_consul/_inputs.py,sha256=VJByst-fIE19jbgoNEvXuyQJN74w7ICOyvq13ZexjCI,217105
3
- pulumi_consul/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
4
- pulumi_consul/acl_auth_method.py,sha256=TYhT6uOPRcXS3nugKF3umJHjPxeqplGosY_XqcMl0NM,32885
2
+ pulumi_consul/_inputs.py,sha256=6_i0D58211KtldVwC_nBnZS1wD8uh99drFL8i0qcm-w,216957
3
+ pulumi_consul/_utilities.py,sha256=zozFZPZGnJJ7MjOYHQPdH-l-EHcRcX5lh5TVi22oTCw,10446
4
+ pulumi_consul/acl_auth_method.py,sha256=nZQvvZT9v7-epDNtdBbGQuzZA_4ZRP8_QYGzXNkluFY,32468
5
5
  pulumi_consul/acl_binding_rule.py,sha256=qoMrO-kFxOlCiYmtZRcaNkI6deNTNo7Cu6vM3Ll8nHo,22734
6
6
  pulumi_consul/acl_policy.py,sha256=0z0_E08Zb8s0EE3lFtveE0t4ns47Dqj5b3IRGe4DpQE,15624
7
7
  pulumi_consul/acl_role.py,sha256=NAz5WiFWotX2_ZCADkFC0OVtaacpIe_wLEl6IUz8OFs,23952
@@ -12,15 +12,15 @@ pulumi_consul/acl_token_role_attachment.py,sha256=3o1wjCqBWTVQGK-PNLQswAt8rVjiHw
12
12
  pulumi_consul/admin_partition.py,sha256=2y0RX2FArESVxwhB8xkUmcx6UAlTWpdzPiuVuO5CmJ4,8589
13
13
  pulumi_consul/agent_service.py,sha256=dElBoSCeo_3d7uut7rBQV4AGmGMm56sH5PivFwQAZtw,12987
14
14
  pulumi_consul/autopilot_config.py,sha256=g_N2ZqciXVA-H4kD5vZExAsABfawil-5KOpJmo41W7A,28023
15
- pulumi_consul/catalog_entry.py,sha256=SgNXcjc-AJRZOW8mxOu8Yx4Nqpk5TJBfIRTBdikraZA,17763
16
- pulumi_consul/certificate_authority.py,sha256=FquslNbC2y_DblTfWMlyCBYoe9drs7VIWHMU6KA019E,10835
15
+ pulumi_consul/catalog_entry.py,sha256=H7WxBCnirQ9AMaPKNXFt-HXi-AQhwaqZjQEZckwcxhA,17139
16
+ pulumi_consul/certificate_authority.py,sha256=N99dCAFw0CFOZb2eG-WobPPIDB3J9FCDaA0Gl_wcjzQ,10424
17
17
  pulumi_consul/config_entry.py,sha256=QjMjGua9IGQvYSlAoN0Lxd8dCJrIPakfsCMx2-G-1PE,30488
18
18
  pulumi_consul/config_entry_service_defaults.py,sha256=wSyKQVZieDuLJQd64denFq1C-1aVn3jeVyJOohMrZ5k,52869
19
19
  pulumi_consul/config_entry_service_intentions.py,sha256=ym6dvGNUvJboSrtvIHM4QE_y7V_1NF4ev0Y4kbh0AjY,22185
20
20
  pulumi_consul/config_entry_service_resolver.py,sha256=8pet5lVdnuMOkaDpJkQnQRqW1_N1-3_fTwsAfN41Ccs,35410
21
21
  pulumi_consul/config_entry_service_router.py,sha256=ANW6NOgPxk2nyc5k3rXfEbHpnnNdU5JVsp1FhiUSNPA,14342
22
22
  pulumi_consul/config_entry_service_splitter.py,sha256=Yj57zIzBC5l1LpVXVLNwK2UCHuhdjUciqHq6dzFOvD8,20220
23
- pulumi_consul/get_acl_auth_method.py,sha256=9b56fzKS3TQTKM93R-E30Xc5sGXS-lGYR-wIF3dypLc,9505
23
+ pulumi_consul/get_acl_auth_method.py,sha256=3AGxnlKklWqtUynr8s2ThMkdCad5dUE2A1HJcudGSLU,9368
24
24
  pulumi_consul/get_acl_policy.py,sha256=LFQlcq2jS7ptdGTWr9Dos9Wq64gqeTv8GNM4G88SNVU,5926
25
25
  pulumi_consul/get_acl_role.py,sha256=Rcbne_FKhB2lNSQEj5P87n68uO9hjGRWDx-IJZC-x2o,7581
26
26
  pulumi_consul/get_acl_token.py,sha256=7n2WTxRrF-zrYQRmFfy4jLXYjsLsoCQ5s81gVqvEKwU,9808
@@ -33,10 +33,10 @@ pulumi_consul/get_catalog_service.py,sha256=yqx5jEJHt-lvAodRu-jgEOeSMr8PS_EqdzDQ
33
33
  pulumi_consul/get_catalog_services.py,sha256=gGR6oN9YncIZSrYY-duOTDChzj5ubje0wMrWVlSzEDE,7110
34
34
  pulumi_consul/get_config_entry.py,sha256=8pHLWLT5RUVPiJj5zU2VV1xkGsT9JpLsmVwxeqbEpzE,5478
35
35
  pulumi_consul/get_datacenters.py,sha256=WNivbaPSVbCtwHtvdRjljUti1YWaOJtqxBBc-_7IFEc,2669
36
- pulumi_consul/get_key_prefix.py,sha256=1Xk9NzX3JRGVqFhWMls1EG3eJaqu0LbFyBhhZCcpYlY,10511
37
- pulumi_consul/get_keys.py,sha256=019DmVUvluUJCaY9SX5hdNdrRFfj6iKgg5zIWaPDx7U,9391
38
- pulumi_consul/get_network_area_members.py,sha256=N3Ub1clQq_YXSjWfeiMUQHwVYKKfuP2-z4VyDPVmNnc,6466
39
- pulumi_consul/get_network_segments.py,sha256=-DGSkdohpMeFu8RqvVSytCKbWIbUO4KIC2P-B1Ao0sY,5343
36
+ pulumi_consul/get_key_prefix.py,sha256=G3w3w-26fE_CH7EiJfBARWxSUs7WnyEGZGj7tMLmwOk,10303
37
+ pulumi_consul/get_keys.py,sha256=HepQZfh4rqOYwQFnZyCRLMufu3fsl89vnySJ5BEfkHM,9183
38
+ pulumi_consul/get_network_area_members.py,sha256=sQwQj44r8MskEDXYEVg3XmazI2mgAu5LSqmFaJIO4i4,6258
39
+ pulumi_consul/get_network_segments.py,sha256=NhphPW3eeZBPcVuFMoAdoSbTyggyI-kvvdSP_06cXAI,5135
40
40
  pulumi_consul/get_nodes.py,sha256=ZcKZWIWuWgclQGj4QYTqKdhvQcSI_rxYZrlBakLRvsA,5359
41
41
  pulumi_consul/get_peering.py,sha256=Bcpy_TCMVuHrmzWWM5GRTLiaZq5gGJuZYcis9JCMraE,6300
42
42
  pulumi_consul/get_peerings.py,sha256=EX1J_eQf01voOEvPB2IuWV6HNdvTeTpn_bbuY0gQ9QQ,3024
@@ -44,27 +44,27 @@ pulumi_consul/get_service.py,sha256=HV1p2U59QDgDbq5jzpF3R0ProYET9xM-zxvu_3urIjE,
44
44
  pulumi_consul/get_service_health.py,sha256=2CCrunPsyCDOjmcJXhGmSIJSMc6a-0vlvuiEAVJ80Dw,10133
45
45
  pulumi_consul/get_services.py,sha256=2YIBv7zSuGuiGvFotifO_193lcuwPim6Us_IGTKPD8g,6571
46
46
  pulumi_consul/intention.py,sha256=naX-vekDSLky5qeApRsqjCxralnpkcyBp-upO3fUd3g,25830
47
- pulumi_consul/key_prefix.py,sha256=Yf1q4dm5Acq4Awk6Eh9opgiFrVk1a-3RcYbO-wlxU8k,26215
48
- pulumi_consul/keys.py,sha256=pSGIYmA6ek1qIgbMKaIhzS2Tfpy4HC9PJgaqzkRCR7I,17869
47
+ pulumi_consul/key_prefix.py,sha256=ai9OA3z0T15W-_UgbSjuO8_NNMrZJKOluFFz7XpKXtA,25591
48
+ pulumi_consul/keys.py,sha256=sl7UcvZkKlBLwB02SMuPQLPQVrBxMnhkk4_2MZPAIa0,17245
49
49
  pulumi_consul/license.py,sha256=OMJsth0jpRMssJjJ64UTUZSdm8eXD_DJA40Wliy0MmI,19879
50
50
  pulumi_consul/namespace.py,sha256=CJZE9TgWD0bdKndmb8hlyyWIttNUPJou0k5LJBjyK2E,18021
51
51
  pulumi_consul/namespace_policy_attachment.py,sha256=0qlJ92SJLDdocHj8dmm0cd1LAqF-IlB5FouYhUOyATo,8200
52
52
  pulumi_consul/namespace_role_attachment.py,sha256=-xlic3f_MQ7JN0i0aNPEvSD7pT8vzrM0fvlUB7KLOoY,8052
53
- pulumi_consul/network_area.py,sha256=YmboKpGWDpugJ79JXiBrIRJy50m5zHwKgL48Bf0909U,19676
54
- pulumi_consul/node.py,sha256=yHmlQrpuPQ7250pjl3voR_csUlZmHpQC3EWF9WZtBC4,18005
55
- pulumi_consul/outputs.py,sha256=QoiPqPKtAGnSzYPxu0m5ylL7k397wovPzQEmyTEpoWU,234783
53
+ pulumi_consul/network_area.py,sha256=uXillh7ugCOe1VH8t2n1Bb01v8UzIw1j2z0BT4932H8,19052
54
+ pulumi_consul/node.py,sha256=EuyGxn_vJI8tyYBqL-b-3_kyT6PXPHv1xNFacpuLznE,17381
55
+ pulumi_consul/outputs.py,sha256=n8WpUeG1PL-t1BtTopuura730UwuIeHVwVwcQLKTWA0,234635
56
56
  pulumi_consul/peering.py,sha256=B2_vXke9-rZ2IiFiQRddhW8lDJex8PFtMFqzR5IR6Rc,20322
57
57
  pulumi_consul/peering_token.py,sha256=DMm2gBJ2DaTygdsX99QpXxJaMmdqzEazpm7i2e8P1H8,14065
58
- pulumi_consul/prepared_query.py,sha256=FZk5ErrLld89cHMEEgk1jNoJL9wbPP_KDSyTEuPz8gM,54153
58
+ pulumi_consul/prepared_query.py,sha256=JUfSgOBPZ0Jm-FM5pvF218rAkg6qRGy8VMssHoPmQpw,53529
59
59
  pulumi_consul/provider.py,sha256=1xhCm2DWQ1CuCIy7sDnl_lzHDj4wtS2mc3OH7vQaToU,24679
60
- pulumi_consul/pulumi-plugin.json,sha256=9bpVZjjpk7z8OmZECzZd4cZs7XOX2iUGAKVSEhX9_QA,83
60
+ pulumi_consul/pulumi-plugin.json,sha256=mh9Q7XgSjBcYPn9Dv925U0zht2AmmtUhAp1cLOq1fec,83
61
61
  pulumi_consul/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
- pulumi_consul/service.py,sha256=0d-xn84DWLG-BRGFXupJXnoMRXaQ_yrtf9CR49o0WIo,34669
62
+ pulumi_consul/service.py,sha256=lg7C9Q376BtnGIB4FUXvdCZFyo8uOLACc5DqlvyPvJ0,34285
63
63
  pulumi_consul/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
64
64
  pulumi_consul/config/__init__.pyi,sha256=Xr56VkEbCA8jXnSDMCxONcnilMpQdAHs6-imo_c-TBU,2587
65
65
  pulumi_consul/config/outputs.py,sha256=gDtRkTfR9uCq26RXew73SpJWdrCejHeWHhoL5--_LW4,3384
66
66
  pulumi_consul/config/vars.py,sha256=SXNUccmf6RtLkyaTd4mMknJtP2rlISHxMcq4PUHRgpg,4255
67
- pulumi_consul-3.12.0a1719033650.dist-info/METADATA,sha256=JS8Enm2NwYjro7s7gUsInWeFH5Gxm2E5Bcp1ndmbFcY,3944
68
- pulumi_consul-3.12.0a1719033650.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
69
- pulumi_consul-3.12.0a1719033650.dist-info/top_level.txt,sha256=SrKSXrIq8AWqnNKrd7pWSC691idGwXi9XMA-DTWwcfg,14
70
- pulumi_consul-3.12.0a1719033650.dist-info/RECORD,,
67
+ pulumi_consul-3.12.0a1719295110.dist-info/METADATA,sha256=WZXY9Qs0ZkyxSezrj9pI3ltJEWjdsQowL6zXUTp5Ff0,3944
68
+ pulumi_consul-3.12.0a1719295110.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
69
+ pulumi_consul-3.12.0a1719295110.dist-info/top_level.txt,sha256=SrKSXrIq8AWqnNKrd7pWSC691idGwXi9XMA-DTWwcfg,14
70
+ pulumi_consul-3.12.0a1719295110.dist-info/RECORD,,