pulumi-vsphere 4.11.5__tar.gz → 4.12.0__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.5 → pulumi_vsphere-4.12.0}/PKG-INFO +1 -1
  2. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/_inputs.py +68 -0
  3. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_datacenter.py +18 -4
  4. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_datastore_cluster.py +16 -1
  5. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_network.py +48 -1
  6. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_virtual_machine.py +15 -1
  7. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/outputs.py +40 -0
  8. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/pulumi-plugin.json +1 -1
  9. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/virtual_machine.py +47 -0
  10. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere.egg-info/PKG-INFO +1 -1
  11. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pyproject.toml +1 -1
  12. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/README.md +0 -0
  13. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/__init__.py +0 -0
  14. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/_utilities.py +0 -0
  15. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/compute_cluster.py +0 -0
  16. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/compute_cluster_host_group.py +0 -0
  17. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/compute_cluster_vm_affinity_rule.py +0 -0
  18. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +0 -0
  19. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/compute_cluster_vm_dependency_rule.py +0 -0
  20. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/compute_cluster_vm_group.py +0 -0
  21. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/compute_cluster_vm_host_rule.py +0 -0
  22. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/config/__init__.py +0 -0
  23. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/config/__init__.pyi +0 -0
  24. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/config/vars.py +0 -0
  25. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/content_library.py +0 -0
  26. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/content_library_item.py +0 -0
  27. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/custom_attribute.py +0 -0
  28. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/datacenter.py +0 -0
  29. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/datastore_cluster.py +0 -0
  30. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +0 -0
  31. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/distributed_port_group.py +0 -0
  32. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/distributed_virtual_switch.py +0 -0
  33. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/dpm_host_override.py +0 -0
  34. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/drs_vm_override.py +0 -0
  35. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/entity_permissions.py +0 -0
  36. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/file.py +0 -0
  37. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/folder.py +0 -0
  38. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_compute_cluster.py +0 -0
  39. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_compute_cluster_host_group.py +0 -0
  40. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_content_library.py +0 -0
  41. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_content_library_item.py +0 -0
  42. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_custom_attribute.py +0 -0
  43. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_datastore.py +0 -0
  44. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_datastore_stats.py +0 -0
  45. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_distributed_virtual_switch.py +0 -0
  46. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_dynamic.py +0 -0
  47. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_folder.py +0 -0
  48. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_guest_os_customization.py +0 -0
  49. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_host.py +0 -0
  50. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_host_base_images.py +0 -0
  51. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_host_pci_device.py +0 -0
  52. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_host_thumbprint.py +0 -0
  53. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_host_vgpu_profile.py +0 -0
  54. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_license.py +0 -0
  55. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_ovf_vm_template.py +0 -0
  56. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_policy.py +0 -0
  57. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_resource_pool.py +0 -0
  58. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_role.py +0 -0
  59. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_tag.py +0 -0
  60. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_tag_category.py +0 -0
  61. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_vapp_container.py +0 -0
  62. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/get_vmfs_disks.py +0 -0
  63. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/guest_os_customization.py +0 -0
  64. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/ha_vm_override.py +0 -0
  65. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/host.py +0 -0
  66. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/host_port_group.py +0 -0
  67. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/host_virtual_switch.py +0 -0
  68. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/license.py +0 -0
  69. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/nas_datastore.py +0 -0
  70. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/offline_software_depot.py +0 -0
  71. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/provider.py +0 -0
  72. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/py.typed +0 -0
  73. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/resource_pool.py +0 -0
  74. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/role.py +0 -0
  75. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/storage_drs_vm_override.py +0 -0
  76. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/supervisor.py +0 -0
  77. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/tag.py +0 -0
  78. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/tag_category.py +0 -0
  79. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/vapp_container.py +0 -0
  80. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/vapp_entity.py +0 -0
  81. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/virtual_disk.py +0 -0
  82. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/virtual_machine_class.py +0 -0
  83. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/virtual_machine_snapshot.py +0 -0
  84. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/vm_storage_policy.py +0 -0
  85. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/vmfs_datastore.py +0 -0
  86. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere/vnic.py +0 -0
  87. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere.egg-info/SOURCES.txt +0 -0
  88. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere.egg-info/dependency_links.txt +0 -0
  89. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere.egg-info/requires.txt +0 -0
  90. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/pulumi_vsphere.egg-info/top_level.txt +0 -0
  91. {pulumi_vsphere-4.11.5 → pulumi_vsphere-4.12.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_vsphere
3
- Version: 4.11.5
3
+ Version: 4.12.0
4
4
  Summary: A Pulumi package for creating vsphere resources
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
@@ -91,12 +91,16 @@ __all__ = [
91
91
  'VirtualMachineOvfDeployArgsDict',
92
92
  'VirtualMachineVappArgs',
93
93
  'VirtualMachineVappArgsDict',
94
+ 'VirtualMachineVtpmArgs',
95
+ 'VirtualMachineVtpmArgsDict',
94
96
  'VmStoragePolicyTagRuleArgs',
95
97
  'VmStoragePolicyTagRuleArgsDict',
96
98
  'VnicIpv4Args',
97
99
  'VnicIpv4ArgsDict',
98
100
  'VnicIpv6Args',
99
101
  'VnicIpv6ArgsDict',
102
+ 'GetNetworkFilterArgs',
103
+ 'GetNetworkFilterArgsDict',
100
104
  'GetVirtualMachineVappArgs',
101
105
  'GetVirtualMachineVappArgsDict',
102
106
  ]
@@ -4286,6 +4290,38 @@ class VirtualMachineVappArgs:
4286
4290
  pulumi.set(self, "properties", value)
4287
4291
 
4288
4292
 
4293
+ if not MYPY:
4294
+ class VirtualMachineVtpmArgsDict(TypedDict):
4295
+ version: NotRequired[pulumi.Input[str]]
4296
+ """
4297
+ The version of the TPM device. Default is 2.0.
4298
+ """
4299
+ elif False:
4300
+ VirtualMachineVtpmArgsDict: TypeAlias = Mapping[str, Any]
4301
+
4302
+ @pulumi.input_type
4303
+ class VirtualMachineVtpmArgs:
4304
+ def __init__(__self__, *,
4305
+ version: Optional[pulumi.Input[str]] = None):
4306
+ """
4307
+ :param pulumi.Input[str] version: The version of the TPM device. Default is 2.0.
4308
+ """
4309
+ if version is not None:
4310
+ pulumi.set(__self__, "version", version)
4311
+
4312
+ @property
4313
+ @pulumi.getter
4314
+ def version(self) -> Optional[pulumi.Input[str]]:
4315
+ """
4316
+ The version of the TPM device. Default is 2.0.
4317
+ """
4318
+ return pulumi.get(self, "version")
4319
+
4320
+ @version.setter
4321
+ def version(self, value: Optional[pulumi.Input[str]]):
4322
+ pulumi.set(self, "version", value)
4323
+
4324
+
4289
4325
  if not MYPY:
4290
4326
  class VmStoragePolicyTagRuleArgsDict(TypedDict):
4291
4327
  tag_category: pulumi.Input[str]
@@ -4540,6 +4576,38 @@ class VnicIpv6Args:
4540
4576
  pulumi.set(self, "gw", value)
4541
4577
 
4542
4578
 
4579
+ if not MYPY:
4580
+ class GetNetworkFilterArgsDict(TypedDict):
4581
+ network_type: NotRequired[str]
4582
+ """
4583
+ This is required if you have multiple port groups with the same name. This will be one of `DistributedVirtualPortgroup` for distributed port groups, `Network` for standard (host-based) port groups, or `OpaqueNetwork` for networks managed externally, such as those managed by NSX.
4584
+ """
4585
+ elif False:
4586
+ GetNetworkFilterArgsDict: TypeAlias = Mapping[str, Any]
4587
+
4588
+ @pulumi.input_type
4589
+ class GetNetworkFilterArgs:
4590
+ def __init__(__self__, *,
4591
+ network_type: Optional[str] = None):
4592
+ """
4593
+ :param str network_type: This is required if you have multiple port groups with the same name. This will be one of `DistributedVirtualPortgroup` for distributed port groups, `Network` for standard (host-based) port groups, or `OpaqueNetwork` for networks managed externally, such as those managed by NSX.
4594
+ """
4595
+ if network_type is not None:
4596
+ pulumi.set(__self__, "network_type", network_type)
4597
+
4598
+ @property
4599
+ @pulumi.getter(name="networkType")
4600
+ def network_type(self) -> Optional[str]:
4601
+ """
4602
+ This is required if you have multiple port groups with the same name. This will be one of `DistributedVirtualPortgroup` for distributed port groups, `Network` for standard (host-based) port groups, or `OpaqueNetwork` for networks managed externally, such as those managed by NSX.
4603
+ """
4604
+ return pulumi.get(self, "network_type")
4605
+
4606
+ @network_type.setter
4607
+ def network_type(self, value: Optional[str]):
4608
+ pulumi.set(self, "network_type", value)
4609
+
4610
+
4543
4611
  if not MYPY:
4544
4612
  class GetVirtualMachineVappArgsDict(TypedDict):
4545
4613
  properties: NotRequired[Mapping[str, str]]
@@ -26,13 +26,16 @@ class GetDatacenterResult:
26
26
  """
27
27
  A collection of values returned by getDatacenter.
28
28
  """
29
- def __init__(__self__, id=None, name=None):
29
+ def __init__(__self__, id=None, name=None, virtual_machines=None):
30
30
  if id and not isinstance(id, str):
31
31
  raise TypeError("Expected argument 'id' to be a str")
32
32
  pulumi.set(__self__, "id", id)
33
33
  if name and not isinstance(name, str):
34
34
  raise TypeError("Expected argument 'name' to be a str")
35
35
  pulumi.set(__self__, "name", name)
36
+ if virtual_machines and not isinstance(virtual_machines, list):
37
+ raise TypeError("Expected argument 'virtual_machines' to be a list")
38
+ pulumi.set(__self__, "virtual_machines", virtual_machines)
36
39
 
37
40
  @property
38
41
  @pulumi.getter
@@ -47,6 +50,14 @@ class GetDatacenterResult:
47
50
  def name(self) -> Optional[str]:
48
51
  return pulumi.get(self, "name")
49
52
 
53
+ @property
54
+ @pulumi.getter(name="virtualMachines")
55
+ def virtual_machines(self) -> Sequence[str]:
56
+ """
57
+ List of all virtual machines included in the vSphere datacenter object.
58
+ """
59
+ return pulumi.get(self, "virtual_machines")
60
+
50
61
 
51
62
  class AwaitableGetDatacenterResult(GetDatacenterResult):
52
63
  # pylint: disable=using-constant-test
@@ -55,7 +66,8 @@ class AwaitableGetDatacenterResult(GetDatacenterResult):
55
66
  yield self
56
67
  return GetDatacenterResult(
57
68
  id=self.id,
58
- name=self.name)
69
+ name=self.name,
70
+ virtual_machines=self.virtual_machines)
59
71
 
