pulumi-mysql 3.3.0a1719035541__py3-none-any.whl → 3.3.0a1719363583__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-mysql might be problematic. Click here for more details.
- pulumi_mysql/_utilities.py +35 -0
- pulumi_mysql/pulumi-plugin.json +1 -1
- pulumi_mysql/user.py +3 -9
- {pulumi_mysql-3.3.0a1719035541.dist-info → pulumi_mysql-3.3.0a1719363583.dist-info}/METADATA +1 -1
- {pulumi_mysql-3.3.0a1719035541.dist-info → pulumi_mysql-3.3.0a1719363583.dist-info}/RECORD +7 -7
- {pulumi_mysql-3.3.0a1719035541.dist-info → pulumi_mysql-3.3.0a1719363583.dist-info}/WHEEL +1 -1
- {pulumi_mysql-3.3.0a1719035541.dist-info → pulumi_mysql-3.3.0a1719363583.dist-info}/top_level.txt +0 -0
pulumi_mysql/_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_mysql/pulumi-plugin.json
CHANGED
pulumi_mysql/user.py
CHANGED
|
@@ -84,13 +84,11 @@ class UserArgs:
|
|
|
84
84
|
|
|
85
85
|
@property
|
|
86
86
|
@pulumi.getter
|
|
87
|
+
@_utilities.deprecated("""Please use plaintext_password instead""")
|
|
87
88
|
def password(self) -> Optional[pulumi.Input[str]]:
|
|
88
89
|
"""
|
|
89
90
|
Deprecated alias of `plaintext_password`, whose value is *stored as plaintext in state*. Prefer to use `plaintext_password` instead, which stores the password as an unsalted hash. Conflicts with `auth_plugin`.
|
|
90
91
|
"""
|
|
91
|
-
warnings.warn("""Please use plaintext_password instead""", DeprecationWarning)
|
|
92
|
-
pulumi.log.warn("""password is deprecated: Please use plaintext_password instead""")
|
|
93
|
-
|
|
94
92
|
return pulumi.get(self, "password")
|
|
95
93
|
|
|
96
94
|
@password.setter
|
|
@@ -186,13 +184,11 @@ class _UserState:
|
|
|
186
184
|
|
|
187
185
|
@property
|
|
188
186
|
@pulumi.getter
|
|
187
|
+
@_utilities.deprecated("""Please use plaintext_password instead""")
|
|
189
188
|
def password(self) -> Optional[pulumi.Input[str]]:
|
|
190
189
|
"""
|
|
191
190
|
Deprecated alias of `plaintext_password`, whose value is *stored as plaintext in state*. Prefer to use `plaintext_password` instead, which stores the password as an unsalted hash. Conflicts with `auth_plugin`.
|
|
192
191
|
"""
|
|
193
|
-
warnings.warn("""Please use plaintext_password instead""", DeprecationWarning)
|
|
194
|
-
pulumi.log.warn("""password is deprecated: Please use plaintext_password instead""")
|
|
195
|
-
|
|
196
192
|
return pulumi.get(self, "password")
|
|
197
193
|
|
|
198
194
|
@password.setter
|
|
@@ -429,13 +425,11 @@ class User(pulumi.CustomResource):
|
|
|
429
425
|
|
|
430
426
|
@property
|
|
431
427
|
@pulumi.getter
|
|
428
|
+
@_utilities.deprecated("""Please use plaintext_password instead""")
|
|
432
429
|
def password(self) -> pulumi.Output[Optional[str]]:
|
|
433
430
|
"""
|
|
434
431
|
Deprecated alias of `plaintext_password`, whose value is *stored as plaintext in state*. Prefer to use `plaintext_password` instead, which stores the password as an unsalted hash. Conflicts with `auth_plugin`.
|
|
435
432
|
"""
|
|
436
|
-
warnings.warn("""Please use plaintext_password instead""", DeprecationWarning)
|
|
437
|
-
pulumi.log.warn("""password is deprecated: Please use plaintext_password instead""")
|
|
438
|
-
|
|
439
433
|
return pulumi.get(self, "password")
|
|
440
434
|
|
|
441
435
|
@property
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
pulumi_mysql/__init__.py,sha256=HpeSw9x132gS_rWPEzx8HVb37OYcEv3KOANsymLLQ2c,1478
|
|
2
|
-
pulumi_mysql/_utilities.py,sha256=
|
|
2
|
+
pulumi_mysql/_utilities.py,sha256=zozFZPZGnJJ7MjOYHQPdH-l-EHcRcX5lh5TVi22oTCw,10446
|
|
3
3
|
pulumi_mysql/database.py,sha256=9M8FdXyxug6_3KxqOV8M6c6cApeOr3NvR4QOCkpEMN8,17470
|
|
4
4
|
pulumi_mysql/grant.py,sha256=pIyYiZwPSYKz6pZ-NL4DqpxaDsP2rxwHZ_U1OvzuZAo,26844
|
|
5
5
|
pulumi_mysql/provider.py,sha256=yFNevFaLc1S3QB0VOFSa1c-z9mCIP7ZGfXl2GuA0OfY,10003
|
|
6
|
-
pulumi_mysql/pulumi-plugin.json,sha256=
|
|
6
|
+
pulumi_mysql/pulumi-plugin.json,sha256=xuKOeKNTX4cmWB6FGbEzxtLZ6r8hz_M-DbAEKthZrjk,81
|
|
7
7
|
pulumi_mysql/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
pulumi_mysql/role.py,sha256=Zbd9UDIWXS_sejdyefBRfE5foNdMtWMipSnW-e01nd0,5721
|
|
9
|
-
pulumi_mysql/user.py,sha256=
|
|
9
|
+
pulumi_mysql/user.py,sha256=nRZ--WriMT09LmCQwr9tt70IKMkpzRAqgLtjNV8908E,23204
|
|
10
10
|
pulumi_mysql/user_password.py,sha256=oYHKmSiLKk5VTImhRHfQZtx0N2FeFN-rVfP1Ee6hsZ8,13494
|
|
11
11
|
pulumi_mysql/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030,285
|
|
12
12
|
pulumi_mysql/config/__init__.pyi,sha256=HmdkBXPTE8cgrNVMZHM8dPzQYoURF0SbXvFZCQGXQ6c,553
|
|
13
13
|
pulumi_mysql/config/vars.py,sha256=M465O9gtM399IIhjqxxgo3M4zvTGVmihUM2ZTh7pmw0,1367
|
|
14
|
-
pulumi_mysql-3.3.
|
|
15
|
-
pulumi_mysql-3.3.
|
|
16
|
-
pulumi_mysql-3.3.
|
|
17
|
-
pulumi_mysql-3.3.
|
|
14
|
+
pulumi_mysql-3.3.0a1719363583.dist-info/METADATA,sha256=sjTCQUeZ4UsaqVMexJdkGamCsq3yksT3E7hnrdDtMhk,3203
|
|
15
|
+
pulumi_mysql-3.3.0a1719363583.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
|
|
16
|
+
pulumi_mysql-3.3.0a1719363583.dist-info/top_level.txt,sha256=YQuDOT73Hwh07Tv1JBugii-IBZGk7_h6aYILJIDAh7w,13
|
|
17
|
+
pulumi_mysql-3.3.0a1719363583.dist-info/RECORD,,
|
{pulumi_mysql-3.3.0a1719035541.dist-info → pulumi_mysql-3.3.0a1719363583.dist-info}/top_level.txt
RENAMED
|
File without changes
|