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
pulumi_vsphere/host.py CHANGED
@@ -616,7 +616,6 @@ class Host(pulumi.CustomResource):
616
616
 
617
617
  ### Create a standalone host
618
618
 
619
- <!--Start PulumiCodeChooser -->
620
619
  ```python
621
620
  import pulumi
622
621
  import pulumi_vsphere as vsphere
@@ -632,11 +631,9 @@ class Host(pulumi.CustomResource):
632
631
  thumbprint=thumbprint.id,
633
632
  datacenter=datacenter.id)
634
633
  ```
635
- <!--End PulumiCodeChooser -->
636
634
 
637
635
  ### Create host in a compute cluster
638
636
 
639
- <!--Start PulumiCodeChooser -->
640
637
  ```python
641
638
  import pulumi
642
639
  import pulumi_vsphere as vsphere
@@ -654,7 +651,6 @@ class Host(pulumi.CustomResource):
654
651
  thumbprint=thumbprint.id,
655
652
  cluster=cluster.id)
656
653
  ```
657
- <!--End PulumiCodeChooser -->
658
654
 
659
655
  ## Importing
660
656
 
@@ -725,7 +721,6 @@ class Host(pulumi.CustomResource):
725
721
 
726
722
  ### Create a standalone host
727
723
 
728
- <!--Start PulumiCodeChooser -->
729
724
  ```python
730
725
  import pulumi
731
726
  import pulumi_vsphere as vsphere
@@ -741,11 +736,9 @@ class Host(pulumi.CustomResource):
741
736
  thumbprint=thumbprint.id,
742
737
  datacenter=datacenter.id)
743
738
  ```
744
- <!--End PulumiCodeChooser -->
745
739
 
746
740
  ### Create host in a compute cluster
747
741
 
748
- <!--Start PulumiCodeChooser -->
749
742
  ```python
750
743
  import pulumi
751
744
  import pulumi_vsphere as vsphere
@@ -763,7 +756,6 @@ class Host(pulumi.CustomResource):
763
756
  thumbprint=thumbprint.id,
764
757
  cluster=cluster.id)
765
758
  ```
766
- <!--End PulumiCodeChooser -->
767
759
 
768
760
  ## Importing
769
761
 
@@ -696,7 +696,6 @@ class HostPortGroup(pulumi.CustomResource):
696
696
 
697
697
  **Create a Virtual Switch and Bind a Port Group:**
698
698
 
699
- <!--Start PulumiCodeChooser -->
700
699
  ```python
701
700
  import pulumi
702
701
  import pulumi_vsphere as vsphere
@@ -704,7 +703,8 @@ class HostPortGroup(pulumi.CustomResource):
704
703
  datacenter = vsphere.get_datacenter(name="dc-01")
705
704
  host = vsphere.get_host(name="esxi-01.example.com",
706
705
  datacenter_id=datacenter.id)
707
- host_virtual_switch = vsphere.HostVirtualSwitch("hostVirtualSwitch",
706
+ host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
707
+ name="switch-01",
708
708
  host_system_id=host.id,
709
709
  network_adapters=[
710
710
  "vmnic0",
@@ -713,10 +713,10 @@ class HostPortGroup(pulumi.CustomResource):
713
713
  active_nics=["vmnic0"],
714
714
  standby_nics=["vmnic1"])
715
715
  pg = vsphere.HostPortGroup("pg",
716
+ name="portgroup-01",
716
717
  host_system_id=host.id,
717
718
  virtual_switch_name=host_virtual_switch.name)
718
719
  ```
719
- <!--End PulumiCodeChooser -->
720
720
 
721
721
  **Create a Port Group with a VLAN and ab Override:**
722
722
 
@@ -726,7 +726,6 @@ class HostPortGroup(pulumi.CustomResource):
726
726
  to ensure that all traffic is seen on the port. The setting overrides
727
727
  the implicit default of `false` set on the standard switch.
728
728
 
