pulumi-vsphere 4.10.1__py3-none-any.whl → 4.10.2a1720054582__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/__init__.py +28 -0
- pulumi_vsphere/_inputs.py +470 -6
- pulumi_vsphere/_utilities.py +35 -0
- pulumi_vsphere/compute_cluster.py +47 -0
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +0 -4
- pulumi_vsphere/datacenter.py +7 -28
- pulumi_vsphere/datastore_cluster.py +0 -14
- pulumi_vsphere/distributed_port_group.py +56 -7
- pulumi_vsphere/distributed_virtual_switch.py +7 -28
- pulumi_vsphere/entity_permissions.py +56 -35
- pulumi_vsphere/folder.py +7 -28
- pulumi_vsphere/get_compute_cluster_host_group.py +18 -16
- pulumi_vsphere/get_content_library.py +10 -6
- pulumi_vsphere/get_content_library_item.py +12 -8
- pulumi_vsphere/get_datastore.py +9 -9
- pulumi_vsphere/get_datastore_stats.py +34 -32
- pulumi_vsphere/get_dynamic.py +14 -12
- pulumi_vsphere/get_folder.py +10 -2
- pulumi_vsphere/get_guest_os_customization.py +8 -43
- pulumi_vsphere/get_host_base_images.py +97 -0
- pulumi_vsphere/get_host_pci_device.py +4 -2
- pulumi_vsphere/get_host_thumbprint.py +12 -12
- pulumi_vsphere/get_host_vgpu_profile.py +4 -2
- pulumi_vsphere/get_license.py +2 -1
- pulumi_vsphere/get_network.py +14 -14
- pulumi_vsphere/get_resource_pool.py +12 -8
- pulumi_vsphere/get_role.py +4 -4
- pulumi_vsphere/get_virtual_machine.py +58 -33
- pulumi_vsphere/guest_os_customization.py +4 -4
- pulumi_vsphere/nas_datastore.py +7 -7
- pulumi_vsphere/offline_software_depot.py +180 -0
- pulumi_vsphere/outputs.py +495 -40
- pulumi_vsphere/provider.py +2 -6
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +2 -2
- pulumi_vsphere/supervisor.py +962 -0
- pulumi_vsphere/virtual_disk.py +10 -16
- pulumi_vsphere/virtual_machine.py +2 -2
- pulumi_vsphere/virtual_machine_class.py +442 -0
- pulumi_vsphere/virtual_machine_snapshot.py +2 -2
- pulumi_vsphere/vm_storage_policy.py +2 -2
- pulumi_vsphere/vnic.py +61 -65
- {pulumi_vsphere-4.10.1.dist-info → pulumi_vsphere-4.10.2a1720054582.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.10.2a1720054582.dist-info/RECORD +86 -0
- {pulumi_vsphere-4.10.1.dist-info → pulumi_vsphere-4.10.2a1720054582.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.1.dist-info/RECORD +0 -82
- {pulumi_vsphere-4.10.1.dist-info → pulumi_vsphere-4.10.2a1720054582.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, 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, 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):
|
|
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,6 +114,9 @@ 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)
|
|
117
120
|
if latency_sensitivity and not isinstance(latency_sensitivity, str):
|
|
118
121
|
raise TypeError("Expected argument 'latency_sensitivity' to be a str")
|
|
119
122
|
pulumi.set(__self__, "latency_sensitivity", latency_sensitivity)
|
|
@@ -225,7 +228,8 @@ class GetVirtualMachineResult:
|
|
|
225
228
|
def alternate_guest_name(self) -> Optional[str]:
|
|
226
229
|
"""
|
|
227
230
|
The alternate guest name of the virtual machine when
|
|
228
|
-
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
231
|
+
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
232
|
+
`otherGuest64`.
|
|
229
233
|
"""
|
|
230
234
|
return pulumi.get(self, "alternate_guest_name")
|
|
231
235
|
|
|
@@ -301,11 +305,11 @@ class GetVirtualMachineResult:
|
|
|
301
305
|
@pulumi.getter(name="defaultIpAddress")
|
|
302
306
|
def default_ip_address(self) -> str:
|
|
303
307
|
"""
|
|
304
|
-
Whenever possible, this is the first IPv4 address that
|
|
305
|
-
the default gateway configured on the machine, then the
|
|
306
|
-
address, and then the first general discovered address if
|
|
307
|
-
VMware Tools is not running on the virtual machine, or if
|
|
308
|
-
off, this value will be blank.
|
|
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.
|
|
309
313
|
"""
|
|
310
314
|
return pulumi.get(self, "default_ip_address")
|
|
311
315
|
|
|
@@ -317,10 +321,10 @@ class GetVirtualMachineResult:
|
|
|
317
321
|
template. These are sorted by bus and unit number so that they can be applied
|
|
318
322
|
to a `VirtualMachine` resource in the order the resource expects
|
|
319
323
|
while cloning. This is useful for discovering certain disk settings while
|
|
320
|
-
performing a linked clone, as all settings that are output by this data
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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:
|
|
324
328
|
"""
|
|
325
329
|
return pulumi.get(self, "disks")
|
|
326
330
|
|
|
@@ -341,7 +345,7 @@ class GetVirtualMachineResult:
|
|
|
341
345
|
|
|
342
346
|
@property
|
|
343
347
|
@pulumi.getter(name="eptRviMode")
|
|
344
|
-
def ept_rvi_mode(self) ->
|
|
348
|
+
def ept_rvi_mode(self) -> str:
|
|
345
349
|
return pulumi.get(self, "ept_rvi_mode")
|
|
346
350
|
|
|
347
351
|
@property
|
|
@@ -358,7 +362,8 @@ class GetVirtualMachineResult:
|
|
|
358
362
|
@pulumi.getter
|
|
359
363
|
def firmware(self) -> Optional[str]:
|
|
360
364
|
"""
|
|
361
|
-
The firmware type for this virtual machine. Can be `bios` or
|
|
365
|
+
The firmware type for this virtual machine. Can be `bios` or
|
|
366
|
+
`efi`.
|
|
362
367
|
"""
|
|
363
368
|
return pulumi.get(self, "firmware")
|
|
364
369
|
|
|
@@ -393,7 +398,7 @@ class GetVirtualMachineResult:
|
|
|
393
398
|
|
|
394
399
|
@property
|
|
395
400
|
@pulumi.getter(name="hvMode")
|
|
396
|
-
def hv_mode(self) ->
|
|
401
|
+
def hv_mode(self) -> str:
|
|
397
402
|
return pulumi.get(self, "hv_mode")
|
|
398
403
|
|
|
399
404
|
@property
|
|
@@ -409,6 +414,14 @@ class GetVirtualMachineResult:
|
|
|
409
414
|
def ide_controller_scan_count(self) -> Optional[int]:
|
|
410
415
|
return pulumi.get(self, "ide_controller_scan_count")
|
|
411
416
|
|
|
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
|
+
|
|
412
425
|
@property
|
|
413
426
|
@pulumi.getter(name="latencySensitivity")
|
|
414
427
|
def latency_sensitivity(self) -> Optional[str]:
|
|
@@ -473,7 +486,8 @@ class GetVirtualMachineResult:
|
|
|
473
486
|
"""
|
|
474
487
|
The network interface types for each network
|
|
475
488
|
interface found on the virtual machine, in device bus order. Will be one of
|
|
476
|
-
`e1000`, `e1000e`, `pcnet32`, `sriov`, `vmxnet2`, `vmxnet3vrdma`, or
|
|
489
|
+
`e1000`, `e1000e`, `pcnet32`, `sriov`, `vmxnet2`, `vmxnet3vrdma`, or
|
|
490
|
+
`vmxnet3`.
|
|
477
491
|
"""
|
|
478
492
|
return pulumi.get(self, "network_interface_types")
|
|
479
493
|
|
|
@@ -481,13 +495,13 @@ class GetVirtualMachineResult:
|
|
|
481
495
|
@pulumi.getter(name="networkInterfaces")
|
|
482
496
|
def network_interfaces(self) -> Sequence['outputs.GetVirtualMachineNetworkInterfaceResult']:
|
|
483
497
|
"""
|
|
484
|
-
Information about each of the network interfaces on
|
|
485
|
-
virtual machine or template. These are sorted by device bus order so that
|
|
486
|
-
can be applied to a `VirtualMachine` resource in the order the
|
|
487
|
-
expects while cloning. This is useful for discovering certain network
|
|
488
|
-
settings while performing a linked clone, as all settings that are
|
|
489
|
-
data source must be the same on the destination virtual machine
|
|
490
|
-
The sub-attributes are:
|
|
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:
|
|
491
505
|
"""
|
|
492
506
|
return pulumi.get(self, "network_interfaces")
|
|
493
507
|
|
|
@@ -495,7 +509,8 @@ class GetVirtualMachineResult:
|
|
|
495
509
|
@pulumi.getter(name="numCoresPerSocket")
|
|
496
510
|
def num_cores_per_socket(self) -> Optional[int]:
|
|
497
511
|
"""
|
|
498
|
-
The number of cores per socket for this virtual
|
|
512
|
+
The number of cores per socket for this virtual
|
|
513
|
+
machine.
|
|
499
514
|
"""
|
|
500
515
|
return pulumi.get(self, "num_cores_per_socket")
|
|
501
516
|
|
|
@@ -657,6 +672,7 @@ class AwaitableGetVirtualMachineResult(GetVirtualMachineResult):
|
|
|
657
672
|
hv_mode=self.hv_mode,
|
|
658
673
|
id=self.id,
|
|
659
674
|
ide_controller_scan_count=self.ide_controller_scan_count,
|
|
675
|
+
instance_uuid=self.instance_uuid,
|
|
660
676
|
latency_sensitivity=self.latency_sensitivity,
|
|
661
677
|
memory=self.memory,
|
|
662
678
|
memory_hot_add_enabled=self.memory_hot_add_enabled,
|
|
@@ -759,8 +775,8 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
759
775
|
|
|
760
776
|
## Example Usage
|
|
761
777
|
|
|
762
|
-
In the following example, a virtual machine template is returned by its
|
|
763
|
-
|
|
778
|
+
In the following example, a virtual machine template is returned by its unique
|
|
779
|
+
name within the `Datacenter`.
|
|
764
780
|
|
|
765
781
|
```python
|
|
766
782
|
import pulumi
|
|
@@ -770,6 +786,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
770
786
|
template = vsphere.get_virtual_machine(name="ubuntu-server-template",
|
|
771
787
|
datacenter_id=datacenter.id)
|
|
772
788
|
```
|
|
789
|
+
|
|
773
790
|
In the following example, each virtual machine template is returned by its
|
|
774
791
|
unique full path within the `Datacenter`.
|
|
775
792
|
|
|
@@ -786,14 +803,16 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
786
803
|
|
|
787
804
|
|
|
788
805
|
:param str alternate_guest_name: The alternate guest name of the virtual machine when
|
|
789
|
-
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
806
|
+
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
807
|
+
`otherGuest64`.
|
|
790
808
|
:param str annotation: The user-provided description of this virtual machine.
|
|
791
809
|
:param str datacenter_id: The managed object reference
|
|
792
810
|
ID of the datacenter the virtual machine is located in.
|
|
793
811
|
This can be omitted if the search path used in `name` is an absolute path.
|
|
794
812
|
For default datacenters, use the `id` attribute from an empty
|
|
795
813
|
`Datacenter` data source.
|
|
796
|
-
:param str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
814
|
+
:param str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
815
|
+
`efi`.
|
|
797
816
|
: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.
|
|
798
817
|
:param str guest_id: The guest ID of the virtual machine or template.
|
|
799
818
|
:param int hardware_version: The hardware version number on this virtual machine.
|
|
@@ -801,7 +820,8 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
801
820
|
:param str name: The name of the virtual machine. This can be a name or
|
|
802
821
|
the full path relative to the datacenter. This is required if a UUID lookup
|
|
803
822
|
is not performed.
|
|
804
|
-
:param int num_cores_per_socket: The number of cores per socket for this virtual
|
|
823
|
+
:param int num_cores_per_socket: The number of cores per socket for this virtual
|
|
824
|
+
machine.
|
|
805
825
|
:param int num_cpus: The total number of virtual processor cores assigned to this
|
|
806
826
|
virtual machine.
|
|
807
827
|
:param int scsi_controller_scan_count: The number of SCSI controllers to
|
|
@@ -905,6 +925,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None,
|
|
|
905
925
|
hv_mode=pulumi.get(__ret__, 'hv_mode'),
|
|
906
926
|
id=pulumi.get(__ret__, 'id'),
|
|
907
927
|
ide_controller_scan_count=pulumi.get(__ret__, 'ide_controller_scan_count'),
|
|
928
|
+
instance_uuid=pulumi.get(__ret__, 'instance_uuid'),
|
|
908
929
|
latency_sensitivity=pulumi.get(__ret__, 'latency_sensitivity'),
|
|
909
930
|
memory=pulumi.get(__ret__, 'memory'),
|
|
910
931
|
memory_hot_add_enabled=pulumi.get(__ret__, 'memory_hot_add_enabled'),
|
|
@@ -1008,8 +1029,8 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1008
1029
|
|
|
1009
1030
|
## Example Usage
|
|
1010
1031
|
|
|
1011
|
-
In the following example, a virtual machine template is returned by its
|
|
1012
|
-
|
|
1032
|
+
In the following example, a virtual machine template is returned by its unique
|
|
1033
|
+
name within the `Datacenter`.
|
|
1013
1034
|
|
|
1014
1035
|
```python
|
|
1015
1036
|
import pulumi
|
|
@@ -1019,6 +1040,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1019
1040
|
template = vsphere.get_virtual_machine(name="ubuntu-server-template",
|
|
1020
1041
|
datacenter_id=datacenter.id)
|
|
1021
1042
|
```
|
|
1043
|
+
|
|
1022
1044
|
In the following example, each virtual machine template is returned by its
|
|
1023
1045
|
unique full path within the `Datacenter`.
|
|
1024
1046
|
|
|
@@ -1035,14 +1057,16 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1035
1057
|
|
|
1036
1058
|
|
|
1037
1059
|
:param str alternate_guest_name: The alternate guest name of the virtual machine when
|
|
1038
|
-
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
1060
|
+
`guest_id` is a non-specific operating system, like `otherGuest` or
|
|
1061
|
+
`otherGuest64`.
|
|
1039
1062
|
:param str annotation: The user-provided description of this virtual machine.
|
|
1040
1063
|
:param str datacenter_id: The managed object reference
|
|
1041
1064
|
ID of the datacenter the virtual machine is located in.
|
|
1042
1065
|
This can be omitted if the search path used in `name` is an absolute path.
|
|
1043
1066
|
For default datacenters, use the `id` attribute from an empty
|
|
1044
1067
|
`Datacenter` data source.
|
|
1045
|
-
:param str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
1068
|
+
:param str firmware: The firmware type for this virtual machine. Can be `bios` or
|
|
1069
|
+
`efi`.
|
|
1046
1070
|
: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.
|
|
1047
1071
|
:param str guest_id: The guest ID of the virtual machine or template.
|
|
1048
1072
|
:param int hardware_version: The hardware version number on this virtual machine.
|
|
@@ -1050,7 +1074,8 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio
|
|
|
1050
1074
|
:param str name: The name of the virtual machine. This can be a name or
|
|
1051
1075
|
the full path relative to the datacenter. This is required if a UUID lookup
|
|
1052
1076
|
is not performed.
|
|
1053
|
-
:param int num_cores_per_socket: The number of cores per socket for this virtual
|
|
1077
|
+
:param int num_cores_per_socket: The number of cores per socket for this virtual
|
|
1078
|
+
machine.
|
|
1054
1079
|
:param int num_cpus: The total number of virtual processor cores assigned to this
|
|
1055
1080
|
virtual machine.
|
|
1056
1081
|
:param int scsi_controller_scan_count: The number of SCSI controllers to
|
|
@@ -208,8 +208,8 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
208
208
|
import pulumi
|
|
209
209
|
import pulumi_vsphere as vsphere
|
|
210
210
|
|
|
211
|
-
|
|
212
|
-
name="windows
|
|
211
|
+
windows = vsphere.GuestOsCustomization("windows",
|
|
212
|
+
name="windows",
|
|
213
213
|
type="Windows",
|
|
214
214
|
spec=vsphere.GuestOsCustomizationSpecArgs(
|
|
215
215
|
windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(
|
|
@@ -251,8 +251,8 @@ class GuestOsCustomization(pulumi.CustomResource):
|
|
|
251
251
|
import pulumi
|
|
252
252
|
import pulumi_vsphere as vsphere
|
|
253
253
|
|
|
254
|
-
|
|
255
|
-
name="windows
|
|
254
|
+
windows = vsphere.GuestOsCustomization("windows",
|
|
255
|
+
name="windows",
|
|
256
256
|
type="Windows",
|
|
257
257
|
spec=vsphere.GuestOsCustomizationSpecArgs(
|
|
258
258
|
windows_options=vsphere.GuestOsCustomizationSpecWindowsOptionsArgs(
|
pulumi_vsphere/nas_datastore.py
CHANGED
|
@@ -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
|
-
|
|
33
|
+
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
|
-
|
|
107
|
+
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
|
-
|
|
306
|
+
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
|
-
|
|
532
|
+
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
|
-
|
|
668
|
+
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
|
-
|
|
820
|
+
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
|
-
|
|
984
|
+
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")
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import pulumi
|
|
8
|
+
import pulumi.runtime
|
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
10
|
+
from . import _utilities
|
|
11
|
+
from . import outputs
|
|
12
|
+
from ._inputs import *
|
|
13
|
+
|
|
14
|
+
__all__ = ['OfflineSoftwareDepotArgs', 'OfflineSoftwareDepot']
|
|
15
|
+
|
|
16
|
+
@pulumi.input_type
|
|
17
|
+
class OfflineSoftwareDepotArgs:
|
|
18
|
+
def __init__(__self__, *,
|
|
19
|
+
location: pulumi.Input[str]):
|
|
20
|
+
"""
|
|
21
|
+
The set of arguments for constructing a OfflineSoftwareDepot resource.
|
|
22
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
23
|
+
"""
|
|
24
|
+
pulumi.set(__self__, "location", location)
|
|
25
|
+
|
|
26
|
+
@property
|
|
27
|
+
@pulumi.getter
|
|
28
|
+
def location(self) -> pulumi.Input[str]:
|
|
29
|
+
"""
|
|
30
|
+
The URL where the depot source is hosted.
|
|
31
|
+
"""
|
|
32
|
+
return pulumi.get(self, "location")
|
|
33
|
+
|
|
34
|
+
@location.setter
|
|
35
|
+
def location(self, value: pulumi.Input[str]):
|
|
36
|
+
pulumi.set(self, "location", value)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@pulumi.input_type
|
|
40
|
+
class _OfflineSoftwareDepotState:
|
|
41
|
+
def __init__(__self__, *,
|
|
42
|
+
components: Optional[pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]]] = None,
|
|
43
|
+
location: Optional[pulumi.Input[str]] = None):
|
|
44
|
+
"""
|
|
45
|
+
Input properties used for looking up and filtering OfflineSoftwareDepot resources.
|
|
46
|
+
:param pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]] components: The list of custom components in the depot.
|
|
47
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
48
|
+
"""
|
|
49
|
+
if components is not None:
|
|
50
|
+
pulumi.set(__self__, "components", components)
|
|
51
|
+
if location is not None:
|
|
52
|
+
pulumi.set(__self__, "location", location)
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
@pulumi.getter
|
|
56
|
+
def components(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]]]:
|
|
57
|
+
"""
|
|
58
|
+
The list of custom components in the depot.
|
|
59
|
+
"""
|
|
60
|
+
return pulumi.get(self, "components")
|
|
61
|
+
|
|
62
|
+
@components.setter
|
|
63
|
+
def components(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['OfflineSoftwareDepotComponentArgs']]]]):
|
|
64
|
+
pulumi.set(self, "components", value)
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter
|
|
68
|
+
def location(self) -> Optional[pulumi.Input[str]]:
|
|
69
|
+
"""
|
|
70
|
+
The URL where the depot source is hosted.
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "location")
|
|
73
|
+
|
|
74
|
+
@location.setter
|
|
75
|
+
def location(self, value: Optional[pulumi.Input[str]]):
|
|
76
|
+
pulumi.set(self, "location", value)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class OfflineSoftwareDepot(pulumi.CustomResource):
|
|
80
|
+
@overload
|
|
81
|
+
def __init__(__self__,
|
|
82
|
+
resource_name: str,
|
|
83
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
84
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
85
|
+
__props__=None):
|
|
86
|
+
"""
|
|
87
|
+
Provides a VMware vSphere offline software depot resource.
|
|
88
|
+
|
|
89
|
+
## Example Usage
|
|
90
|
+
|
|
91
|
+
:param str resource_name: The name of the resource.
|
|
92
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
93
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
94
|
+
"""
|
|
95
|
+
...
|
|
96
|
+
@overload
|
|
97
|
+
def __init__(__self__,
|
|
98
|
+
resource_name: str,
|
|
99
|
+
args: OfflineSoftwareDepotArgs,
|
|
100
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
101
|
+
"""
|
|
102
|
+
Provides a VMware vSphere offline software depot resource.
|
|
103
|
+
|
|
104
|
+
## Example Usage
|
|
105
|
+
|
|
106
|
+
:param str resource_name: The name of the resource.
|
|
107
|
+
:param OfflineSoftwareDepotArgs args: The arguments to use to populate this resource's properties.
|
|
108
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
109
|
+
"""
|
|
110
|
+
...
|
|
111
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
112
|
+
resource_args, opts = _utilities.get_resource_args_opts(OfflineSoftwareDepotArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
113
|
+
if resource_args is not None:
|
|
114
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
115
|
+
else:
|
|
116
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
117
|
+
|
|
118
|
+
def _internal_init(__self__,
|
|
119
|
+
resource_name: str,
|
|
120
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
121
|
+
location: Optional[pulumi.Input[str]] = None,
|
|
122
|
+
__props__=None):
|
|
123
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
124
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
125
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
126
|
+
if opts.id is None:
|
|
127
|
+
if __props__ is not None:
|
|
128
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
129
|
+
__props__ = OfflineSoftwareDepotArgs.__new__(OfflineSoftwareDepotArgs)
|
|
130
|
+
|
|
131
|
+
if location is None and not opts.urn:
|
|
132
|
+
raise TypeError("Missing required property 'location'")
|
|
133
|
+
__props__.__dict__["location"] = location
|
|
134
|
+
__props__.__dict__["components"] = None
|
|
135
|
+
super(OfflineSoftwareDepot, __self__).__init__(
|
|
136
|
+
'vsphere:index/offlineSoftwareDepot:OfflineSoftwareDepot',
|
|
137
|
+
resource_name,
|
|
138
|
+
__props__,
|
|
139
|
+
opts)
|
|
140
|
+
|
|
141
|
+
@staticmethod
|
|
142
|
+
def get(resource_name: str,
|
|
143
|
+
id: pulumi.Input[str],
|
|
144
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
145
|
+
components: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OfflineSoftwareDepotComponentArgs']]]]] = None,
|
|
146
|
+
location: Optional[pulumi.Input[str]] = None) -> 'OfflineSoftwareDepot':
|
|
147
|
+
"""
|
|
148
|
+
Get an existing OfflineSoftwareDepot resource's state with the given name, id, and optional extra
|
|
149
|
+
properties used to qualify the lookup.
|
|
150
|
+
|
|
151
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
152
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
153
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
154
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['OfflineSoftwareDepotComponentArgs']]]] components: The list of custom components in the depot.
|
|
155
|
+
:param pulumi.Input[str] location: The URL where the depot source is hosted.
|
|
156
|
+
"""
|
|
157
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
158
|
+
|
|
159
|
+
__props__ = _OfflineSoftwareDepotState.__new__(_OfflineSoftwareDepotState)
|
|
160
|
+
|
|
161
|
+
__props__.__dict__["components"] = components
|
|
162
|
+
__props__.__dict__["location"] = location
|
|
163
|
+
return OfflineSoftwareDepot(resource_name, opts=opts, __props__=__props__)
|
|
164
|
+
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter
|
|
167
|
+
def components(self) -> pulumi.Output[Sequence['outputs.OfflineSoftwareDepotComponent']]:
|
|
168
|
+
"""
|
|
169
|
+
The list of custom components in the depot.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "components")
|
|
172
|
+
|
|
173
|
+
@property
|
|
174
|
+
@pulumi.getter
|
|
175
|
+
def location(self) -> pulumi.Output[str]:
|
|
176
|
+
"""
|
|
177
|
+
The URL where the depot source is hosted.
|
|
178
|
+
"""
|
|
179
|
+
return pulumi.get(self, "location")
|
|
180
|
+
|