pulumi-vsphere 4.11.0a1713340048__py3-none-any.whl → 4.11.0a1713905355__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 (51) hide show
  1. pulumi_vsphere/_inputs.py +96 -230
  2. pulumi_vsphere/compute_cluster.py +700 -1477
  3. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +14 -16
  4. pulumi_vsphere/datacenter.py +8 -12
  5. pulumi_vsphere/datastore_cluster.py +154 -350
  6. pulumi_vsphere/distributed_port_group.py +70 -175
  7. pulumi_vsphere/distributed_virtual_switch.py +308 -798
  8. pulumi_vsphere/file.py +16 -24
  9. pulumi_vsphere/get_compute_cluster.py +0 -4
  10. pulumi_vsphere/get_compute_cluster_host_group.py +8 -10
  11. pulumi_vsphere/get_content_library.py +0 -4
  12. pulumi_vsphere/get_custom_attribute.py +0 -4
  13. pulumi_vsphere/get_datacenter.py +0 -4
  14. pulumi_vsphere/get_datastore.py +0 -4
  15. pulumi_vsphere/get_datastore_cluster.py +0 -4
  16. pulumi_vsphere/get_datastore_stats.py +4 -12
  17. pulumi_vsphere/get_distributed_virtual_switch.py +2 -4
  18. pulumi_vsphere/get_dynamic.py +4 -8
  19. pulumi_vsphere/get_folder.py +0 -4
  20. pulumi_vsphere/get_guest_os_customization.py +0 -4
  21. pulumi_vsphere/get_host.py +0 -4
  22. pulumi_vsphere/get_host_pci_device.py +4 -12
  23. pulumi_vsphere/get_host_thumbprint.py +0 -4
  24. pulumi_vsphere/get_host_vgpu_profile.py +0 -8
  25. pulumi_vsphere/get_license.py +0 -4
  26. pulumi_vsphere/get_network.py +0 -4
  27. pulumi_vsphere/get_policy.py +0 -4
  28. pulumi_vsphere/get_resource_pool.py +2 -10
  29. pulumi_vsphere/get_role.py +0 -4
  30. pulumi_vsphere/get_tag.py +0 -4
  31. pulumi_vsphere/get_tag_category.py +0 -4
  32. pulumi_vsphere/get_vapp_container.py +0 -4
  33. pulumi_vsphere/get_virtual_machine.py +0 -8
  34. pulumi_vsphere/get_vmfs_disks.py +0 -4
  35. pulumi_vsphere/guest_os_customization.py +50 -0
  36. pulumi_vsphere/ha_vm_override.py +189 -378
  37. pulumi_vsphere/host.py +0 -8
  38. pulumi_vsphere/host_port_group.py +12 -12
  39. pulumi_vsphere/host_virtual_switch.py +140 -287
  40. pulumi_vsphere/license.py +0 -32
  41. pulumi_vsphere/outputs.py +96 -230
  42. pulumi_vsphere/resource_pool.py +20 -22
  43. pulumi_vsphere/virtual_machine.py +599 -739
  44. pulumi_vsphere/virtual_machine_snapshot.py +6 -10
  45. pulumi_vsphere/vm_storage_policy.py +72 -84
  46. pulumi_vsphere/vnic.py +8 -8
  47. {pulumi_vsphere-4.11.0a1713340048.dist-info → pulumi_vsphere-4.11.0a1713905355.dist-info}/METADATA +1 -1
  48. pulumi_vsphere-4.11.0a1713905355.dist-info/RECORD +82 -0
  49. pulumi_vsphere-4.11.0a1713340048.dist-info/RECORD +0 -82
  50. {pulumi_vsphere-4.11.0a1713340048.dist-info → pulumi_vsphere-4.11.0a1713905355.dist-info}/WHEEL +0 -0
  51. {pulumi_vsphere-4.11.0a1713340048.dist-info → pulumi_vsphere-4.11.0a1713905355.dist-info}/top_level.txt +0 -0
@@ -260,7 +260,6 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
260
260
  then creates an affinity rule for these two virtual machines, ensuring they
