pulumi-vsphere 4.10.3a1723624830__py3-none-any.whl → 4.11.0a1__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 (47) hide show
  1. pulumi_vsphere/_inputs.py +6 -12
  2. pulumi_vsphere/_utilities.py +4 -40
  3. pulumi_vsphere/compute_cluster.py +20 -20
  4. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +18 -14
  5. pulumi_vsphere/content_library.py +10 -10
  6. pulumi_vsphere/datacenter.py +28 -7
  7. pulumi_vsphere/datastore_cluster.py +14 -0
  8. pulumi_vsphere/distributed_port_group.py +12 -61
  9. pulumi_vsphere/distributed_virtual_switch.py +43 -22
  10. pulumi_vsphere/entity_permissions.py +38 -59
  11. pulumi_vsphere/folder.py +21 -0
  12. pulumi_vsphere/get_compute_cluster_host_group.py +16 -18
  13. pulumi_vsphere/get_content_library.py +6 -10
  14. pulumi_vsphere/get_content_library_item.py +8 -12
  15. pulumi_vsphere/get_datastore.py +9 -9
  16. pulumi_vsphere/get_datastore_stats.py +32 -34
  17. pulumi_vsphere/get_dynamic.py +12 -14
  18. pulumi_vsphere/get_guest_os_customization.py +43 -8
  19. pulumi_vsphere/get_host_base_images.py +6 -6
  20. pulumi_vsphere/get_host_pci_device.py +2 -4
  21. pulumi_vsphere/get_host_thumbprint.py +12 -12
  22. pulumi_vsphere/get_host_vgpu_profile.py +2 -4
  23. pulumi_vsphere/get_license.py +1 -2
  24. pulumi_vsphere/get_network.py +14 -14
  25. pulumi_vsphere/get_resource_pool.py +8 -12
  26. pulumi_vsphere/get_role.py +4 -4
  27. pulumi_vsphere/get_virtual_machine.py +35 -60
  28. pulumi_vsphere/guest_os_customization.py +31 -31
  29. pulumi_vsphere/host_port_group.py +2 -2
  30. pulumi_vsphere/nas_datastore.py +7 -7
  31. pulumi_vsphere/offline_software_depot.py +2 -2
  32. pulumi_vsphere/outputs.py +40 -48
  33. pulumi_vsphere/provider.py +6 -2
  34. pulumi_vsphere/pulumi-plugin.json +1 -1
  35. pulumi_vsphere/resource_pool.py +2 -2
  36. pulumi_vsphere/supervisor.py +30 -134
  37. pulumi_vsphere/virtual_disk.py +30 -38
  38. pulumi_vsphere/virtual_machine.py +32 -32
  39. pulumi_vsphere/virtual_machine_class.py +0 -2
  40. pulumi_vsphere/virtual_machine_snapshot.py +2 -2
  41. pulumi_vsphere/vm_storage_policy.py +67 -67
  42. pulumi_vsphere/vnic.py +93 -89
  43. {pulumi_vsphere-4.10.3a1723624830.dist-info → pulumi_vsphere-4.11.0a1.dist-info}/METADATA +1 -1
  44. pulumi_vsphere-4.11.0a1.dist-info/RECORD +86 -0
  45. {pulumi_vsphere-4.10.3a1723624830.dist-info → pulumi_vsphere-4.11.0a1.dist-info}/WHEEL +1 -1
  46. pulumi_vsphere-4.10.3a1723624830.dist-info/RECORD +0 -86
  47. {pulumi_vsphere-4.10.3a1723624830.dist-info → pulumi_vsphere-4.11.0a1.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,8 +759,8 @@ 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
 
781
765
  ```python
782
766
  import pulumi
@@ -786,7 +770,6 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
786
770
  template = vsphere.get_virtual_machine(name="ubuntu-server-template",
787
771
  datacenter_id=datacenter.id)
788
772
  ```
789
-
790
773
  In the following example, each virtual machine template is returned by its
791
774
  unique full path within the `Datacenter`.
792
775
 
@@ -803,16 +786,14 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
803
786
 
804
787
 
805
788
  :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`.
789
+ `guest_id` is a non-specific operating system, like `otherGuest` or `otherGuest64`.
808
790
  :param str annotation: The user-provided description of this virtual machine.
809
791
  :param str datacenter_id: The managed object reference
810
792
  ID of the datacenter the virtual machine is located in.
811
793
  This can be omitted if the search path used in `name` is an absolute path.
812
794
  For default datacenters, use the `id` attribute from an empty
813
795
  `Datacenter` data source.
814
- :param str firmware: The firmware type for this virtual machine. Can be `bios` or
815
- `efi`.
796
+ :param str firmware: The firmware type for this virtual machine. Can be `bios` or `efi`.
816
797
  :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
798
  :param str guest_id: The guest ID of the virtual machine or template.
818
799
  :param int hardware_version: The hardware version number on this virtual machine.
@@ -820,8 +801,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
820
801
  :param str name: The name of the virtual machine. This can be a name or
821
802
  the full path relative to the datacenter. This is required if a UUID lookup
822
803
  is not performed.
823
- :param int num_cores_per_socket: The number of cores per socket for this virtual
824
- machine.
804
+ :param int num_cores_per_socket: The number of cores per socket for this virtual machine.
825
805
  :param int num_cpus: The total number of virtual processor cores assigned to this
826
806
  virtual machine.
827
807
  :param int scsi_controller_scan_count: The number of SCSI controllers to
@@ -925,7 +905,6 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
925
905
  hv_mode=pulumi.get(__ret__, 'hv_mode'),
926
906
  id=pulumi.get(__ret__, 'id'),
927
907
  ide_controller_scan_count=pulumi.get(__ret__, 'ide_controller_scan_count'),
928
- instance_uuid=pulumi.get(__ret__, 'instance_uuid'),
929
908
  latency_sensitivity=pulumi.get(__ret__, 'latency_sensitivity'),
930
909
  memory=pulumi.get(__ret__, 'memory'),
931
910
  memory_hot_add_enabled=pulumi.get(__ret__, 'memory_hot_add_enabled'),
@@ -1016,7 +995,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1016
995
  sync_time_with_host_periodically: Optional[pulumi.Input[Optional[bool]]] = None,
1017
996
  tools_upgrade_policy: Optional[pulumi.Input[Optional[str]]] = None,
1018
997
  uuid: Optional[pulumi.Input[Optional[str]]] = None,
1019
- vapp: Optional[pulumi.Input[Optional[Union['GetVirtualMachineVappArgs', 'GetVirtualMachineVappArgsDict']]]] = None,
998
+ vapp: Optional[pulumi.Input[Optional[pulumi.InputType['GetVirtualMachineVappArgs']]]] = None,
1020
999
  vbs_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
1021
1000
  vvtd_enabled: Optional[pulumi.Input[Optional[bool]]] = None,
1022
1001
  opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetVirtualMachineResult]:
@@ -1029,8 +1008,8 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1029
1008
 
1030
1009
  ## Example Usage
1031
1010
 
1032
- In the following example, a virtual machine template is returned by its unique
1033
- name within the `Datacenter`.
1011
+ In the following example, a virtual machine template is returned by its
1012
+ unique name within the `Datacenter`.
1034
1013
 
1035
1014
  ```python
1036
1015
  import pulumi
@@ -1040,7 +1019,6 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1040
1019
  template = vsphere.get_virtual_machine(name="ubuntu-server-template",
1041
1020
  datacenter_id=datacenter.id)
1042
1021
  ```
1043
-
1044
1022
  In the following example, each virtual machine template is returned by its
1045
1023
  unique full path within the `Datacenter`.
1046
1024
 
@@ -1057,16 +1035,14 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1057
1035
 
1058
1036
 
1059
1037
  :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`.
1038
+ `guest_id` is a non-specific operating system, like `otherGuest` or `otherGuest64`.
1062
1039
  :param str annotation: The user-provided description of this virtual machine.
1063
1040
  :param str datacenter_id: The managed object reference
1064
1041
  ID of the datacenter the virtual machine is located in.
1065
1042
  This can be omitted if the search path used in `name` is an absolute path.
1066
1043
  For default datacenters, use the `id` attribute from an empty
1067
1044
  `Datacenter` data source.
1068
- :param str firmware: The firmware type for this virtual machine. Can be `bios` or
1069
- `efi`.
1045
+ :param str firmware: The firmware type for this virtual machine. Can be `bios` or `efi`.
1070
1046
  :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
1047
  :param str guest_id: The guest ID of the virtual machine or template.
1072
1048
  :param int hardware_version: The hardware version number on this virtual machine.
@@ -1074,8 +1050,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
1074
1050
  :param str name: The name of the virtual machine. This can be a name or
1075
1051
  the full path relative to the datacenter. This is required if a UUID lookup
1076
1052
  is not performed.
1077
- :param int num_cores_per_socket: The number of cores per socket for this virtual
1078
- machine.
1053
+ :param int num_cores_per_socket: The number of cores per socket for this virtual machine.
1079
1054
  :param int num_cpus: The total number of virtual processor cores assigned to this
1080
1055
  virtual machine.
1081
1056
  :param int scsi_controller_scan_count: The number of SCSI controllers to
@@ -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
  """
@@ -208,30 +208,30 @@ class GuestOsCustomization(pulumi.CustomResource):
208
208
  import pulumi
209
209
  import pulumi_vsphere as vsphere
210
210
 
211
- windows = vsphere.GuestOsCustomization("windows",
212
- name="windows",
211
+ windows_customization = vsphere.GuestOsCustomization("windows_customization",
212
+ name="windows-spec",
213
213
  type="Windows",
214
- spec={
215
- "windows_options": {
216
- "run_once_command_lists": [
214
+ spec=vsphere.GuestOsCustomizationSpecArgs(
215
+ windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(
216
+ run_once_command_lists=[
217
217
  "command-1",
218
218
  "command-2",
219
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
- })
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
228
  ```
229
229
 
230
230
  :param str resource_name: The name of the resource.
231
231
  :param pulumi.ResourceOptions opts: Options for the resource.
232
232
  :param pulumi.Input[str] description: The description for the customization specification.
233
233
  :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
234
+ :param pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
235
235
  :param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
236
236
  """
237
237
  ...
@@ -251,23 +251,23 @@ class GuestOsCustomization(pulumi.CustomResource):
251
251
  import pulumi
252
252
  import pulumi_vsphere as vsphere
253
253
 
254
- windows = vsphere.GuestOsCustomization("windows",
255
- name="windows",
254
+ windows_customization = vsphere.GuestOsCustomization("windows_customization",
255
+ name="windows-spec",
256
256
  type="Windows",
257
- spec={
258
- "windows_options": {
259
- "run_once_command_lists": [
257
+ spec=vsphere.GuestOsCustomizationSpecArgs(
258
+ windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(
259
+ run_once_command_lists=[
260
260
  "command-1",
261
261
  "command-2",
262
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
- })
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
271
  ```
272
272
 
273
273
  :param str resource_name: The name of the resource.
@@ -287,7 +287,7 @@ class GuestOsCustomization(pulumi.CustomResource):
287
287
  opts: Optional[pulumi.ResourceOptions] = None,
288
288
  description: Optional[pulumi.Input[str]] = None,
289
289
  name: Optional[pulumi.Input[str]] = None,
290
- spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
290
+ spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
291
291
  type: Optional[pulumi.Input[str]] = None,
292
292
  __props__=None):
293
293
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
@@ -322,7 +322,7 @@ class GuestOsCustomization(pulumi.CustomResource):
322
322
  description: Optional[pulumi.Input[str]] = None,
323
323
  last_update_time: Optional[pulumi.Input[str]] = None,
324
324
  name: Optional[pulumi.Input[str]] = None,
325
- spec: Optional[pulumi.Input[Union['GuestOsCustomizationSpecArgs', 'GuestOsCustomizationSpecArgsDict']]] = None,
325
+ spec: Optional[pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']]] = None,
326
326
  type: Optional[pulumi.Input[str]] = None) -> 'GuestOsCustomization':
327
327
  """
328
328
  Get an existing GuestOsCustomization resource's state with the given name, id, and optional extra
@@ -335,7 +335,7 @@ class GuestOsCustomization(pulumi.CustomResource):
335
335
  :param pulumi.Input[str] description: The description for the customization specification.
336
336
  :param pulumi.Input[str] last_update_time: The time of last modification to the customization specification.
337
337
  :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
338
+ :param pulumi.Input[pulumi.InputType['GuestOsCustomizationSpecArgs']] spec: Container object for the Guest OS properties about to be customized . See virtual machine customizations
339
339
  :param pulumi.Input[str] type: The type of customization specification: One among: Windows, Linux.
340
340
  """
341
341
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
@@ -953,7 +953,7 @@ class HostPortGroup(pulumi.CustomResource):
953
953
  key: Optional[pulumi.Input[str]] = None,
954
954
  name: Optional[pulumi.Input[str]] = None,
955
955
  notify_switches: Optional[pulumi.Input[bool]] = None,
956
- ports: Optional[pulumi.Input[Sequence[pulumi.Input[Union['HostPortGroupPortArgs', 'HostPortGroupPortArgsDict']]]]] = None,
956
+ ports: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HostPortGroupPortArgs']]]]] = None,
957
957
  shaping_average_bandwidth: Optional[pulumi.Input[int]] = None,
958
958
  shaping_burst_size: Optional[pulumi.Input[int]] = None,
959
959
  shaping_enabled: Optional[pulumi.Input[bool]] = None,
@@ -986,7 +986,7 @@ class HostPortGroup(pulumi.CustomResource):
986
986
  :param pulumi.Input[str] name: The name of the port group. Forces a new resource if
987
987
  changed.
988
988
  :param pulumi.Input[bool] notify_switches: If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
989
- :param pulumi.Input[Sequence[pulumi.Input[Union['HostPortGroupPortArgs', 'HostPortGroupPortArgsDict']]]] ports: A list of ports that currently exist and are used on this port group.
989
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['HostPortGroupPortArgs']]]] ports: A list of ports that currently exist and are used on this port group.
990
990
  :param pulumi.Input[int] shaping_average_bandwidth: The average bandwidth in bits per second if traffic shaping is enabled.
991
991
  :param pulumi.Input[int] shaping_burst_size: The maximum burst size allowed in bytes if traffic shaping is enabled.
992
992
  :param pulumi.Input[bool] shaping_enabled: Enable traffic shaping on this virtual switch or port group.
@@ -30,7 +30,7 @@ class NasDatastoreArgs:
30
30
  :param pulumi.Input[Sequence[pulumi.Input[str]]] host_system_ids: The managed object IDs of
31
31
  the hosts to mount the datastore on.
32
32
  :param pulumi.Input[Sequence[pulumi.Input[str]]] remote_hosts: The hostnames or IP addresses of the remote
33
- servers. Only one element should be present for NFS v3 but multiple
33
+ server or servers. Only one element should be present for NFS v3 but multiple
34
34
  can be present for NFS v4.1. Forces a new resource if changed.
35
35
  :param pulumi.Input[str] remote_path: The remote path of the mount point. Forces a new
36
36
  resource if changed.
@@ -104,7 +104,7 @@ class NasDatastoreArgs:
104
104
  def remote_hosts(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
105
105
  """
106
106
  The hostnames or IP addresses of the remote
107
- servers. Only one element should be present for NFS v3 but multiple
107
+ server or servers. Only one element should be present for NFS v3 but multiple
108
108
  can be present for NFS v4.1. Forces a new resource if changed.
109
109
  """
110
110
  return pulumi.get(self, "remote_hosts")
@@ -303,7 +303,7 @@ class _NasDatastoreState:
303
303
  :param pulumi.Input[bool] protocol_endpoint: Indicates that this NAS volume is a protocol endpoint.
304
304
  This field is only populated if the host supports virtual datastores.
305
305
  :param pulumi.Input[Sequence[pulumi.Input[str]]] remote_hosts: The hostnames or IP addresses of the remote
306
- servers. Only one element should be present for NFS v3 but multiple
306
+ server or servers. Only one element should be present for NFS v3 but multiple
307
307
  can be present for NFS v4.1. Forces a new resource if changed.
308
308
  :param pulumi.Input[str] remote_path: The remote path of the mount point. Forces a new
309
309
  resource if changed.
@@ -529,7 +529,7 @@ class _NasDatastoreState:
529
529
  def remote_hosts(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
530
530
  """
531
531
  The hostnames or IP addresses of the remote
532
- servers. Only one element should be present for NFS v3 but multiple
532
+ server or servers. Only one element should be present for NFS v3 but multiple
533
533
  can be present for NFS v4.1. Forces a new resource if changed.
534
534
  """
535
535
  return pulumi.get(self, "remote_hosts")
@@ -665,7 +665,7 @@ class NasDatastore(pulumi.CustomResource):
665
665
  :param pulumi.Input[str] name: The name of the datastore. Forces a new resource if
666
666
  changed.
667
667
  :param pulumi.Input[Sequence[pulumi.Input[str]]] remote_hosts: The hostnames or IP addresses of the remote
668
- servers. Only one element should be present for NFS v3 but multiple
668
+ server or servers. Only one element should be present for NFS v3 but multiple
669
669
  can be present for NFS v4.1. Forces a new resource if changed.
670
670
  :param pulumi.Input[str] remote_path: The remote path of the mount point. Forces a new
671
671
  resource if changed.
@@ -817,7 +817,7 @@ class NasDatastore(pulumi.CustomResource):
817
817
  :param pulumi.Input[bool] protocol_endpoint: Indicates that this NAS volume is a protocol endpoint.
818
818
  This field is only populated if the host supports virtual datastores.
819
819
  :param pulumi.Input[Sequence[pulumi.Input[str]]] remote_hosts: The hostnames or IP addresses of the remote
820
- servers. Only one element should be present for NFS v3 but multiple
820
+ server or servers. Only one element should be present for NFS v3 but multiple
821
821
  can be present for NFS v4.1. Forces a new resource if changed.
822
822
  :param pulumi.Input[str] remote_path: The remote path of the mount point. Forces a new
823
823
  resource if changed.
@@ -981,7 +981,7 @@ class NasDatastore(pulumi.CustomResource):
981
981
  def remote_hosts(self) -> pulumi.Output[Sequence[str]]:
982
982
  """
983
983
  The hostnames or IP addresses of the remote
984
- servers. Only one element should be present for NFS v3 but multiple
984
+ server or servers. Only one element should be present for NFS v3 but multiple
985
985
  can be present for NFS v4.1. Forces a new resource if changed.
986
986
  """
987
987
  return pulumi.get(self, "remote_hosts")
@@ -142,7 +142,7 @@ class OfflineSoftwareDepot(pulumi.CustomResource):
142
142
  def get(resource_name: str,
143
143
  id: pulumi.Input[str],
144
144
  opts: Optional[pulumi.ResourceOptions] = None,
145
- components: Optional[pulumi.Input[Sequence[pulumi.Input[Union['OfflineSoftwareDepotComponentArgs', 'OfflineSoftwareDepotComponentArgsDict']]]]] = None,
145
+ components: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OfflineSoftwareDepotComponentArgs']]]]] = None,
146
146
  location: Optional[pulumi.Input[str]] = None) -> 'OfflineSoftwareDepot':
147
147
  """
148
148
  Get an existing OfflineSoftwareDepot resource's state with the given name, id, and optional extra
@@ -151,7 +151,7 @@ class OfflineSoftwareDepot(pulumi.CustomResource):
151
151
  :param str resource_name: The unique name of the resulting resource.
152
152
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
153
153
  :param pulumi.ResourceOptions opts: Options for the resource.
154
- :param pulumi.Input[Sequence[pulumi.Input[Union['OfflineSoftwareDepotComponentArgs', 'OfflineSoftwareDepotComponentArgsDict']]]] components: The list of custom components in the depot.
154
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OfflineSoftwareDepotComponentArgs']]]] components: The list of custom components in the depot.
155
155
  :param pulumi.Input[str] location: The URL where the depot source is hosted.
156
156
  """
157
157
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))