60
72
 
61
73
  def get_datacenter(name: Optional[str] = None,
@@ -91,7 +103,8 @@ def get_datacenter(name: Optional[str] = None,
91
103
 
92
104
  return AwaitableGetDatacenterResult(
93
105
  id=pulumi.get(__ret__, 'id'),
94
- name=pulumi.get(__ret__, 'name'))
106
+ name=pulumi.get(__ret__, 'name'),
107
+ virtual_machines=pulumi.get(__ret__, 'virtual_machines'))
95
108
  def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
96
109
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDatacenterResult]:
97
110
  """
@@ -124,4 +137,5 @@ def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None,
124
137
  __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatacenter:getDatacenter', __args__, opts=opts, typ=GetDatacenterResult)
125
138
  return __ret__.apply(lambda __response__: GetDatacenterResult(
126
139
  id=pulumi.get(__response__, 'id'),
127
- name=pulumi.get(__response__, 'name')))
140
+ name=pulumi.get(__response__, 'name'),
141
+ virtual_machines=pulumi.get(__response__, 'virtual_machines')))
@@ -26,10 +26,13 @@ class GetDatastoreClusterResult:
26
26
  """
27
27
  A collection of values returned by getDatastoreCluster.
28
28
  """
29
- def __init__(__self__, datacenter_id=None, id=None, name=None):
29
+ def __init__(__self__, datacenter_id=None, datastores=None, id=None, name=None):
30
30
  if datacenter_id and not isinstance(datacenter_id, str):
31
31
  raise TypeError("Expected argument 'datacenter_id' to be a str")
32
32
  pulumi.set(__self__, "datacenter_id", datacenter_id)
33
+ if datastores and not isinstance(datastores, list):
34
+ raise TypeError("Expected argument 'datastores' to be a list")
35
+ pulumi.set(__self__, "datastores", datastores)
33
36
  if id and not isinstance(id, str):
34
37
  raise TypeError("Expected argument 'id' to be a str")
35
38
  pulumi.set(__self__, "id", id)
@@ -42,6 +45,15 @@ class GetDatastoreClusterResult:
42
45
  def datacenter_id(self) -> Optional[str]:
43
46
  return pulumi.get(self, "datacenter_id")
44
47
 
48
+ @property
49
+ @pulumi.getter
50
+ def datastores(self) -> Sequence[str]:
51
+ """
52
+ (Optional) The names of the datastores included in the specific
53
+ cluster.
54
+ """
55
+ return pulumi.get(self, "datastores")
56
+
45
57
  @property
46
58
  @pulumi.getter
47
59
  def id(self) -> str:
@@ -63,6 +75,7 @@ class AwaitableGetDatastoreClusterResult(GetDatastoreClusterResult):
63
75
  yield self
64
76
  return GetDatastoreClusterResult(
65
77
  datacenter_id=self.datacenter_id,
78
+ datastores=self.datastores,
66
79
  id=self.id,
67
80
  name=self.name)
68
81
 
@@ -103,6 +116,7 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None,
103
116
 
104
117
  return AwaitableGetDatastoreClusterResult(
105
118
  datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
119
+ datastores=pulumi.get(__ret__, 'datastores'),
106
120
  id=pulumi.get(__ret__, 'id'),
107
121
  name=pulumi.get(__ret__, 'name'))
108
122
  def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
@@ -140,5 +154,6 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s
140
154
  __ret__ = pulumi.runtime.invoke_output('vsphere:index/getDatastoreCluster:getDatastoreCluster', __args__, opts=opts, typ=GetDatastoreClusterResult)
141
155
  return __ret__.apply(lambda __response__: GetDatastoreClusterResult(
142
156
  datacenter_id=pulumi.get(__response__, 'datacenter_id'),
157
+ datastores=pulumi.get(__response__, 'datastores'),
143
158
  id=pulumi.get(__response__, 'id'),
144
159
  name=pulumi.get(__response__, 'name')))
@@ -13,6 +13,8 @@ if sys.version_info >= (3, 11):
13
13
  else:
14
14
  from typing_extensions import NotRequired, TypedDict, TypeAlias
15
15
  from . import _utilities
16
+ from . import outputs
17
+ from ._inputs import *
16
18
 
17
19
  __all__ = [
18
20
  'GetNetworkResult',
@@ -26,13 +28,16 @@ class GetNetworkResult:
26
28
  """
