pulumi-vsphere 4.11.0a1719038406__tar.gz → 4.11.0a1719266233__tar.gz

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 (91) hide show
  1. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/PKG-INFO +1 -1
  2. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/_utilities.py +35 -0
  3. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/provider.py +2 -6
  4. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/pulumi-plugin.json +1 -1
  5. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/virtual_disk.py +3 -9
  6. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere.egg-info/PKG-INFO +1 -1
  7. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pyproject.toml +1 -1
  8. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/README.md +0 -0
  9. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/__init__.py +0 -0
  10. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/_inputs.py +0 -0
  11. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/compute_cluster.py +0 -0
  12. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/compute_cluster_host_group.py +0 -0
  13. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/compute_cluster_vm_affinity_rule.py +0 -0
  14. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +0 -0
  15. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/compute_cluster_vm_dependency_rule.py +0 -0
  16. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/compute_cluster_vm_group.py +0 -0
  17. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/compute_cluster_vm_host_rule.py +0 -0
  18. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/config/__init__.py +0 -0
  19. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/config/__init__.pyi +0 -0
  20. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/config/vars.py +0 -0
  21. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/content_library.py +0 -0
  22. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/content_library_item.py +0 -0
  23. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/custom_attribute.py +0 -0
  24. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/datacenter.py +0 -0
  25. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/datastore_cluster.py +0 -0
  26. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +0 -0
  27. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/distributed_port_group.py +0 -0
  28. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/distributed_virtual_switch.py +0 -0
  29. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/dpm_host_override.py +0 -0
  30. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/drs_vm_override.py +0 -0
  31. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/entity_permissions.py +0 -0
  32. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/file.py +0 -0
  33. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/folder.py +0 -0
  34. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_compute_cluster.py +0 -0
  35. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_compute_cluster_host_group.py +0 -0
  36. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_content_library.py +0 -0
  37. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_content_library_item.py +0 -0
  38. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_custom_attribute.py +0 -0
  39. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_datacenter.py +0 -0
  40. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_datastore.py +0 -0
  41. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_datastore_cluster.py +0 -0
  42. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_datastore_stats.py +0 -0
  43. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_distributed_virtual_switch.py +0 -0
  44. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_dynamic.py +0 -0
  45. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_folder.py +0 -0
  46. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_guest_os_customization.py +0 -0
  47. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_host.py +0 -0
  48. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_host_base_images.py +0 -0
  49. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_host_pci_device.py +0 -0
  50. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_host_thumbprint.py +0 -0
  51. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_host_vgpu_profile.py +0 -0
  52. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_license.py +0 -0
  53. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_network.py +0 -0
  54. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_ovf_vm_template.py +0 -0
  55. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_policy.py +0 -0
  56. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_resource_pool.py +0 -0
  57. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_role.py +0 -0
  58. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_tag.py +0 -0
  59. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_tag_category.py +0 -0
  60. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_vapp_container.py +0 -0
  61. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_virtual_machine.py +0 -0
  62. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/get_vmfs_disks.py +0 -0
  63. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/guest_os_customization.py +0 -0
  64. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/ha_vm_override.py +0 -0
  65. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/host.py +0 -0
  66. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/host_port_group.py +0 -0
  67. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/host_virtual_switch.py +0 -0
  68. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/license.py +0 -0
  69. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/nas_datastore.py +0 -0
  70. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/offline_software_depot.py +0 -0
  71. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/outputs.py +0 -0
  72. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/py.typed +0 -0
  73. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/resource_pool.py +0 -0
  74. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/role.py +0 -0
  75. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/storage_drs_vm_override.py +0 -0
  76. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/supervisor.py +0 -0
  77. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/tag.py +0 -0
  78. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/tag_category.py +0 -0
  79. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/vapp_container.py +0 -0
  80. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/vapp_entity.py +0 -0
  81. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/virtual_machine.py +0 -0
  82. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/virtual_machine_class.py +0 -0
  83. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/virtual_machine_snapshot.py +0 -0
  84. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/vm_storage_policy.py +0 -0
  85. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/vmfs_datastore.py +0 -0
  86. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere/vnic.py +0 -0
  87. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere.egg-info/SOURCES.txt +0 -0
  88. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere.egg-info/dependency_links.txt +0 -0
  89. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere.egg-info/requires.txt +0 -0
  90. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/pulumi_vsphere.egg-info/top_level.txt +0 -0
  91. {pulumi_vsphere-4.11.0a1719038406 → pulumi_vsphere-4.11.0a1719266233}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_vsphere
