pulumi-vsphere 4.11.0__py3-none-any.whl → 4.11.0a1710920591__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 (65) hide show
  1. pulumi_vsphere/__init__.py +0 -28
  2. pulumi_vsphere/_inputs.py +236 -646
  3. pulumi_vsphere/_utilities.py +4 -40
  4. pulumi_vsphere/compute_cluster.py +1486 -756
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +34 -42
  6. pulumi_vsphere/content_library.py +10 -10
  7. pulumi_vsphere/datacenter.py +40 -33
  8. pulumi_vsphere/datastore_cluster.py +364 -154
  9. pulumi_vsphere/distributed_port_group.py +187 -131
  10. pulumi_vsphere/distributed_virtual_switch.py +828 -310
  11. pulumi_vsphere/entity_permissions.py +38 -59
  12. pulumi_vsphere/file.py +24 -16
  13. pulumi_vsphere/folder.py +28 -7
  14. pulumi_vsphere/get_compute_cluster.py +4 -0
  15. pulumi_vsphere/get_compute_cluster_host_group.py +20 -20
  16. pulumi_vsphere/get_content_library.py +10 -10
  17. pulumi_vsphere/get_content_library_item.py +8 -12
  18. pulumi_vsphere/get_custom_attribute.py +4 -0
  19. pulumi_vsphere/get_datacenter.py +4 -0
  20. pulumi_vsphere/get_datastore.py +16 -12
  21. pulumi_vsphere/get_datastore_cluster.py +4 -0
  22. pulumi_vsphere/get_datastore_stats.py +52 -46
  23. pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
  24. pulumi_vsphere/get_dynamic.py +20 -18
  25. pulumi_vsphere/get_folder.py +6 -10
  26. pulumi_vsphere/get_guest_os_customization.py +47 -8
  27. pulumi_vsphere/get_host.py +4 -0
  28. pulumi_vsphere/get_host_pci_device.py +14 -8
  29. pulumi_vsphere/get_host_thumbprint.py +16 -12
  30. pulumi_vsphere/get_host_vgpu_profile.py +10 -4
  31. pulumi_vsphere/get_license.py +5 -2
  32. pulumi_vsphere/get_network.py +18 -14
  33. pulumi_vsphere/get_policy.py +4 -0
  34. pulumi_vsphere/get_resource_pool.py +18 -14
  35. pulumi_vsphere/get_role.py +8 -4
  36. pulumi_vsphere/get_tag.py +4 -0
  37. pulumi_vsphere/get_tag_category.py +4 -0
  38. pulumi_vsphere/get_vapp_container.py +4 -0
  39. pulumi_vsphere/get_virtual_machine.py +43 -60
  40. pulumi_vsphere/get_vmfs_disks.py +4 -0
  41. pulumi_vsphere/guest_os_customization.py +5 -55
  42. pulumi_vsphere/ha_vm_override.py +378 -189
  43. pulumi_vsphere/host.py +60 -49
  44. pulumi_vsphere/host_port_group.py +26 -14
  45. pulumi_vsphere/host_virtual_switch.py +287 -140
  46. pulumi_vsphere/license.py +32 -0
  47. pulumi_vsphere/nas_datastore.py +7 -7
  48. pulumi_vsphere/outputs.py +270 -672
  49. pulumi_vsphere/provider.py +6 -2
  50. pulumi_vsphere/pulumi-plugin.json +1 -2
  51. pulumi_vsphere/resource_pool.py +24 -50
  52. pulumi_vsphere/virtual_disk.py +34 -42
  53. pulumi_vsphere/virtual_machine.py +827 -598
  54. pulumi_vsphere/virtual_machine_snapshot.py +12 -8
  55. pulumi_vsphere/vm_storage_policy.py +127 -115
  56. pulumi_vsphere/vnic.py +105 -89
  57. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/METADATA +1 -1
  58. pulumi_vsphere-4.11.0a1710920591.dist-info/RECORD +82 -0
  59. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/WHEEL +1 -1
  60. pulumi_vsphere/get_host_base_images.py +0 -97
  61. pulumi_vsphere/offline_software_depot.py +0 -180
  62. pulumi_vsphere/supervisor.py +0 -962
  63. pulumi_vsphere/virtual_machine_class.py +0 -442
  64. pulumi_vsphere-4.11.0.dist-info/RECORD +0 -86
  65. {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/top_level.txt +0 -0
@@ -23,7 +23,7 @@ class GetVirtualMachineResult:
23
23
  """
24
24
  A collection of values returned by getVirtualMachine.
25
25
  """
26
- def __init__(__self__, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, change_version=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, datacenter_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, extra_config_reboot_required=None, firmware=None, folder=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, hv_mode=None, id=None, ide_controller_scan_count=None, instance_uuid=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_reservation_locked_to_max=None, memory_share_count=None, memory_share_level=None, moid=None, name=None, nested_hv_enabled=None, network_interface_types=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, replace_trigger=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_scan_count=None, scsi_bus_sharing=None, scsi_controller_scan_count=None, scsi_type=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, sync_time_with_host_periodically=None, tools_upgrade_policy=None, uuid=None, vapp=None, vapp_transports=None, vbs_enabled=None, vvtd_enabled=None):
26
+ def __init__(__self__, alternate_guest_name=None, annotation=None, boot_delay=None, boot_retry_delay=None, boot_retry_enabled=None, change_version=None, cpu_hot_add_enabled=None, cpu_hot_remove_enabled=None, cpu_limit=None, cpu_performance_counters_enabled=None, cpu_reservation=None, cpu_share_count=None, cpu_share_level=None, datacenter_id=None, default_ip_address=None, disks=None, efi_secure_boot_enabled=None, enable_disk_uuid=None, enable_logging=None, ept_rvi_mode=None, extra_config=None, extra_config_reboot_required=None, firmware=None, folder=None, guest_id=None, guest_ip_addresses=None, hardware_version=None, hv_mode=None, id=None, ide_controller_scan_count=None, latency_sensitivity=None, memory=None, memory_hot_add_enabled=None, memory_limit=None, memory_reservation=None, memory_reservation_locked_to_max=None, memory_share_count=None, memory_share_level=None, moid=None, name=None, nested_hv_enabled=None, network_interface_types=None, network_interfaces=None, num_cores_per_socket=None, num_cpus=None, replace_trigger=None, run_tools_scripts_after_power_on=None, run_tools_scripts_after_resume=None, run_tools_scripts_before_guest_reboot=None, run_tools_scripts_before_guest_shutdown=None, run_tools_scripts_before_guest_standby=None, sata_controller_scan_count=None, scsi_bus_sharing=None, scsi_controller_scan_count=None, scsi_type=None, storage_policy_id=None, swap_placement_policy=None, sync_time_with_host=None, sync_time_with_host_periodically=None, tools_upgrade_policy=None, uuid=None, vapp=None, vapp_transports=None, vbs_enabled=None, vvtd_enabled=None):
27
27
  if alternate_guest_name and not isinstance(alternate_guest_name, str):
28
28
  raise TypeError("Expected argument 'alternate_guest_name' to be a str")
29
29
  pulumi.set(__self__, "alternate_guest_name", alternate_guest_name)
@@ -114,9 +114,6 @@ class GetVirtualMachineResult:
114
114
  if ide_controller_scan_count and not isinstance(ide_controller_scan_count, int):
115
115
  raise TypeError("Expected argument 'ide_controller_scan_count' to be a int")
116
116
  pulumi.set(__self__, "ide_controller_scan_count", ide_controller_scan_count)
117
- if instance_uuid and not isinstance(instance_uuid, str):
118
- raise TypeError("Expected argument 'instance_uuid' to be a str")
119
- pulumi.set(__self__, "instance_uuid", instance_uuid)
120
117
  if latency_sensitivity and not isinstance(latency_sensitivity, str):
121
118
  raise TypeError("Expected argument 'latency_sensitivity' to be a str")
122
119
  pulumi.set(__self__, "latency_sensitivity", latency_sensitivity)
@@ -228,8 +225,7 @@ class GetVirtualMachineResult:
228
225
  def alternate_guest_name(self) -> Optional[str]:
229
226
  """
230
227
  The alternate guest name of the virtual machine when
231
- `guest_id` is a non-specific operating system, like `otherGuest` or
232
- `otherGuest64`.
228
+ `guest_id` is a non-specific operating system, like `otherGuest` or `otherGuest64`.
233
229
  """
234
230
  return pulumi.get(self, "alternate_guest_name")
235
231
 
@@ -305,11 +301,11 @@ class GetVirtualMachineResult:
305
301
  @pulumi.getter(name="defaultIpAddress")
306
302
  def default_ip_address(self) -> str:
307
303
  """
308
- Whenever possible, this is the first IPv4 address that
309
- is reachable through the default gateway configured on the machine, then the
310
- first reachable IPv6 address, and then the first general discovered address if
311
- neither exist. If VMware Tools is not running on the virtual machine, or if
312
- the VM is powered off, this value will be blank.
304
+ Whenever possible, this is the first IPv4 address that is reachable through
305
+ the default gateway configured on the machine, then the first reachable IPv6
306
+ address, and then the first general discovered address if neither exist. If
307
+ VMware Tools is not running on the virtual machine, or if the VM is powered
308
+ off, this value will be blank.
313
309
  """
314
310
  return pulumi.get(self, "default_ip_address")
315
311
 
@@ -321,10 +317,10 @@ class GetVirtualMachineResult:
321
317
  template. These are sorted by bus and unit number so that they can be applied
322
318
  to a `VirtualMachine` resource in the order the resource expects
323
319
  while cloning. This is useful for discovering certain disk settings while
324
- performing a linked clone, as all settings that are output by this data source
325
- must be the same on the destination virtual machine as the source. Only the
326
- first number of controllers defined by `scsi_controller_scan_count` are
327
- scanned for disks. The sub-attributes are:
320
+ performing a linked clone, as all settings that are output by this data
321
+ source must be the same on the destination virtual machine as the source.
322
+ Only the first number of controllers defined by `scsi_controller_scan_count`
323
+ are scanned for disks. The sub-attributes are:
328
324
  """
329
325
  return pulumi.get(self, "disks")
330
326
 
@@ -345,7 +341,7 @@ class GetVirtualMachineResult:
345
341
 
346
342
  @property
347
343
  @pulumi.getter(name="eptRviMode")
348
- def ept_rvi_mode(self) -> str:
344
+ def ept_rvi_mode(self) -> Optional[str]:
349
345
  return pulumi.get(self, "ept_rvi_mode")
350
346
 
351
347
  @property
@@ -362,8 +358,7 @@ class GetVirtualMachineResult:
362
358
  @pulumi.getter
363
359
  def firmware(self) -> Optional[str]:
364
360
  """
365
- The firmware type for this virtual machine. Can be `bios` or
366
- `efi`.
361
+ The firmware type for this virtual machine. Can be `bios` or `efi`.
367
362
  """
368
363
  return pulumi.get(self, "firmware")
369
364
 
@@ -398,7 +393,7 @@ class GetVirtualMachineResult:
398
393
 
399
394
  @property
400
395
  @pulumi.getter(name="hvMode")
401
- def hv_mode(self) -> str:
396
+ def hv_mode(self) -> Optional[str]:
402
397
  return pulumi.get(self, "hv_mode")
403
398
 
404
399
  @property
@@ -414,14 +409,6 @@ class GetVirtualMachineResult:
414
409
  def ide_controller_scan_count(self) -> Optional[int]:
415
410
  return pulumi.get(self, "ide_controller_scan_count")
416
411
 
417
- @property
418
- @pulumi.getter(name="instanceUuid")
419
- def instance_uuid(self) -> str:
420
- """
421
- The instance UUID of the virtual machine or template.
422
- """
423
- return pulumi.get(self, "instance_uuid")
424
-
425
412
  @property
426
413
  @pulumi.getter(name="latencySensitivity")
427
414
  def latency_sensitivity(self) -> Optional[str]:
@@ -486,8 +473,7 @@ class GetVirtualMachineResult:
486
473
  """
487
474
  The network interface types for each network
488
475
  interface found on the virtual machine, in device bus order. Will be one of
489
- `e1000`, `e1000e`, `pcnet32`, `sriov`, `vmxnet2`, `vmxnet3vrdma`, or
490
- `vmxnet3`.
476
+ `e1000`, `e1000e`, `pcnet32`, `sriov`, `vmxnet2`, `vmxnet3vrdma`, or `vmxnet3`.
491
477
  """
492
478
  return pulumi.get(self, "network_interface_types")
493
479
 
@@ -495,13 +481,13 @@ class GetVirtualMachineResult:
495
481
  @pulumi.getter(name="networkInterfaces")
496
482
  def network_interfaces(self) -> Sequence['outputs.GetVirtualMachineNetworkInterfaceResult']:
497
483
  """
498
- Information about each of the network interfaces on
499
- this virtual machine or template. These are sorted by device bus order so that
500
- they can be applied to a `VirtualMachine` resource in the order the
501
- resource expects while cloning. This is useful for discovering certain network
502
- interface settings while performing a linked clone, as all settings that are
503
- output by this data source must be the same on the destination virtual machine
504
- as the source. The sub-attributes are:
484
+ Information about each of the network interfaces on this
485
+ virtual machine or template. These are sorted by device bus order so that they
486
+ can be applied to a `VirtualMachine` resource in the order the resource
487
+ expects while cloning. This is useful for discovering certain network interface
488
+ settings while performing a linked clone, as all settings that are output by this
489
+ data source must be the same on the destination virtual machine as the source.
490
+ The sub-attributes are:
505
491
  """
506
492
  return pulumi.get(self, "network_interfaces")
507
493
 
@@ -509,8 +495,7 @@ class GetVirtualMachineResult:
509
495
  @pulumi.getter(name="numCoresPerSocket")
510
496
  def num_cores_per_socket(self) -> Optional[int]:
511
497
  """
512
- The number of cores per socket for this virtual
513
- machine.
498
+ The number of cores per socket for this virtual machine.
514
499
  """
515
500
  return pulumi.get(self, "num_cores_per_socket")
516
501
 
@@ -672,7 +657,6 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
672
657
  hv_mode=self.hv_mode,
673
658
  id=self.id,
674
659
  ide_controller_scan_count=self.ide_controller_scan_count,
675
- instance_uuid=self.instance_uuid,
676
660
  latency_sensitivity=self.latency_sensitivity,
677
661
  memory=self.memory,
678
662
  memory_hot_add_enabled=self.memory_hot_add_enabled,
@@ -762,7 +746,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
762
746
  sync_time_with_host_periodically: Optional[bool] = None,
763
747
  tools_upgrade_policy: Optional[str] = None,
764
748
  uuid: Optional[str] = None,
765
- vapp: Optional[Union['GetVirtualMachineVappArgs', 'GetVirtualMachineVappArgsDict']] = None,
749
+ vapp: Optional[pulumi.InputType['GetVirtualMachineVappArgs']] = None,
766
750
  vbs_enabled: Optional[bool] = None,
767
751
  vvtd_enabled: Optional[bool] = None,
768
752
  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetVirtualMachineResult:
@@ -775,9 +759,10 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
775
759
 
776
760
  ## Example Usage
777
761
 
778
- In the following example, a virtual machine template is returned by its unique
779
- name within the `Datacenter`.
762
+ In the following example, a virtual machine template is returned by its
763
+ unique name within the `Datacenter`.
780
764
 
765
+ <!--Start PulumiCodeChooser -->
781
766
  ```python
782
767
  import pulumi
783
768
  import pulumi_vsphere as vsphere
@@ -786,10 +771,11 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
786
771
  template = vsphere.get_virtual_machine(name="ubuntu-server-template",
787
772
  datacenter_id=datacenter.id)
788
773
  ```
789
-
774
+ <!--End PulumiCodeChooser -->
790
775
  In the following example, each virtual machine template is returned by its
791
776
  unique full path within the `Datacenter`.
792
777
 
778
+ <!--Start PulumiCodeChooser -->
793
779
  ```python
794
780
  import pulumi
795
781
  import pulumi_vsphere as vsphere
@@ -800,19 +786,18 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
800
786
  development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
801
787
  datacenter_id=datacenter.id)
802
788
  ```
789
+ <!--End PulumiCodeChooser -->
803
790
 
804
791
 
805
792
  :param str alternate_guest_name: The alternate guest name of the virtual machine when
806
- `guest_id` is a non-specific operating system, like `otherGuest` or
807
- `otherGuest64`.
793
+ `guest_id` is a non-specific operating system, like `otherGuest` or `otherGuest64`.
808
794
  :param str annotation: The user-provided description of this virtual machine.
809
795
  :param str datacenter_id: The managed object reference
810
796
  ID of the datacenter the virtual machine is located in.
811
797
  This can be omitted if the search path used in `name` is an absolute path.
812
798
  For default datacenters, use the `id` attribute from an empty
813
799
  `Datacenter` data source.
814
- :param str firmware: The firmware type for this virtual machine. Can be `bios` or
815
- `efi`.
800
+ :param str firmware: The firmware type for this virtual machine. Can be `bios` or `efi`.
816
801
  :param str folder: The name of the virtual machine folder where the virtual machine is located. The `name` argument is limited to 80 characters. If the `name` argument includes the full path to the virtual machine and exceeds the 80 characters limit, the `folder` folder argument can be used.
817
802
  :param str guest_id: The guest ID of the virtual machine or template.
818
803
  :param int hardware_version: The hardware version number on this virtual machine.
@@ -820,8 +805,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
820
805
  :param str name: The name of the virtual machine. This can be a name or
821
806
  the full path relative to the datacenter. This is required if a UUID lookup
822
807
  is not performed.
823
- :param int num_cores_per_socket: The number of cores per socket for this virtual
824
- machine.
808
+ :param int num_cores_per_socket: The number of cores per socket for this virtual machine.
825
809
  :param int num_cpus: The total number of virtual processor cores assigned to this
826
810
  virtual machine.
827
811
  :param int scsi_controller_scan_count: The number of SCSI controllers to
@@ -925,7 +909,6 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
925
909
  hv_mode=pulumi.get(__ret__, 'hv_mode'),
926
910
  id=pulumi.get(__ret__, 'id'),
927
911
  ide_controller_scan_count=pulumi.get(__ret__, 'ide_controller_scan_count'),
928
- instance_uuid=pulumi.get(__ret__, 'instance_uuid'),
929
912
  latency_sensitivity=pulumi.get(__ret__, 'latency_sensitivity'),
930
913
  memory=pulumi.get(__ret__, 'memory'),
931
914
  memory_hot_add_enabled=pulumi.get(__ret__, 'memory_hot_add_enabled'),
@@ -1016,7 +999,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1016
999
  sync_time_with_host_periodically: Optional[pulumi.Input[Optional[bool]]] = None,
1017
1000
  tools_upgrade_policy: Optional[pulumi.Input[Optional[str]]] = None,
1018
1001
  uuid: Optional[pulumi.Input[Optional[str]]] = None,
1019
- vapp: Optional[pulumi.Input[Optional[Union['GetVirtualMachineVappArgs', 'GetVirtualMachineVappArgsDict']]]] = None,
1002
+ vapp: Optional[pulumi.Input[Optional[pulumi.InputType['GetVirtualMachineVappArgs']]]] = None,
1020
1003
  vbs_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
1021
1004
  vvtd_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
1022
1005
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVirtualMachineResult]:
@@ -1029,9 +1012,10 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1029
1012
 
1030
1013
  ## Example Usage
1031
1014
 
1032
- In the following example, a virtual machine template is returned by its unique
1033
- name within the `Datacenter`.
1015
+ In the following example, a virtual machine template is returned by its
1016
+ unique name within the `Datacenter`.
1034
1017
 
1018
+ <!--Start PulumiCodeChooser -->
1035
1019
  ```python
1036
1020
  import pulumi
1037
1021
  import pulumi_vsphere as vsphere
@@ -1040,10 +1024,11 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1040
1024
  template = vsphere.get_virtual_machine(name="ubuntu-server-template",
1041
1025
  datacenter_id=datacenter.id)
1042
1026
  ```
1043
-
1027
+ <!--End PulumiCodeChooser -->
1044
1028
  In the following example, each virtual machine template is returned by its
1045
1029
  unique full path within the `Datacenter`.
1046
1030
 
1031
+ <!--Start PulumiCodeChooser -->
1047
1032
  ```python
1048
1033
  import pulumi
1049
1034
  import pulumi_vsphere as vsphere
@@ -1054,19 +1039,18 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1054
1039
  development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template",
1055
1040
  datacenter_id=datacenter.id)
1056
1041
  ```
1042
+ <!--End PulumiCodeChooser -->
1057
1043
 
1058
1044
 
1059
1045
  :param str alternate_guest_name: The alternate guest name of the virtual machine when
1060
- `guest_id` is a non-specific operating system, like `otherGuest` or
1061
- `otherGuest64`.
1046
+ `guest_id` is a non-specific operating system, like `otherGuest` or `otherGuest64`.
1062
1047
  :param str annotation: The user-provided description of this virtual machine.
1063
1048
  :param str datacenter_id: The managed object reference
1064
1049
  ID of the datacenter the virtual machine is located in.
1065
1050
  This can be omitted if the search path used in `name` is an absolute path.
1066
1051
  For default datacenters, use the `id` attribute from an empty
1067
1052
  `Datacenter` data source.
1068
- :param str firmware: The firmware type for this virtual machine. Can be `bios` or
1069
- `efi`.
1053
+ :param str firmware: The firmware type for this virtual machine. Can be `bios` or `efi`.
1070
1054
  :param str folder: The name of the virtual machine folder where the virtual machine is located. The `name` argument is limited to 80 characters. If the `name` argument includes the full path to the virtual machine and exceeds the 80 characters limit, the `folder` folder argument can be used.
1071
1055
  :param str guest_id: The guest ID of the virtual machine or template.
1072
1056
  :param int hardware_version: The hardware version number on this virtual machine.
@@ -1074,8 +1058,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1074
1058
  :param str name: The name of the virtual machine. This can be a name or
1075
1059
  the full path relative to the datacenter. This is required if a UUID lookup
1076
1060
  is not performed.
1077
- :param int num_cores_per_socket: The number of cores per socket for this virtual
1078
- machine.
1061
+ :param int num_cores_per_socket: The number of cores per socket for this virtual machine.
1079
1062
  :param int num_cpus: The total number of virtual processor cores assigned to this
1080
1063
  virtual machine.
1081
1064
  :param int scsi_controller_scan_count: The number of SCSI controllers to
@@ -96,6 +96,7 @@ def get_vmfs_disks(filter: Optional[str] = None,
96
96
 
97
97
  ## Example Usage
98
98
 
99
+ <!--Start PulumiCodeChooser -->
99
100
  ```python
100
101
  import pulumi
101
102
  import pulumi_vsphere as vsphere
@@ -107,6 +108,7 @@ def get_vmfs_disks(filter: Optional[str] = None,
107
108
  rescan=True,
108
109
  filter="mpx.vmhba1:C0:T[12]:L0")
109
110
  ```
111
+ <!--End PulumiCodeChooser -->
110
112
 
111
113
 
112
114
  :param str filter: A regular expression to filter the disks against. Only
@@ -149,6 +151,7 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
149
151
 
150
152
  ## Example Usage
151
153
 
154
+ <!--Start PulumiCodeChooser -->
152
155
  ```python
153
156
  import pulumi
154
157
  import pulumi_vsphere as vsphere
@@ -160,6 +163,7 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None,
160
163
  rescan=True,
161
164
  filter="mpx.vmhba1:C0:T[12]:L0")
162
165
  ```
166
+ <!--End PulumiCodeChooser -->
163
167
 
164
168
 
165
169
  :param str filter: A regular expression to filter the disks against. Only
@@ -194,7 +194,7 @@ class GuestOsCustomization(pulumi.CustomResource):
194
194
  opts: Optional[pulumi.ResourceOptions] = None,
195
195
  description: Optional[pulumi.Input[str]] = None,
196
196
  name: Optional[pulumi.Input[str]] = None,
197
- spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
197
+ spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
198
198
  type: Optional[pulumi.Input[str]] = None,
199
199
  __props__=None):
200
200
  """
@@ -202,36 +202,11 @@ class GuestOsCustomization(pulumi.CustomResource):
202
202
 
203
203
  > **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
204
204
 
205
- ## Example Usage
206
-
207
- ```python
208
- import pulumi
209
- import pulumi_vsphere as vsphere
210
-
211
- windows = vsphere.GuestOsCustomization("windows",
212
- name="windows",
213
- type="Windows",
214
- spec={
215
- "windows_options": {
216
- "run_once_command_lists": [
217
- "command-1",
218
- "command-2",
219
- ],
220
- "computer_name": "windows",
221
- "auto_logon": False,
222
- "auto_logon_count": 0,
223
- "admin_password": "VMware1!",
224
- "time_zone": 4,
225
- "workgroup": "workgroup",
226
- },
227
- })
228
- ```
229
-
230
205
  :param str resource_name: The name of the resource.
231
206
  :param pulumi.ResourceOptions opts: Options for the resource.
232
207
  :param pulumi.Input[str] description: The description for the customization specification.
233
208
  :param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
234
- :param pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
209
+ :param pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
235
210
  :param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
236
211
  """
237
212
  ...
@@ -245,31 +220,6 @@ class GuestOsCustomization(pulumi.CustomResource):
245
220
 
246
221
  > **NOTE:** The name attribute is unique identifier for the guest OS spec per VC.
247
222
 
248
- ## Example Usage
249
-
250
- ```python
251
- import pulumi
252
- import pulumi_vsphere as vsphere
253
-
254
- windows = vsphere.GuestOsCustomization("windows",
255
- name="windows",
256
- type="Windows",
257
- spec={
258
- "windows_options": {
259
- "run_once_command_lists": [
260
- "command-1",
261
- "command-2",
262
- ],
263
- "computer_name": "windows",
264
- "auto_logon": False,
265
- "auto_logon_count": 0,
266
- "admin_password": "VMware1!",
267
- "time_zone": 4,
268
- "workgroup": "workgroup",
269
- },
270
- })
271
- ```
272
-
273
223
  :param str resource_name: The name of the resource.
274
224
  :param GuestOsCustomizationArgs args: The arguments to use to populate this resource's properties.
275
225
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -287,7 +237,7 @@ class GuestOsCustomization(pulumi.CustomResource):
287
237
  opts: Optional[pulumi.ResourceOptions] = None,
288
238
  description: Optional[pulumi.Input[str]] = None,
289
239
  name: Optional[pulumi.Input[str]] = None,
290
- spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
240
+ spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
291
241
  type: Optional[pulumi.Input[str]] = None,
292
242
  __props__=None):
293
243
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -322,7 +272,7 @@ class GuestOsCustomization(pulumi.CustomResource):
322
272
  description: Optional[pulumi.Input[str]] = None,
323
273
  last_update_time: Optional[pulumi.Input[str]] = None,
324
274
  name: Optional[pulumi.Input[str]] = None,
325
- spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
275
+ spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
326
276
  type: Optional[pulumi.Input[str]] = None) -> 'GuestOsCustomization':
327
277
  """
328
278
  Get an existing GuestOsCustomization resource's state with the given name, id, and optional extra
@@ -335,7 +285,7 @@ class GuestOsCustomization(pulumi.CustomResource):
335
285
  :param pulumi.Input[str] description: The description for the customization specification.
336
286
  :param pulumi.Input[str] last_update_time: The time of last modification to the customization specification.
337
287
  :param pulumi.Input[str] name: The name of the customization specification is the unique identifier per vCenter Server instance.
338
- :param pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
288
+ :param pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
339
289
  :param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
340
290
  """
341
291
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))