pulumi-vsphere 4.9.0a1698129503__py3-none-any.whl → 4.9.0a1698198425__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 (71) hide show
  1. pulumi_vsphere/_inputs.py +311 -93
  2. pulumi_vsphere/_utilities.py +19 -0
  3. pulumi_vsphere/compute_cluster.py +259 -3
  4. pulumi_vsphere/compute_cluster_host_group.py +17 -3
  5. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +20 -130
  6. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +20 -4
  7. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +27 -5
  8. pulumi_vsphere/compute_cluster_vm_group.py +17 -3
  9. pulumi_vsphere/compute_cluster_vm_host_rule.py +28 -4
  10. pulumi_vsphere/content_library.py +15 -13
  11. pulumi_vsphere/content_library_item.py +21 -3
  12. pulumi_vsphere/custom_attribute.py +10 -2
  13. pulumi_vsphere/datacenter.py +10 -34
  14. pulumi_vsphere/datastore_cluster.py +97 -3
  15. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +20 -4
  16. pulumi_vsphere/distributed_port_group.py +175 -3
  17. pulumi_vsphere/distributed_virtual_switch.py +355 -115
  18. pulumi_vsphere/dpm_host_override.py +28 -4
  19. pulumi_vsphere/drs_vm_override.py +28 -4
  20. pulumi_vsphere/entity_permissions.py +23 -5
  21. pulumi_vsphere/file.py +35 -61
  22. pulumi_vsphere/folder.py +20 -4
  23. pulumi_vsphere/get_compute_cluster.py +0 -22
  24. pulumi_vsphere/get_compute_cluster_host_group.py +0 -34
  25. pulumi_vsphere/get_content_library.py +0 -18
  26. pulumi_vsphere/get_custom_attribute.py +0 -18
  27. pulumi_vsphere/get_datacenter.py +0 -18
  28. pulumi_vsphere/get_datastore.py +0 -22
  29. pulumi_vsphere/get_datastore_cluster.py +0 -22
  30. pulumi_vsphere/get_distributed_virtual_switch.py +0 -40
  31. pulumi_vsphere/get_dynamic.py +0 -38
  32. pulumi_vsphere/get_folder.py +0 -18
  33. pulumi_vsphere/get_host.py +0 -22
  34. pulumi_vsphere/get_host_pci_device.py +2 -26
  35. pulumi_vsphere/get_host_thumbprint.py +0 -18
  36. pulumi_vsphere/get_license.py +0 -18
  37. pulumi_vsphere/get_network.py +0 -22
  38. pulumi_vsphere/get_policy.py +0 -20
  39. pulumi_vsphere/get_resource_pool.py +0 -64
  40. pulumi_vsphere/get_role.py +0 -18
  41. pulumi_vsphere/get_tag.py +0 -22
  42. pulumi_vsphere/get_tag_category.py +0 -18
  43. pulumi_vsphere/get_vapp_container.py +0 -22
  44. pulumi_vsphere/get_virtual_machine.py +0 -54
  45. pulumi_vsphere/get_vmfs_disks.py +0 -28
  46. pulumi_vsphere/ha_vm_override.py +72 -4
  47. pulumi_vsphere/host.py +23 -101
  48. pulumi_vsphere/host_port_group.py +74 -132
  49. pulumi_vsphere/host_virtual_switch.py +87 -5
  50. pulumi_vsphere/license.py +15 -31
  51. pulumi_vsphere/nas_datastore.py +53 -5
  52. pulumi_vsphere/outputs.py +364 -104
  53. pulumi_vsphere/provider.py +31 -3
  54. pulumi_vsphere/resource_pool.py +61 -83
  55. pulumi_vsphere/role.py +10 -2
  56. pulumi_vsphere/storage_drs_vm_override.py +32 -4
  57. pulumi_vsphere/tag.py +13 -3
  58. pulumi_vsphere/tag_category.py +16 -4
  59. pulumi_vsphere/vapp_container.py +61 -3
  60. pulumi_vsphere/vapp_entity.py +48 -4
  61. pulumi_vsphere/virtual_disk.py +27 -5
  62. pulumi_vsphere/virtual_machine.py +284 -18
  63. pulumi_vsphere/virtual_machine_snapshot.py +33 -39
  64. pulumi_vsphere/vm_storage_policy.py +13 -205
  65. pulumi_vsphere/vmfs_datastore.py +32 -4
  66. pulumi_vsphere/vnic.py +19 -153
  67. {pulumi_vsphere-4.9.0a1698129503.dist-info → pulumi_vsphere-4.9.0a1698198425.dist-info}/METADATA +1 -1
  68. pulumi_vsphere-4.9.0a1698198425.dist-info/RECORD +77 -0
  69. pulumi_vsphere-4.9.0a1698129503.dist-info/RECORD +0 -77
  70. {pulumi_vsphere-4.9.0a1698129503.dist-info → pulumi_vsphere-4.9.0a1698198425.dist-info}/WHEEL +0 -0
  71. {pulumi_vsphere-4.9.0a1698129503.dist-info → pulumi_vsphere-4.9.0a1698198425.dist-info}/top_level.txt +0 -0
pulumi_vsphere/outputs.py CHANGED
@@ -49,31 +49,6 @@ class ComputeClusterVsanDiskGroup(dict):
49
49
 
50
50
  > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster.
51
51
  You can enable or re-enable vSphere HA after vSAN is configured.