27
29
  A collection of values returned by getNetwork.
28
30
  """
29
- def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, id=None, name=None, type=None):
31
+ def __init__(__self__, datacenter_id=None, distributed_virtual_switch_uuid=None, filters=None, id=None, name=None, type=None):
30
32
  if datacenter_id and not isinstance(datacenter_id, str):
31
33
  raise TypeError("Expected argument 'datacenter_id' to be a str")
32
34
  pulumi.set(__self__, "datacenter_id", datacenter_id)
33
35
  if distributed_virtual_switch_uuid and not isinstance(distributed_virtual_switch_uuid, str):
34
36
  raise TypeError("Expected argument 'distributed_virtual_switch_uuid' to be a str")
35
37
  pulumi.set(__self__, "distributed_virtual_switch_uuid", distributed_virtual_switch_uuid)
38
+ if filters and not isinstance(filters, list):
39
+ raise TypeError("Expected argument 'filters' to be a list")
40
+ pulumi.set(__self__, "filters", filters)
36
41
  if id and not isinstance(id, str):
37
42
  raise TypeError("Expected argument 'id' to be a str")
38
43
  pulumi.set(__self__, "id", id)
@@ -53,6 +58,11 @@ class GetNetworkResult:
53
58
  def distributed_virtual_switch_uuid(self) -> Optional[str]:
54
59
  return pulumi.get(self, "distributed_virtual_switch_uuid")
55
60
 
61
+ @property
62
+ @pulumi.getter
63
+ def filters(self) -> Optional[Sequence['outputs.GetNetworkFilterResult']]:
64
+ return pulumi.get(self, "filters")
65
+
56
66
  @property
57
67
  @pulumi.getter
58
68
  def id(self) -> str:
@@ -86,6 +96,7 @@ class AwaitableGetNetworkResult(GetNetworkResult):
86
96
  return GetNetworkResult(
87
97
  datacenter_id=self.datacenter_id,
88
98
  distributed_virtual_switch_uuid=self.distributed_virtual_switch_uuid,
99
+ filters=self.filters,
89
100
  id=self.id,
90
101
  name=self.name,
91
102
  type=self.type)
@@ -93,6 +104,7 @@ class AwaitableGetNetworkResult(GetNetworkResult):
93
104
 
94
105
  def get_network(datacenter_id: Optional[str] = None,
95
106
  distributed_virtual_switch_uuid: Optional[str] = None,
107
+ filters: Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]] = None,
96
108
  name: Optional[str] = None,
97
109
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNetworkResult:
98
110
  """
