pulumi-ns1 3.3.0a1719251476__py3-none-any.whl → 3.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_ns1/_utilities.py CHANGED
@@ -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
pulumi_ns1/api_key.py CHANGED
@@ -206,13 +206,11 @@ class APIKeyArgs:
206
206
 
207
207
  @property
208
208
  @pulumi.getter(name="accountManagePlan")
209
+ @_utilities.deprecated("""obsolete, should no longer be used""")
209
210
  def account_manage_plan(self) -> Optional[pulumi.Input[bool]]:
210
211
  """
211
212
  No longer in use.
212
213
  """
213
- warnings.warn("""obsolete, should no longer be used""", DeprecationWarning)
214
- pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""")
215
-
216
214
  return pulumi.get(self, "account_manage_plan")
217
215
 
218
216
  @account_manage_plan.setter
@@ -746,13 +744,11 @@ class _APIKeyState:
746
744
 
747
745
  @property
748
746
  @pulumi.getter(name="accountManagePlan")
747
+ @_utilities.deprecated("""obsolete, should no longer be used""")
749
748
  def account_manage_plan(self) -> Optional[pulumi.Input[bool]]:
750
749
  """
751
750
  No longer in use.
752
751
  """
753
- warnings.warn("""obsolete, should no longer be used""", DeprecationWarning)
754
- pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""")
755
-
756
752
  return pulumi.get(self, "account_manage_plan")
757
753
 
758
754
  @account_manage_plan.setter
@@ -1538,13 +1534,11 @@ class APIKey(pulumi.CustomResource):
1538
1534
 
1539
1535
  @property
1540
1536
  @pulumi.getter(name="accountManagePlan")
1537
+ @_utilities.deprecated("""obsolete, should no longer be used""")
1541
1538
  def account_manage_plan(self) -> pulumi.Output[Optional[bool]]:
1542
1539
  """
1543
1540
  No longer in use.
1544
1541
  """
1545
- warnings.warn("""obsolete, should no longer be used""", DeprecationWarning)
1546
- pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""")
1547
-
1548
1542
  return pulumi.get(self, "account_manage_plan")
1549
1543
 
1550
1544
  @property
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "ns1",
4
- "version": "3.3.0-alpha.1719251476"
4
+ "version": "3.3.1"
5
5
  }
pulumi_ns1/record.py CHANGED
@@ -204,10 +204,8 @@ class RecordArgs:
204
204
 
205
205
  @property
206
206
  @pulumi.getter(name="shortAnswers")
207
+ @_utilities.deprecated("""short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""")
207
208
  def short_answers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
208
- warnings.warn("""short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""", DeprecationWarning)
209
- pulumi.log.warn("""short_answers is deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""")
210
-
211
209
  return pulumi.get(self, "short_answers")
212
210
 
213
211
  @short_answers.setter
@@ -423,10 +421,8 @@ class _RecordState:
423
421
 
424
422
  @property
425
423
  @pulumi.getter(name="shortAnswers")
424
+ @_utilities.deprecated("""short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""")
426
425
  def short_answers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
427
- warnings.warn("""short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""", DeprecationWarning)
428
- pulumi.log.warn("""short_answers is deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""")
429
-
430
426
  return pulumi.get(self, "short_answers")
431
427
 
432
428
  @short_answers.setter
@@ -1001,10 +997,8 @@ class Record(pulumi.CustomResource):
1001
997
 
1002
998
  @property
1003
999
  @pulumi.getter(name="shortAnswers")
1000
+ @_utilities.deprecated("""short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""")
1004
1001
  def short_answers(self) -> pulumi.Output[Optional[Sequence[str]]]:
1005
- warnings.warn("""short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""", DeprecationWarning)
1006
- pulumi.log.warn("""short_answers is deprecated: short_answers will be deprecated in a future release. It is suggested to migrate to a regular \"answers\" block.""")
1007
-
1008
1002
  return pulumi.get(self, "short_answers")
1009
1003
 
1010
1004
  @property
pulumi_ns1/team.py CHANGED
@@ -198,13 +198,11 @@ class TeamArgs:
198
198
 
199
199
  @property
200
200
  @pulumi.getter(name="accountManagePlan")
201
+ @_utilities.deprecated("""obsolete, should no longer be used""")
201
202
  def account_manage_plan(self) -> Optional[pulumi.Input[bool]]:
202
203
  """
203
204
  No longer in use.
204
205
  """
205
- warnings.warn("""obsolete, should no longer be used""", DeprecationWarning)
206
- pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""")
207
-
208
206
  return pulumi.get(self, "account_manage_plan")
209
207
 
210
208
  @account_manage_plan.setter
@@ -702,13 +700,11 @@ class _TeamState:
702
700
 
703
701
  @property
704
702
  @pulumi.getter(name="accountManagePlan")
703
+ @_utilities.deprecated("""obsolete, should no longer be used""")
705
704
  def account_manage_plan(self) -> Optional[pulumi.Input[bool]]:
706
705
  """
