pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.10.2__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 (64) hide show
  1. pulumi_vsphere/__init__.py +28 -0
  2. pulumi_vsphere/_inputs.py +566 -236
  3. pulumi_vsphere/_utilities.py +35 -0
  4. pulumi_vsphere/compute_cluster.py +747 -1477
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +28 -20
  6. pulumi_vsphere/datacenter.py +33 -40
  7. pulumi_vsphere/datastore_cluster.py +154 -364
  8. pulumi_vsphere/distributed_port_group.py +126 -182
  9. pulumi_vsphere/distributed_virtual_switch.py +301 -819
  10. pulumi_vsphere/entity_permissions.py +56 -35
  11. pulumi_vsphere/file.py +16 -24
  12. pulumi_vsphere/folder.py +7 -28
  13. pulumi_vsphere/get_compute_cluster.py +0 -4
  14. pulumi_vsphere/get_compute_cluster_host_group.py +20 -20
  15. pulumi_vsphere/get_content_library.py +10 -10
  16. pulumi_vsphere/get_content_library_item.py +12 -8
  17. pulumi_vsphere/get_custom_attribute.py +0 -4
  18. pulumi_vsphere/get_datacenter.py +0 -4
  19. pulumi_vsphere/get_datastore.py +9 -13
  20. pulumi_vsphere/get_datastore_cluster.py +0 -4
  21. pulumi_vsphere/get_datastore_stats.py +38 -44
  22. pulumi_vsphere/get_distributed_virtual_switch.py +2 -4
  23. pulumi_vsphere/get_dynamic.py +18 -20
  24. pulumi_vsphere/get_folder.py +10 -6
  25. pulumi_vsphere/get_guest_os_customization.py +8 -47
  26. pulumi_vsphere/get_host.py +0 -4
  27. pulumi_vsphere/get_host_base_images.py +97 -0
  28. pulumi_vsphere/get_host_pci_device.py +8 -14
  29. pulumi_vsphere/get_host_thumbprint.py +12 -16
  30. pulumi_vsphere/get_host_vgpu_profile.py +4 -10
  31. pulumi_vsphere/get_license.py +2 -5
  32. pulumi_vsphere/get_network.py +14 -18
  33. pulumi_vsphere/get_policy.py +0 -4
  34. pulumi_vsphere/get_resource_pool.py +14 -18
  35. pulumi_vsphere/get_role.py +4 -8
  36. pulumi_vsphere/get_tag.py +0 -4
  37. pulumi_vsphere/get_tag_category.py +0 -4
  38. pulumi_vsphere/get_vapp_container.py +0 -4
  39. pulumi_vsphere/get_virtual_machine.py +58 -41
  40. pulumi_vsphere/get_vmfs_disks.py +0 -4
  41. pulumi_vsphere/guest_os_customization.py +50 -0
  42. pulumi_vsphere/ha_vm_override.py +189 -378
  43. pulumi_vsphere/host.py +0 -20
  44. pulumi_vsphere/host_port_group.py +12 -24
  45. pulumi_vsphere/host_virtual_switch.py +140 -287
  46. pulumi_vsphere/license.py +0 -32
  47. pulumi_vsphere/nas_datastore.py +7 -7
  48. pulumi_vsphere/offline_software_depot.py +180 -0
  49. pulumi_vsphere/outputs.py +591 -270
  50. pulumi_vsphere/provider.py +2 -6
  51. pulumi_vsphere/pulumi-plugin.json +2 -1
  52. pulumi_vsphere/resource_pool.py +50 -24
  53. pulumi_vsphere/supervisor.py +962 -0
  54. pulumi_vsphere/virtual_disk.py +14 -20
  55. pulumi_vsphere/virtual_machine.py +580 -809
  56. pulumi_vsphere/virtual_machine_class.py +442 -0
  57. pulumi_vsphere/virtual_machine_snapshot.py +8 -12
  58. pulumi_vsphere/vm_storage_policy.py +74 -86
  59. pulumi_vsphere/vnic.py +61 -77
  60. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/METADATA +1 -1
  61. pulumi_vsphere-4.10.2.dist-info/RECORD +86 -0
  62. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/WHEEL +1 -1
  63. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
  64. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.10.2.dist-info}/top_level.txt +0 -0
@@ -196,10 +196,8 @@ class ProviderArgs:
196
196
 
