pulumi-vsphere 4.11.0__py3-none-any.whl → 4.11.0a1710920591__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-vsphere might be problematic. Click here for more details.

Files changed (65) hide show
  1. pulumi_vsphere/__init__.py +0 -28
  2. pulumi_vsphere/_inputs.py +236 -646
  3. pulumi_vsphere/_utilities.py +4 -40
  4. pulumi_vsphere/compute_cluster.py +1486 -756
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +34 -42
  6. pulumi_vsphere/content_library.py +10 -10
  7. pulumi_vsphere/datacenter.py +40 -33
  8. pulumi_vsphere/datastore_cluster.py +364 -154
  9. pulumi_vsphere/distributed_port_group.py +187 -131
  10. pulumi_vsphere/distributed_virtual_switch.py +828 -310
  11. pulumi_vsphere/entity_permissions.py +38 -59
  12. pulumi_vsphere/file.py +24 -16
  13. pulumi_vsphere/folder.py +28 -7
  14. pulumi_vsphere/get_compute_cluster.py +4 -0
  15. pulumi_vsphere/get_compute_cluster_host_group.py +20 -20
  16. pulumi_vsphere/get_content_library.py +10 -10
  17. pulumi_vsphere/get_content_library_item.py +8 -12
  18. pulumi_vsphere/get_custom_attribute.py +4 -0
  19. pulumi_vsphere/get_datacenter.py +4 -0
  20. pulumi_vsphere/get_datastore.py +16 -12
  21. pulumi_vsphere/get_datastore_cluster.py +4 -0
  22. pulumi_vsphere/get_datastore_stats.py +52 -46
  23. pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
  24. pulumi_vsphere/get_dynamic.py +20 -18
  25. pulumi_vsphere/get_folder.py +6 -10
  26. pulumi_vsphere/get_guest_os_customization.py +47 -8
  27. pulumi_vsphere/get_host.py +4 -0
  28. pulumi_vsphere/get_host_pci_device.py +14 -8
  29. pulumi_vsphere/get_host_thumbprint.py +16 -12
  30. pulumi_vsphere/get_host_vgpu_profile.py +10 -4
  31. pulumi_vsphere/get_license.py +5 -2
  32. pulumi_vsphere/get_network.py +18 -14
  33. pulumi_vsphere/get_policy.py +4 -0
  34. pulumi_vsphere/get_resource_pool.py +18 -14
  35. pulumi_vsphere/get_role.py +8 -4
  36. pulumi_vsphere/get_tag.py +4 -0
  37. pulumi_vsphere/get_tag_category.py +4 -0
  38. pulumi_vsphere/get_vapp_container.py +4 -0
  39. pulumi_vsphere/get_virtual_machine.py +43 -60
  40. pulumi_vsphere/get_vmfs_disks.py +4 -0
  41. pulumi_vsphere/guest_os_customization.py +5 -55
  42. pulumi_vsphere/ha_vm_override.py +378 -189
  43. pulumi_vsphere/host.py +60 -49
  44. pulumi_vsphere/host_port_group.py +26 -14
  45. pulumi_vsphere/host_virtual_switch.py +287 -140
  46. pulumi_vsphere/license.py +32 -0
  47. pulumi_vsphere/nas_datastore.py +7 -7
  48. pulumi_vsphere/outputs.py +270 -672
  49. pulumi_vsphere/provider.py +6 -2
  50. pulumi_vsphere/pulumi-plugin.json +1 -2
  51. pulumi_vsphere/resource_pool.py +24 -50
  52. pulumi_vsphere/virtual_disk.py +34 -42
  53. pulumi_vsphere/virtual_machine.py +827 -598
  54. pulumi_vsphere/virtual_machine_snapshot.py +12 -8
  55. pulumi_vsphere/vm_storage_policy.py +127 -115
  56. pulumi_vsphere/vnic.py +105 -89
  57. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/METADATA +1 -1
  58. pulumi_vsphere-4.11.0a1710920591.dist-info/RECORD +82 -0
  59. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/WHEEL +1 -1
  60. pulumi_vsphere/get_host_base_images.py +0 -97
  61. pulumi_vsphere/offline_software_depot.py +0 -180
  62. pulumi_vsphere/supervisor.py +0 -962
  63. pulumi_vsphere/virtual_machine_class.py +0 -442
  64. pulumi_vsphere-4.11.0.dist-info/RECORD +0 -86
  65. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/top_level.txt +0 -0
@@ -4,7 +4,6 @@
4
4
 
5
5
 
6
6
  import asyncio
7
- import functools
8
7
  import importlib.metadata
9
8
  import importlib.util
10
9
  import inspect
@@ -12,19 +11,14 @@ import json
12
11
  import os
13
12
  import sys
14
13
  import typing
15
- import warnings
16
- import base64
17
14
 
18
15
  import pulumi
19
16
  import pulumi.runtime
20
17
  from pulumi.runtime.sync_await import _sync_await
21
- from pulumi.runtime.proto import resource_pb2
22
18
 
23
19
  from semver import VersionInfo as SemverVersion
24
20
  from parver import Version as PEP440Version
25
21
 
26
- C = typing.TypeVar("C", bound=typing.Callable)
27
-
28
22
 
29
23
  def get_env(*args):
30
24
  for v in args:
@@ -102,6 +96,10 @@ def _get_semver_version():
102
96
  _version = _get_semver_version()
103
97
  _version_str = str(_version)
104
98
 
99
+
100
+ def get_version():
101
+ return _version_str
102
+
105
103
  def get_resource_opts_defaults() -> pulumi.ResourceOptions:
106
104
  return pulumi.ResourceOptions(
107
105
  version=get_version(),
@@ -289,39 +287,5 @@ async def _await_output(o: pulumi.Output[typing.Any]) -> typing.Tuple[object, bo
289
287
  await o._resources,
290
288
  )
291
289
 
292
-
293
- # This is included to provide an upgrade path for users who are using a version
294
- # of the Pulumi SDK (<3.121.0) that does not include the `deprecated` decorator.
295
- def deprecated(message: str) -> typing.Callable[[C], C]:
296
- """
297
- Decorator to indicate a function is deprecated.
298
-
299
- As well as inserting appropriate statements to indicate that the function is
300
- deprecated, this decorator also tags the function with a special attribute
301
- so that Pulumi code can detect that it is deprecated and react appropriately
302
- in certain situations.
303
-
304
- message is the deprecation message that should be printed if the function is called.
305
- """
306
-
307
- def decorator(fn: C) -> C:
308
- if not callable(fn):
309
- raise TypeError("Expected fn to be callable")
310
-
311
- @functools.wraps(fn)
312
- def deprecated_fn(*args, **kwargs):
313
- warnings.warn(message)
314
- pulumi.warn(f"{fn.__name__} is deprecated: {message}")
315
-
316
- return fn(*args, **kwargs)
317
-
318
- deprecated_fn.__dict__["_pulumi_deprecated_callable"] = fn
319
- return typing.cast(C, deprecated_fn)
320
-
321
- return decorator
322
-
323
290
  def get_plugin_download_url():
324
291
  return None
325
-
326
- def get_version():
327
- return _version_str