@@ -113,6 +125,20 @@ def get_network(datacenter_id: Optional[str] = None,
113
125
  datacenter_id=datacenter.id)
114
126
  ```
115
127
 
128
+ ### Additional Examples
129
+
130
+ ```python
131
+ import pulumi
132
+ import pulumi_vsphere as vsphere
133
+
134
+ datacenter = vsphere.get_datacenter(name="dc-01")
135
+ my_port_group = vsphere.get_network(datacenter_id=datacenter.id,
136
+ name="VM Network",
137
+ filters=[{
138
+ "network_type": "Network",
139
+ }])
140
+ ```
141
+
116
142
 
117
143
  :param str datacenter_id: The managed object reference ID
118
144
  of the datacenter the network is located in. This can be omitted if the
@@ -122,11 +148,13 @@ def get_network(datacenter_id: Optional[str] = None,
122
148
  network objects, the ID of the distributed virtual switch for which the port
123
149
  group belongs. It is useful to differentiate port groups with same name using
124
150
  the distributed virtual switch ID.
151
+ :param Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']] filters: Apply a filter for the discovered network.
125
152
  :param str name: The name of the network. This can be a name or path.
126
153
  """
127
154
  __args__ = dict()
128
155
  __args__['datacenterId'] = datacenter_id
129
156
  __args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
157
+ __args__['filters'] = filters
130
158
  __args__['name'] = name
131
159
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
132
160
  __ret__ = pulumi.runtime.invoke('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult).value
@@ -134,11 +162,13 @@ def get_network(datacenter_id: Optional[str] = None,
134
162
  return AwaitableGetNetworkResult(
135
163
  datacenter_id=pulumi.get(__ret__, 'datacenter_id'),
136
164
  distributed_virtual_switch_uuid=pulumi.get(__ret__, 'distributed_virtual_switch_uuid'),
165
+ filters=pulumi.get(__ret__, 'filters'),
137
166
  id=pulumi.get(__ret__, 'id'),
138
167
  name=pulumi.get(__ret__, 'name'),
139
168
  type=pulumi.get(__ret__, 'type'))
140
169
  def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = None,
141
170
  distributed_virtual_switch_uuid: Optional[pulumi.Input[Optional[str]]] = None,
171
+ filters: Optional[pulumi.Input[Optional[Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']]]]] = None,
142
172
  name: Optional[pulumi.Input[str]] = None,
143
173
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetNetworkResult]:
144
174
  """
@@ -159,6 +189,20 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
159
189
  datacenter_id=datacenter.id)
160
190
  ```
161
191
 
192
+ ### Additional Examples
193
+
194
+ ```python
195
+ import pulumi
196
+ import pulumi_vsphere as vsphere
197
+
198
+ datacenter = vsphere.get_datacenter(name="dc-01")
199
+ my_port_group = vsphere.get_network(datacenter_id=datacenter.id,
200
+ name="VM Network",
201
+ filters=[{
202
+ "network_type": "Network",
203
+ }])
204
+ ```
205
+
162
206
 
163
207
  :param str datacenter_id: The managed object reference ID
164
208
  of the datacenter the network is located in. This can be omitted if the
@@ -168,17 +212,20 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No
168
212
  network objects, the ID of the distributed virtual switch for which the port
169
213
  group belongs. It is useful to differentiate port groups with same name using
170
214
  the distributed virtual switch ID.
215
+ :param Sequence[Union['GetNetworkFilterArgs', 'GetNetworkFilterArgsDict']] filters: Apply a filter for the discovered network.
171
216
  :param str name: The name of the network. This can be a name or path.
