pulumi-vsphere 4.11.0a1__py3-none-any.whl → 4.11.0a1711033215__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 (58) hide show
  1. pulumi_vsphere/__init__.py +0 -28
  2. pulumi_vsphere/_inputs.py +230 -554
  3. pulumi_vsphere/compute_cluster.py +1477 -747
  4. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +16 -28
  5. pulumi_vsphere/datacenter.py +12 -26
  6. pulumi_vsphere/datastore_cluster.py +350 -154
  7. pulumi_vsphere/distributed_port_group.py +175 -70
  8. pulumi_vsphere/distributed_virtual_switch.py +805 -308
  9. pulumi_vsphere/file.py +24 -16
  10. pulumi_vsphere/folder.py +7 -7
  11. pulumi_vsphere/get_compute_cluster.py +4 -0
  12. pulumi_vsphere/get_compute_cluster_host_group.py +10 -8
  13. pulumi_vsphere/get_content_library.py +4 -0
  14. pulumi_vsphere/get_custom_attribute.py +4 -0
  15. pulumi_vsphere/get_datacenter.py +4 -0
  16. pulumi_vsphere/get_datastore.py +4 -0
  17. pulumi_vsphere/get_datastore_cluster.py +4 -0
  18. pulumi_vsphere/get_datastore_stats.py +12 -4
  19. pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
  20. pulumi_vsphere/get_dynamic.py +8 -4
  21. pulumi_vsphere/get_folder.py +6 -10
  22. pulumi_vsphere/get_guest_os_customization.py +4 -0
  23. pulumi_vsphere/get_host.py +4 -0
  24. pulumi_vsphere/get_host_pci_device.py +12 -4
  25. pulumi_vsphere/get_host_thumbprint.py +4 -0
  26. pulumi_vsphere/get_host_vgpu_profile.py +8 -0
  27. pulumi_vsphere/get_license.py +4 -0
  28. pulumi_vsphere/get_network.py +4 -0
  29. pulumi_vsphere/get_policy.py +4 -0
  30. pulumi_vsphere/get_resource_pool.py +10 -2
  31. pulumi_vsphere/get_role.py +4 -0
  32. pulumi_vsphere/get_tag.py +4 -0
  33. pulumi_vsphere/get_tag_category.py +4 -0
  34. pulumi_vsphere/get_vapp_container.py +4 -0
  35. pulumi_vsphere/get_virtual_machine.py +8 -0
  36. pulumi_vsphere/get_vmfs_disks.py +4 -0
  37. pulumi_vsphere/guest_os_customization.py +0 -50
  38. pulumi_vsphere/ha_vm_override.py +378 -189
  39. pulumi_vsphere/host.py +20 -0
  40. pulumi_vsphere/host_port_group.py +24 -12
  41. pulumi_vsphere/host_virtual_switch.py +287 -140
  42. pulumi_vsphere/license.py +32 -0
  43. pulumi_vsphere/outputs.py +230 -543
  44. pulumi_vsphere/pulumi-plugin.json +1 -2
  45. pulumi_vsphere/resource_pool.py +22 -48
  46. pulumi_vsphere/virtual_machine.py +807 -578
  47. pulumi_vsphere/virtual_machine_snapshot.py +10 -6
  48. pulumi_vsphere/vm_storage_policy.py +84 -72
  49. pulumi_vsphere/vnic.py +20 -8
  50. {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1711033215.dist-info}/METADATA +1 -1
  51. pulumi_vsphere-4.11.0a1711033215.dist-info/RECORD +82 -0
  52. pulumi_vsphere/get_host_base_images.py +0 -97
  53. pulumi_vsphere/offline_software_depot.py +0 -180
  54. pulumi_vsphere/supervisor.py +0 -858
  55. pulumi_vsphere/virtual_machine_class.py +0 -440
  56. pulumi_vsphere-4.11.0a1.dist-info/RECORD +0 -86
  57. {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1711033215.dist-info}/WHEEL +0 -0
  58. {pulumi_vsphere-4.11.0a1.dist-info → pulumi_vsphere-4.11.0a1711033215.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,4 @@
1
1
  {
2
2
  "resource": true,
3
- "name": "vsphere",
4
- "version": "4.11.0-alpha.1"
3
+ "name": "vsphere"
5
4
  }
@@ -657,6 +657,7 @@ 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 -->
660
661
  ```python
661
662
  import pulumi
662
663
  import pulumi_vsphere as vsphere
@@ -664,25 +665,28 @@ class ResourcePool(pulumi.CustomResource):
664
665
  datacenter = vsphere.get_datacenter(name="dc-01")
665
666
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
666
667
  datacenter_id=datacenter.id)
667
- resource_pool = vsphere.ResourcePool("resource_pool",
668
- name="resource-pool-01",
669
- parent_resource_pool_id=compute_cluster.resource_pool_id)
668
+ resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
670
669
  ```
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 -->
675
676
  ```python
676
677
  import pulumi
677
678
  import pulumi_vsphere as vsphere
678
679
 
679
- vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
680
+ vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
681
+ # ... other configuration ...
680
682
  ```
683
+ <!--End PulumiCodeChooser -->
681
684
 
682
685
  The following example sets up a parent resource pool in an existing compute cluster
683
686
  with a child resource pool nested below. Each resource pool is configured with
684
687
  the default settings for CPU and memory reservations, shares, and limits.
685
688
 
689
+ <!--Start PulumiCodeChooser -->
686
690
  ```python
687
691
  import pulumi
688
692
  import pulumi_vsphere as vsphere
@@ -690,27 +694,10 @@ class ResourcePool(pulumi.CustomResource):
690
694
  datacenter = vsphere.get_datacenter(name="dc-01")
691
695
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
692
696
  datacenter_id=datacenter.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)
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)
699
699
  ```
700
-
701
- ## Importing
702
-
703
- An existing resource pool can be imported into this resource via
704
- the path to the resource pool, using the following command:
705
-
706
- The above would import the resource pool named `resource-pool-01` that is located
707
- in the compute cluster `cluster-01` in the `dc-01` datacenter.
708
-
709
- ### Settings that Require vSphere 7.0 or higher
710
-
711
- These settings require vSphere 7.0 or higher:
712
-
713
- * `scale_descendants_shares`
700
+ <!--End PulumiCodeChooser -->
714
701
 
715
702
  :param str resource_name: The name of the resource.
716
703
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -779,6 +766,7 @@ class ResourcePool(pulumi.CustomResource):
779
766
  The following example sets up a resource pool in an existing compute cluster
780
767
  with the default settings for CPU and memory reservations, shares, and limits.
781
768
 
769
+ <!--Start PulumiCodeChooser -->
782
770
  ```python
783
771
  import pulumi
784
772
  import pulumi_vsphere as vsphere
@@ -786,25 +774,28 @@ class ResourcePool(pulumi.CustomResource):
786
774
  datacenter = vsphere.get_datacenter(name="dc-01")
787
775
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
788
776
  datacenter_id=datacenter.id)
789
- resource_pool = vsphere.ResourcePool("resource_pool",
790
- name="resource-pool-01",
791
- parent_resource_pool_id=compute_cluster.resource_pool_id)
777
+ resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
792
778
  ```
779
+ <!--End PulumiCodeChooser -->
793
780
 
794
781
  A virtual machine resource could be targeted to use the default resource pool
795
782
  of the cluster using the following:
796
783
 
784
+ <!--Start PulumiCodeChooser -->
797
785
  ```python
798
786
  import pulumi
799
787
  import pulumi_vsphere as vsphere
800
788
 
801
- vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
789
+ vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
790
+ # ... other configuration ...
802
791
  ```
792
+ <!--End PulumiCodeChooser -->
803
793
 
804
794
  The following example sets up a parent resource pool in an existing compute cluster
805
795
  with a child resource pool nested below. Each resource pool is configured with
806
796
  the default settings for CPU and memory reservations, shares, and limits.
807
797
 
798
+ <!--Start PulumiCodeChooser -->
808
799
  ```python
809
800
  import pulumi
810
801
  import pulumi_vsphere as vsphere
@@ -812,27 +803,10 @@ class ResourcePool(pulumi.CustomResource):
812
803
  datacenter = vsphere.get_datacenter(name="dc-01")
813
804
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
814
805
  datacenter_id=datacenter.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)
806
+ resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
807
+ resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
821
808
  ```
822
-
823
- ## Importing
824
-
825
- An existing resource pool can be imported into this resource via
826
- the path to the resource pool, using the following command:
827
-
828
- The above would import the resource pool named `resource-pool-01` that is located
829
- in the compute cluster `cluster-01` in the `dc-01` datacenter.
830
-
831
- ### Settings that Require vSphere 7.0 or higher
832
-
833
- These settings require vSphere 7.0 or higher:
834
-
835
- * `scale_descendants_shares`
809
+ <!--End PulumiCodeChooser -->
836
810
 
837
811
  :param str resource_name: The name of the resource.
838
812
  :param ResourcePoolArgs args: The arguments to use to populate this resource's properties.