52
-
53
- ```python
54
- import pulumi
55
- import pulumi_vsphere as vsphere
56
-
57
- compute_cluster = vsphere.ComputeCluster("computeCluster",
58
- datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"],
59
- host_system_ids=[[__item["id"] for __item in data["vsphere_host"]["host"]]],
60
- drs_enabled=True,
61
- drs_automation_level="fullyAutomated",
62
- ha_enabled=False,
63
- vsan_enabled=True,
64
- vsan_dedup_enabled=True,
65
- vsan_compression_enabled=True,
66
- vsan_performance_enabled=True,
67
- vsan_verbose_mode_enabled=True,
68
- vsan_network_diagnostic_mode_enabled=True,
69
- vsan_unmap_enabled=True,
70
- vsan_dit_encryption_enabled=True,
71
- vsan_dit_rekey_interval=1800,
72
- vsan_disk_groups=[vsphere.ComputeClusterVsanDiskGroupArgs(
73
- cache=data["vsphere_vmfs_disks"]["cache_disks"],
74
- storages=data["vsphere_vmfs_disks"]["storage_disks"],
75
- )])
76
- ```
77
52
  """
78
53
  ComputeClusterVsanDiskGroup._configure(
79
54
  lambda key, value: pulumi.set(__self__, key, value),
@@ -85,7 +60,9 @@ class ComputeClusterVsanDiskGroup(dict):
85
60
  _setter: Callable[[Any, Any], None],
86
61
  cache: Optional[str] = None,
87
62
  storages: Optional[Sequence[str]] = None,
88
- opts: Optional[pulumi.ResourceOptions]=None):
63
+ opts: Optional[pulumi.ResourceOptions] = None,
64
+ **kwargs):
65
+
89
66
  if cache is not None:
90
67
  _setter("cache", cache)
91
68
  if storages is not None:
@@ -107,31 +84,6 @@ class ComputeClusterVsanDiskGroup(dict):
107
84
 
108
85
  > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster.
109
86
  You can enable or re-enable vSphere HA after vSAN is configured.
110
-
111
- ```python
112
- import pulumi
113
- import pulumi_vsphere as vsphere
114
-
115
- compute_cluster = vsphere.ComputeCluster("computeCluster",
116
- datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"],
117
- host_system_ids=[[__item["id"] for __item in data["vsphere_host"]["host"]]],
118
- drs_enabled=True,
119
- drs_automation_level="fullyAutomated",
120
- ha_enabled=False,
121
- vsan_enabled=True,
122
- vsan_dedup_enabled=True,
123
- vsan_compression_enabled=True,
124
- vsan_performance_enabled=True,
125
- vsan_verbose_mode_enabled=True,
126
- vsan_network_diagnostic_mode_enabled=True,
127
- vsan_unmap_enabled=True,
128
- vsan_dit_encryption_enabled=True,
129
- vsan_dit_rekey_interval=1800,
130
- vsan_disk_groups=[vsphere.ComputeClusterVsanDiskGroupArgs(
131
- cache=data["vsphere_vmfs_disks"]["cache_disks"],
132
- storages=data["vsphere_vmfs_disks"]["storage_disks"],
133
- )])
134
- ```
135
87
  """
136
88
  return pulumi.get(self, "storages")
137
89
 
@@ -186,7 +138,13 @@ class ContentLibraryPublication(dict):
186
138
  publish_url: Optional[str] = None,
187
139
  published: Optional[bool] = None,
188
140
  username: Optional[str] = None,
189
- opts: Optional[pulumi.ResourceOptions]=None):
141
+ opts: Optional[pulumi.ResourceOptions] = None,
142
+ **kwargs):
143
+ if authentication_method is None and 'authenticationMethod' in kwargs:
144
+ authentication_method = kwargs['authenticationMethod']
145
+ if publish_url is None and 'publishUrl' in kwargs:
146
+ publish_url = kwargs['publishUrl']
147
+
190
148
  if authentication_method is not None:
191
149
  _setter("authentication_method", authentication_method)
192
150
  if password is not None:
@@ -297,7 +255,17 @@ class ContentLibrarySubscription(dict):
297
255
  password: Optional[str] = None,
298
256
  subscription_url: Optional[str] = None,
299
257
  username: Optional[str] = None,
300
- opts: Optional[pulumi.ResourceOptions]=None):
258
+ opts: Optional[pulumi.ResourceOptions] = None,
259
+ **kwargs):
260
+ if authentication_method is None and 'authenticationMethod' in kwargs:
261
+ authentication_method = kwargs['authenticationMethod']
262
+ if automatic_sync is None and 'automaticSync' in kwargs:
263
+ automatic_sync = kwargs['automaticSync']
264
+ if on_demand is None and 'onDemand' in kwargs:
265
+ on_demand = kwargs['onDemand']
266
+ if subscription_url is None and 'subscriptionUrl' in kwargs:
267
+ subscription_url = kwargs['subscriptionUrl']
268
+
301
269
  if authentication_method is not None:
302
270
  _setter("authentication_method", authentication_method)
303
271
  if automatic_sync is not None:
@@ -392,9 +360,19 @@ class DistributedPortGroupVlanRange(dict):
392
360
  @staticmethod