707
706
  No longer in use.
708
707
  """
709
- warnings.warn("""obsolete, should no longer be used""", DeprecationWarning)
710
- pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""")
711
-
712
708
  return pulumi.get(self, "account_manage_plan")
713
709
 
714
710
  @account_manage_plan.setter
@@ -1452,13 +1448,11 @@ class Team(pulumi.CustomResource):
1452
1448
 
1453
1449
  @property
1454
1450
  @pulumi.getter(name="accountManagePlan")
1451
+ @_utilities.deprecated("""obsolete, should no longer be used""")
1455
1452
  def account_manage_plan(self) -> pulumi.Output[Optional[bool]]:
1456
1453
  """
1457
1454
  No longer in use.
1458
1455
  """
1459
- warnings.warn("""obsolete, should no longer be used""", DeprecationWarning)
1460
- pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""")
1461
-
1462
1456
  return pulumi.get(self, "account_manage_plan")
1463
1457
 
1464
1458
  @property
pulumi_ns1/user.py CHANGED
@@ -236,13 +236,11 @@ class UserArgs:
236
236
 
237
237
  @property
238
238
  @pulumi.getter(name="accountManagePlan")
239
+ @_utilities.deprecated("""obsolete, should no longer be used""")
239
240
  def account_manage_plan(self) -> Optional[pulumi.Input[bool]]:
240
241
  """
241
242
  No longer in use.
242
243
  """
243
- warnings.warn("""obsolete, should no longer be used""", DeprecationWarning)
244
- pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""")
245
-
246
244
  return pulumi.get(self, "account_manage_plan")
247
245
 
248
246
  @account_manage_plan.setter
@@ -782,13 +780,11 @@ class _UserState:
782
780
 
783
781
  @property
784
782
  @pulumi.getter(name="accountManagePlan")
783
+ @_utilities.deprecated("""obsolete, should no longer be used""")
785
784
  def account_manage_plan(self) -> Optional[pulumi.Input[bool]]:
786
785
  """
787
786
  No longer in use.
788
787
  """
789
- warnings.warn("""obsolete, should no longer be used""", DeprecationWarning)
790
- pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""")
791
-
792
788
  return pulumi.get(self, "account_manage_plan")
793
789
 
794
790
  @account_manage_plan.setter
@@ -1607,13 +1603,11 @@ class User(pulumi.CustomResource):
1607
1603
 
1608
1604
  @property
1609
1605
  @pulumi.getter(name="accountManagePlan")
1606
+ @_utilities.deprecated("""obsolete, should no longer be used""")
1610
1607
  def account_manage_plan(self) -> pulumi.Output[Optional[bool]]:
1611
1608
  """
1612
1609
  No longer in use.
