pulumi-ns1 3.3.0a1719251476__tar.gz → 3.3.1__tar.gz
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-3.3.0a1719251476 → pulumi_ns1-3.3.1}/PKG-INFO +1 -1
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/_utilities.py +35 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/api_key.py +3 -9
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/pulumi-plugin.json +1 -1
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/record.py +3 -9
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/team.py +3 -9
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/user.py +3 -9
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1.egg-info/PKG-INFO +1 -1
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pyproject.toml +1 -1
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/README.md +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/__init__.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/_inputs.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/account_whitelist.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/application.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/config/__init__.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/config/__init__.pyi +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/config/vars.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/data_feed.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/data_source.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/dataset.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/dnsview.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/get_dns_sec.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/get_monitoring_regions.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/get_networks.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/get_record.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/get_zone.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/monitoring_job.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/notify_list.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/outputs.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/provider.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/pulsar_job.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/py.typed +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/redirect.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/redirect_certificate.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/subnet.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/tsigkey.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1/zone.py +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1.egg-info/SOURCES.txt +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1.egg-info/dependency_links.txt +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1.egg-info/requires.txt +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/pulumi_ns1.egg-info/top_level.txt +0 -0
- {pulumi_ns1-3.3.0a1719251476 → pulumi_ns1-3.3.1}/setup.cfg +0 -0
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
@@ -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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|