3
- Version: 4.11.0a1719038406
3
+ Version: 4.11.0a1719266233
4
4
  Summary: A Pulumi package for creating vsphere resources
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -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
@@ -196,10 +196,8 @@ class ProviderArgs:
196
196
 
197
197
  @property
198
198
  @pulumi.getter(name="vcenterServer")
199
+ @_utilities.deprecated("""This field has been renamed to vsphere_server.""")
199
200
  def vcenter_server(self) -> Optional[pulumi.Input[str]]:
200
- warnings.warn("""This field has been renamed to vsphere_server.""", DeprecationWarning)
201
- pulumi.log.warn("""vcenter_server is deprecated: This field has been renamed to vsphere_server.""")
202
-
203
201
  return pulumi.get(self, "vcenter_server")
204
202
 
205
203
  @vcenter_server.setter
@@ -413,10 +411,8 @@ class Provider(pulumi.ProviderResource):
413
411
 
414
412
  @property
415
413
  @pulumi.getter(name="vcenterServer")
414
+ @_utilities.deprecated("""This field has been renamed to vsphere_server.""")
416
415
  def vcenter_server(self) -> pulumi.Output[Optional[str]]:
417
- warnings.warn("""This field has been renamed to vsphere_server.""", DeprecationWarning)
418
- pulumi.log.warn("""vcenter_server is deprecated: This field has been renamed to vsphere_server.""")
419
-
420
416
  return pulumi.get(self, "vcenter_server")
421
417
 
422
418
  @property
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "vsphere",
4
- "version": "4.11.0-alpha.1719038406"
4
+ "version": "4.11.0-alpha.1719266233"
5
5
  }
@@ -109,6 +109,7 @@ class VirtualDiskArgs:
109
109
 
110
110
  @property
111
111
  @pulumi.getter(name="adapterType")
112
+ @_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
112
113
  def adapter_type(self) -> Optional[pulumi.Input[str]]:
113
114
  """
114
115
  The adapter type for this virtual disk. Can be
@@ -121,9 +122,6 @@ class VirtualDiskArgs:
121
122
  disk controller types. This parameter will be removed in future versions of the
122
123
  vSphere provider.
123
124
  """
124
- warnings.warn("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""", DeprecationWarning)
125
- pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
126
-
127
125
  return pulumi.get(self, "adapter_type")
128
126
 
129
127
  @adapter_type.setter
@@ -243,6 +241,7 @@ class _VirtualDiskState:
243
241
 
244
242
  @property
245
243
  @pulumi.getter(name="adapterType")
244
+ @_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
246
245
  def adapter_type(self) -> Optional[pulumi.Input[str]]:
247
246
  """
248
247
  The adapter type for this virtual disk. Can be
@@ -255,9 +254,6 @@ class _VirtualDiskState:
255
254
  disk controller types. This parameter will be removed in future versions of the
256
255
  vSphere provider.
257
256
  """
258
- warnings.warn("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""", DeprecationWarning)
259
- pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
260
-
261
257
  return pulumi.get(self, "adapter_type")
262
258
 
263
259
  @adapter_type.setter
@@ -522,6 +518,7 @@ class VirtualDisk(pulumi.CustomResource):
522
518
 
523
519
  @property
524
520
  @pulumi.getter(name="adapterType")
521
+ @_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
525
522
  def adapter_type(self) -> pulumi.Output[Optional[str]]:
526
523
  """
527
524
  The adapter type for this virtual disk. Can be
@@ -534,9 +531,6 @@ class VirtualDisk(pulumi.CustomResource):
534
531
  disk controller types. This parameter will be removed in future versions of the
535
532
  vSphere provider.
536
533
  """
537
- warnings.warn("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""", DeprecationWarning)
538
- pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
539
-
540
534
  return pulumi.get(self, "adapter_type")
541
535
 
542
536
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_vsphere
3
- Version: 4.11.0a1719038406
3
+ Version: 4.11.0a1719266233
4
4
  Summary: A Pulumi package for creating vsphere resources
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -5,7 +5,7 @@
5
5
  keywords = ["pulumi", "vsphere"]
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.8"
8
- version = "4.11.0a1719038406"
8
+ version = "4.11.0a1719266233"
9
9
  [project.license]
10
10
  text = "Apache-2.0"
11
11
  [project.urls]