pulumi-dnsimple 3.5.0a1719033936__py3-none-any.whl → 3.5.0a1719260220__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-dnsimple might be problematic. Click here for more details.

@@ -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
@@ -61,13 +61,11 @@ class LetsEncryptCertificateArgs:
61
61
 
62
62
  @property
63
63
  @pulumi.getter(name="contactId")
64
+ @_utilities.deprecated("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
64
65
  def contact_id(self) -> Optional[pulumi.Input[int]]:
65
66
  """
66
67
  The contact id for the certificate
67
68
  """
68
- warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
69
- pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
70
-
71
69
  return pulumi.get(self, "contact_id")
72
70
 
73
71
  @contact_id.setter
@@ -164,13 +162,11 @@ class _LetsEncryptCertificateState:
164
162
 
165
163
  @property
166
164
  @pulumi.getter(name="contactId")
165
+ @_utilities.deprecated("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
167
166
  def contact_id(self) -> Optional[pulumi.Input[int]]:
168
167
  """
169
168
  The contact id for the certificate
170
169
  """
171
- warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
172
- pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
173
-
174
170
  return pulumi.get(self, "contact_id")
175
171
 
176
172
  @contact_id.setter
@@ -433,13 +429,11 @@ class LetsEncryptCertificate(pulumi.CustomResource):
433
429
 
434
430
  @property
435
431
  @pulumi.getter(name="contactId")
432
+ @_utilities.deprecated("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
436
433
  def contact_id(self) -> pulumi.Output[Optional[int]]:
437
434
  """
438
435
  The contact id for the certificate
439
436
  """
440
- warnings.warn("""contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""", DeprecationWarning)
441
- pulumi.log.warn("""contact_id is deprecated: contact_id is deprecated and has no effect. The attribute will be removed in the next major version.""")
442
-
443
437
  return pulumi.get(self, "contact_id")
444
438
 
445
439
  @property
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "dnsimple",
4
- "version": "3.5.0-alpha.1719033936"
4
+ "version": "3.5.0-alpha.1719260220"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_dnsimple
3
- Version: 3.5.0a1719033936
3
+ Version: 3.5.0a1719260220
4
4
  Summary: A Pulumi package for creating and managing dnsimple cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,19 +1,19 @@
1
1
  pulumi_dnsimple/__init__.py,sha256=q2Qxnpb9OOQTlP9dL3j-T7NsebYT92Z9abw7XZpQ4rI,1711
2
- pulumi_dnsimple/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
2
+ pulumi_dnsimple/_utilities.py,sha256=zozFZPZGnJJ7MjOYHQPdH-l-EHcRcX5lh5TVi22oTCw,10446
3
3
  pulumi_dnsimple/domain.py,sha256=CCj-t8HO5qxyZJaFHza1SLtDoZkRinXw9_BhT55ckrc,13126
4
4
  pulumi_dnsimple/email_forward.py,sha256=jSIaxCfJ84YiRQGt43cRHIb4YwSHNEPBrDqnTHjBrJs,11788
5
5
  pulumi_dnsimple/get_certificate.py,sha256=SimAmNbAEkkGZnrP21RtKDdlEE0IpW7_-OK4juKAyH0,6088
6
6
  pulumi_dnsimple/get_zone.py,sha256=xIAG55mCrO7SlHlI02S_-C7IOPuTsqNtTmeeyeyKgww,3874
7
- pulumi_dnsimple/lets_encrypt_certificate.py,sha256=nWD8yVVZiyUJMJVy9tjCnO24y5jf3uMY0yXRUJRV4OA,19764
7
+ pulumi_dnsimple/lets_encrypt_certificate.py,sha256=h-Yfs984EqbahzDiulyFVvZu4d1djYwbantKbY_ZByo,19242
8
8
  pulumi_dnsimple/provider.py,sha256=DD4pMom65j4jrnUb84jaP6EkLxEWFxswLlR3FhqG6mE,8730
9
- pulumi_dnsimple/pulumi-plugin.json,sha256=nv0sFXdDuRPlBaYv38DK9wJKuyAwNsnyvsRB3c67a-E,84
9
+ pulumi_dnsimple/pulumi-plugin.json,sha256=Y1067nRjq_Ssm9DdBIF8t0ZBg8ZJwB4m76cFdHRxkO8,84
10
10
  pulumi_dnsimple/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  pulumi_dnsimple/record.py,sha256=vmud89eUvx8McHoIJjFkhtgLFY9lDkFt837YVZwmfoY,12552
12
12
  pulumi_dnsimple/zone_record.py,sha256=3FFpk9Ohey4JvMCLosi1gQlJc4INp9MIuCeOr5bHyzA,18717
13
13
  pulumi_dnsimple/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
14
14
  pulumi_dnsimple/config/__init__.pyi,sha256=uNrZE7LcipE2gSGdj97mbe4EbQju8L71BPxe3iQJ2Yo,739
15
15
  pulumi_dnsimple/config/vars.py,sha256=7b8z6pJGysAfTHUhIYK9peb0Sw4zNXY-VxuCaG24H1M,1329
16
- pulumi_dnsimple-3.5.0a1719033936.dist-info/METADATA,sha256=D255UFORGlXG_DddEwVrjJLNhCrN7rCo32Kr0zhSqFA,2865
17
- pulumi_dnsimple-3.5.0a1719033936.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
18
- pulumi_dnsimple-3.5.0a1719033936.dist-info/top_level.txt,sha256=o_ZMMGgN8JmfKoCEmCl5-nHLCAzri-_7FCQohXzJWd4,16
19
- pulumi_dnsimple-3.5.0a1719033936.dist-info/RECORD,,
16
+ pulumi_dnsimple-3.5.0a1719260220.dist-info/METADATA,sha256=Yf2p8VNQDDL9hIoazHFand7CHAT2FBptHU00WrTS9Xs,2865
17
+ pulumi_dnsimple-3.5.0a1719260220.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
18
+ pulumi_dnsimple-3.5.0a1719260220.dist-info/top_level.txt,sha256=o_ZMMGgN8JmfKoCEmCl5-nHLCAzri-_7FCQohXzJWd4,16
19
+ pulumi_dnsimple-3.5.0a1719260220.dist-info/RECORD,,