197
197
  @property
198
198
  @pulumi.getter(name="vcenterServer")
199
+ @_utilities.deprecated("""This field has been renamed to vsphere_server.""")
199
200
  def vcenter_server(self) -> Optional[pulumi.Input[str]]:
200
- warnings.warn("""This field has been renamed to vsphere_server.""", DeprecationWarning)
201
- pulumi.log.warn("""vcenter_server is deprecated: This field has been renamed to vsphere_server.""")
202
-
203
201
  return pulumi.get(self, "vcenter_server")
204
202
 
205
203
  @vcenter_server.setter
@@ -413,10 +411,8 @@ class Provider(pulumi.ProviderResource):
413
411
 
414
412
  @property
415
413
  @pulumi.getter(name="vcenterServer")
414
+ @_utilities.deprecated("""This field has been renamed to vsphere_server.""")
416
415
  def vcenter_server(self) -> pulumi.Output[Optional[str]]:
417
- warnings.warn("""This field has been renamed to vsphere_server.""", DeprecationWarning)
418
- pulumi.log.warn("""vcenter_server is deprecated: This field has been renamed to vsphere_server.""")
419
-
420
416
  return pulumi.get(self, "vcenter_server")
421
417
 
422
418
  @property
@@ -1,4 +1,5 @@
1
1
  {
2
2
  "resource": true,
3
- "name": "vsphere"
3
+ "name": "vsphere",
4
+ "version": "4.10.2"
4
5
  }
@@ -650,14 +650,13 @@ class ResourcePool(pulumi.CustomResource):
650
650
  For more information on vSphere resource pools, please refer to the
651
651
  [product documentation][ref-vsphere-resource_pools].
652
652
 
653
- [ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
653
+ [ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-60077B40-66FF-4625-934A-641703ED7601.html
654
654
 
655
655
  ## Example Usage
656
656
 
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,27 @@ 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 -->
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`
701
714
 
702
715
  :param str resource_name: The name of the resource.
703
716
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -759,14 +772,13 @@ class ResourcePool(pulumi.CustomResource):
759
772
  For more information on vSphere resource pools, please refer to the
760
773
  [product documentation][ref-vsphere-resource_pools].
761
774
 
762
- [ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
775
+ [ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-60077B40-66FF-4625-934A-641703ED7601.html
763
776
 
764
777
  ## Example Usage
765
778
 
766
779
  The following example sets up a resource pool in an existing compute cluster
767
780
  with the default settings for CPU and memory reservations, shares, and limits.
768
781
 
769
- <!--Start PulumiCodeChooser -->
770
782
  ```python
771
783
  import pulumi
772
784
  import pulumi_vsphere as vsphere
@@ -774,28 +786,25 @@ class ResourcePool(pulumi.CustomResource):
774
786
  datacenter = vsphere.get_datacenter(name="dc-01")
775
787
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
776
788
  datacenter_id=datacenter.id)
777
- 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)
778
792
  ```
779
- <!--End PulumiCodeChooser -->
780
793
 
781
794
  A virtual machine resource could be targeted to use the default resource pool
782
795
  of the cluster using the following:
783
796
 
784
- <!--Start PulumiCodeChooser -->
785
797
  ```python
786
798
  import pulumi
787
799
  import pulumi_vsphere as vsphere
788
800
 
789
- vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
790
- # ... other configuration ...
801
+ vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["resourcePoolId"])
791
802
  ```
792
- <!--End PulumiCodeChooser -->
793
803
 
794
804
  The following example sets up a parent resource pool in an existing compute cluster
795
805
  with a child resource pool nested below. Each resource pool is configured with
796
806
  the default settings for CPU and memory reservations, shares, and limits.
797
807
 
798
- <!--Start PulumiCodeChooser -->
799
808
  ```python
800
809
  import pulumi
801
810
  import pulumi_vsphere as vsphere
@@ -803,10 +812,27 @@ class ResourcePool(pulumi.CustomResource):
803
812
  datacenter = vsphere.get_datacenter(name="dc-01")
804
813
  compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
805
814
  datacenter_id=datacenter.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)
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)
808
821
  ```
809
- <!--End PulumiCodeChooser -->
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`
810
836
 
811
837
  :param str resource_name: The name of the resource.
812
838
  :param ResourcePoolArgs args: The arguments to use to populate this resource's properties.