393
361
  def _configure(
394
362
  _setter: Callable[[Any, Any], None],
395
- max_vlan: int,
396
- min_vlan: int,
397
- opts: Optional[pulumi.ResourceOptions]=None):
363
+ max_vlan: Optional[int] = None,
364
+ min_vlan: Optional[int] = None,
365
+ opts: Optional[pulumi.ResourceOptions] = None,
366
+ **kwargs):
367
+ if max_vlan is None and 'maxVlan' in kwargs:
368
+ max_vlan = kwargs['maxVlan']
369
+ if max_vlan is None:
370
+ raise TypeError("Missing 'max_vlan' argument")
371
+ if min_vlan is None and 'minVlan' in kwargs:
372
+ min_vlan = kwargs['minVlan']
373
+ if min_vlan is None:
374
+ raise TypeError("Missing 'min_vlan' argument")
375
+
398
376
  _setter("max_vlan", max_vlan)
399
377
  _setter("min_vlan", min_vlan)
400
378
 
@@ -445,9 +423,15 @@ class DistributedVirtualSwitchHost(dict):
445
423
  @staticmethod
446
424
  def _configure(
447
425
  _setter: Callable[[Any, Any], None],
448
- host_system_id: str,
426
+ host_system_id: Optional[str] = None,
449
427
  devices: Optional[Sequence[str]] = None,
450
- opts: Optional[pulumi.ResourceOptions]=None):
428
+ opts: Optional[pulumi.ResourceOptions] = None,
429
+ **kwargs):
430
+ if host_system_id is None and 'hostSystemId' in kwargs:
431
+ host_system_id = kwargs['hostSystemId']
432
+ if host_system_id is None:
433
+ raise TypeError("Missing 'host_system_id' argument")
434
+
451
435
  _setter("host_system_id", host_system_id)
452
436
  if devices is not None:
453
437
  _setter("devices", devices)
@@ -515,10 +499,24 @@ class DistributedVirtualSwitchPvlanMapping(dict):
515
499
  @staticmethod
516
500
  def _configure(
517
501
  _setter: Callable[[Any, Any], None],
518
- primary_vlan_id: int,
519
- pvlan_type: str,
520
- secondary_vlan_id: int,
521
- opts: Optional[pulumi.ResourceOptions]=None):
502
+ primary_vlan_id: Optional[int] = None,
503
+ pvlan_type: Optional[str] = None,
504
+ secondary_vlan_id: Optional[int] = None,
505
+ opts: Optional[pulumi.ResourceOptions] = None,
506
+ **kwargs):
507
+ if primary_vlan_id is None and 'primaryVlanId' in kwargs:
508
+ primary_vlan_id = kwargs['primaryVlanId']
509
+ if primary_vlan_id is None:
510
+ raise TypeError("Missing 'primary_vlan_id' argument")
511
+ if pvlan_type is None and 'pvlanType' in kwargs:
512
+ pvlan_type = kwargs['pvlanType']
513
+ if pvlan_type is None:
514
+ raise TypeError("Missing 'pvlan_type' argument")
515
+ if secondary_vlan_id is None and 'secondaryVlanId' in kwargs:
516
+ secondary_vlan_id = kwargs['secondaryVlanId']
517
+ if secondary_vlan_id is None:
518
+ raise TypeError("Missing 'secondary_vlan_id' argument")
519
+
522
520
  _setter("primary_vlan_id", primary_vlan_id)
523
521
  _setter("pvlan_type", pvlan_type)
524
522
  _setter("secondary_vlan_id", secondary_vlan_id)
@@ -583,9 +581,19 @@ class DistributedVirtualSwitchVlanRange(dict):
583
581
  @staticmethod
584
582
  def _configure(
585
583
  _setter: Callable[[Any, Any], None],
586
- max_vlan: int,
587
- min_vlan: int,
588
- opts: Optional[pulumi.ResourceOptions]=None):
584
+ max_vlan: Optional[int] = None,
585
+ min_vlan: Optional[int] = None,
586
+ opts: Optional[pulumi.ResourceOptions] = None,
587
+ **kwargs):
588
+ if max_vlan is None and 'maxVlan' in kwargs:
589
+ max_vlan = kwargs['maxVlan']
590
+ if max_vlan is None:
591
+ raise TypeError("Missing 'max_vlan' argument")
592
+ if min_vlan is None and 'minVlan' in kwargs:
593
+ min_vlan = kwargs['minVlan']
594
+ if min_vlan is None:
595
+ raise TypeError("Missing 'min_vlan' argument")
596
+
589
597
  _setter("max_vlan", max_vlan)
590
598
  _setter("min_vlan", min_vlan)
591
599
 
@@ -644,11 +652,27 @@ class EntityPermissionsPermission(dict):
644
652
  @staticmethod
645
653
  def _configure(
646
654
  _setter: Callable[[Any, Any], None],
647
- is_group: bool,
648
- propagate: bool,
649
- role_id: str,
650
- user_or_group: str,
651
- opts: Optional[pulumi.ResourceOptions]=None):
655
+ is_group: Optional[bool] = None,
656
+ propagate: Optional[bool] = None,
657
+ role_id: Optional[str] = None,
658
+ user_or_group: Optional[str] = None,
659
+ opts: Optional[pulumi.ResourceOptions] = None,
660
+ **kwargs):
661
+ if is_group is None and 'isGroup' in kwargs:
662
+ is_group = kwargs['isGroup']
663
+ if is_group is None:
664
+ raise TypeError("Missing 'is_group' argument")
665
+ if propagate is None:
666
+ raise TypeError("Missing 'propagate' argument")
667
+ if role_id is None and 'roleId' in kwargs:
668
+ role_id = kwargs['roleId']
669
+ if role_id is None:
670
+ raise TypeError("Missing 'role_id' argument")
671
+ if user_or_group is None and 'userOrGroup' in kwargs:
672
+ user_or_group = kwargs['userOrGroup']
673
+ if user_or_group is None:
674
+ raise TypeError("Missing 'user_or_group' argument")
675
+
652
676
  _setter("is_group", is_group)