172
217
  """
173
218
  __args__ = dict()
174
219
  __args__['datacenterId'] = datacenter_id
175
220
  __args__['distributedVirtualSwitchUuid'] = distributed_virtual_switch_uuid
221
+ __args__['filters'] = filters
176
222
  __args__['name'] = name
177
223
  opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
178
224
  __ret__ = pulumi.runtime.invoke_output('vsphere:index/getNetwork:getNetwork', __args__, opts=opts, typ=GetNetworkResult)
179
225
  return __ret__.apply(lambda __response__: GetNetworkResult(
180
226
  datacenter_id=pulumi.get(__response__, 'datacenter_id'),
181
227
  distributed_virtual_switch_uuid=pulumi.get(__response__, 'distributed_virtual_switch_uuid'),
228
+ filters=pulumi.get(__response__, 'filters'),
182
229
  id=pulumi.get(__response__, 'id'),
183
230
  name=pulumi.get(__response__, 'name'),
184
231
  type=pulumi.get(__response__, 'type')))
@@ -28,7 +28,7 @@ class GetVirtualMachineResult:
28
28
  """
29
29
  A collection of values returned by getVirtualMachine.
30
30
  """
31
- def __init__(__self__, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, change_version=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, datacenter_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, extra_config_reboot_required=None, firmware=None, folder=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, hv_mode=None, id=None, ide_controller_scan_count=None, instance_uuid=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_reservation_locked_to_max=None, memory_share_count=None, memory_share_level=None, moid=None, name=None, nested_hv_enabled=None, network_interface_types=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, replace_trigger=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_scan_count=None, scsi_bus_sharing=None, scsi_controller_scan_count=None, scsi_type=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, sync_time_with_host_periodically=None, tools_upgrade_policy=None, uuid=None, vapp=None, vapp_transports=None, vbs_enabled=None, vvtd_enabled=None):
31
+ def __init__(__self__, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, change_version=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, datacenter_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, extra_config_reboot_required=None, firmware=None, folder=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, hv_mode=None, id=None, ide_controller_scan_count=None, instance_uuid=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_reservation_locked_to_max=None, memory_share_count=None, memory_share_level=None, moid=None, name=None, nested_hv_enabled=None, network_interface_types=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, replace_trigger=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_scan_count=None, scsi_bus_sharing=None, scsi_controller_scan_count=None, scsi_type=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, sync_time_with_host_periodically=None, tools_upgrade_policy=None, uuid=None, vapp=None, vapp_transports=None, vbs_enabled=None, vtpm=None, vvtd_enabled=None):
32
32
  if alternate_guest_name and not isinstance(alternate_guest_name, str):
33
33
  raise TypeError("Expected argument 'alternate_guest_name' to be a str")
34
34
  pulumi.set(__self__, "alternate_guest_name", alternate_guest_name)
@@ -224,6 +224,9 @@ class GetVirtualMachineResult:
224
224
  if vbs_enabled and not isinstance(vbs_enabled, bool):
225
225
  raise TypeError("Expected argument 'vbs_enabled' to be a bool")
226
226
  pulumi.set(__self__, "vbs_enabled", vbs_enabled)
227
+ if vtpm and not isinstance(vtpm, bool):
228
+ raise TypeError("Expected argument 'vtpm' to be a bool")
229
+ pulumi.set(__self__, "vtpm", vtpm)
227
230
  if vvtd_enabled and not isinstance(vvtd_enabled, bool):
228
231
  raise TypeError("Expected argument 'vvtd_enabled' to be a bool")
229
232
  pulumi.set(__self__, "vvtd_enabled", vvtd_enabled)
@@ -635,6 +638,14 @@ class GetVirtualMachineResult:
635
638
  def vbs_enabled(self) -> Optional[bool]:
636
639
  return pulumi.get(self, "vbs_enabled")
637
640
 
641
+ @property
642
+ @pulumi.getter
643
+ def vtpm(self) -> bool:
644
+ """
645
+ Indicates whether a virtual Trusted Platform Module (TPM) device is present on the virtual machine.
646
+ """
647
+ return pulumi.get(self, "vtpm")
648
+
638
649
  @property
639
650
  @pulumi.getter(name="vvtdEnabled")
640
651
  def vvtd_enabled(self) -> Optional[bool]:
@@ -712,6 +723,7 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
712
723
  vapp=self.vapp,
713
724
  vapp_transports=self.vapp_transports,
714
725
  vbs_enabled=self.vbs_enabled,
726
+ vtpm=self.vtpm,
715
727
  vvtd_enabled=self.vvtd_enabled)
716
728
 
717
729
 
@@ -965,6 +977,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
965
977
  vapp=pulumi.get(__ret__, 'vapp'),
966
978
  vapp_transports=pulumi.get(__ret__, 'vapp_transports'),
967
979
  vbs_enabled=pulumi.get(__ret__, 'vbs_enabled'),
980
+ vtpm=pulumi.get(__ret__, 'vtpm'),
968
981
  vvtd_enabled=pulumi.get(__ret__, 'vvtd_enabled'))
969
982
  def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optional[str]]] = None,
970
983
  annotation: Optional[pulumi.Input[Optional[str]]] = None,
@@ -1215,4 +1228,5 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1215
1228
  vapp=pulumi.get(__response__, 'vapp'),
1216
1229
  vapp_transports=pulumi.get(__response__, 'vapp_transports'),
1217
1230
  vbs_enabled=pulumi.get(__response__, 'vbs_enabled'),
1231
+ vtpm=pulumi.get(__response__, 'vtpm'),
1218
1232
  vvtd_enabled=pulumi.get(__response__, 'vvtd_enabled')))
@@ -54,6 +54,7 @@ __all__ = [
54
54
  'VirtualMachineNetworkInterface',
55
55
  'VirtualMachineOvfDeploy',
56
56
  'VirtualMachineVapp',
57
+ 'VirtualMachineVtpm',
57
58
  'VmStoragePolicyTagRule',
58
59
  'VnicIpv4',
59
60
  'VnicIpv6',
@@ -62,6 +63,7 @@ __all__ = [
62
63
  'GetGuestOsCustomizationSpecNetworkInterfaceResult',
63
64
  'GetGuestOsCustomizationSpecWindowsOptionResult',
64
65
  'GetHostVgpuProfileVgpuProfileResult',
66
+ 'GetNetworkFilterResult',
65
67
  'GetVirtualMachineDiskResult',
66
68
  'GetVirtualMachineNetworkInterfaceResult',
67
69
  'GetVirtualMachineVappResult',
@@ -3265,6 +3267,25 @@ class VirtualMachineVapp(dict):
3265
3267
  return pulumi.get(self, "properties")
3266
3268
 
3267
3269
 
3270
+ @pulumi.output_type
3271
+ class VirtualMachineVtpm(dict):
3272
+ def __init__(__self__, *,
3273
+ version: Optional[str] = None):
3274
+ """
3275
+ :param str version: The version of the TPM device. Default is 2.0.
3276
+ """
3277
+ if version is not None:
3278
+ pulumi.set(__self__, "version", version)
3279
+
3280
+ @property
3281
+ @pulumi.getter
3282
+ def version(self) -> Optional[str]:
3283
+ """
3284
+ The version of the TPM device. Default is 2.0.
3285
+ """
3286
+ return pulumi.get(self, "version")
3287
+
3288
+
3268
3289
  @pulumi.output_type
3269
3290
  class VmStoragePolicyTagRule(dict):
3270
3291
  @staticmethod
@@ -3844,6 +3865,25 @@ class GetHostVgpuProfileVgpuProfileResult(dict):
3844
3865
  return pulumi.get(self, "vgpu")
3845
3866
 
3846
3867
 
3868
+ @pulumi.output_type
3869
+ class GetNetworkFilterResult(dict):
3870
+ def __init__(__self__, *,
3871
+ network_type: Optional[str] = None):
3872
+ """
3873
+ :param str network_type: This is required if you have multiple port groups with the same name. This will be one of `DistributedVirtualPortgroup` for distributed port groups, `Network` for standard (host-based) port groups, or `OpaqueNetwork` for networks managed externally, such as those managed by NSX.
3874
+ """
3875
+ if network_type is not None:
3876
+ pulumi.set(__self__, "network_type", network_type)
3877
+
3878
+ @property
3879
+ @pulumi.getter(name="networkType")
3880
+ def network_type(self) -> Optional[str]:
3881
+ """
3882
+ This is required if you have multiple port groups with the same name. This will be one of `DistributedVirtualPortgroup` for distributed port groups, `Network` for standard (host-based) port groups, or `OpaqueNetwork` for networks managed externally, such as those managed by NSX.
3883
+ """
3884
+ return pulumi.get(self, "network_type")
3885
+
3886
+
3847
3887
  @pulumi.output_type
3848
3888
  class GetVirtualMachineDiskResult(dict):
3849
3889
  def __init__(__self__, *,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
3
  "name": "vsphere",
4
- "version": "4.11.5"
4
+ "version": "4.12.0"
5
5
  }
@@ -92,6 +92,7 @@ class VirtualMachineArgs:
92
92
  tools_upgrade_policy: Optional[pulumi.Input[str]] = None,
93
93
  vapp: Optional[pulumi.Input['VirtualMachineVappArgs']] = None,
94
94
  vbs_enabled: Optional[pulumi.Input[bool]] = None,
95
+ vtpm: Optional[pulumi.Input['VirtualMachineVtpmArgs']] = None,
95
96
  vvtd_enabled: Optional[pulumi.Input[bool]] = None,
96
97
  wait_for_guest_ip_timeout: Optional[pulumi.Input[int]] = None,
97
98
  wait_for_guest_net_routable: Optional[pulumi.Input[bool]] = None,
@@ -177,6 +178,7 @@ class VirtualMachineArgs:
177
178
  :param pulumi.Input[str] tools_upgrade_policy: Set the upgrade policy for VMware Tools. Can be one of `manual` or `upgradeAtPowerCycle`.
178
179
  :param pulumi.Input['VirtualMachineVappArgs'] vapp: vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
179
180
  :param pulumi.Input[bool] vbs_enabled: Flag to specify if Virtualization-based security is enabled for this virtual machine.
181
+ :param pulumi.Input['VirtualMachineVtpmArgs'] vtpm: A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
180
182
  :param pulumi.Input[bool] vvtd_enabled: Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD
181
183
  I/O Virtualization (AMD-Vi or IOMMU), is enabled.
182
184
  :param pulumi.Input[int] wait_for_guest_ip_timeout: The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1
@@ -327,6 +329,8 @@ class VirtualMachineArgs:
327
329
  pulumi.set(__self__, "vapp", vapp)
328
330
  if vbs_enabled is not None:
329
331
  pulumi.set(__self__, "vbs_enabled", vbs_enabled)
332
+ if vtpm is not None:
333
+ pulumi.set(__self__, "vtpm", vtpm)
330
334
  if vvtd_enabled is not None:
331
335
  pulumi.set(__self__, "vvtd_enabled", vvtd_enabled)
332
336
  if wait_for_guest_ip_timeout is not None:
@@ -1190,6 +1194,18 @@ class VirtualMachineArgs:
1190
1194
  def vbs_enabled(self, value: Optional[pulumi.Input[bool]]):
1191
1195
  pulumi.set(self, "vbs_enabled", value)
1192
1196
 
1197
+ @property
1198
+ @pulumi.getter
1199
+ def vtpm(self) -> Optional[pulumi.Input['VirtualMachineVtpmArgs']]:
1200
+ """
1201
+ A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
1202
+ """
1203
+ return pulumi.get(self, "vtpm")
1204
+
1205
+ @vtpm.setter
1206
+ def vtpm(self, value: Optional[pulumi.Input['VirtualMachineVtpmArgs']]):
1207
+ pulumi.set(self, "vtpm", value)
1208
+
1193
1209
  @property
1194
1210
  @pulumi.getter(name="vvtdEnabled")
1195
1211
  def vvtd_enabled(self) -> Optional[pulumi.Input[bool]]:
@@ -1328,6 +1344,7 @@ class _VirtualMachineState:
1328
1344
  vbs_enabled: Optional[pulumi.Input[bool]] = None,
1329
1345
  vmware_tools_status: Optional[pulumi.Input[str]] = None,
1330
1346
  vmx_path: Optional[pulumi.Input[str]] = None,
1347
+ vtpm: Optional[pulumi.Input['VirtualMachineVtpmArgs']] = None,
1331
1348
  vvtd_enabled: Optional[pulumi.Input[bool]] = None,
1332
1349
  wait_for_guest_ip_timeout: Optional[pulumi.Input[int]] = None,
1333
1350
  wait_for_guest_net_routable: Optional[pulumi.Input[bool]] = None,
@@ -1423,6 +1440,7 @@ class _VirtualMachineState:
1423
1440
  :param pulumi.Input[bool] vbs_enabled: Flag to specify if Virtualization-based security is enabled for this virtual machine.
1424
1441
  :param pulumi.Input[str] vmware_tools_status: The state of VMware Tools in the guest. This will determine the proper course of action for some device operations.
1425
1442
  :param pulumi.Input[str] vmx_path: The path of the virtual machine configuration file on the datastore in which the virtual machine is placed.
1443
+ :param pulumi.Input['VirtualMachineVtpmArgs'] vtpm: A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
1426
1444
  :param pulumi.Input[bool] vvtd_enabled: Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD
1427
1445
  I/O Virtualization (AMD-Vi or IOMMU), is enabled.
1428
1446
  :param pulumi.Input[int] wait_for_guest_ip_timeout: The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1
@@ -1596,6 +1614,8 @@ class _VirtualMachineState:
1596
1614
  pulumi.set(__self__, "vmware_tools_status", vmware_tools_status)
1597
1615
  if vmx_path is not None:
1598
1616
  pulumi.set(__self__, "vmx_path", vmx_path)
1617
+ if vtpm is not None:
1618
+ pulumi.set(__self__, "vtpm", vtpm)
1599
1619
  if vvtd_enabled is not None:
1600
1620
  pulumi.set(__self__, "vvtd_enabled", vvtd_enabled)
1601
1621
  if wait_for_guest_ip_timeout is not None:
@@ -2588,6 +2608,18 @@ class _VirtualMachineState:
2588
2608
  def vmx_path(self, value: Optional[pulumi.Input[str]]):
2589
2609
  pulumi.set(self, "vmx_path", value)
2590
2610
 
2611
+ @property
2612
+ @pulumi.getter
2613
+ def vtpm(self) -> Optional[pulumi.Input['VirtualMachineVtpmArgs']]:
2614
+ """
2615
+ A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
2616
+ """
2617
+ return pulumi.get(self, "vtpm")
2618
+
2619
+ @vtpm.setter
2620
+ def vtpm(self, value: Optional[pulumi.Input['VirtualMachineVtpmArgs']]):
2621
+ pulumi.set(self, "vtpm", value)
2622
+
2591
2623
  @property
2592
2624
  @pulumi.getter(name="vvtdEnabled")
2593
2625
  def vvtd_enabled(self) -> Optional[pulumi.Input[bool]]:
@@ -2717,6 +2749,7 @@ class VirtualMachine(pulumi.CustomResource):
2717
2749
  tools_upgrade_policy: Optional[pulumi.Input[str]] = None,
2718
2750
  vapp: Optional[pulumi.Input[Union['VirtualMachineVappArgs', 'VirtualMachineVappArgsDict']]] = None,
2719
2751
  vbs_enabled: Optional[pulumi.Input[bool]] = None,
2752
+ vtpm: Optional[pulumi.Input[Union['VirtualMachineVtpmArgs', 'VirtualMachineVtpmArgsDict']]] = None,
2720
2753
  vvtd_enabled: Optional[pulumi.Input[bool]] = None,
2721
2754
  wait_for_guest_ip_timeout: Optional[pulumi.Input[int]] = None,
2722
2755
  wait_for_guest_net_routable: Optional[pulumi.Input[bool]] = None,
@@ -2828,6 +2861,7 @@ class VirtualMachine(pulumi.CustomResource):
2828
2861
  :param pulumi.Input[str] tools_upgrade_policy: Set the upgrade policy for VMware Tools. Can be one of `manual` or `upgradeAtPowerCycle`.
2829
2862
  :param pulumi.Input[Union['VirtualMachineVappArgs', 'VirtualMachineVappArgsDict']] vapp: vApp configuration data for this virtual machine. Can be used to provide configuration data for OVF images.
2830
2863
  :param pulumi.Input[bool] vbs_enabled: Flag to specify if Virtualization-based security is enabled for this virtual machine.
2864
+ :param pulumi.Input[Union['VirtualMachineVtpmArgs', 'VirtualMachineVtpmArgsDict']] vtpm: A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
2831
2865
  :param pulumi.Input[bool] vvtd_enabled: Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD
2832
2866
  I/O Virtualization (AMD-Vi or IOMMU), is enabled.
2833
2867
  :param pulumi.Input[int] wait_for_guest_ip_timeout: The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1
@@ -2954,6 +2988,7 @@ class VirtualMachine(pulumi.CustomResource):
2954
2988
  tools_upgrade_policy: Optional[pulumi.Input[str]] = None,
2955
2989
  vapp: Optional[pulumi.Input[Union['VirtualMachineVappArgs', 'VirtualMachineVappArgsDict']]] = None,
2956
2990
  vbs_enabled: Optional[pulumi.Input[bool]] = None,
2991
+ vtpm: Optional[pulumi.Input[Union['VirtualMachineVtpmArgs', 'VirtualMachineVtpmArgsDict']]] = None,
2957
2992
  vvtd_enabled: Optional[pulumi.Input[bool]] = None,
2958
2993
  wait_for_guest_ip_timeout: Optional[pulumi.Input[int]] = None,
2959
2994
  wait_for_guest_net_routable: Optional[pulumi.Input[bool]] = None,
@@ -3040,6 +3075,7 @@ class VirtualMachine(pulumi.CustomResource):
3040
3075
  __props__.__dict__["tools_upgrade_policy"] = tools_upgrade_policy
3041
3076
  __props__.__dict__["vapp"] = vapp
3042
3077
  __props__.__dict__["vbs_enabled"] = vbs_enabled
3078
+ __props__.__dict__["vtpm"] = vtpm
3043
3079
  __props__.__dict__["vvtd_enabled"] = vvtd_enabled
3044
3080
  __props__.__dict__["wait_for_guest_ip_timeout"] = wait_for_guest_ip_timeout
3045
3081
  __props__.__dict__["wait_for_guest_net_routable"] = wait_for_guest_net_routable
@@ -3147,6 +3183,7 @@ class VirtualMachine(pulumi.CustomResource):
3147
3183
  vbs_enabled: Optional[pulumi.Input[bool]] = None,
3148
3184
  vmware_tools_status: Optional[pulumi.Input[str]] = None,
3149
3185
  vmx_path: Optional[pulumi.Input[str]] = None,
3186
+ vtpm: Optional[pulumi.Input[Union['VirtualMachineVtpmArgs', 'VirtualMachineVtpmArgsDict']]] = None,
3150
3187
  vvtd_enabled: Optional[pulumi.Input[bool]] = None,
3151
3188
  wait_for_guest_ip_timeout: Optional[pulumi.Input[int]] = None,
3152
3189
  wait_for_guest_net_routable: Optional[pulumi.Input[bool]] = None,
@@ -3247,6 +3284,7 @@ class VirtualMachine(pulumi.CustomResource):
3247
3284
  :param pulumi.Input[bool] vbs_enabled: Flag to specify if Virtualization-based security is enabled for this virtual machine.
3248
3285
  :param pulumi.Input[str] vmware_tools_status: The state of VMware Tools in the guest. This will determine the proper course of action for some device operations.
3249
3286
  :param pulumi.Input[str] vmx_path: The path of the virtual machine configuration file on the datastore in which the virtual machine is placed.
3287
+ :param pulumi.Input[Union['VirtualMachineVtpmArgs', 'VirtualMachineVtpmArgsDict']] vtpm: A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
3250
3288
  :param pulumi.Input[bool] vvtd_enabled: Flag to specify if I/O MMU virtualization, also called Intel Virtualization Technology for Directed I/O (VT-d) and AMD
3251
3289
  I/O Virtualization (AMD-Vi or IOMMU), is enabled.
3252
3290
  :param pulumi.Input[int] wait_for_guest_ip_timeout: The amount of time, in minutes, to wait for an available IP address on this virtual machine. A value less than 1
@@ -3342,6 +3380,7 @@ class VirtualMachine(pulumi.CustomResource):
3342
3380
  __props__.__dict__["vbs_enabled"] = vbs_enabled
3343
3381
  __props__.__dict__["vmware_tools_status"] = vmware_tools_status
3344
3382
  __props__.__dict__["vmx_path"] = vmx_path
3383
+ __props__.__dict__["vtpm"] = vtpm
3345
3384
  __props__.__dict__["vvtd_enabled"] = vvtd_enabled
3346
3385
  __props__.__dict__["wait_for_guest_ip_timeout"] = wait_for_guest_ip_timeout
3347
3386
  __props__.__dict__["wait_for_guest_net_routable"] = wait_for_guest_net_routable
@@ -4003,6 +4042,14 @@ class VirtualMachine(pulumi.CustomResource):
4003
4042
  """
4004
4043
  return pulumi.get(self, "vmx_path")
4005
4044
 
4045
+ @property
4046
+ @pulumi.getter
4047
+ def vtpm(self) -> pulumi.Output[Optional['outputs.VirtualMachineVtpm']]:
4048
+ """
4049
+ A specification for a virtual Trusted Platform Module (TPM) device on the virtual machine.
4050
+ """
4051
+ return pulumi.get(self, "vtpm")
4052
+
4006
4053
  @property
4007
4054
  @pulumi.getter(name="vvtdEnabled")
4008
4055
  def vvtd_enabled(self) -> pulumi.Output[Optional[bool]]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pulumi_vsphere
3
- Version: 4.11.5
3
+ Version: 4.12.0
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.5"
8
+ version = "4.12.0"
9
9
  [project.license]
10
10
  text = "Apache-2.0"
11
11
  [project.urls]