pulumi-newrelic 5.16.0a1700614830__py3-none-any.whl → 5.16.0a1701841665__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.
@@ -3,6 +3,7 @@
3
3
  # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
 
5
5
 
6
+ import asyncio
6
7
  import importlib.util
7
8
  import inspect
8
9
  import json
@@ -13,6 +14,7 @@ import typing
13
14
 
14
15
  import pulumi
15
16
  import pulumi.runtime
17
+ from pulumi.runtime.sync_await import _sync_await
16
18
 
17
19
  from semver import VersionInfo as SemverVersion
18
20
  from parver import Version as PEP440Version
@@ -246,5 +248,44 @@ def lift_output_func(func: typing.Any) -> typing.Callable[[_F], _F]:
246
248
 
247
249
  return (lambda _: lifted_func)
248
250
 
251
+
252
+ def call_plain(
253
+ tok: str,
254
+ props: pulumi.Inputs,
255
+ res: typing.Optional[pulumi.Resource] = None,
256
+ typ: typing.Optional[type] = None,
257
+ ) -> typing.Any:
258
+ """
259
+ Wraps pulumi.runtime.plain to force the output and return it plainly.
260
+ """
261
+
262
+ output = pulumi.runtime.call(tok, props, res, typ)
263
+
264
+ # Ingoring deps silently. They are typically non-empty, r.f() calls include r as a dependency.
265
+ result, known, secret, _ = _sync_await(asyncio.ensure_future(_await_output(output)))
266
+
267
+ problem = None
268
+ if not known:
269
+ problem = ' an unknown value'
270
+ elif secret:
271
+ problem = ' a secret value'
272
+
273
+ if problem:
274
+ raise AssertionError(
275
+ f"Plain resource method '{tok}' incorrectly returned {problem}. "
276
+ + "This is an error in the provider, please report this to the provider developer."
277
+ )
278
+
279
+ return result
280
+
281
+
282
+ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bool, bool, set]:
283
+ return (
284
+ await o._future,
285
+ await o._is_known,
286
+ await o._is_secret,
287
+ await o._resources,
288
+ )
289
+
249
290
  def get_plugin_download_url():
250
291
  return None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi-newrelic
3
- Version: 5.16.0a1700614830
3
+ Version: 5.16.0a1701841665
4
4
  Summary: A Pulumi package for creating and managing New Relic resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,6 +1,6 @@
1
1
  pulumi_newrelic/__init__.py,sha256=WxmsponGSYNz_1ckbFhAxP3K_Me4JdmNjHnDRwbz4_I,10709
2
2
  pulumi_newrelic/_inputs.py,sha256=F2ZALiIjC3sAOD24s1w0xHe9jXaNTd9b0F7UxGzdW9s,452806
3
- pulumi_newrelic/_utilities.py,sha256=fRvpCIKutW049SlpPUAoouFyjnSSk1J-OY0b8SDzJaE,8081
3
+ pulumi_newrelic/_utilities.py,sha256=nNKRJyG0bkCleVzIGnszB5TSQOVUqAHks2baneWhujg,9249
4
4
  pulumi_newrelic/account_management.py,sha256=n6PRT6MlHnqzV5pjIE5SJuxc-oAN3a0gwNOMPAovx4I,8673
5
5
  pulumi_newrelic/alert_channel.py,sha256=tYCerX_BsVt0rjxK4DBOzqYYvi74V7xY9FHgIpVO1yM,20872
6
6
  pulumi_newrelic/alert_condition.py,sha256=SZ6aQ3HXY6TGJnyrXTg0s9opIN5_DaWPXOepX2OWMdE,45682
@@ -77,7 +77,7 @@ pulumi_newrelic/synthetics/private_location.py,sha256=x2Ji28435eqLVwZY9tXLN4QV08
77
77
  pulumi_newrelic/synthetics/script_monitor.py,sha256=s7hJqIFfSZ99ZQB7L1SbDdEEPw3NniaOqYfxMAg0pmU,53826
78
78
  pulumi_newrelic/synthetics/secure_credential.py,sha256=O5SFzx3UNw64KjxCRzxatsXoPjT_e6VyJ32JTa0f0Dw,15604
79
79
  pulumi_newrelic/synthetics/step_monitor.py,sha256=V84V3y6WFk_xfnSx77YB7FhehgIOH0kkvFQBJXqKBAI,34385
80
- pulumi_newrelic-5.16.0a1700614830.dist-info/METADATA,sha256=-IujECemQWIr4dudW5JwRNh0N5ezZ4gJ1lW_7tI3v5s,3900
81
- pulumi_newrelic-5.16.0a1700614830.dist-info/WHEEL,sha256=Xo9-1PvkuimrydujYJAjF7pCkriuXBpUPEjma1nZyJ0,92
82
- pulumi_newrelic-5.16.0a1700614830.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
83
- pulumi_newrelic-5.16.0a1700614830.dist-info/RECORD,,
80
+ pulumi_newrelic-5.16.0a1701841665.dist-info/METADATA,sha256=XyB3fiBjZGzsCwbbyVk6GHU-2Sn0ztabn9be6rwuHZU,3900
81
+ pulumi_newrelic-5.16.0a1701841665.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
82
+ pulumi_newrelic-5.16.0a1701841665.dist-info/top_level.txt,sha256=BjE1Wsu6Ah_A7k08uV5vRSZ2R_5uY3wFvSWJaa7ZoQk,16
83
+ pulumi_newrelic-5.16.0a1701841665.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.41.3)
2
+ Generator: bdist_wheel (0.42.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5