pulumi-vsphere 4.11.0__py3-none-any.whl → 4.11.0a1710920591__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/__init__.py +0 -28
- pulumi_vsphere/_inputs.py +236 -646
- pulumi_vsphere/_utilities.py +4 -40
- pulumi_vsphere/compute_cluster.py +1486 -756
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +34 -42
- pulumi_vsphere/content_library.py +10 -10
- pulumi_vsphere/datacenter.py +40 -33
- pulumi_vsphere/datastore_cluster.py +364 -154
- pulumi_vsphere/distributed_port_group.py +187 -131
- pulumi_vsphere/distributed_virtual_switch.py +828 -310
- pulumi_vsphere/entity_permissions.py +38 -59
- pulumi_vsphere/file.py +24 -16
- pulumi_vsphere/folder.py +28 -7
- pulumi_vsphere/get_compute_cluster.py +4 -0
- pulumi_vsphere/get_compute_cluster_host_group.py +20 -20
- pulumi_vsphere/get_content_library.py +10 -10
- pulumi_vsphere/get_content_library_item.py +8 -12
- pulumi_vsphere/get_custom_attribute.py +4 -0
- pulumi_vsphere/get_datacenter.py +4 -0
- pulumi_vsphere/get_datastore.py +16 -12
- pulumi_vsphere/get_datastore_cluster.py +4 -0
- pulumi_vsphere/get_datastore_stats.py +52 -46
- pulumi_vsphere/get_distributed_virtual_switch.py +4 -2
- pulumi_vsphere/get_dynamic.py +20 -18
- pulumi_vsphere/get_folder.py +6 -10
- pulumi_vsphere/get_guest_os_customization.py +47 -8
- pulumi_vsphere/get_host.py +4 -0
- pulumi_vsphere/get_host_pci_device.py +14 -8
- pulumi_vsphere/get_host_thumbprint.py +16 -12
- pulumi_vsphere/get_host_vgpu_profile.py +10 -4
- pulumi_vsphere/get_license.py +5 -2
- pulumi_vsphere/get_network.py +18 -14
- pulumi_vsphere/get_policy.py +4 -0
- pulumi_vsphere/get_resource_pool.py +18 -14
- pulumi_vsphere/get_role.py +8 -4
- pulumi_vsphere/get_tag.py +4 -0
- pulumi_vsphere/get_tag_category.py +4 -0
- pulumi_vsphere/get_vapp_container.py +4 -0
- pulumi_vsphere/get_virtual_machine.py +43 -60
- pulumi_vsphere/get_vmfs_disks.py +4 -0
- pulumi_vsphere/guest_os_customization.py +5 -55
- pulumi_vsphere/ha_vm_override.py +378 -189
- pulumi_vsphere/host.py +60 -49
- pulumi_vsphere/host_port_group.py +26 -14
- pulumi_vsphere/host_virtual_switch.py +287 -140
- pulumi_vsphere/license.py +32 -0
- pulumi_vsphere/nas_datastore.py +7 -7
- pulumi_vsphere/outputs.py +270 -672
- pulumi_vsphere/provider.py +6 -2
- pulumi_vsphere/pulumi-plugin.json +1 -2
- pulumi_vsphere/resource_pool.py +24 -50
- pulumi_vsphere/virtual_disk.py +34 -42
- pulumi_vsphere/virtual_machine.py +827 -598
- pulumi_vsphere/virtual_machine_snapshot.py +12 -8
- pulumi_vsphere/vm_storage_policy.py +127 -115
- pulumi_vsphere/vnic.py +105 -89
- {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.11.0a1710920591.dist-info/RECORD +82 -0
- {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/WHEEL +1 -1
- pulumi_vsphere/get_host_base_images.py +0 -97
- pulumi_vsphere/offline_software_depot.py +0 -180
- pulumi_vsphere/supervisor.py +0 -962
- pulumi_vsphere/virtual_machine_class.py +0 -442
- pulumi_vsphere-4.11.0.dist-info/RECORD +0 -86
- {pulumi_vsphere-4.11.0.dist-info → pulumi_vsphere-4.11.0a1710920591.dist-info}/top_level.txt +0 -0
pulumi_vsphere/provider.py
CHANGED
|
@@ -196,8 +196,10 @@ class ProviderArgs:
|
|
|
196
196
|
|
|
197
197
|
@property
|
|
198
198
|
@pulumi.getter(name="vcenterServer")
|
|
199
|
-
@_utilities.deprecated("""This field has been renamed to vsphere_server.""")
|
|
200
199
|
def vcenter_server(self) -> Optional[pulumi.Input[str]]:
|
|
200
|
+
warnings.warn("""This field has been renamed to vsphere_server.""", DeprecationWarning)
|
|
201
|
+
pulumi.log.warn("""vcenter_server is deprecated: This field has been renamed to vsphere_server.""")
|
|
202
|
+
|
|
201
203
|
return pulumi.get(self, "vcenter_server")
|
|
202
204
|
|
|
203
205
|
@vcenter_server.setter
|
|
@@ -411,8 +413,10 @@ class Provider(pulumi.ProviderResource):
|
|
|
411
413
|
|
|
412
414
|
@property
|
|
413
415
|
@pulumi.getter(name="vcenterServer")
|
|
414
|
-
@_utilities.deprecated("""This field has been renamed to vsphere_server.""")
|
|
415
416
|
def vcenter_server(self) -> pulumi.Output[Optional[str]]:
|
|
417
|
+
warnings.warn("""This field has been renamed to vsphere_server.""", DeprecationWarning)
|
|
418
|
+
pulumi.log.warn("""vcenter_server is deprecated: This field has been renamed to vsphere_server.""")
|
|
419
|
+
|
|
416
420
|
return pulumi.get(self, "vcenter_server")
|
|
417
421
|
|
|
418
422
|
@property
|
pulumi_vsphere/resource_pool.py
CHANGED
|
@@ -650,13 +650,14 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
650
650
|
For more information on vSphere resource pools, please refer to the
|
|
651
651
|
[product documentation][ref-vsphere-resource_pools].
|
|
652
652
|
|
|
653
|
-
[ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/
|
|
653
|
+
[ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
|
|
654
654
|
|
|
655
655
|
## Example Usage
|
|
656
656
|
|
|
657
657
|
The following example sets up a resource pool in an existing compute cluster
|
|
658
658
|
with the default settings for CPU and memory reservations, shares, and limits.
|
|
659
659
|
|
|
660
|
+
<!--Start PulumiCodeChooser -->
|
|
660
661
|
```python
|
|
661
662
|
import pulumi
|
|
662
663
|
import pulumi_vsphere as vsphere
|
|
@@ -664,25 +665,28 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
664
665
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
665
666
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
666
667
|
datacenter_id=datacenter.id)
|
|
667
|
-
resource_pool = vsphere.ResourcePool("
|
|
668
|
-
name="resource-pool-01",
|
|
669
|
-
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
668
|
+
resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
670
669
|
```
|
|
670
|
+
<!--End PulumiCodeChooser -->
|
|
671
671
|
|
|
672
672
|
A virtual machine resource could be targeted to use the default resource pool
|
|
673
673
|
of the cluster using the following:
|
|
674
674
|
|
|
675
|
+
<!--Start PulumiCodeChooser -->
|
|
675
676
|
```python
|
|
676
677
|
import pulumi
|
|
677
678
|
import pulumi_vsphere as vsphere
|
|
678
679
|
|
|
679
|
-
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["
|
|
680
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
|
|
681
|
+
# ... other configuration ...
|
|
680
682
|
```
|
|
683
|
+
<!--End PulumiCodeChooser -->
|
|
681
684
|
|
|
682
685
|
The following example sets up a parent resource pool in an existing compute cluster
|
|
683
686
|
with a child resource pool nested below. Each resource pool is configured with
|
|
684
687
|
the default settings for CPU and memory reservations, shares, and limits.
|
|
685
688
|
|
|
689
|
+
<!--Start PulumiCodeChooser -->
|
|
686
690
|
```python
|
|
687
691
|
import pulumi
|
|
688
692
|
import pulumi_vsphere as vsphere
|
|
@@ -690,27 +694,10 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
690
694
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
691
695
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
692
696
|
datacenter_id=datacenter.id)
|
|
693
|
-
resource_pool_parent = vsphere.ResourcePool("
|
|
694
|
-
|
|
695
|
-
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
696
|
-
resource_pool_child = vsphere.ResourcePool("resource_pool_child",
|
|
697
|
-
name="child",
|
|
698
|
-
parent_resource_pool_id=resource_pool_parent.id)
|
|
697
|
+
resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
698
|
+
resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
|
|
699
699
|
```
|
|
700
|
-
|
|
701
|
-
## Importing
|
|
702
|
-
|
|
703
|
-
An existing resource pool can be imported into this resource via
|
|
704
|
-
the path to the resource pool, using the following command:
|
|
705
|
-
|
|
706
|
-
The above would import the resource pool named `resource-pool-01` that is located
|
|
707
|
-
in the compute cluster `cluster-01` in the `dc-01` datacenter.
|
|
708
|
-
|
|
709
|
-
### Settings that Require vSphere 7.0 or higher
|
|
710
|
-
|
|
711
|
-
These settings require vSphere 7.0 or higher:
|
|
712
|
-
|
|
713
|
-
* `scale_descendants_shares`
|
|
700
|
+
<!--End PulumiCodeChooser -->
|
|
714
701
|
|
|
715
702
|
:param str resource_name: The name of the resource.
|
|
716
703
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -772,13 +759,14 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
772
759
|
For more information on vSphere resource pools, please refer to the
|
|
773
760
|
[product documentation][ref-vsphere-resource_pools].
|
|
774
761
|
|
|
775
|
-
[ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/
|
|
762
|
+
[ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html
|
|
776
763
|
|
|
777
764
|
## Example Usage
|
|
778
765
|
|
|
779
766
|
The following example sets up a resource pool in an existing compute cluster
|
|
780
767
|
with the default settings for CPU and memory reservations, shares, and limits.
|
|
781
768
|
|
|
769
|
+
<!--Start PulumiCodeChooser -->
|
|
782
770
|
```python
|
|
783
771
|
import pulumi
|
|
784
772
|
import pulumi_vsphere as vsphere
|
|
@@ -786,25 +774,28 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
786
774
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
787
775
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
788
776
|
datacenter_id=datacenter.id)
|
|
789
|
-
resource_pool = vsphere.ResourcePool("
|
|
790
|
-
name="resource-pool-01",
|
|
791
|
-
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
777
|
+
resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
792
778
|
```
|
|
779
|
+
<!--End PulumiCodeChooser -->
|
|
793
780
|
|
|
794
781
|
A virtual machine resource could be targeted to use the default resource pool
|
|
795
782
|
of the cluster using the following:
|
|
796
783
|
|
|
784
|
+
<!--Start PulumiCodeChooser -->
|
|
797
785
|
```python
|
|
798
786
|
import pulumi
|
|
799
787
|
import pulumi_vsphere as vsphere
|
|
800
788
|
|
|
801
|
-
vm = vsphere.VirtualMachine("vm", resource_pool_id=cluster["
|
|
789
|
+
vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"])
|
|
790
|
+
# ... other configuration ...
|
|
802
791
|
```
|
|
792
|
+
<!--End PulumiCodeChooser -->
|
|
803
793
|
|
|
804
794
|
The following example sets up a parent resource pool in an existing compute cluster
|
|
805
795
|
with a child resource pool nested below. Each resource pool is configured with
|
|
806
796
|
the default settings for CPU and memory reservations, shares, and limits.
|
|
807
797
|
|
|
798
|
+
<!--Start PulumiCodeChooser -->
|
|
808
799
|
```python
|
|
809
800
|
import pulumi
|
|
810
801
|
import pulumi_vsphere as vsphere
|
|
@@ -812,27 +803,10 @@ class ResourcePool(pulumi.CustomResource):
|
|
|
812
803
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
813
804
|
compute_cluster = vsphere.get_compute_cluster(name="cluster-01",
|
|
814
805
|
datacenter_id=datacenter.id)
|
|
815
|
-
resource_pool_parent = vsphere.ResourcePool("
|
|
816
|
-
|
|
817
|
-
parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
818
|
-
resource_pool_child = vsphere.ResourcePool("resource_pool_child",
|
|
819
|
-
name="child",
|
|
820
|
-
parent_resource_pool_id=resource_pool_parent.id)
|
|
806
|
+
resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id)
|
|
807
|
+
resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id)
|
|
821
808
|
```
|
|
822
|
-
|
|
823
|
-
## Importing
|
|
824
|
-
|
|
825
|
-
An existing resource pool can be imported into this resource via
|
|
826
|
-
the path to the resource pool, using the following command:
|
|
827
|
-
|
|
828
|
-
The above would import the resource pool named `resource-pool-01` that is located
|
|
829
|
-
in the compute cluster `cluster-01` in the `dc-01` datacenter.
|
|
830
|
-
|
|
831
|
-
### Settings that Require vSphere 7.0 or higher
|
|
832
|
-
|
|
833
|
-
These settings require vSphere 7.0 or higher:
|
|
834
|
-
|
|
835
|
-
* `scale_descendants_shares`
|
|
809
|
+
<!--End PulumiCodeChooser -->
|
|
836
810
|
|
|
837
811
|
:param str resource_name: The name of the resource.
|
|
838
812
|
:param ResourcePoolArgs args: The arguments to use to populate this resource's properties.
|
pulumi_vsphere/virtual_disk.py
CHANGED
|
@@ -25,9 +25,7 @@ class VirtualDiskArgs:
|
|
|
25
25
|
The set of arguments for constructing a VirtualDisk resource.
|
|
26
26
|
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
27
27
|
disk.
|
|
28
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
29
|
-
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
30
|
-
created.
|
|
28
|
+
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
31
29
|
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
32
30
|
be created. This needs to end in `.vmdk`.
|
|
33
31
|
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
@@ -47,21 +45,21 @@ class VirtualDiskArgs:
|
|
|
47
45
|
`create_directories` is enabled will not be deleted when the resource is
|
|
48
46
|
destroyed.
|
|
49
47
|
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
50
|
-
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
48
|
+
disk. Can be omitted when when ESXi or if there is only one datacenter in
|
|
51
49
|
your infrastructure.
|
|
52
50
|
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
53
51
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
54
52
|
information on what each kind of disk provisioning policy means, click
|
|
55
53
|
[here][docs-vmware-vm-disk-provisioning].
|
|
56
54
|
|
|
57
|
-
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/
|
|
55
|
+
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
|
|
58
56
|
"""
|
|
59
57
|
pulumi.set(__self__, "datastore", datastore)
|
|
60
58
|
pulumi.set(__self__, "size", size)
|
|
61
59
|
pulumi.set(__self__, "vmdk_path", vmdk_path)
|
|
62
60
|
if adapter_type is not None:
|
|
63
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in
|
|
64
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in
|
|
61
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
62
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
65
63
|
if adapter_type is not None:
|
|
66
64
|
pulumi.set(__self__, "adapter_type", adapter_type)
|
|
67
65
|
if create_directories is not None:
|
|
@@ -88,9 +86,7 @@ class VirtualDiskArgs:
|
|
|
88
86
|
@pulumi.getter
|
|
89
87
|
def size(self) -> pulumi.Input[int]:
|
|
90
88
|
"""
|
|
91
|
-
Size of the disk (in GB).
|
|
92
|
-
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
93
|
-
created.
|
|
89
|
+
Size of the disk (in GB).
|
|
94
90
|
"""
|
|
95
91
|
return pulumi.get(self, "size")
|
|
96
92
|
|
|
@@ -113,7 +109,6 @@ class VirtualDiskArgs:
|
|
|
113
109
|
|
|
114
110
|
@property
|
|
115
111
|
@pulumi.getter(name="adapterType")
|
|
116
|
-
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
117
112
|
def adapter_type(self) -> Optional[pulumi.Input[str]]:
|
|
118
113
|
"""
|
|
119
114
|
The adapter type for this virtual disk. Can be
|
|
@@ -126,6 +121,9 @@ class VirtualDiskArgs:
|
|
|
126
121
|
disk controller types. This parameter will be removed in future versions of the
|
|
127
122
|
vSphere provider.
|
|
128
123
|
"""
|
|
124
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
125
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
126
|
+
|
|
129
127
|
return pulumi.get(self, "adapter_type")
|
|
130
128
|
|
|
131
129
|
@adapter_type.setter
|
|
@@ -155,7 +153,7 @@ class VirtualDiskArgs:
|
|
|
155
153
|
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
156
154
|
"""
|
|
157
155
|
The name of the datacenter in which to create the
|
|
158
|
-
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
156
|
+
disk. Can be omitted when when ESXi or if there is only one datacenter in
|
|
159
157
|
your infrastructure.
|
|
160
158
|
"""
|
|
161
159
|
return pulumi.get(self, "datacenter")
|
|
@@ -173,7 +171,7 @@ class VirtualDiskArgs:
|
|
|
173
171
|
information on what each kind of disk provisioning policy means, click
|
|
174
172
|
[here][docs-vmware-vm-disk-provisioning].
|
|
175
173
|
|
|
176
|
-
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/
|
|
174
|
+
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
|
|
177
175
|
"""
|
|
178
176
|
return pulumi.get(self, "type")
|
|
179
177
|
|
|
@@ -211,25 +209,23 @@ class _VirtualDiskState:
|
|
|
211
209
|
`create_directories` is enabled will not be deleted when the resource is
|
|
212
210
|
destroyed.
|
|
213
211
|
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
214
|
-
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
212
|
+
disk. Can be omitted when when ESXi or if there is only one datacenter in
|
|
215
213
|
your infrastructure.
|
|
216
214
|
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
217
215
|
disk.
|
|
218
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
219
|
-
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
220
|
-
created.
|
|
216
|
+
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
221
217
|
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
222
218
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
223
219
|
information on what each kind of disk provisioning policy means, click
|
|
224
220
|
[here][docs-vmware-vm-disk-provisioning].
|
|
225
221
|
|
|
226
|
-
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/
|
|
222
|
+
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
|
|
227
223
|
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
228
224
|
be created. This needs to end in `.vmdk`.
|
|
229
225
|
"""
|
|
230
226
|
if adapter_type is not None:
|
|
231
|
-
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in
|
|
232
|
-
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in
|
|
227
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
228
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
233
229
|
if adapter_type is not None:
|
|
234
230
|
pulumi.set(__self__, "adapter_type", adapter_type)
|
|
235
231
|
if create_directories is not None:
|
|
@@ -247,7 +243,6 @@ class _VirtualDiskState:
|
|
|
247
243
|
|
|
248
244
|
@property
|
|
249
245
|
@pulumi.getter(name="adapterType")
|
|
250
|
-
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
251
246
|
def adapter_type(self) -> Optional[pulumi.Input[str]]:
|
|
252
247
|
"""
|
|
253
248
|
The adapter type for this virtual disk. Can be
|
|
@@ -260,6 +255,9 @@ class _VirtualDiskState:
|
|
|
260
255
|
disk controller types. This parameter will be removed in future versions of the
|
|
261
256
|
vSphere provider.
|
|
262
257
|
"""
|
|
258
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
259
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
260
|
+
|
|
263
261
|
return pulumi.get(self, "adapter_type")
|
|
264
262
|
|
|
265
263
|
@adapter_type.setter
|
|
@@ -289,7 +287,7 @@ class _VirtualDiskState:
|
|
|
289
287
|
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
290
288
|
"""
|
|
291
289
|
The name of the datacenter in which to create the
|
|
292
|
-
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
290
|
+
disk. Can be omitted when when ESXi or if there is only one datacenter in
|
|
293
291
|
your infrastructure.
|
|
294
292
|
"""
|
|
295
293
|
return pulumi.get(self, "datacenter")
|
|
@@ -315,9 +313,7 @@ class _VirtualDiskState:
|
|
|
315
313
|
@pulumi.getter
|
|
316
314
|
def size(self) -> Optional[pulumi.Input[int]]:
|
|
317
315
|
"""
|
|
318
|
-
Size of the disk (in GB).
|
|
319
|
-
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
320
|
-
created.
|
|
316
|
+
Size of the disk (in GB).
|
|
321
317
|
"""
|
|
322
318
|
return pulumi.get(self, "size")
|
|
323
319
|
|
|
@@ -334,7 +330,7 @@ class _VirtualDiskState:
|
|
|
334
330
|
information on what each kind of disk provisioning policy means, click
|
|
335
331
|
[here][docs-vmware-vm-disk-provisioning].
|
|
336
332
|
|
|
337
|
-
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/
|
|
333
|
+
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
|
|
338
334
|
"""
|
|
339
335
|
return pulumi.get(self, "type")
|
|
340
336
|
|
|
@@ -390,19 +386,17 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
390
386
|
`create_directories` is enabled will not be deleted when the resource is
|
|
391
387
|
destroyed.
|
|
392
388
|
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
393
|
-
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
389
|
+
disk. Can be omitted when when ESXi or if there is only one datacenter in
|
|
394
390
|
your infrastructure.
|
|
395
391
|
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
396
392
|
disk.
|
|
397
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
398
|
-
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
399
|
-
created.
|
|
393
|
+
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
400
394
|
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
401
395
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
402
396
|
information on what each kind of disk provisioning policy means, click
|
|
403
397
|
[here][docs-vmware-vm-disk-provisioning].
|
|
404
398
|
|
|
405
|
-
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/
|
|
399
|
+
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
|
|
406
400
|
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
407
401
|
be created. This needs to end in `.vmdk`.
|
|
408
402
|
"""
|
|
@@ -499,19 +493,17 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
499
493
|
`create_directories` is enabled will not be deleted when the resource is
|
|
500
494
|
destroyed.
|
|
501
495
|
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
502
|
-
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
496
|
+
disk. Can be omitted when when ESXi or if there is only one datacenter in
|
|
503
497
|
your infrastructure.
|
|
504
498
|
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
505
499
|
disk.
|
|
506
|
-
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
507
|
-
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
508
|
-
created.
|
|
500
|
+
:param pulumi.Input[int] size: Size of the disk (in GB).
|
|
509
501
|
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
510
502
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
511
503
|
information on what each kind of disk provisioning policy means, click
|
|
512
504
|
[here][docs-vmware-vm-disk-provisioning].
|
|
513
505
|
|
|
514
|
-
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/
|
|
506
|
+
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
|
|
515
507
|
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
516
508
|
be created. This needs to end in `.vmdk`.
|
|
517
509
|
"""
|
|
@@ -530,7 +522,6 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
530
522
|
|
|
531
523
|
@property
|
|
532
524
|
@pulumi.getter(name="adapterType")
|
|
533
|
-
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
534
525
|
def adapter_type(self) -> pulumi.Output[Optional[str]]:
|
|
535
526
|
"""
|
|
536
527
|
The adapter type for this virtual disk. Can be
|
|
@@ -543,6 +534,9 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
543
534
|
disk controller types. This parameter will be removed in future versions of the
|
|
544
535
|
vSphere provider.
|
|
545
536
|
"""
|
|
537
|
+
warnings.warn("""this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""", DeprecationWarning)
|
|
538
|
+
pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in vsphere_virtual_machine instead""")
|
|
539
|
+
|
|
546
540
|
return pulumi.get(self, "adapter_type")
|
|
547
541
|
|
|
548
542
|
@property
|
|
@@ -564,7 +558,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
564
558
|
def datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
565
559
|
"""
|
|
566
560
|
The name of the datacenter in which to create the
|
|
567
|
-
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
561
|
+
disk. Can be omitted when when ESXi or if there is only one datacenter in
|
|
568
562
|
your infrastructure.
|
|
569
563
|
"""
|
|
570
564
|
return pulumi.get(self, "datacenter")
|
|
@@ -582,9 +576,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
582
576
|
@pulumi.getter
|
|
583
577
|
def size(self) -> pulumi.Output[int]:
|
|
584
578
|
"""
|
|
585
|
-
Size of the disk (in GB).
|
|
586
|
-
If a disk of a smaller size is required then the original has to be destroyed along with its data and a new one has to be
|
|
587
|
-
created.
|
|
579
|
+
Size of the disk (in GB).
|
|
588
580
|
"""
|
|
589
581
|
return pulumi.get(self, "size")
|
|
590
582
|
|
|
@@ -597,7 +589,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
597
589
|
information on what each kind of disk provisioning policy means, click
|
|
598
590
|
[here][docs-vmware-vm-disk-provisioning].
|
|
599
591
|
|
|
600
|
-
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/
|
|
592
|
+
[docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
|
|
601
593
|
"""
|
|
602
594
|
return pulumi.get(self, "type")
|
|
603
595
|
|