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
@@ -657,7 +657,6 @@ class ResourcePool(pulumi.CustomResource):
657
657
  The following example sets up a resource pool in an existing compute cluster
658
658
  with the default settings for CPU and memory reservations, shares, and limits.
659
659
 
660
- <!--Start PulumiCodeChooser -->
661
660
  ```python
662
661
  import pulumi
663
662
  import pulumi_vsphere as vsphere
@@ -665,28 +664,25 @@ class ResourcePool(pulumi.CustomResource):
665
664
  datacenter = vsphere.get_datacenter(name="dc-01")
666
665
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
667
666
  datacenter_id=datacenter.id)
668
- resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
667
+ resource_pool = vsphere.ResourcePool("resource_pool",
668
+ name="resource-pool-01",
669
+ parent_resource_pool_id=compute_cluster.resource_pool_id)
669
670
  ```
670
- <!--End PulumiCodeChooser -->
671
671
 
672
672
  A virtual machine resource could be targeted to use the default resource pool
673
673
  of the cluster using the following:
674
674
 
675
- <!--Start PulumiCodeChooser -->
676
675
  ```python
677
676
  import pulumi
678
677
  import pulumi_vsphere as vsphere
679
678
 
680
- vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
681
- # ... other configuration ...
679
+ vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
682
680
  ```
683
- <!--End PulumiCodeChooser -->
684
681
 
685
682
  The following example sets up a parent resource pool in an existing compute cluster
686
683
  with a child resource pool nested below. Each resource pool is configured with
687
684
  the default settings for CPU and memory reservations, shares, and limits.
688
685
 
689
- <!--Start PulumiCodeChooser -->
690
686
  ```python
691
687
  import pulumi
692
688
  import pulumi_vsphere as vsphere
@@ -694,10 +690,13 @@ class ResourcePool(pulumi.CustomResource):
694
690
  datacenter = vsphere.get_datacenter(name="dc-01")
695
691
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
696
692
  datacenter_id=datacenter.id)
697
- resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
698
- resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
693
+ resource_pool_parent = vsphere.ResourcePool("resource_pool_parent",
694
+ name="parent",
695
+ parent_resource_pool_id=compute_cluster.resource_pool_id)
696
+ resource_pool_child = vsphere.ResourcePool("resource_pool_child",
697
+ name="child",
698
+ parent_resource_pool_id=resource_pool_parent.id)
699
699
  ```
700
- <!--End PulumiCodeChooser -->
701
700
 
702
701
  ## Importing
703
702
 
@@ -780,7 +779,6 @@ class ResourcePool(pulumi.CustomResource):
780
779
  The following example sets up a resource pool in an existing compute cluster
781
780
  with the default settings for CPU and memory reservations, shares, and limits.
782
781
 
783
- <!--Start PulumiCodeChooser -->
784
782
  ```python
785
783
  import pulumi
786
784
  import pulumi_vsphere as vsphere
@@ -788,28 +786,25 @@ class ResourcePool(pulumi.CustomResource):
788
786
  datacenter = vsphere.get_datacenter(name="dc-01")
789
787
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
790
788
  datacenter_id=datacenter.id)
791
- resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
789
+ resource_pool = vsphere.ResourcePool("resource_pool",
790
+ name="resource-pool-01",
791
+ parent_resource_pool_id=compute_cluster.resource_pool_id)
792
792
  ```
793
- <!--End PulumiCodeChooser -->
794
793
 
795
794
  A virtual machine resource could be targeted to use the default resource pool
796
795
  of the cluster using the following:
797
796
 
798
- <!--Start PulumiCodeChooser -->
799
797
  ```python
800
798
  import pulumi
801
799
  import pulumi_vsphere as vsphere
802
800
 
803
- vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
804
- # ... other configuration ...
801
+ vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
805
802
  ```
806
- <!--End PulumiCodeChooser -->
807
803
 
808
804
  The following example sets up a parent resource pool in an existing compute cluster
809
805
  with a child resource pool nested below. Each resource pool is configured with
810
806
  the default settings for CPU and memory reservations, shares, and limits.
811
807
 
812
- <!--Start PulumiCodeChooser -->
813
808
  ```python
814
809
  import pulumi
815
810
  import pulumi_vsphere as vsphere
@@ -817,10 +812,13 @@ class ResourcePool(pulumi.CustomResource):
817
812
  datacenter = vsphere.get_datacenter(name="dc-01")
818
813
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
819
814
  datacenter_id=datacenter.id)
820
- resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
821
- resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
815
+ resource_pool_parent = vsphere.ResourcePool("resource_pool_parent",
816
+ name="parent",
817
+ parent_resource_pool_id=compute_cluster.resource_pool_id)
818
+ resource_pool_child = vsphere.ResourcePool("resource_pool_child",
819
+ name="child",
820
+ parent_resource_pool_id=resource_pool_parent.id)
822
821
  ```
823
- <!--End PulumiCodeChooser -->
824
822
 
825
823
  ## Importing
826
824