261
261
  will run on the same host whenever possible.
262
262
 
263
- <!--Start PulumiCodeChooser -->
264
263
  ```python
265
264
  import pulumi
266
265
  import pulumi_vsphere as vsphere
@@ -275,6 +274,7 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
275
274
  vm = []
276
275
  for range in [{"value": i} for i in range(0, 2)]:
277
276
  vm.append(vsphere.VirtualMachine(f"vm-{range['value']}",
277
+ name=f"foo-{range['value']}",
278
278
  resource_pool_id=cluster.resource_pool_id,
279
279
  datastore_id=datastore.id,
280
280
  num_cpus=1,
@@ -287,17 +287,16 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
287
287
  label="disk0",
288
288
  size=20,
289
289
  )]))
290
- vm_affinity_rule = vsphere.ComputeClusterVmAffinityRule("vmAffinityRule",
290
+ vm_affinity_rule = vsphere.ComputeClusterVmAffinityRule("vm_affinity_rule",
291
+ name="vm-affinity-rule",
291
292
  compute_cluster_id=cluster.id,
292
293
  virtual_machine_ids=[v.id for k, v in vm])
293
294
  ```
294
- <!--End PulumiCodeChooser -->
295
295
 
296
296
  The following example creates an affinity rule for a set of virtual machines
297
297
  in the cluster by looking up the virtual machine UUIDs from the
298
298
  `VirtualMachine` data source.
299
299
 
300
- <!--Start PulumiCodeChooser -->
301
300
  ```python
302
301
  import pulumi
303
302
  import pulumi_vsphere as vsphere
@@ -309,14 +308,14 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
309
308
  datacenter = vsphere.get_datacenter(name="dc-01")
310
309
  cluster = vsphere.get_compute_cluster(name="cluster-01",
311
310
  datacenter_id=datacenter.id)
312
- vms_virtual_machine = [vsphere.get_virtual_machine(name=vms[__index],
311
+ vms_get_virtual_machine = [vsphere.get_virtual_machine(name=vms[__index],
313
312
  datacenter_id=datacenter.id) for __index in range(len(vms))]
314
- vm_affinity_rule = vsphere.ComputeClusterVmAffinityRule("vmAffinityRule",
313
+ vm_affinity_rule = vsphere.ComputeClusterVmAffinityRule("vm_affinity_rule",
314
+ name="vm-affinity-rule",
315
315
  enabled=True,
316
316
  compute_cluster_id=cluster.id,
317
- virtual_machine_ids=[__item.id for __item in vms_virtual_machine])
317
+ virtual_machine_ids=[__item.id for __item in vms_get_virtual_machine])
318
318
  ```
319
- <!--End PulumiCodeChooser -->
320
319
 
321
320
  ## Importing
322
321
 
@@ -379,7 +378,6 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
379
378
  then creates an affinity rule for these two virtual machines, ensuring they
380
379
  will run on the same host whenever possible.
381
380
 
382
- <!--Start PulumiCodeChooser -->
383
381
  ```python
384
382
  import pulumi
385
383
  import pulumi_vsphere as vsphere
@@ -394,6 +392,7 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
394
392
  vm = []
395
393
  for range in [{"value": i} for i in range(0, 2)]:
396
394
  vm.append(vsphere.VirtualMachine(f"vm-{range['value']}",
395
+ name=f"foo-{range['value']}",
397
396
  resource_pool_id=cluster.resource_pool_id,
398
397
  datastore_id=datastore.id,
399
398
  num_cpus=1,
@@ -406,17 +405,16 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
406
405
  label="disk0",
407
406
  size=20,
408
407
  )]))
409
- vm_affinity_rule = vsphere.ComputeClusterVmAffinityRule("vmAffinityRule",
408
+ vm_affinity_rule = vsphere.ComputeClusterVmAffinityRule("vm_affinity_rule",
409
+ name="vm-affinity-rule",
410
410
  compute_cluster_id=cluster.id,
411
411
  virtual_machine_ids=[v.id for k, v in vm])
412
412
  ```