729
- <!--Start PulumiCodeChooser -->
730
729
  ```python
731
730
  import pulumi
732
731
  import pulumi_vsphere as vsphere
@@ -734,7 +733,8 @@ class HostPortGroup(pulumi.CustomResource):
734
733
  datacenter = vsphere.get_datacenter(name="dc-01")
735
734
  host = vsphere.get_host(name="esxi-01.example.com",
736
735
  datacenter_id=datacenter.id)
737
- host_virtual_switch = vsphere.HostVirtualSwitch("hostVirtualSwitch",
736
+ host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
737
+ name="switch-01",
738
738
  host_system_id=host.id,
739
739
  network_adapters=[
740
740
  "vmnic0",
@@ -743,12 +743,12 @@ class HostPortGroup(pulumi.CustomResource):
743
743
  active_nics=["vmnic0"],
744
744
  standby_nics=["vmnic1"])
745
745
  pg = vsphere.HostPortGroup("pg",
746
+ name="portgroup-01",
746
747
  host_system_id=host.id,
747
748
  virtual_switch_name=host_virtual_switch.name,
748
749
  vlan_id=4095,
749
750
  allow_promiscuous=True)
750
751
  ```
751
- <!--End PulumiCodeChooser -->
752
752
 
753
753
  ## Importing
754
754
 
@@ -806,7 +806,6 @@ class HostPortGroup(pulumi.CustomResource):
806
806
 
807
807
  **Create a Virtual Switch and Bind a Port Group:**
808
808
 
809
- <!--Start PulumiCodeChooser -->
810
809
  ```python
811
810
  import pulumi
812
811
  import pulumi_vsphere as vsphere
@@ -814,7 +813,8 @@ class HostPortGroup(pulumi.CustomResource):
814
813
  datacenter = vsphere.get_datacenter(name="dc-01")
815
814
  host = vsphere.get_host(name="esxi-01.example.com",
816
815
  datacenter_id=datacenter.id)
817
- host_virtual_switch = vsphere.HostVirtualSwitch("hostVirtualSwitch",
816
+ host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
817
+ name="switch-01",
818
818
  host_system_id=host.id,
819
819
  network_adapters=[
820
820
  "vmnic0",
@@ -823,10 +823,10 @@ class HostPortGroup(pulumi.CustomResource):
823
823
  active_nics=["vmnic0"],
824
824
  standby_nics=["vmnic1"])
825
825
  pg = vsphere.HostPortGroup("pg",
826
+ name="portgroup-01",
826
827
  host_system_id=host.id,
827
828
  virtual_switch_name=host_virtual_switch.name)
828
829
  ```
829
- <!--End PulumiCodeChooser -->
830
830
 
831
831
  **Create a Port Group with a VLAN and ab Override:**
832
832
 
@@ -836,7 +836,6 @@ class HostPortGroup(pulumi.CustomResource):
836
836
  to ensure that all traffic is seen on the port. The setting overrides
837
837
  the implicit default of `false` set on the standard switch.
838
838
 
839
- <!--Start PulumiCodeChooser -->
840
839
  ```python
841
840
  import pulumi
842
841
  import pulumi_vsphere as vsphere
@@ -844,7 +843,8 @@ class HostPortGroup(pulumi.CustomResource):
844
843
  datacenter = vsphere.get_datacenter(name="dc-01")
845
844
  host = vsphere.get_host(name="esxi-01.example.com",
846
845
  datacenter_id=datacenter.id)
847
- host_virtual_switch = vsphere.HostVirtualSwitch("hostVirtualSwitch",
846
+ host_virtual_switch = vsphere.HostVirtualSwitch("host_virtual_switch",
847
+ name="switch-01",
848
848
  host_system_id=host.id,
849
849
  network_adapters=[
850
850
  "vmnic0",
@@ -853,12 +853,12 @@ class HostPortGroup(pulumi.CustomResource):
853
853
  active_nics=["vmnic0"],
854
854
  standby_nics=["vmnic1"])
855
855
  pg = vsphere.HostPortGroup("pg",
856
+ name="portgroup-01",
856
857
  host_system_id=host.id,
857
858
  virtual_switch_name=host_virtual_switch.name,
858
859
  vlan_id=4095,
859
860
  allow_promiscuous=True)
860
861
  ```
861
- <!--End PulumiCodeChooser -->
862
862
 
863
863
  ## Importing
864
864