1613
1610
  """
1614
- warnings.warn("""obsolete, should no longer be used""", DeprecationWarning)
1615
- pulumi.log.warn("""account_manage_plan is deprecated: obsolete, should no longer be used""")
1616
-
1617
1611
  return pulumi.get(self, "account_manage_plan")
1618
1612
 
1619
1613
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_ns1
3
- Version: 3.3.0a1719251476
3
+ Version: 3.3.1
4
4
  Summary: A Pulumi package for creating and managing ns1 cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,8 +1,8 @@
1
1
  pulumi_ns1/__init__.py,sha256=_t-RU0JWspVvqo3Sl3ADYZ1Lf7P6fHSGIt5iUaoeShU,3816
2
2
  pulumi_ns1/_inputs.py,sha256=8FSj_cd_yoTCKSpENO84hL6nUYMk5nV4TMPiVfmKCLE,38901
3
- pulumi_ns1/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
3
+ pulumi_ns1/_utilities.py,sha256=zozFZPZGnJJ7MjOYHQPdH-l-EHcRcX5lh5TVi22oTCw,10446
4
4
  pulumi_ns1/account_whitelist.py,sha256=rTZ7XcM7jO4iB0g7Q4bC0WEY26ysnEY3qXG77q-QpDI,9054
5
- pulumi_ns1/api_key.py,sha256=hyXAMjyqNelH2b4Mk1rLv3fKTPPTil_RUUPUIVy2KLk,87262
5
+ pulumi_ns1/api_key.py,sha256=9NwaW9IfTnuz4df-u8cZzFGyH4DnS3Qm_R8oYILncsk,86911
6
6
  pulumi_ns1/application.py,sha256=YAetD40s0hg6zULKu3u-e5Q8sVHm9J6vAYlhVv8Y0X8,16619
7
7
  pulumi_ns1/data_feed.py,sha256=1gg4udnlqVKsV2JHhe_BsZSSlO7m0s0fbbiARm0QAEc,12682
8
8
  pulumi_ns1/data_source.py,sha256=Qg0Dtd0OlxTymPvMqJJTQ0peSalQI_gxqGt5XjoAisI,11102
@@ -18,20 +18,20 @@ pulumi_ns1/notify_list.py,sha256=w4Z350jOCgGwAUKwgWTa502Xx_8EK4o_BsJj-HoXL2A,110
18
18
  pulumi_ns1/outputs.py,sha256=Ld_6Lm9hRElF10c_aIewKwbtmsXIJzlZXXI4OqUHt0o,46058
19
19
  pulumi_ns1/provider.py,sha256=5E3JbCjCD3ztCf3HFRYQ_c680oYir0a9h_Fy3nUtHe0,10590
20
20
  pulumi_ns1/pulsar_job.py,sha256=Gk12BJdVCy6QWEqt99Wf5RqvZXEIf8Oub5Qn0x3YfjM,17050
21
- pulumi_ns1/pulumi-plugin.json,sha256=RlRqN9rvIPyfKN2pIAv4zQXetYiVZ_Tk6Yckvh1IspM,79
21
+ pulumi_ns1/pulumi-plugin.json,sha256=B97dzE2yC081t6mWnEEiBNZFSW-pTeGXtao3ZtGvTPE,62
22
22
  pulumi_ns1/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
- pulumi_ns1/record.py,sha256=7W76cCpzqzdOvV10g3HDh_4l-YlVameA2rBmeZ9HXGE,45469
23
+ pulumi_ns1/record.py,sha256=tLDSgL3gKh9b-CIk5rir2j97cDhrjsjzvvVzKOoAOFc,44902
24
24
  pulumi_ns1/redirect.py,sha256=KpClbfRDOD-dPpJc3enWi9JswvelRw59iiOlw0ZWFbM,32828
25
25
  pulumi_ns1/redirect_certificate.py,sha256=oEPHvmHoioIevrzNoyqGLpDAlDyjMeQqqsQYwRx-IGI,8886
26
26
  pulumi_ns1/subnet.py,sha256=9LN3o8gVwCgL4hC9wwFDzU4WPNXDxCOZE3MudBWPlq0,19239
27
- pulumi_ns1/team.py,sha256=W7zln_uUxGUhRLpwygcW0hmPwUAJmV9dtJXNgPmaFT0,81714
27
+ pulumi_ns1/team.py,sha256=wCsNFL8Bt9j_e4xytJfq5WqgPaYWX-1MnsMoGA2HYEg,81363
28
28
  pulumi_ns1/tsigkey.py,sha256=HpbUG1x720Ix-BuA-qj5MIurFDVQ2JI_Y2b736cN97E,10038
29
- pulumi_ns1/user.py,sha256=ThbfFxGo-dF2HHOvECTA4Surd8vAJKTtPmy9RV8GwTg,89234
29
+ pulumi_ns1/user.py,sha256=4Viq-wpyIC2_LTNA9FmxmeeOBELfkwQ2kH77pnGm3MU,88883
30
30
  pulumi_ns1/zone.py,sha256=easSfXfDqQhz6tNwc7SGCK5CdwTlq340VTByde69tqI,43790
31
31
  pulumi_ns1/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
32
32
  pulumi_ns1/config/__init__.pyi,sha256=gTM1utkGS4KH3on5zyhR_a6AtTg4_jVpEXyQeU7ZpJQ,865
33
33
  pulumi_ns1/config/vars.py,sha256=bQTOWrwMP1x58zYPNlK8g8CTAbOUMF3GyfcevML1frE,1674
34
- pulumi_ns1-3.3.0a1719251476.dist-info/METADATA,sha256=0Sd6IkT1lZ3-WqwbGV8mQnevXn3QtKbfXZvMW9UbLRg,3047
35
- pulumi_ns1-3.3.0a1719251476.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
36
- pulumi_ns1-3.3.0a1719251476.dist-info/top_level.txt,sha256=Sndx9N4MHnSbjpwVT-_JZ8NZ7JzudJUIUQkU2-9GH9U,11
37
- pulumi_ns1-3.3.0a1719251476.dist-info/RECORD,,
34
+ pulumi_ns1-3.3.1.dist-info/METADATA,sha256=2T8oCl86Cksgi6K70esNnAJpYKauhY5mWgtPn2NSKBs,3036
35
+ pulumi_ns1-3.3.1.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
36
+ pulumi_ns1-3.3.1.dist-info/top_level.txt,sha256=Sndx9N4MHnSbjpwVT-_JZ8NZ7JzudJUIUQkU2-9GH9U,11
37
+ pulumi_ns1-3.3.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.1.0)
2
+ Generator: setuptools (70.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5