413
- <!--End PulumiCodeChooser -->
414
413
 
415
414
  The following example creates an affinity rule for a set of virtual machines
416
415
  in the cluster by looking up the virtual machine UUIDs from the
417
416
  `VirtualMachine` data source.
418
417
 
419
- <!--Start PulumiCodeChooser -->
420
418
  ```python
421
419
  import pulumi
422
420
  import pulumi_vsphere as vsphere
@@ -428,14 +426,14 @@ class ComputeClusterVmAffinityRule(pulumi.CustomResource):
428
426
  datacenter = vsphere.get_datacenter(name="dc-01")
429
427
  cluster = vsphere.get_compute_cluster(name="cluster-01",
430
428
  datacenter_id=datacenter.id)
431
- vms_virtual_machine = [vsphere.get_virtual_machine(name=vms[__index],
429
+ vms_get_virtual_machine = [vsphere.get_virtual_machine(name=vms[__index],
432
430
  datacenter_id=datacenter.id) for __index in range(len(vms))]
433
- vm_affinity_rule = vsphere.ComputeClusterVmAffinityRule("vmAffinityRule",
431
+ vm_affinity_rule = vsphere.ComputeClusterVmAffinityRule("vm_affinity_rule",
432
+ name="vm-affinity-rule",
434
433
  enabled=True,
435
434
  compute_cluster_id=cluster.id,
436
- virtual_machine_ids=[__item.id for __item in vms_virtual_machine])
435
+ virtual_machine_ids=[__item.id for __item in vms_get_virtual_machine])
437
436
  ```
438
- <!--End PulumiCodeChooser -->
439
437
 
440
438
  ## Importing
441
439
 
@@ -241,25 +241,23 @@ class Datacenter(pulumi.CustomResource):
241
241
 
242
242
  ### Create datacenter on the root folder
243
243
 
244
- <!--Start PulumiCodeChooser -->
245
244
  ```python
246
245
  import pulumi
247
246
  import pulumi_vsphere as vsphere
248
247
 
249
- prod_datacenter = vsphere.Datacenter("prodDatacenter")
248
+ prod_datacenter = vsphere.Datacenter("prod_datacenter", name="my_prod_datacenter")
250
249
  ```
251
- <!--End PulumiCodeChooser -->
252
250
 
253
251
  ### Create datacenter on a subfolder
254
252
 
255
- <!--Start PulumiCodeChooser -->
256
253
  ```python
257
254
  import pulumi
258
255
  import pulumi_vsphere as vsphere
259
256
 
260
- research_datacenter = vsphere.Datacenter("researchDatacenter", folder="/research/")
257
+ research_datacenter = vsphere.Datacenter("research_datacenter",
258
+ name="my_research_datacenter",
259
+ folder="/research/")
261
260
  ```
262
- <!--End PulumiCodeChooser -->
263
261
 
264
262
  ## Importing
265
263
 
@@ -304,25 +302,23 @@ class Datacenter(pulumi.CustomResource):
304
302
 
305
303
  ### Create datacenter on the root folder
306
304
 
307
- <!--Start PulumiCodeChooser -->
308
305
  ```python
309
306
  import pulumi
310
307
  import pulumi_vsphere as vsphere
311
308
 
312
- prod_datacenter = vsphere.Datacenter("prodDatacenter")
309
+ prod_datacenter = vsphere.Datacenter("prod_datacenter", name="my_prod_datacenter")
313
310
  ```
314
- <!--End PulumiCodeChooser -->
315
311
 
316
312
  ### Create datacenter on a subfolder
317
313
 
318
- <!--Start PulumiCodeChooser -->
319
314
  ```python
320
315
  import pulumi
321
316
  import pulumi_vsphere as vsphere
322
317
 
323
- research_datacenter = vsphere.Datacenter("researchDatacenter", folder="/research/")
318
+ research_datacenter = vsphere.Datacenter("research_datacenter",
319
+ name="my_research_datacenter",
320
+ folder="/research/")
324
321
  ```
325
- <!--End PulumiCodeChooser -->
326
322
 
327
323
  ## Importing
328
324