pulumi-mysql 3.3.0a1719035541__py3-none-any.whl → 3.3.0a1719299667__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.

@@ -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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "mysql",
4
- "version": "3.3.0-alpha.1719035541"
4
+ "version": "3.3.0-alpha.1719299667"
5
5
  }
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_mysql
3
- Version: 3.3.0a1719035541
3
+ Version: 3.3.0a1719299667
4
4
  Summary: A Pulumi package for creating and managing mysql cloud resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -1,17 +1,17 @@
1
1
  pulumi_mysql/__init__.py,sha256=HpeSw9x132gS_rWPEzx8HVb37OYcEv3KOANsymLLQ2c,1478
2
- pulumi_mysql/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
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=EyZjIgtRDVwe6WmQqonJEe9ylw1m6PEtr1JrAe5V0oc,81
6
+ pulumi_mysql/pulumi-plugin.json,sha256=dosUwZ10rZoZ8JD1Jx0MILznVzeXE9tB3hsjcIJVVgY,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=m-P4783vRRLxaFq_5o5JYtuVMBqLbQ3-IFo7DZRi4-k,23531
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.0a1719035541.dist-info/METADATA,sha256=CvcA4M-Mer_FwA86r5Q3YBYKyW72xjglUevJiRDohJk,3203
15
- pulumi_mysql-3.3.0a1719035541.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
16
- pulumi_mysql-3.3.0a1719035541.dist-info/top_level.txt,sha256=YQuDOT73Hwh07Tv1JBugii-IBZGk7_h6aYILJIDAh7w,13
17
- pulumi_mysql-3.3.0a1719035541.dist-info/RECORD,,
14
+ pulumi_mysql-3.3.0a1719299667.dist-info/METADATA,sha256=jORvYFQ7h3Y308Jrw8ky0ajM4TyHG41PcKZzpBM0zyA,3203
15
+ pulumi_mysql-3.3.0a1719299667.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
16
+ pulumi_mysql-3.3.0a1719299667.dist-info/top_level.txt,sha256=YQuDOT73Hwh07Tv1JBugii-IBZGk7_h6aYILJIDAh7w,13
17
+ pulumi_mysql-3.3.0a1719299667.dist-info/RECORD,,