653
677
  _setter("propagate", propagate)
654
678
  _setter("role_id", role_id)
@@ -725,7 +749,11 @@ class HostPortGroupPort(dict):
725
749
  key: Optional[str] = None,
726
750
  mac_addresses: Optional[Sequence[str]] = None,
727
751
  type: Optional[str] = None,
728
- opts: Optional[pulumi.ResourceOptions]=None):
752
+ opts: Optional[pulumi.ResourceOptions] = None,
753
+ **kwargs):
754
+ if mac_addresses is None and 'macAddresses' in kwargs:
755
+ mac_addresses = kwargs['macAddresses']
756
+
729
757
  if key is not None:
730
758
  _setter("key", key)
731
759
  if mac_addresses is not None:
@@ -807,7 +835,15 @@ class VirtualMachineCdrom(dict):
807
835
  device_address: Optional[str] = None,
808
836
  key: Optional[int] = None,
809
837
  path: Optional[str] = None,
810
- opts: Optional[pulumi.ResourceOptions]=None):
838
+ opts: Optional[pulumi.ResourceOptions] = None,
839
+ **kwargs):
840
+ if client_device is None and 'clientDevice' in kwargs:
841
+ client_device = kwargs['clientDevice']
842
+ if datastore_id is None and 'datastoreId' in kwargs:
843
+ datastore_id = kwargs['datastoreId']
844
+ if device_address is None and 'deviceAddress' in kwargs:
845
+ device_address = kwargs['deviceAddress']
846
+
811
847
  if client_device is not None:
812
848
  _setter("client_device", client_device)
813
849
  if datastore_id is not None:
@@ -905,13 +941,25 @@ class VirtualMachineClone(dict):
905
941
  @staticmethod
906
942
  def _configure(
907
943
  _setter: Callable[[Any, Any], None],
908
- template_uuid: str,
944
+ template_uuid: Optional[str] = None,
909
945
  customize: Optional['outputs.VirtualMachineCloneCustomize'] = None,
910
946
  linked_clone: Optional[bool] = None,
911
947
  ovf_network_map: Optional[Mapping[str, str]] = None,
912
948
  ovf_storage_map: Optional[Mapping[str, str]] = None,
913
949
  timeout: Optional[int] = None,
914
- opts: Optional[pulumi.ResourceOptions]=None):
950
+ opts: Optional[pulumi.ResourceOptions] = None,
951
+ **kwargs):
952
+ if template_uuid is None and 'templateUuid' in kwargs:
953
+ template_uuid = kwargs['templateUuid']
954
+ if template_uuid is None:
955
+ raise TypeError("Missing 'template_uuid' argument")
956
+ if linked_clone is None and 'linkedClone' in kwargs:
957
+ linked_clone = kwargs['linkedClone']
958
+ if ovf_network_map is None and 'ovfNetworkMap' in kwargs:
959
+ ovf_network_map = kwargs['ovfNetworkMap']
960
+ if ovf_storage_map is None and 'ovfStorageMap' in kwargs:
961
+ ovf_storage_map = kwargs['ovfStorageMap']
962
+
915
963
  _setter("template_uuid", template_uuid)
916
964
  if customize is not None:
917
965
  _setter("customize", customize)
@@ -1025,7 +1073,25 @@ class VirtualMachineCloneCustomize(dict):
1025
1073
  timeout: Optional[int] = None,
1026
1074
  windows_options: Optional['outputs.VirtualMachineCloneCustomizeWindowsOptions'] = None,
1027
1075
  windows_sysprep_text: Optional[str] = None,
1028
- opts: Optional[pulumi.ResourceOptions]=None):
1076
+ opts: Optional[pulumi.ResourceOptions] = None,
1077
+ **kwargs):
1078
+ if dns_server_lists is None and 'dnsServerLists' in kwargs:
1079
+ dns_server_lists = kwargs['dnsServerLists']
1080
+ if dns_suffix_lists is None and 'dnsSuffixLists' in kwargs:
1081
+ dns_suffix_lists = kwargs['dnsSuffixLists']
1082
+ if ipv4_gateway is None and 'ipv4Gateway' in kwargs:
1083
+ ipv4_gateway = kwargs['ipv4Gateway']
1084
+ if ipv6_gateway is None and 'ipv6Gateway' in kwargs:
1085
+ ipv6_gateway = kwargs['ipv6Gateway']
1086
+ if linux_options is None and 'linuxOptions' in kwargs:
1087
+ linux_options = kwargs['linuxOptions']
1088
+ if network_interfaces is None and 'networkInterfaces' in kwargs:
1089
+ network_interfaces = kwargs['networkInterfaces']
1090
+ if windows_options is None and 'windowsOptions' in kwargs:
1091
+ windows_options = kwargs['windowsOptions']
1092
+ if windows_sysprep_text is None and 'windowsSysprepText' in kwargs:
1093
+ windows_sysprep_text = kwargs['windowsSysprepText']
1094
+
1029
1095
  if dns_server_lists is not None:
1030
1096
  _setter("dns_server_lists", dns_server_lists)
1031
1097
  if dns_suffix_lists is not None:
@@ -1136,12 +1202,26 @@ class VirtualMachineCloneCustomizeLinuxOptions(dict):
1136
1202
  @staticmethod
1137
1203
  def _configure(
1138
1204
  _setter: Callable[[Any, Any], None],
1139
- domain: str,
1140
- host_name: str,
1205
+ domain: Optional[str] = None,
1206
+ host_name: Optional[str] = None,
1141
1207
  hw_clock_utc: Optional[bool] = None,
1142
1208
  script_text: Optional[str] = None,
1143
1209
  time_zone: Optional[str] = None,
1144
- opts: Optional[pulumi.ResourceOptions]=None):
1210
+ opts: Optional[pulumi.ResourceOptions] = None,
1211
+ **kwargs):
1212
+ if domain is None:
1213
+ raise TypeError("Missing 'domain' argument")
1214
+ if host_name is None and 'hostName' in kwargs:
1215
+ host_name = kwargs['hostName']
1216
+ if host_name is None:
1217
+ raise TypeError("Missing 'host_name' argument")
1218
+ if hw_clock_utc is None and 'hwClockUtc' in kwargs:
1219
+ hw_clock_utc = kwargs['hwClockUtc']
1220
+ if script_text is None and 'scriptText' in kwargs:
1221
+ script_text = kwargs['scriptText']
1222
+ if time_zone is None and 'timeZone' in kwargs:
1223
+ time_zone = kwargs['timeZone']
1224
+
1145
1225
  _setter("domain", domain)
1146
1226
  _setter("host_name", host_name)
1147
1227
  if hw_clock_utc is not None:
@@ -1231,7 +1311,21 @@ class VirtualMachineCloneCustomizeNetworkInterface(dict):
1231
1311
  ipv4_netmask: Optional[int] = None,
1232
1312
  ipv6_address: Optional[str] = None,
1233
1313
  ipv6_netmask: Optional[int] = None,
1234
- opts: Optional[pulumi.ResourceOptions]=None):
1314
+ opts: Optional[pulumi.ResourceOptions] = None,
1315
+ **kwargs):
1316
+ if dns_domain is None and 'dnsDomain' in kwargs:
1317
+ dns_domain = kwargs['dnsDomain']
1318
+ if dns_server_lists is None and 'dnsServerLists' in kwargs:
1319
+ dns_server_lists = kwargs['dnsServerLists']
1320
+ if ipv4_address is None and 'ipv4Address' in kwargs:
1321
+ ipv4_address = kwargs['ipv4Address']
1322
+ if ipv4_netmask is None and 'ipv4Netmask' in kwargs:
1323
+ ipv4_netmask = kwargs['ipv4Netmask']
1324
+ if ipv6_address is None and 'ipv6Address' in kwargs:
1325
+ ipv6_address = kwargs['ipv6Address']
1326
+ if ipv6_netmask is None and 'ipv6Netmask' in kwargs:
1327
+ ipv6_netmask = kwargs['ipv6Netmask']
1328
+
1235
1329
  if dns_domain is not None:
1236
1330
  _setter("dns_domain", dns_domain)
1237
1331
  if dns_server_lists is not None:
@@ -1350,7 +1444,7 @@ class VirtualMachineCloneCustomizeWindowsOptions(dict):
1350
1444
  @staticmethod
1351
1445
  def _configure(
1352
1446
  _setter: Callable[[Any, Any], None],
1353
- computer_name: str,
1447
+ computer_name: Optional[str] = None,
1354
1448
  admin_password: Optional[str] = None,
1355
1449
  auto_logon: Optional[bool] = None,
1356
1450
  auto_logon_count: Optional[int] = None,
@@ -1363,7 +1457,35 @@ class VirtualMachineCloneCustomizeWindowsOptions(dict):
1363
1457
  run_once_command_lists: Optional[Sequence[str]] = None,
1364
1458
  time_zone: Optional[int] = None,
1365
1459
  workgroup: Optional[str] = None,
1366
- opts: Optional[pulumi.ResourceOptions]=None):
1460
+ opts: Optional[pulumi.ResourceOptions] = None,
1461
+ **kwargs):
1462
+ if computer_name is None and 'computerName' in kwargs:
1463
+ computer_name = kwargs['computerName']
1464
+ if computer_name is None:
1465
+ raise TypeError("Missing 'computer_name' argument")
1466
+ if admin_password is None and 'adminPassword' in kwargs:
1467
+ admin_password = kwargs['adminPassword']
1468
+ if auto_logon is None and 'autoLogon' in kwargs:
1469
+ auto_logon = kwargs['autoLogon']
1470
+ if auto_logon_count is None and 'autoLogonCount' in kwargs:
1471
+ auto_logon_count = kwargs['autoLogonCount']
1472
+ if domain_admin_password is None and 'domainAdminPassword' in kwargs:
1473
+ domain_admin_password = kwargs['domainAdminPassword']
1474
+ if domain_admin_user is None and 'domainAdminUser' in kwargs:
1475
+ domain_admin_user = kwargs['domainAdminUser']
1476
+ if full_name is None and 'fullName' in kwargs:
1477
+ full_name = kwargs['fullName']
1478
+ if join_domain is None and 'joinDomain' in kwargs:
1479
+ join_domain = kwargs['joinDomain']
1480
+ if organization_name is None and 'organizationName' in kwargs:
1481
+ organization_name = kwargs['organizationName']
1482
+ if product_key is None and 'productKey' in kwargs:
1483
+ product_key = kwargs['productKey']
1484
+ if run_once_command_lists is None and 'runOnceCommandLists' in kwargs:
1485
+ run_once_command_lists = kwargs['runOnceCommandLists']
1486
+ if time_zone is None and 'timeZone' in kwargs:
1487
+ time_zone = kwargs['timeZone']
1488
+
1367
1489
  _setter("computer_name", computer_name)
