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.
- pulumi_vsphere/_inputs.py +311 -93
- pulumi_vsphere/_utilities.py +19 -0
- pulumi_vsphere/compute_cluster.py +259 -3
- pulumi_vsphere/compute_cluster_host_group.py +17 -3
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +20 -130
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +20 -4
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +27 -5
- pulumi_vsphere/compute_cluster_vm_group.py +17 -3
- pulumi_vsphere/compute_cluster_vm_host_rule.py +28 -4
- pulumi_vsphere/content_library.py +15 -13
- pulumi_vsphere/content_library_item.py +21 -3
- pulumi_vsphere/custom_attribute.py +10 -2
- pulumi_vsphere/datacenter.py +10 -34
- pulumi_vsphere/datastore_cluster.py +97 -3
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +20 -4
- pulumi_vsphere/distributed_port_group.py +175 -3
- pulumi_vsphere/distributed_virtual_switch.py +355 -115
- pulumi_vsphere/dpm_host_override.py +28 -4
- pulumi_vsphere/drs_vm_override.py +28 -4
- pulumi_vsphere/entity_permissions.py +23 -5
- pulumi_vsphere/file.py +35 -61
- pulumi_vsphere/folder.py +20 -4
- pulumi_vsphere/get_compute_cluster.py +0 -22
- pulumi_vsphere/get_compute_cluster_host_group.py +0 -34
- pulumi_vsphere/get_content_library.py +0 -18
- pulumi_vsphere/get_custom_attribute.py +0 -18
- pulumi_vsphere/get_datacenter.py +0 -18
- pulumi_vsphere/get_datastore.py +0 -22
- pulumi_vsphere/get_datastore_cluster.py +0 -22
- pulumi_vsphere/get_distributed_virtual_switch.py +0 -40
- pulumi_vsphere/get_dynamic.py +0 -38
- pulumi_vsphere/get_folder.py +0 -18
- pulumi_vsphere/get_host.py +0 -22
- pulumi_vsphere/get_host_pci_device.py +2 -26
- pulumi_vsphere/get_host_thumbprint.py +0 -18
- pulumi_vsphere/get_license.py +0 -18
- pulumi_vsphere/get_network.py +0 -22
- pulumi_vsphere/get_policy.py +0 -20
- pulumi_vsphere/get_resource_pool.py +0 -64
- pulumi_vsphere/get_role.py +0 -18
- pulumi_vsphere/get_tag.py +0 -22
- pulumi_vsphere/get_tag_category.py +0 -18
- pulumi_vsphere/get_vapp_container.py +0 -22
- pulumi_vsphere/get_virtual_machine.py +0 -54
- pulumi_vsphere/get_vmfs_disks.py +0 -28
- pulumi_vsphere/ha_vm_override.py +72 -4
- pulumi_vsphere/host.py +23 -101
- pulumi_vsphere/host_port_group.py +74 -132
- pulumi_vsphere/host_virtual_switch.py +87 -5
- pulumi_vsphere/license.py +15 -31
- pulumi_vsphere/nas_datastore.py +53 -5
- pulumi_vsphere/outputs.py +364 -104
- pulumi_vsphere/provider.py +31 -3
- pulumi_vsphere/resource_pool.py +61 -83
- pulumi_vsphere/role.py +10 -2
- pulumi_vsphere/storage_drs_vm_override.py +32 -4
- pulumi_vsphere/tag.py +13 -3
- pulumi_vsphere/tag_category.py +16 -4
- pulumi_vsphere/vapp_container.py +61 -3
- pulumi_vsphere/vapp_entity.py +48 -4
- pulumi_vsphere/virtual_disk.py +27 -5
- pulumi_vsphere/virtual_machine.py +284 -18
- pulumi_vsphere/virtual_machine_snapshot.py +33 -39
- pulumi_vsphere/vm_storage_policy.py +13 -205
- pulumi_vsphere/vmfs_datastore.py +32 -4
- pulumi_vsphere/vnic.py +19 -153
- {pulumi_vsphere-4.9.0a1698129503.dist-info → pulumi_vsphere-4.9.0a1698198425.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.9.0a1698198425.dist-info/RECORD +77 -0
- pulumi_vsphere-4.9.0a1698129503.dist-info/RECORD +0 -77
- {pulumi_vsphere-4.9.0a1698129503.dist-info → pulumi_vsphere-4.9.0a1698198425.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.9.0a1698129503.dist-info → pulumi_vsphere-4.9.0a1698198425.dist-info}/top_level.txt +0 -0
|
@@ -286,7 +286,7 @@ class VirtualMachineArgs:
|
|
|
286
286
|
@staticmethod
|
|
287
287
|
def _configure(
|
|
288
288
|
_setter: Callable[[Any, Any], None],
|
|
289
|
-
resource_pool_id: pulumi.Input[str],
|
|
289
|
+
resource_pool_id: Optional[pulumi.Input[str]] = None,
|
|
290
290
|
alternate_guest_name: Optional[pulumi.Input[str]] = None,
|
|
291
291
|
annotation: Optional[pulumi.Input[str]] = None,
|
|
292
292
|
boot_delay: Optional[pulumi.Input[int]] = None,
|
|
@@ -360,7 +360,139 @@ class VirtualMachineArgs:
|
|
|
360
360
|
wait_for_guest_ip_timeout: Optional[pulumi.Input[int]] = None,
|
|
361
361
|
wait_for_guest_net_routable: Optional[pulumi.Input[bool]] = None,
|
|
362
362
|
wait_for_guest_net_timeout: Optional[pulumi.Input[int]] = None,
|
|
363
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
|
363
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
364
|
+
**kwargs):
|
|
365
|
+
if resource_pool_id is None and 'resourcePoolId' in kwargs:
|
|
366
|
+
resource_pool_id = kwargs['resourcePoolId']
|
|
367
|
+
if resource_pool_id is None:
|
|
368
|
+
raise TypeError("Missing 'resource_pool_id' argument")
|
|
369
|
+
if alternate_guest_name is None and 'alternateGuestName' in kwargs:
|
|
370
|
+
alternate_guest_name = kwargs['alternateGuestName']
|
|
371
|
+
if boot_delay is None and 'bootDelay' in kwargs:
|
|
372
|
+
boot_delay = kwargs['bootDelay']
|
|
373
|
+
if boot_retry_delay is None and 'bootRetryDelay' in kwargs:
|
|
374
|
+
boot_retry_delay = kwargs['bootRetryDelay']
|
|
375
|
+
if boot_retry_enabled is None and 'bootRetryEnabled' in kwargs:
|
|
376
|
+
boot_retry_enabled = kwargs['bootRetryEnabled']
|
|
377
|
+
if cpu_hot_add_enabled is None and 'cpuHotAddEnabled' in kwargs:
|
|
378
|
+
cpu_hot_add_enabled = kwargs['cpuHotAddEnabled']
|
|
379
|
+
if cpu_hot_remove_enabled is None and 'cpuHotRemoveEnabled' in kwargs:
|
|
380
|
+
cpu_hot_remove_enabled = kwargs['cpuHotRemoveEnabled']
|
|
381
|
+
if cpu_limit is None and 'cpuLimit' in kwargs:
|
|
382
|
+
cpu_limit = kwargs['cpuLimit']
|
|
383
|
+
if cpu_performance_counters_enabled is None and 'cpuPerformanceCountersEnabled' in kwargs:
|
|
384
|
+
cpu_performance_counters_enabled = kwargs['cpuPerformanceCountersEnabled']
|
|
385
|
+
if cpu_reservation is None and 'cpuReservation' in kwargs:
|
|
386
|
+
cpu_reservation = kwargs['cpuReservation']
|
|
387
|
+
if cpu_share_count is None and 'cpuShareCount' in kwargs:
|
|
388
|
+
cpu_share_count = kwargs['cpuShareCount']
|
|
389
|
+
if cpu_share_level is None and 'cpuShareLevel' in kwargs:
|
|
390
|
+
cpu_share_level = kwargs['cpuShareLevel']
|
|
391
|
+
if custom_attributes is None and 'customAttributes' in kwargs:
|
|
392
|
+
custom_attributes = kwargs['customAttributes']
|
|
393
|
+
if datacenter_id is None and 'datacenterId' in kwargs:
|
|
394
|
+
datacenter_id = kwargs['datacenterId']
|
|
395
|
+
if datastore_cluster_id is None and 'datastoreClusterId' in kwargs:
|
|
396
|
+
datastore_cluster_id = kwargs['datastoreClusterId']
|
|
397
|
+
if datastore_id is None and 'datastoreId' in kwargs:
|
|
398
|
+
datastore_id = kwargs['datastoreId']
|
|
399
|
+
if efi_secure_boot_enabled is None and 'efiSecureBootEnabled' in kwargs:
|
|
400
|
+
efi_secure_boot_enabled = kwargs['efiSecureBootEnabled']
|
|
401
|
+
if enable_disk_uuid is None and 'enableDiskUuid' in kwargs:
|
|
402
|
+
enable_disk_uuid = kwargs['enableDiskUuid']
|
|
403
|
+
if enable_logging is None and 'enableLogging' in kwargs:
|
|
404
|
+
enable_logging = kwargs['enableLogging']
|
|
405
|
+
if ept_rvi_mode is None and 'eptRviMode' in kwargs:
|
|
406
|
+
ept_rvi_mode = kwargs['eptRviMode']
|
|
407
|
+
if extra_config is None and 'extraConfig' in kwargs:
|
|
408
|
+
extra_config = kwargs['extraConfig']
|
|
409
|
+
if extra_config_reboot_required is None and 'extraConfigRebootRequired' in kwargs:
|
|
410
|
+
extra_config_reboot_required = kwargs['extraConfigRebootRequired']
|
|
411
|
+
if force_power_off is None and 'forcePowerOff' in kwargs:
|
|
412
|
+
force_power_off = kwargs['forcePowerOff']
|
|
413
|
+
if guest_id is None and 'guestId' in kwargs:
|
|
414
|
+
guest_id = kwargs['guestId']
|
|
415
|
+
if hardware_version is None and 'hardwareVersion' in kwargs:
|
|
416
|
+
hardware_version = kwargs['hardwareVersion']
|
|
417
|
+
if host_system_id is None and 'hostSystemId' in kwargs:
|
|
418
|
+
host_system_id = kwargs['hostSystemId']
|
|
419
|
+
if hv_mode is None and 'hvMode' in kwargs:
|
|
420
|
+
hv_mode = kwargs['hvMode']
|
|
421
|
+
if ide_controller_count is None and 'ideControllerCount' in kwargs:
|
|
422
|
+
ide_controller_count = kwargs['ideControllerCount']
|
|
423
|
+
if ignored_guest_ips is None and 'ignoredGuestIps' in kwargs:
|
|
424
|
+
ignored_guest_ips = kwargs['ignoredGuestIps']
|
|
425
|
+
if latency_sensitivity is None and 'latencySensitivity' in kwargs:
|
|
426
|
+
latency_sensitivity = kwargs['latencySensitivity']
|
|
427
|
+
if memory_hot_add_enabled is None and 'memoryHotAddEnabled' in kwargs:
|
|
428
|
+
memory_hot_add_enabled = kwargs['memoryHotAddEnabled']
|
|
429
|
+
if memory_limit is None and 'memoryLimit' in kwargs:
|
|
430
|
+
memory_limit = kwargs['memoryLimit']
|
|
431
|
+
if memory_reservation is None and 'memoryReservation' in kwargs:
|
|
432
|
+
memory_reservation = kwargs['memoryReservation']
|
|
433
|
+
if memory_share_count is None and 'memoryShareCount' in kwargs:
|
|
434
|
+
memory_share_count = kwargs['memoryShareCount']
|
|
435
|
+
if memory_share_level is None and 'memoryShareLevel' in kwargs:
|
|
436
|
+
memory_share_level = kwargs['memoryShareLevel']
|
|
437
|
+
if migrate_wait_timeout is None and 'migrateWaitTimeout' in kwargs:
|
|
438
|
+
migrate_wait_timeout = kwargs['migrateWaitTimeout']
|
|
439
|
+
if nested_hv_enabled is None and 'nestedHvEnabled' in kwargs:
|
|
440
|
+
nested_hv_enabled = kwargs['nestedHvEnabled']
|
|
441
|
+
if network_interfaces is None and 'networkInterfaces' in kwargs:
|
|
442
|
+
network_interfaces = kwargs['networkInterfaces']
|
|
443
|
+
if num_cores_per_socket is None and 'numCoresPerSocket' in kwargs:
|
|
444
|
+
num_cores_per_socket = kwargs['numCoresPerSocket']
|
|
445
|
+
if num_cpus is None and 'numCpus' in kwargs:
|
|
446
|
+
num_cpus = kwargs['numCpus']
|
|
447
|
+
if ovf_deploy is None and 'ovfDeploy' in kwargs:
|
|
448
|
+
ovf_deploy = kwargs['ovfDeploy']
|
|
449
|
+
if pci_device_ids is None and 'pciDeviceIds' in kwargs:
|
|
450
|
+
pci_device_ids = kwargs['pciDeviceIds']
|
|
451
|
+
if poweron_timeout is None and 'poweronTimeout' in kwargs:
|
|
452
|
+
poweron_timeout = kwargs['poweronTimeout']
|
|
453
|
+
if replace_trigger is None and 'replaceTrigger' in kwargs:
|
|
454
|
+
replace_trigger = kwargs['replaceTrigger']
|
|
455
|
+
if run_tools_scripts_after_power_on is None and 'runToolsScriptsAfterPowerOn' in kwargs:
|
|
456
|
+
run_tools_scripts_after_power_on = kwargs['runToolsScriptsAfterPowerOn']
|
|
457
|
+
if run_tools_scripts_after_resume is None and 'runToolsScriptsAfterResume' in kwargs:
|
|
458
|
+
run_tools_scripts_after_resume = kwargs['runToolsScriptsAfterResume']
|
|
459
|
+
if run_tools_scripts_before_guest_reboot is None and 'runToolsScriptsBeforeGuestReboot' in kwargs:
|
|
460
|
+
run_tools_scripts_before_guest_reboot = kwargs['runToolsScriptsBeforeGuestReboot']
|
|
461
|
+
if run_tools_scripts_before_guest_shutdown is None and 'runToolsScriptsBeforeGuestShutdown' in kwargs:
|
|
462
|
+
run_tools_scripts_before_guest_shutdown = kwargs['runToolsScriptsBeforeGuestShutdown']
|
|
463
|
+
if run_tools_scripts_before_guest_standby is None and 'runToolsScriptsBeforeGuestStandby' in kwargs:
|
|
464
|
+
run_tools_scripts_before_guest_standby = kwargs['runToolsScriptsBeforeGuestStandby']
|
|
465
|
+
if sata_controller_count is None and 'sataControllerCount' in kwargs:
|
|
466
|
+
sata_controller_count = kwargs['sataControllerCount']
|
|
467
|
+
if scsi_bus_sharing is None and 'scsiBusSharing' in kwargs:
|
|
468
|
+
scsi_bus_sharing = kwargs['scsiBusSharing']
|
|
469
|
+
if scsi_controller_count is None and 'scsiControllerCount' in kwargs:
|
|
470
|
+
scsi_controller_count = kwargs['scsiControllerCount']
|
|
471
|
+
if scsi_type is None and 'scsiType' in kwargs:
|
|
472
|
+
scsi_type = kwargs['scsiType']
|
|
473
|
+
if shutdown_wait_timeout is None and 'shutdownWaitTimeout' in kwargs:
|
|
474
|
+
shutdown_wait_timeout = kwargs['shutdownWaitTimeout']
|
|
475
|
+
if storage_policy_id is None and 'storagePolicyId' in kwargs:
|
|
476
|
+
storage_policy_id = kwargs['storagePolicyId']
|
|
477
|
+
if swap_placement_policy is None and 'swapPlacementPolicy' in kwargs:
|
|
478
|
+
swap_placement_policy = kwargs['swapPlacementPolicy']
|
|
479
|
+
if sync_time_with_host is None and 'syncTimeWithHost' in kwargs:
|
|
480
|
+
sync_time_with_host = kwargs['syncTimeWithHost']
|
|
481
|
+
if sync_time_with_host_periodically is None and 'syncTimeWithHostPeriodically' in kwargs:
|
|
482
|
+
sync_time_with_host_periodically = kwargs['syncTimeWithHostPeriodically']
|
|
483
|
+
if tools_upgrade_policy is None and 'toolsUpgradePolicy' in kwargs:
|
|
484
|
+
tools_upgrade_policy = kwargs['toolsUpgradePolicy']
|
|
485
|
+
if vbs_enabled is None and 'vbsEnabled' in kwargs:
|
|
486
|
+
vbs_enabled = kwargs['vbsEnabled']
|
|
487
|
+
if vvtd_enabled is None and 'vvtdEnabled' in kwargs:
|
|
488
|
+
vvtd_enabled = kwargs['vvtdEnabled']
|
|
489
|
+
if wait_for_guest_ip_timeout is None and 'waitForGuestIpTimeout' in kwargs:
|
|
490
|
+
wait_for_guest_ip_timeout = kwargs['waitForGuestIpTimeout']
|
|
491
|
+
if wait_for_guest_net_routable is None and 'waitForGuestNetRoutable' in kwargs:
|
|
492
|
+
wait_for_guest_net_routable = kwargs['waitForGuestNetRoutable']
|
|
493
|
+
if wait_for_guest_net_timeout is None and 'waitForGuestNetTimeout' in kwargs:
|
|
494
|
+
wait_for_guest_net_timeout = kwargs['waitForGuestNetTimeout']
|
|
495
|
+
|
|
364
496
|
_setter("resource_pool_id", resource_pool_id)
|
|
365
497
|
if alternate_guest_name is not None:
|
|
366
498
|
_setter("alternate_guest_name", alternate_guest_name)
|
|
@@ -1828,7 +1960,153 @@ class _VirtualMachineState:
|
|
|
1828
1960
|
wait_for_guest_ip_timeout: Optional[pulumi.Input[int]] = None,
|
|
1829
1961
|
wait_for_guest_net_routable: Optional[pulumi.Input[bool]] = None,
|
|
1830
1962
|
wait_for_guest_net_timeout: Optional[pulumi.Input[int]] = None,
|
|
1831
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
|
1963
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1964
|
+
**kwargs):
|
|
1965
|
+
if alternate_guest_name is None and 'alternateGuestName' in kwargs:
|
|
1966
|
+
alternate_guest_name = kwargs['alternateGuestName']
|
|
1967
|
+
if boot_delay is None and 'bootDelay' in kwargs:
|
|
1968
|
+
boot_delay = kwargs['bootDelay']
|
|
1969
|
+
if boot_retry_delay is None and 'bootRetryDelay' in kwargs:
|
|
1970
|
+
boot_retry_delay = kwargs['bootRetryDelay']
|
|
1971
|
+
if boot_retry_enabled is None and 'bootRetryEnabled' in kwargs:
|
|
1972
|
+
boot_retry_enabled = kwargs['bootRetryEnabled']
|
|
1973
|
+
if change_version is None and 'changeVersion' in kwargs:
|
|
1974
|
+
change_version = kwargs['changeVersion']
|
|
1975
|
+
if cpu_hot_add_enabled is None and 'cpuHotAddEnabled' in kwargs:
|
|
1976
|
+
cpu_hot_add_enabled = kwargs['cpuHotAddEnabled']
|
|
1977
|
+
if cpu_hot_remove_enabled is None and 'cpuHotRemoveEnabled' in kwargs:
|
|
1978
|
+
cpu_hot_remove_enabled = kwargs['cpuHotRemoveEnabled']
|
|
1979
|
+
if cpu_limit is None and 'cpuLimit' in kwargs:
|
|
1980
|
+
cpu_limit = kwargs['cpuLimit']
|
|
1981
|
+
if cpu_performance_counters_enabled is None and 'cpuPerformanceCountersEnabled' in kwargs:
|
|
1982
|
+
cpu_performance_counters_enabled = kwargs['cpuPerformanceCountersEnabled']
|
|
1983
|
+
if cpu_reservation is None and 'cpuReservation' in kwargs:
|
|
1984
|
+
cpu_reservation = kwargs['cpuReservation']
|
|
1985
|
+
if cpu_share_count is None and 'cpuShareCount' in kwargs:
|
|
1986
|
+
cpu_share_count = kwargs['cpuShareCount']
|
|
1987
|
+
if cpu_share_level is None and 'cpuShareLevel' in kwargs:
|
|
1988
|
+
cpu_share_level = kwargs['cpuShareLevel']
|
|
1989
|
+
if custom_attributes is None and 'customAttributes' in kwargs:
|
|
1990
|
+
custom_attributes = kwargs['customAttributes']
|
|
1991
|
+
if datacenter_id is None and 'datacenterId' in kwargs:
|
|
1992
|
+
datacenter_id = kwargs['datacenterId']
|
|
1993
|
+
if datastore_cluster_id is None and 'datastoreClusterId' in kwargs:
|
|
1994
|
+
datastore_cluster_id = kwargs['datastoreClusterId']
|
|
1995
|
+
if datastore_id is None and 'datastoreId' in kwargs:
|
|
1996
|
+
datastore_id = kwargs['datastoreId']
|
|
1997
|
+
if default_ip_address is None and 'defaultIpAddress' in kwargs:
|
|
1998
|
+
default_ip_address = kwargs['defaultIpAddress']
|
|
1999
|
+
if efi_secure_boot_enabled is None and 'efiSecureBootEnabled' in kwargs:
|
|
2000
|
+
efi_secure_boot_enabled = kwargs['efiSecureBootEnabled']
|
|
2001
|
+
if enable_disk_uuid is None and 'enableDiskUuid' in kwargs:
|
|
2002
|
+
enable_disk_uuid = kwargs['enableDiskUuid']
|
|
2003
|
+
if enable_logging is None and 'enableLogging' in kwargs:
|
|
2004
|
+
enable_logging = kwargs['enableLogging']
|
|
2005
|
+
if ept_rvi_mode is None and 'eptRviMode' in kwargs:
|
|
2006
|
+
ept_rvi_mode = kwargs['eptRviMode']
|
|
2007
|
+
if extra_config is None and 'extraConfig' in kwargs:
|
|
2008
|
+
extra_config = kwargs['extraConfig']
|
|
2009
|
+
if extra_config_reboot_required is None and 'extraConfigRebootRequired' in kwargs:
|
|
2010
|
+
extra_config_reboot_required = kwargs['extraConfigRebootRequired']
|
|
2011
|
+
if force_power_off is None and 'forcePowerOff' in kwargs:
|
|
2012
|
+
force_power_off = kwargs['forcePowerOff']
|
|
2013
|
+
if guest_id is None and 'guestId' in kwargs:
|
|
2014
|
+
guest_id = kwargs['guestId']
|
|
2015
|
+
if guest_ip_addresses is None and 'guestIpAddresses' in kwargs:
|
|
2016
|
+
guest_ip_addresses = kwargs['guestIpAddresses']
|
|
2017
|
+
if hardware_version is None and 'hardwareVersion' in kwargs:
|
|
2018
|
+
hardware_version = kwargs['hardwareVersion']
|
|
2019
|
+
if host_system_id is None and 'hostSystemId' in kwargs:
|
|
2020
|
+
host_system_id = kwargs['hostSystemId']
|
|
2021
|
+
if hv_mode is None and 'hvMode' in kwargs:
|
|
2022
|
+
hv_mode = kwargs['hvMode']
|
|
2023
|
+
if ide_controller_count is None and 'ideControllerCount' in kwargs:
|
|
2024
|
+
ide_controller_count = kwargs['ideControllerCount']
|
|
2025
|
+
if ignored_guest_ips is None and 'ignoredGuestIps' in kwargs:
|
|
2026
|
+
ignored_guest_ips = kwargs['ignoredGuestIps']
|
|
2027
|
+
if latency_sensitivity is None and 'latencySensitivity' in kwargs:
|
|
2028
|
+
latency_sensitivity = kwargs['latencySensitivity']
|
|
2029
|
+
if memory_hot_add_enabled is None and 'memoryHotAddEnabled' in kwargs:
|
|
2030
|
+
memory_hot_add_enabled = kwargs['memoryHotAddEnabled']
|
|
2031
|
+
if memory_limit is None and 'memoryLimit' in kwargs:
|
|
2032
|
+
memory_limit = kwargs['memoryLimit']
|
|
2033
|
+
if memory_reservation is None and 'memoryReservation' in kwargs:
|
|
2034
|
+
memory_reservation = kwargs['memoryReservation']
|
|
2035
|
+
if memory_share_count is None and 'memoryShareCount' in kwargs:
|
|
2036
|
+
memory_share_count = kwargs['memoryShareCount']
|
|
2037
|
+
if memory_share_level is None and 'memoryShareLevel' in kwargs:
|
|
2038
|
+
memory_share_level = kwargs['memoryShareLevel']
|
|
2039
|
+
if migrate_wait_timeout is None and 'migrateWaitTimeout' in kwargs:
|
|
2040
|
+
migrate_wait_timeout = kwargs['migrateWaitTimeout']
|
|
2041
|
+
if nested_hv_enabled is None and 'nestedHvEnabled' in kwargs:
|
|
2042
|
+
nested_hv_enabled = kwargs['nestedHvEnabled']
|
|
2043
|
+
if network_interfaces is None and 'networkInterfaces' in kwargs:
|
|
2044
|
+
network_interfaces = kwargs['networkInterfaces']
|
|
2045
|
+
if num_cores_per_socket is None and 'numCoresPerSocket' in kwargs:
|
|
2046
|
+
num_cores_per_socket = kwargs['numCoresPerSocket']
|
|
2047
|
+
if num_cpus is None and 'numCpus' in kwargs:
|
|
2048
|
+
num_cpus = kwargs['numCpus']
|
|
2049
|
+
if ovf_deploy is None and 'ovfDeploy' in kwargs:
|
|
2050
|
+
ovf_deploy = kwargs['ovfDeploy']
|
|
2051
|
+
if pci_device_ids is None and 'pciDeviceIds' in kwargs:
|
|
2052
|
+
pci_device_ids = kwargs['pciDeviceIds']
|
|
2053
|
+
if power_state is None and 'powerState' in kwargs:
|
|
2054
|
+
power_state = kwargs['powerState']
|
|
2055
|
+
if poweron_timeout is None and 'poweronTimeout' in kwargs:
|
|
2056
|
+
poweron_timeout = kwargs['poweronTimeout']
|
|
2057
|
+
if reboot_required is None and 'rebootRequired' in kwargs:
|
|
2058
|
+
reboot_required = kwargs['rebootRequired']
|
|
2059
|
+
if replace_trigger is None and 'replaceTrigger' in kwargs:
|
|
2060
|
+
replace_trigger = kwargs['replaceTrigger']
|
|
2061
|
+
if resource_pool_id is None and 'resourcePoolId' in kwargs:
|
|
2062
|
+
resource_pool_id = kwargs['resourcePoolId']
|
|
2063
|
+
if run_tools_scripts_after_power_on is None and 'runToolsScriptsAfterPowerOn' in kwargs:
|
|
2064
|
+
run_tools_scripts_after_power_on = kwargs['runToolsScriptsAfterPowerOn']
|
|
2065
|
+
if run_tools_scripts_after_resume is None and 'runToolsScriptsAfterResume' in kwargs:
|
|
2066
|
+
run_tools_scripts_after_resume = kwargs['runToolsScriptsAfterResume']
|
|
2067
|
+
if run_tools_scripts_before_guest_reboot is None and 'runToolsScriptsBeforeGuestReboot' in kwargs:
|
|
2068
|
+
run_tools_scripts_before_guest_reboot = kwargs['runToolsScriptsBeforeGuestReboot']
|
|
2069
|
+
if run_tools_scripts_before_guest_shutdown is None and 'runToolsScriptsBeforeGuestShutdown' in kwargs:
|
|
2070
|
+
run_tools_scripts_before_guest_shutdown = kwargs['runToolsScriptsBeforeGuestShutdown']
|
|
2071
|
+
if run_tools_scripts_before_guest_standby is None and 'runToolsScriptsBeforeGuestStandby' in kwargs:
|
|
2072
|
+
run_tools_scripts_before_guest_standby = kwargs['runToolsScriptsBeforeGuestStandby']
|
|
2073
|
+
if sata_controller_count is None and 'sataControllerCount' in kwargs:
|
|
2074
|
+
sata_controller_count = kwargs['sataControllerCount']
|
|
2075
|
+
if scsi_bus_sharing is None and 'scsiBusSharing' in kwargs:
|
|
2076
|
+
scsi_bus_sharing = kwargs['scsiBusSharing']
|
|
2077
|
+
if scsi_controller_count is None and 'scsiControllerCount' in kwargs:
|
|
2078
|
+
scsi_controller_count = kwargs['scsiControllerCount']
|
|
2079
|
+
if scsi_type is None and 'scsiType' in kwargs:
|
|
2080
|
+
scsi_type = kwargs['scsiType']
|
|
2081
|
+
if shutdown_wait_timeout is None and 'shutdownWaitTimeout' in kwargs:
|
|
2082
|
+
shutdown_wait_timeout = kwargs['shutdownWaitTimeout']
|
|
2083
|
+
if storage_policy_id is None and 'storagePolicyId' in kwargs:
|
|
2084
|
+
storage_policy_id = kwargs['storagePolicyId']
|
|
2085
|
+
if swap_placement_policy is None and 'swapPlacementPolicy' in kwargs:
|
|
2086
|
+
swap_placement_policy = kwargs['swapPlacementPolicy']
|
|
2087
|
+
if sync_time_with_host is None and 'syncTimeWithHost' in kwargs:
|
|
2088
|
+
sync_time_with_host = kwargs['syncTimeWithHost']
|
|
2089
|
+
if sync_time_with_host_periodically is None and 'syncTimeWithHostPeriodically' in kwargs:
|
|
2090
|
+
sync_time_with_host_periodically = kwargs['syncTimeWithHostPeriodically']
|
|
2091
|
+
if tools_upgrade_policy is None and 'toolsUpgradePolicy' in kwargs:
|
|
2092
|
+
tools_upgrade_policy = kwargs['toolsUpgradePolicy']
|
|
2093
|
+
if vapp_transports is None and 'vappTransports' in kwargs:
|
|
2094
|
+
vapp_transports = kwargs['vappTransports']
|
|
2095
|
+
if vbs_enabled is None and 'vbsEnabled' in kwargs:
|
|
2096
|
+
vbs_enabled = kwargs['vbsEnabled']
|
|
2097
|
+
if vmware_tools_status is None and 'vmwareToolsStatus' in kwargs:
|
|
2098
|
+
vmware_tools_status = kwargs['vmwareToolsStatus']
|
|
2099
|
+
if vmx_path is None and 'vmxPath' in kwargs:
|
|
2100
|
+
vmx_path = kwargs['vmxPath']
|
|
2101
|
+
if vvtd_enabled is None and 'vvtdEnabled' in kwargs:
|
|
2102
|
+
vvtd_enabled = kwargs['vvtdEnabled']
|
|
2103
|
+
if wait_for_guest_ip_timeout is None and 'waitForGuestIpTimeout' in kwargs:
|
|
2104
|
+
wait_for_guest_ip_timeout = kwargs['waitForGuestIpTimeout']
|
|
2105
|
+
if wait_for_guest_net_routable is None and 'waitForGuestNetRoutable' in kwargs:
|
|
2106
|
+
wait_for_guest_net_routable = kwargs['waitForGuestNetRoutable']
|
|
2107
|
+
if wait_for_guest_net_timeout is None and 'waitForGuestNetTimeout' in kwargs:
|
|
2108
|
+
wait_for_guest_net_timeout = kwargs['waitForGuestNetTimeout']
|
|
2109
|
+
|
|
1832
2110
|
if alternate_guest_name is not None:
|
|
1833
2111
|
_setter("alternate_guest_name", alternate_guest_name)
|
|
1834
2112
|
if annotation is not None:
|
|
@@ -3374,11 +3652,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
3374
3652
|
__props__.__dict__["boot_retry_delay"] = boot_retry_delay
|
|
3375
3653
|
__props__.__dict__["boot_retry_enabled"] = boot_retry_enabled
|
|
3376
3654
|
__props__.__dict__["cdroms"] = cdroms
|
|
3377
|
-
|
|
3378
|
-
clone = clone or {}
|
|
3379
|
-
def _setter(key, value):
|
|
3380
|
-
clone[key] = value
|
|
3381
|
-
VirtualMachineCloneArgs._configure(_setter, **clone)
|
|
3655
|
+
clone = _utilities.configure(clone, VirtualMachineCloneArgs, True)
|
|
3382
3656
|
__props__.__dict__["clone"] = clone
|
|
3383
3657
|
__props__.__dict__["cpu_hot_add_enabled"] = cpu_hot_add_enabled
|
|
3384
3658
|
__props__.__dict__["cpu_hot_remove_enabled"] = cpu_hot_remove_enabled
|
|
@@ -3420,11 +3694,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
3420
3694
|
__props__.__dict__["network_interfaces"] = network_interfaces
|
|
3421
3695
|
__props__.__dict__["num_cores_per_socket"] = num_cores_per_socket
|
|
3422
3696
|
__props__.__dict__["num_cpus"] = num_cpus
|
|
3423
|
-
|
|
3424
|
-
ovf_deploy = ovf_deploy or {}
|
|
3425
|
-
def _setter(key, value):
|
|
3426
|
-
ovf_deploy[key] = value
|
|
3427
|
-
VirtualMachineOvfDeployArgs._configure(_setter, **ovf_deploy)
|
|
3697
|
+
ovf_deploy = _utilities.configure(ovf_deploy, VirtualMachineOvfDeployArgs, True)
|
|
3428
3698
|
__props__.__dict__["ovf_deploy"] = ovf_deploy
|
|
3429
3699
|
__props__.__dict__["pci_device_ids"] = pci_device_ids
|
|
3430
3700
|
__props__.__dict__["poweron_timeout"] = poweron_timeout
|
|
@@ -3448,11 +3718,7 @@ class VirtualMachine(pulumi.CustomResource):
|
|
|
3448
3718
|
__props__.__dict__["sync_time_with_host_periodically"] = sync_time_with_host_periodically
|
|
3449
3719
|
__props__.__dict__["tags"] = tags
|
|
3450
3720
|
__props__.__dict__["tools_upgrade_policy"] = tools_upgrade_policy
|
|
3451
|
-
|
|
3452
|
-
vapp = vapp or {}
|
|
3453
|
-
def _setter(key, value):
|
|
3454
|
-
vapp[key] = value
|
|
3455
|
-
VirtualMachineVappArgs._configure(_setter, **vapp)
|
|
3721
|
+
vapp = _utilities.configure(vapp, VirtualMachineVappArgs, True)
|
|
3456
3722
|
__props__.__dict__["vapp"] = vapp
|
|
3457
3723
|
__props__.__dict__["vbs_enabled"] = vbs_enabled
|
|
3458
3724
|
__props__.__dict__["vvtd_enabled"] = vvtd_enabled
|
|
@@ -50,14 +50,32 @@ class VirtualMachineSnapshotArgs:
|
|
|
50
50
|
@staticmethod
|
|
51
51
|
def _configure(
|
|
52
52
|
_setter: Callable[[Any, Any], None],
|
|
53
|
-
description: pulumi.Input[str],
|
|
54
|
-
memory: pulumi.Input[bool],
|
|
55
|
-
quiesce: pulumi.Input[bool],
|
|
56
|
-
snapshot_name: pulumi.Input[str],
|
|
57
|
-
virtual_machine_uuid: pulumi.Input[str],
|
|
53
|
+
description: Optional[pulumi.Input[str]] = None,
|
|
54
|
+
memory: Optional[pulumi.Input[bool]] = None,
|
|
55
|
+
quiesce: Optional[pulumi.Input[bool]] = None,
|
|
56
|
+
snapshot_name: Optional[pulumi.Input[str]] = None,
|
|
57
|
+
virtual_machine_uuid: Optional[pulumi.Input[str]] = None,
|
|
58
58
|
consolidate: Optional[pulumi.Input[bool]] = None,
|
|
59
59
|
remove_children: Optional[pulumi.Input[bool]] = None,
|
|
60
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
|
60
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
61
|
+
**kwargs):
|
|
62
|
+
if description is None:
|
|
63
|
+
raise TypeError("Missing 'description' argument")
|
|
64
|
+
if memory is None:
|
|
65
|
+
raise TypeError("Missing 'memory' argument")
|
|
66
|
+
if quiesce is None:
|
|
67
|
+
raise TypeError("Missing 'quiesce' argument")
|
|
68
|
+
if snapshot_name is None and 'snapshotName' in kwargs:
|
|
69
|
+
snapshot_name = kwargs['snapshotName']
|
|
70
|
+
if snapshot_name is None:
|
|
71
|
+
raise TypeError("Missing 'snapshot_name' argument")
|
|
72
|
+
if virtual_machine_uuid is None and 'virtualMachineUuid' in kwargs:
|
|
73
|
+
virtual_machine_uuid = kwargs['virtualMachineUuid']
|
|
74
|
+
if virtual_machine_uuid is None:
|
|
75
|
+
raise TypeError("Missing 'virtual_machine_uuid' argument")
|
|
76
|
+
if remove_children is None and 'removeChildren' in kwargs:
|
|
77
|
+
remove_children = kwargs['removeChildren']
|
|
78
|
+
|
|
61
79
|
_setter("description", description)
|
|
62
80
|
_setter("memory", memory)
|
|
63
81
|
_setter("quiesce", quiesce)
|
|
@@ -205,7 +223,15 @@ class _VirtualMachineSnapshotState:
|
|
|
205
223
|
remove_children: Optional[pulumi.Input[bool]] = None,
|
|
206
224
|
snapshot_name: Optional[pulumi.Input[str]] = None,
|
|
207
225
|
virtual_machine_uuid: Optional[pulumi.Input[str]] = None,
|
|
208
|
-
opts: Optional[pulumi.ResourceOptions]=None
|
|
226
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
227
|
+
**kwargs):
|
|
228
|
+
if remove_children is None and 'removeChildren' in kwargs:
|
|
229
|
+
remove_children = kwargs['removeChildren']
|
|
230
|
+
if snapshot_name is None and 'snapshotName' in kwargs:
|
|
231
|
+
snapshot_name = kwargs['snapshotName']
|
|
232
|
+
if virtual_machine_uuid is None and 'virtualMachineUuid' in kwargs:
|
|
233
|
+
virtual_machine_uuid = kwargs['virtualMachineUuid']
|
|
234
|
+
|
|
209
235
|
if consolidate is not None:
|
|
210
236
|
_setter("consolidate", consolidate)
|
|
211
237
|
if description is not None:
|
|
@@ -348,22 +374,6 @@ class VirtualMachineSnapshot(pulumi.CustomResource):
|
|
|
348
374
|
|
|
349
375
|
[ext-vm-snap-limitations]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-53F65726-A23B-4CF0-A7D5-48E584B88613.html
|
|
350
376
|
|
|
351
|
-
## Example Usage
|
|
352
|
-
|
|
353
|
-
```python
|
|
354
|
-
import pulumi
|
|
355
|
-
import pulumi_vsphere as vsphere
|
|
356
|
-
|
|
357
|
-
demo1 = vsphere.VirtualMachineSnapshot("demo1",
|
|
358
|
-
consolidate=True,
|
|
359
|
-
description="This is Demo Snapshot",
|
|
360
|
-
memory=True,
|
|
361
|
-
quiesce=True,
|
|
362
|
-
remove_children=False,
|
|
363
|
-
snapshot_name="Snapshot Name",
|
|
364
|
-
virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9")
|
|
365
|
-
```
|
|
366
|
-
|
|
367
377
|
:param str resource_name: The name of the resource.
|
|
368
378
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
369
379
|
:param pulumi.Input[bool] consolidate: If set to `true`, the delta disks involved in this
|
|
@@ -409,22 +419,6 @@ class VirtualMachineSnapshot(pulumi.CustomResource):
|
|
|
409
419
|
|
|
410
420
|
[ext-vm-snap-limitations]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-53F65726-A23B-4CF0-A7D5-48E584B88613.html
|
|
411
421
|
|
|
412
|
-
## Example Usage
|
|
413
|
-
|
|
414
|
-
```python
|
|
415
|
-
import pulumi
|
|
416
|
-
import pulumi_vsphere as vsphere
|
|
417
|
-
|
|
418
|
-
demo1 = vsphere.VirtualMachineSnapshot("demo1",
|
|
419
|
-
consolidate=True,
|
|
420
|
-
description="This is Demo Snapshot",
|
|
421
|
-
memory=True,
|
|
422
|
-
quiesce=True,
|
|
423
|
-
remove_children=False,
|
|
424
|
-
snapshot_name="Snapshot Name",
|
|
425
|
-
virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9")
|
|
426
|
-
```
|
|
427
|
-
|
|
428
422
|
:param str resource_name: The name of the resource.
|
|
429
423
|
:param VirtualMachineSnapshotArgs args: The arguments to use to populate this resource's properties.
|
|
430
424
|
:param pulumi.ResourceOptions opts: Options for the resource.
|