pulumi-vsphere 4.10.0a1710160860__py3-none-any.whl → 4.13.0a1736836157__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 (85) hide show
  1. pulumi_vsphere/__init__.py +30 -0
  2. pulumi_vsphere/_inputs.py +1816 -277
  3. pulumi_vsphere/_utilities.py +41 -5
  4. pulumi_vsphere/compute_cluster.py +937 -1488
  5. pulumi_vsphere/compute_cluster_host_group.py +67 -2
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +69 -34
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +41 -2
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +205 -2
  9. pulumi_vsphere/compute_cluster_vm_group.py +198 -2
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +73 -2
  11. pulumi_vsphere/config/__init__.pyi +5 -0
  12. pulumi_vsphere/config/vars.py +5 -0
  13. pulumi_vsphere/content_library.py +113 -12
  14. pulumi_vsphere/content_library_item.py +143 -2
  15. pulumi_vsphere/custom_attribute.py +77 -2
  16. pulumi_vsphere/datacenter.py +48 -40
  17. pulumi_vsphere/datastore_cluster.py +217 -366
  18. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +159 -2
  19. pulumi_vsphere/distributed_port_group.py +416 -189
  20. pulumi_vsphere/distributed_virtual_switch.py +571 -830
  21. pulumi_vsphere/dpm_host_override.py +63 -2
  22. pulumi_vsphere/drs_vm_override.py +67 -2
  23. pulumi_vsphere/entity_permissions.py +64 -38
  24. pulumi_vsphere/file.py +21 -24
  25. pulumi_vsphere/folder.py +148 -30
  26. pulumi_vsphere/get_compute_cluster.py +16 -9
  27. pulumi_vsphere/get_compute_cluster_host_group.py +36 -25
  28. pulumi_vsphere/get_content_library.py +23 -15
  29. pulumi_vsphere/get_content_library_item.py +29 -13
  30. pulumi_vsphere/get_custom_attribute.py +14 -9
  31. pulumi_vsphere/get_datacenter.py +30 -12
  32. pulumi_vsphere/get_datastore.py +44 -12
  33. pulumi_vsphere/get_datastore_cluster.py +31 -10
  34. pulumi_vsphere/get_datastore_stats.py +208 -0
  35. pulumi_vsphere/get_distributed_virtual_switch.py +18 -9
  36. pulumi_vsphere/get_dynamic.py +35 -25
  37. pulumi_vsphere/get_folder.py +23 -11
  38. pulumi_vsphere/get_guest_os_customization.py +26 -52
  39. pulumi_vsphere/get_host.py +16 -9
  40. pulumi_vsphere/get_host_base_images.py +104 -0
  41. pulumi_vsphere/get_host_pci_device.py +28 -19
  42. pulumi_vsphere/get_host_thumbprint.py +41 -25
  43. pulumi_vsphere/get_host_vgpu_profile.py +195 -0
  44. pulumi_vsphere/get_license.py +20 -10
  45. pulumi_vsphere/get_network.py +80 -24
  46. pulumi_vsphere/get_ovf_vm_template.py +56 -5
  47. pulumi_vsphere/get_policy.py +13 -9
  48. pulumi_vsphere/get_resource_pool.py +29 -23
  49. pulumi_vsphere/get_role.py +23 -13
  50. pulumi_vsphere/get_tag.py +16 -9
  51. pulumi_vsphere/get_tag_category.py +16 -9
  52. pulumi_vsphere/get_vapp_container.py +15 -9
  53. pulumi_vsphere/get_virtual_machine.py +233 -48
  54. pulumi_vsphere/get_vmfs_disks.py +18 -9
  55. pulumi_vsphere/guest_os_customization.py +60 -5
  56. pulumi_vsphere/ha_vm_override.py +352 -380
  57. pulumi_vsphere/host.py +244 -64
  58. pulumi_vsphere/host_port_group.py +27 -24
  59. pulumi_vsphere/host_virtual_switch.py +209 -289
  60. pulumi_vsphere/license.py +5 -32
  61. pulumi_vsphere/nas_datastore.py +74 -9
  62. pulumi_vsphere/offline_software_depot.py +185 -0
  63. pulumi_vsphere/outputs.py +774 -256
  64. pulumi_vsphere/provider.py +7 -6
  65. pulumi_vsphere/pulumi-plugin.json +2 -1
  66. pulumi_vsphere/resource_pool.py +168 -411
  67. pulumi_vsphere/role.py +33 -2
  68. pulumi_vsphere/storage_drs_vm_override.py +133 -2
  69. pulumi_vsphere/supervisor.py +967 -0
  70. pulumi_vsphere/tag.py +159 -2
  71. pulumi_vsphere/tag_category.py +83 -2
  72. pulumi_vsphere/vapp_container.py +163 -2
  73. pulumi_vsphere/vapp_entity.py +147 -2
  74. pulumi_vsphere/virtual_disk.py +123 -36
  75. pulumi_vsphere/virtual_machine.py +759 -829
  76. pulumi_vsphere/virtual_machine_class.py +447 -0
  77. pulumi_vsphere/virtual_machine_snapshot.py +13 -12
  78. pulumi_vsphere/vm_storage_policy.py +120 -127
  79. pulumi_vsphere/vmfs_datastore.py +271 -2
  80. pulumi_vsphere/vnic.py +104 -105
  81. {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/METADATA +7 -6
  82. pulumi_vsphere-4.13.0a1736836157.dist-info/RECORD +86 -0
  83. {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/WHEEL +1 -1
  84. pulumi_vsphere-4.10.0a1710160860.dist-info/RECORD +0 -80
  85. {pulumi_vsphere-4.10.0a1710160860.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = [
@@ -96,7 +101,6 @@ def get_vmfs_disks(filter: Optional[str] = None,
96
101
 
97
102
  ## Example Usage
98
103
 
99
- <!--Start PulumiCodeChooser -->
100
104
  ```python
101
105
  import pulumi
102
106
  import pulumi_vsphere as vsphere
@@ -108,7 +112,6 @@ def get_vmfs_disks(filter: Optional[str] = None,
108
112
  rescan=True,
109
113
  filter="mpx.vmhba1:C0:T[12]:L0")
110
114
  ```
111
- <!--End PulumiCodeChooser -->
112
115
 
113
116
 
114
117
  :param str filter: A regular expression to filter the disks against. Only
@@ -136,13 +139,10 @@ def get_vmfs_disks(filter: Optional[str] = None,
136
139
  host_system_id=pulumi.get(__ret__, 'host_system_id'),
137
140
  id=pulumi.get(__ret__, 'id'),
138
141
  rescan=pulumi.get(__ret__, 'rescan'))
139
-
140
-
141
- @_utilities.lift_output_func(get_vmfs_disks)
142
142
  def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
143
143
  host_system_id: Optional[pulumi.Input[str]] = None,
144
144
  rescan: Optional[pulumi.Input[Optional[bool]]] = None,
145
- opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVmfsDisksResult]:
145
+ opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetVmfsDisksResult]:
146
146
  """
147
147
  The `get_vmfs_disks` data source can be used to discover the storage
148
148
  devices available on an ESXi host. This data source can be combined with the
@@ -151,7 +151,6 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
151
151
 
152
152
  ## Example Usage
153
153
 
154
- <!--Start PulumiCodeChooser -->
155
154
  ```python
156
155
  import pulumi
157
156
  import pulumi_vsphere as vsphere
@@ -163,7 +162,6 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
163
162
  rescan=True,
164
163
  filter="mpx.vmhba1:C0:T[12]:L0")
165
164
  ```
166
- <!--End PulumiCodeChooser -->
167
165
 
168
166
 
169
167
  :param str filter: A regular expression to filter the disks against. Only
@@ -178,4 +176,15 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
178
176
  searching for disks. This may lengthen the time it takes to perform the
179
177
  search. Default: `false`.
180
178
  """
181
- ...
179
+ __args__ = dict()
180
+ __args__['filter'] = filter
181
+ __args__['hostSystemId'] = host_system_id
182
+ __args__['rescan'] = rescan
183
+ opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
184
+ __ret__ = pulumi.runtime.invoke_output('vsphere:index/getVmfsDisks:getVmfsDisks', __args__, opts=opts, typ=GetVmfsDisksResult)
185
+ return __ret__.apply(lambda __response__: GetVmfsDisksResult(
186
+ disks=pulumi.get(__response__, 'disks'),
187
+ filter=pulumi.get(__response__, 'filter'),
188
+ host_system_id=pulumi.get(__response__, 'host_system_id'),
189
+ id=pulumi.get(__response__, 'id'),
190
+ rescan=pulumi.get(__response__, 'rescan')))
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
  from ._inputs import *
@@ -194,7 +199,7 @@ class GuestOsCustomization(pulumi.CustomResource):
194
199
  opts: Optional[pulumi.ResourceOptions] = None,
195
200
  description: Optional[pulumi.Input[str]] = None,
196
201
  name: Optional[pulumi.Input[str]] = None,
197
- spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
202
+ spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
198
203
  type: Optional[pulumi.Input[str]] = None,
199
204
  __props__=None):
200
205
  """
@@ -202,11 +207,36 @@ class GuestOsCustomization(pulumi.CustomResource):
202
207
 
203
208
  > **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
204
209
 
210
+ ## Example Usage
211
+
212
+ ```python
213
+ import pulumi
214
+ import pulumi_vsphere as vsphere
215
+
216
+ windows = vsphere.GuestOsCustomization("windows",
217
+ name="windows",
218
+ type="Windows",
219
+ spec={
220
+ "windows_options": {
221
+ "run_once_command_lists": [
222
+ "command-1",
223
+ "command-2",
224
+ ],
225
+ "computer_name": "windows",
226
+ "auto_logon": False,
227
+ "auto_logon_count": 0,
228
+ "admin_password": "VMware1!",
229
+ "time_zone": 4,
230
+ "workgroup": "workgroup",
231
+ },
232
+ })
233
+ ```
234
+
205
235
  :param str resource_name: The name of the resource.
206
236
  :param pulumi.ResourceOptions opts: Options for the resource.
207
237
  :param pulumi.Input[str] description: The description for the customization specification.
208
238
  :param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
209
- :param pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
239
+ :param pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
210
240
  :param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
211
241
  """
212
242
  ...
@@ -220,6 +250,31 @@ class GuestOsCustomization(pulumi.CustomResource):
220
250
 
221
251
  > **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
222
252
 
253
+ ## Example Usage
254
+
255
+ ```python
256
+ import pulumi
257
+ import pulumi_vsphere as vsphere
258
+
259
+ windows = vsphere.GuestOsCustomization("windows",
260
+ name="windows",
261
+ type="Windows",
262
+ spec={
263
+ "windows_options": {
264
+ "run_once_command_lists": [
265
+ "command-1",
266
+ "command-2",
267
+ ],
268
+ "computer_name": "windows",
269
+ "auto_logon": False,
270
+ "auto_logon_count": 0,
271
+ "admin_password": "VMware1!",
272
+ "time_zone": 4,
273
+ "workgroup": "workgroup",
274
+ },
275
+ })
276
+ ```
277
+
223
278
  :param str resource_name: The name of the resource.
224
279
  :param GuestOsCustomizationArgs args: The arguments to use to populate this resource's properties.
225
280
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -237,7 +292,7 @@ class GuestOsCustomization(pulumi.CustomResource):
237
292
  opts: Optional[pulumi.ResourceOptions] = None,
238
293
  description: Optional[pulumi.Input[str]] = None,
239
294
  name: Optional[pulumi.Input[str]] = None,
240
- spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
295
+ spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
241
296
  type: Optional[pulumi.Input[str]] = None,
242
297
  __props__=None):
243
298
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -272,7 +327,7 @@ class GuestOsCustomization(pulumi.CustomResource):
272
327
  description: Optional[pulumi.Input[str]] = None,
273
328
  last_update_time: Optional[pulumi.Input[str]] = None,
274
329
  name: Optional[pulumi.Input[str]] = None,
275
- spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
330
+ spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
276
331
  type: Optional[pulumi.Input[str]] = None) -> 'GuestOsCustomization':
277
332
  """
278
333
  Get an existing GuestOsCustomization resource's state with the given name, id, and optional extra
@@ -285,7 +340,7 @@ class GuestOsCustomization(pulumi.CustomResource):
285
340
  :param pulumi.Input[str] description: The description for the customization specification.
286
341
  :param pulumi.Input[str] last_update_time: The time of last modification to the customization specification.
287
342
  :param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
288
- :param pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
343
+ :param pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
289
344
  :param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
290
345
  """
291
346
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))