1368
1490
  if admin_password is not None:
1369
1491
  _setter("admin_password", admin_password)
@@ -1583,7 +1705,7 @@ class VirtualMachineDisk(dict):
1583
1705
  @staticmethod
1584
1706
  def _configure(
1585
1707
  _setter: Callable[[Any, Any], None],
1586
- label: str,
1708
+ label: Optional[str] = None,
1587
1709
  attach: Optional[bool] = None,
1588
1710
  controller_type: Optional[str] = None,
1589
1711
  datastore_id: Optional[str] = None,
@@ -1604,7 +1726,41 @@ class VirtualMachineDisk(dict):
1604
1726
  unit_number: Optional[int] = None,
1605
1727
  uuid: Optional[str] = None,
1606
1728
  write_through: Optional[bool] = None,
1607
- opts: Optional[pulumi.ResourceOptions]=None):
1729
+ opts: Optional[pulumi.ResourceOptions] = None,
1730
+ **kwargs):
1731
+ if label is None:
1732
+ raise TypeError("Missing 'label' argument")
1733
+ if controller_type is None and 'controllerType' in kwargs:
1734
+ controller_type = kwargs['controllerType']
1735
+ if datastore_id is None and 'datastoreId' in kwargs:
1736
+ datastore_id = kwargs['datastoreId']
1737
+ if device_address is None and 'deviceAddress' in kwargs:
1738
+ device_address = kwargs['deviceAddress']
1739
+ if disk_mode is None and 'diskMode' in kwargs:
1740
+ disk_mode = kwargs['diskMode']
1741
+ if disk_sharing is None and 'diskSharing' in kwargs:
1742
+ disk_sharing = kwargs['diskSharing']
1743
+ if eagerly_scrub is None and 'eagerlyScrub' in kwargs:
1744
+ eagerly_scrub = kwargs['eagerlyScrub']
1745
+ if io_limit is None and 'ioLimit' in kwargs:
1746
+ io_limit = kwargs['ioLimit']
1747
+ if io_reservation is None and 'ioReservation' in kwargs:
1748
+ io_reservation = kwargs['ioReservation']
1749
+ if io_share_count is None and 'ioShareCount' in kwargs:
1750
+ io_share_count = kwargs['ioShareCount']
1751
+ if io_share_level is None and 'ioShareLevel' in kwargs:
1752
+ io_share_level = kwargs['ioShareLevel']
1753
+ if keep_on_remove is None and 'keepOnRemove' in kwargs:
1754
+ keep_on_remove = kwargs['keepOnRemove']
1755
+ if storage_policy_id is None and 'storagePolicyId' in kwargs:
1756
+ storage_policy_id = kwargs['storagePolicyId']
1757
+ if thin_provisioned is None and 'thinProvisioned' in kwargs:
1758
+ thin_provisioned = kwargs['thinProvisioned']
1759
+ if unit_number is None and 'unitNumber' in kwargs:
1760
+ unit_number = kwargs['unitNumber']
1761
+ if write_through is None and 'writeThrough' in kwargs:
1762
+ write_through = kwargs['writeThrough']
1763
+
1608
1764
  _setter("label", label)
1609
1765
  if attach is not None:
1610
1766
  _setter("attach", attach)
@@ -1898,7 +2054,7 @@ class VirtualMachineNetworkInterface(dict):
1898
2054
  @staticmethod
1899
2055
  def _configure(
1900
2056
  _setter: Callable[[Any, Any], None],
1901
- network_id: str,
2057
+ network_id: Optional[str] = None,
1902
2058
  adapter_type: Optional[str] = None,
1903
2059
  bandwidth_limit: Optional[int] = None,
1904
2060
  bandwidth_reservation: Optional[int] = None,
@@ -1909,7 +2065,31 @@ class VirtualMachineNetworkInterface(dict):
1909
2065
  mac_address: Optional[str] = None,
1910
2066
  ovf_mapping: Optional[str] = None,
1911
2067
  use_static_mac: Optional[bool] = None,
1912
- opts: Optional[pulumi.ResourceOptions]=None):
2068
+ opts: Optional[pulumi.ResourceOptions] = None,
2069
+ **kwargs):
2070
+ if network_id is None and 'networkId' in kwargs:
2071
+ network_id = kwargs['networkId']
2072
+ if network_id is None:
2073
+ raise TypeError("Missing 'network_id' argument")
2074
+ if adapter_type is None and 'adapterType' in kwargs:
2075
+ adapter_type = kwargs['adapterType']
2076
+ if bandwidth_limit is None and 'bandwidthLimit' in kwargs:
2077
+ bandwidth_limit = kwargs['bandwidthLimit']
2078
+ if bandwidth_reservation is None and 'bandwidthReservation' in kwargs:
2079
+ bandwidth_reservation = kwargs['bandwidthReservation']
2080
+ if bandwidth_share_count is None and 'bandwidthShareCount' in kwargs:
2081
+ bandwidth_share_count = kwargs['bandwidthShareCount']
2082
+ if bandwidth_share_level is None and 'bandwidthShareLevel' in kwargs:
2083
+ bandwidth_share_level = kwargs['bandwidthShareLevel']
2084
+ if device_address is None and 'deviceAddress' in kwargs:
2085
+ device_address = kwargs['deviceAddress']
2086
+ if mac_address is None and 'macAddress' in kwargs:
2087
+ mac_address = kwargs['macAddress']
2088
+ if ovf_mapping is None and 'ovfMapping' in kwargs:
2089
+ ovf_mapping = kwargs['ovfMapping']
2090
+ if use_static_mac is None and 'useStaticMac' in kwargs:
2091
+ use_static_mac = kwargs['useStaticMac']
2092
+
1913
2093
  _setter("network_id", network_id)
1914
2094
  if adapter_type is not None:
1915
2095
  _setter("adapter_type", adapter_type)
@@ -2087,7 +2267,27 @@ class VirtualMachineOvfDeploy(dict):
2087
2267
  local_ovf_path: Optional[str] = None,
2088
2268
  ovf_network_map: Optional[Mapping[str, str]] = None,
2089
2269
  remote_ovf_url: Optional[str] = None,
2090
- opts: Optional[pulumi.ResourceOptions]=None):
2270
+ opts: Optional[pulumi.ResourceOptions] = None,
2271
+ **kwargs):
2272
+ if allow_unverified_ssl_cert is None and 'allowUnverifiedSslCert' in kwargs:
2273
+ allow_unverified_ssl_cert = kwargs['allowUnverifiedSslCert']
2274
+ if deployment_option is None and 'deploymentOption' in kwargs:
2275
+ deployment_option = kwargs['deploymentOption']
2276
+ if disk_provisioning is None and 'diskProvisioning' in kwargs:
2277
+ disk_provisioning = kwargs['diskProvisioning']
2278
+ if enable_hidden_properties is None and 'enableHiddenProperties' in kwargs:
2279
+ enable_hidden_properties = kwargs['enableHiddenProperties']
2280
+ if ip_allocation_policy is None and 'ipAllocationPolicy' in kwargs:
2281
+ ip_allocation_policy = kwargs['ipAllocationPolicy']
2282
+ if ip_protocol is None and 'ipProtocol' in kwargs:
2283
+ ip_protocol = kwargs['ipProtocol']
2284
+ if local_ovf_path is None and 'localOvfPath' in kwargs:
2285
+ local_ovf_path = kwargs['localOvfPath']
2286
+ if ovf_network_map is None and 'ovfNetworkMap' in kwargs:
2287
+ ovf_network_map = kwargs['ovfNetworkMap']
2288
+ if remote_ovf_url is None and 'remoteOvfUrl' in kwargs:
2289
+ remote_ovf_url = kwargs['remoteOvfUrl']
2290
+
2091
2291
  if allow_unverified_ssl_cert is not None:
2092
2292
  _setter("allow_unverified_ssl_cert", allow_unverified_ssl_cert)
2093
2293
  if deployment_option is not None:
@@ -2165,7 +2365,9 @@ class VirtualMachineVapp(dict):
2165
2365
  def _configure(
2166
2366
  _setter: Callable[[Any, Any], None],
2167
2367
  properties: Optional[Mapping[str, str]] = None,
2168
- opts: Optional[pulumi.ResourceOptions]=None):
2368
+ opts: Optional[pulumi.ResourceOptions] = None,
2369
+ **kwargs):
2370
+
2169
2371
  if properties is not None:
2170
2372
  _setter("properties", properties)
2171
2373
 
@@ -2214,10 +2416,20 @@ class VmStoragePolicyTagRule(dict):
2214
2416
  @staticmethod
2215
2417
  def _configure(
2216
2418
  _setter: Callable[[Any, Any], None],
2217
- tag_category: str,
2218
- tags: Sequence[str],
2419
+ tag_category: Optional[str] = None,
2420
+ tags: Optional[Sequence[str]] = None,
2219
2421
  include_datastores_with_tags: Optional[bool] = None,
2220
- opts: Optional[pulumi.ResourceOptions]=None):
2422
+ opts: Optional[pulumi.ResourceOptions] = None,
2423
+ **kwargs):
2424
+ if tag_category is None and 'tagCategory' in kwargs:
2425
+ tag_category = kwargs['tagCategory']
2426
+ if tag_category is None:
2427
+ raise TypeError("Missing 'tag_category' argument")
2428
+ if tags is None:
2429
+ raise TypeError("Missing 'tags' argument")
2430
+ if include_datastores_with_tags is None and 'includeDatastoresWithTags' in kwargs:
2431
+ include_datastores_with_tags = kwargs['includeDatastoresWithTags']
2432
+
2221
2433
  _setter("tag_category", tag_category)
2222
2434
  _setter("tags", tags)
2223
2435
  if include_datastores_with_tags is not None:
@@ -2275,7 +2487,9 @@ class VnicIpv4(dict):
2275
2487
  gw: Optional[str] = None,
2276
2488
  ip: Optional[str] = None,
2277
2489
  netmask: Optional[str] = None,
2278
- opts: Optional[pulumi.ResourceOptions]=None):
2490
+ opts: Optional[pulumi.ResourceOptions] = None,
2491
+ **kwargs):
2492
+
2279
2493
  if dhcp is not None:
2280
2494
  _setter("dhcp", dhcp)
2281
2495
  if gw is not None:
@@ -2345,7 +2559,9 @@ class VnicIpv6(dict):
2345
2559
  autoconfig: Optional[bool] = None,
2346
2560
  dhcp: Optional[bool] = None,
2347
2561
  gw: Optional[str] = None,
2348
- opts: Optional[pulumi.ResourceOptions]=None):
2562
+ opts: Optional[pulumi.ResourceOptions] = None,
2563
+ **kwargs):
2564
+
2349
2565
  if addresses is not None:
2350
2566
  _setter("addresses", addresses)
2351
2567
  if autoconfig is not None:
@@ -2414,12 +2630,30 @@ class GetVirtualMachineDiskResult(dict):
2414
2630
  @staticmethod
2415
2631
  def _configure(
2416
2632
  _setter: Callable[[Any, Any], None],
2417
- eagerly_scrub: bool,
2418
- label: str,
2419
- size: int,
2420
- thin_provisioned: bool,
2421
- unit_number: int,
2422
- opts: Optional[pulumi.ResourceOptions]=None):
2633
+ eagerly_scrub: Optional[bool] = None,
2634
+ label: Optional[str] = None,
2635
+ size: Optional[int] = None,
2636
+ thin_provisioned: Optional[bool] = None,
2637
+ unit_number: Optional[int] = None,
2638
+ opts: Optional[pulumi.ResourceOptions] = None,
2639
+ **kwargs):
2640
+ if eagerly_scrub is None and 'eagerlyScrub' in kwargs:
2641
+ eagerly_scrub = kwargs['eagerlyScrub']
2642
+ if eagerly_scrub is None:
2643
+ raise TypeError("Missing 'eagerly_scrub' argument")
2644
+ if label is None:
2645
+ raise TypeError("Missing 'label' argument")
2646
+ if size is None:
2647
+ raise TypeError("Missing 'size' argument")
2648
+ if thin_provisioned is None and 'thinProvisioned' in kwargs:
2649
+ thin_provisioned = kwargs['thinProvisioned']
2650
+ if thin_provisioned is None:
2651
+ raise TypeError("Missing 'thin_provisioned' argument")
2652
+ if unit_number is None and 'unitNumber' in kwargs:
2653
+ unit_number = kwargs['unitNumber']
2654
+ if unit_number is None:
2655
+ raise TypeError("Missing 'unit_number' argument")
2656
+
2423
2657
  _setter("eagerly_scrub", eagerly_scrub)
2424
2658
  _setter("label", label)
2425
2659
  _setter("size", size)
@@ -2506,14 +2740,38 @@ class GetVirtualMachineNetworkInterfaceResult(dict):
2506
2740
  @staticmethod
2507
2741
  def _configure(
2508
2742
  _setter: Callable[[Any, Any], None],
2509
- adapter_type: str,
2510
- bandwidth_share_count: int,
2511
- mac_address: str,
2512
- network_id: str,
2743
+ adapter_type: Optional[str] = None,
2744
+ bandwidth_share_count: Optional[int] = None,
2745
+ mac_address: Optional[str] = None,
2746
+ network_id: Optional[str] = None,
2513
2747
  bandwidth_limit: Optional[int] = None,
2514
2748
  bandwidth_reservation: Optional[int] = None,
2515
2749
  bandwidth_share_level: Optional[str] = None,
2516
- opts: Optional[pulumi.ResourceOptions]=None):
2750
+ opts: Optional[pulumi.ResourceOptions] = None,
2751
+ **kwargs):
2752
+ if adapter_type is None and 'adapterType' in kwargs:
2753
+ adapter_type = kwargs['adapterType']
2754
+ if adapter_type is None:
2755
+ raise TypeError("Missing 'adapter_type' argument")
2756
+ if bandwidth_share_count is None and 'bandwidthShareCount' in kwargs:
2757
+ bandwidth_share_count = kwargs['bandwidthShareCount']
2758
+ if bandwidth_share_count is None:
2759
+ raise TypeError("Missing 'bandwidth_share_count' argument")
2760
+ if mac_address is None and 'macAddress' in kwargs:
2761
+ mac_address = kwargs['macAddress']
2762
+ if mac_address is None:
2763
+ raise TypeError("Missing 'mac_address' argument")
2764
+ if network_id is None and 'networkId' in kwargs:
2765
+ network_id = kwargs['networkId']
2766
+ if network_id is None:
2767
+ raise TypeError("Missing 'network_id' argument")
2768
+ if bandwidth_limit is None and 'bandwidthLimit' in kwargs:
2769
+ bandwidth_limit = kwargs['bandwidthLimit']
2770
+ if bandwidth_reservation is None and 'bandwidthReservation' in kwargs:
2771
+ bandwidth_reservation = kwargs['bandwidthReservation']
2772
+ if bandwidth_share_level is None and 'bandwidthShareLevel' in kwargs:
2773
+ bandwidth_share_level = kwargs['bandwidthShareLevel']
2774
+
2517
2775
  _setter("adapter_type", adapter_type)
2518
2776
  _setter("bandwidth_share_count", bandwidth_share_count)
2519
2777
  _setter("mac_address", mac_address)
@@ -2601,7 +2859,9 @@ class GetVirtualMachineVappResult(dict):
2601
2859
  def _configure(
2602
2860
  _setter: Callable[[Any, Any], None],
2603
2861
  properties: Optional[Mapping[str, str]] = None,
2604
- opts: Optional[pulumi.ResourceOptions]=None):
2862
+ opts: Optional[pulumi.ResourceOptions] = None,
2863
+ **kwargs):
2864
+
2605
2865
  if properties is not None:
2606
2866
  _setter("properties", properties)
2607
2867