pulumi-vsphere 4.10.0a1710245029__py3-none-any.whl → 4.13.0a1736836157__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-vsphere might be problematic. Click here for more details.

Files changed (85) hide show
  1. pulumi_vsphere/__init__.py +28 -0
  2. pulumi_vsphere/_inputs.py +1816 -277
  3. pulumi_vsphere/_utilities.py +41 -5
  4. pulumi_vsphere/compute_cluster.py +937 -1488
  5. pulumi_vsphere/compute_cluster_host_group.py +67 -2
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +69 -34
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +41 -2
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +205 -2
  9. pulumi_vsphere/compute_cluster_vm_group.py +198 -2
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +73 -2
  11. pulumi_vsphere/config/__init__.pyi +5 -0
  12. pulumi_vsphere/config/vars.py +5 -0
  13. pulumi_vsphere/content_library.py +113 -12
  14. pulumi_vsphere/content_library_item.py +143 -2
  15. pulumi_vsphere/custom_attribute.py +77 -2
  16. pulumi_vsphere/datacenter.py +48 -40
  17. pulumi_vsphere/datastore_cluster.py +217 -366
  18. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +159 -2
  19. pulumi_vsphere/distributed_port_group.py +416 -189
  20. pulumi_vsphere/distributed_virtual_switch.py +571 -830
  21. pulumi_vsphere/dpm_host_override.py +63 -2
  22. pulumi_vsphere/drs_vm_override.py +67 -2
  23. pulumi_vsphere/entity_permissions.py +64 -38
  24. pulumi_vsphere/file.py +21 -24
  25. pulumi_vsphere/folder.py +148 -30
  26. pulumi_vsphere/get_compute_cluster.py +16 -9
  27. pulumi_vsphere/get_compute_cluster_host_group.py +36 -25
  28. pulumi_vsphere/get_content_library.py +23 -15
  29. pulumi_vsphere/get_content_library_item.py +29 -13
  30. pulumi_vsphere/get_custom_attribute.py +14 -9
  31. pulumi_vsphere/get_datacenter.py +30 -12
  32. pulumi_vsphere/get_datastore.py +29 -21
  33. pulumi_vsphere/get_datastore_cluster.py +31 -10
  34. pulumi_vsphere/get_datastore_stats.py +63 -57
  35. pulumi_vsphere/get_distributed_virtual_switch.py +18 -9
  36. pulumi_vsphere/get_dynamic.py +35 -25
  37. pulumi_vsphere/get_folder.py +23 -11
  38. pulumi_vsphere/get_guest_os_customization.py +26 -52
  39. pulumi_vsphere/get_host.py +16 -9
  40. pulumi_vsphere/get_host_base_images.py +104 -0
  41. pulumi_vsphere/get_host_pci_device.py +28 -19
  42. pulumi_vsphere/get_host_thumbprint.py +41 -25
  43. pulumi_vsphere/get_host_vgpu_profile.py +20 -15
  44. pulumi_vsphere/get_license.py +20 -10
  45. pulumi_vsphere/get_network.py +80 -24
  46. pulumi_vsphere/get_ovf_vm_template.py +56 -5
  47. pulumi_vsphere/get_policy.py +13 -9
  48. pulumi_vsphere/get_resource_pool.py +29 -23
  49. pulumi_vsphere/get_role.py +23 -13
  50. pulumi_vsphere/get_tag.py +16 -9
  51. pulumi_vsphere/get_tag_category.py +16 -9
  52. pulumi_vsphere/get_vapp_container.py +15 -9
  53. pulumi_vsphere/get_virtual_machine.py +205 -48
  54. pulumi_vsphere/get_vmfs_disks.py +18 -9
  55. pulumi_vsphere/guest_os_customization.py +60 -5
  56. pulumi_vsphere/ha_vm_override.py +352 -380
  57. pulumi_vsphere/host.py +244 -64
  58. pulumi_vsphere/host_port_group.py +27 -24
  59. pulumi_vsphere/host_virtual_switch.py +209 -289
  60. pulumi_vsphere/license.py +5 -32
  61. pulumi_vsphere/nas_datastore.py +74 -9
  62. pulumi_vsphere/offline_software_depot.py +185 -0
  63. pulumi_vsphere/outputs.py +717 -270
  64. pulumi_vsphere/provider.py +7 -6
  65. pulumi_vsphere/pulumi-plugin.json +2 -1
  66. pulumi_vsphere/resource_pool.py +168 -411
  67. pulumi_vsphere/role.py +33 -2
  68. pulumi_vsphere/storage_drs_vm_override.py +133 -2
  69. pulumi_vsphere/supervisor.py +967 -0
  70. pulumi_vsphere/tag.py +159 -2
  71. pulumi_vsphere/tag_category.py +83 -2
  72. pulumi_vsphere/vapp_container.py +163 -2
  73. pulumi_vsphere/vapp_entity.py +147 -2
  74. pulumi_vsphere/virtual_disk.py +123 -36
  75. pulumi_vsphere/virtual_machine.py +698 -829
  76. pulumi_vsphere/virtual_machine_class.py +447 -0
  77. pulumi_vsphere/virtual_machine_snapshot.py +13 -12
  78. pulumi_vsphere/vm_storage_policy.py +120 -127
  79. pulumi_vsphere/vmfs_datastore.py +271 -2
  80. pulumi_vsphere/vnic.py +104 -105
  81. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/METADATA +7 -6
  82. pulumi_vsphere-4.13.0a1736836157.dist-info/RECORD +86 -0
  83. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/WHEEL +1 -1
  84. pulumi_vsphere-4.10.0a1710245029.dist-info/RECORD +0 -82
  85. {pulumi_vsphere-4.10.0a1710245029.dist-info → pulumi_vsphere-4.13.0a1736836157.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
 
12
17
  __all__ = ['VirtualDiskArgs', 'VirtualDisk']
@@ -25,7 +30,9 @@ class VirtualDiskArgs:
25
30
  The set of arguments for constructing a VirtualDisk resource.
26
31
  :param pulumi.Input[str] datastore: The name of the datastore in which to create the
27
32
  disk.
28
- :param pulumi.Input[int] size: Size of the disk (in GB).
33
+ :param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
34
+ 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
35
+ created.
29
36
  :param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
30
37
  be created. This needs to end in `.vmdk`.
31
38
  :param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
@@ -45,21 +52,21 @@ class VirtualDiskArgs:
45
52
  `create_directories` is enabled will not be deleted when the resource is
46
53
  destroyed.
47
54
  :param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
48
- disk. Can be omitted when when ESXi or if there is only one datacenter in
55
+ disk. Can be omitted when ESXi or if there is only one datacenter in
49
56
  your infrastructure.
50
57
  :param pulumi.Input[str] type: The type of disk to create. Can be one of
51
58
  `eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
52
59
  information on what each kind of disk provisioning policy means, click
53
60
  [here][docs-vmware-vm-disk-provisioning].
54
61
 
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
62
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
56
63
  """
57
64
  pulumi.set(__self__, "datastore", datastore)
58
65
  pulumi.set(__self__, "size", size)
59
66
  pulumi.set(__self__, "vmdk_path", vmdk_path)
60
67
  if adapter_type is not None:
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""")
68
+ warnings.warn("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""", DeprecationWarning)
69
+ pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
63
70
  if adapter_type is not None:
64
71
  pulumi.set(__self__, "adapter_type", adapter_type)
65
72
  if create_directories is not None:
@@ -86,7 +93,9 @@ class VirtualDiskArgs:
86
93
  @pulumi.getter
87
94
  def size(self) -> pulumi.Input[int]:
88
95
  """
89
- Size of the disk (in GB).
96
+ Size of the disk (in GB). Decreasing the size of a disk is not possible.
97
+ 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
98
+ created.
90
99
  """
91
100
  return pulumi.get(self, "size")
92
101
 
@@ -109,6 +118,7 @@ class VirtualDiskArgs:
109
118
 
110
119
  @property
111
120
  @pulumi.getter(name="adapterType")
121
+ @_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
112
122
  def adapter_type(self) -> Optional[pulumi.Input[str]]:
113
123
  """
114
124
  The adapter type for this virtual disk. Can be
@@ -121,9 +131,6 @@ class VirtualDiskArgs:
121
131
  disk controller types. This parameter will be removed in future versions of the
122
132
  vSphere provider.
123
133
  """
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
-
127
134
  return pulumi.get(self, "adapter_type")
128
135
 
129
136
  @adapter_type.setter
@@ -153,7 +160,7 @@ class VirtualDiskArgs:
153
160
  def datacenter(self) -> Optional[pulumi.Input[str]]:
154
161
  """
155
162
  The name of the datacenter in which to create the
156
- disk. Can be omitted when when ESXi or if there is only one datacenter in
163
+ disk. Can be omitted when ESXi or if there is only one datacenter in
157
164
  your infrastructure.
158
165
  """
159
166
  return pulumi.get(self, "datacenter")
@@ -171,7 +178,7 @@ class VirtualDiskArgs:
171
178
  information on what each kind of disk provisioning policy means, click
172
179
  [here][docs-vmware-vm-disk-provisioning].
173
180
 
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
181
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
175
182
  """
176
183
  return pulumi.get(self, "type")
177
184
 
@@ -209,23 +216,25 @@ class _VirtualDiskState:
209
216
  `create_directories` is enabled will not be deleted when the resource is
210
217
  destroyed.
211
218
  :param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
212
- disk. Can be omitted when when ESXi or if there is only one datacenter in
219
+ disk. Can be omitted when ESXi or if there is only one datacenter in
213
220
  your infrastructure.
214
221
  :param pulumi.Input[str] datastore: The name of the datastore in which to create the
215
222
  disk.
216
- :param pulumi.Input[int] size: Size of the disk (in GB).
223
+ :param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
224
+ 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
225
+ created.
217
226
  :param pulumi.Input[str] type: The type of disk to create. Can be one of
218
227
  `eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
219
228
  information on what each kind of disk provisioning policy means, click
220
229
  [here][docs-vmware-vm-disk-provisioning].
221
230
 
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
231
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
223
232
  :param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
224
233
  be created. This needs to end in `.vmdk`.
225
234
  """
226
235
  if adapter_type is not None:
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""")
236
+ warnings.warn("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""", DeprecationWarning)
237
+ pulumi.log.warn("""adapter_type is deprecated: this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
229
238
  if adapter_type is not None:
230
239
  pulumi.set(__self__, "adapter_type", adapter_type)
231
240
  if create_directories is not None:
@@ -243,6 +252,7 @@ class _VirtualDiskState:
243
252
 
244
253
  @property
245
254
  @pulumi.getter(name="adapterType")
255
+ @_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
246
256
  def adapter_type(self) -> Optional[pulumi.Input[str]]:
247
257
  """
248
258
  The adapter type for this virtual disk. Can be
@@ -255,9 +265,6 @@ class _VirtualDiskState:
255
265
  disk controller types. This parameter will be removed in future versions of the
256
266
  vSphere provider.
257
267
  """
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
-
261
268
  return pulumi.get(self, "adapter_type")
262
269
 
263
270
  @adapter_type.setter
@@ -287,7 +294,7 @@ class _VirtualDiskState:
287
294
  def datacenter(self) -> Optional[pulumi.Input[str]]:
288
295
  """
289
296
  The name of the datacenter in which to create the
290
- disk. Can be omitted when when ESXi or if there is only one datacenter in
297
+ disk. Can be omitted when ESXi or if there is only one datacenter in
291
298
  your infrastructure.
292
299
  """
293
300
  return pulumi.get(self, "datacenter")
@@ -313,7 +320,9 @@ class _VirtualDiskState:
313
320
  @pulumi.getter
314
321
  def size(self) -> Optional[pulumi.Input[int]]:
315
322
  """
316
- Size of the disk (in GB).
323
+ Size of the disk (in GB). Decreasing the size of a disk is not possible.
324
+ 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
325
+ created.
317
326
  """
318
327
  return pulumi.get(self, "size")
319
328
 
@@ -330,7 +339,7 @@ class _VirtualDiskState:
330
339
  information on what each kind of disk provisioning policy means, click
331
340
  [here][docs-vmware-vm-disk-provisioning].
332
341
 
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
342
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
334
343
  """
335
344
  return pulumi.get(self, "type")
336
345
 
@@ -366,7 +375,44 @@ class VirtualDisk(pulumi.CustomResource):
366
375
  vmdk_path: Optional[pulumi.Input[str]] = None,
367
376
  __props__=None):
368
377
  """
369
- Create a VirtualDisk resource with the given unique name, props, and options.
378
+ The `VirtualDisk` resource can be used to create virtual disks outside
379
+ of any given `VirtualMachine`
380
+ resource. These disks can be attached to a virtual machine by creating a disk
381
+ block with the `attach` parameter.
382
+
383
+ ## Example Usage
384
+
385
+ ```python
386
+ import pulumi
387
+ import pulumi_vsphere as vsphere
388
+
389
+ datacenter = vsphere.get_datacenter(name="dc-01")
390
+ datastore = vsphere.get_datacenter(name="datastore-01")
391
+ virtual_disk = vsphere.VirtualDisk("virtual_disk",
392
+ size=40,
393
+ type="thin",
394
+ vmdk_path="/foo/foo.vmdk",
395
+ create_directories=True,
396
+ datacenter=datacenter.name,
397
+ datastore=datastore_vsphere_datastore["name"])
398
+ ```
399
+
400
+ ## Import
401
+
402
+ An existing virtual disk can be imported into this resource
403
+
404
+ via supplying the full datastore path to the virtual disk. An example is below:
405
+
406
+ ```sh
407
+ $ pulumi import vsphere:index/virtualDisk:VirtualDisk virtual_disk \\
408
+ ```
409
+
410
+ '{"virtual_disk_path": "/dc-01/[datastore-01]foo/bar.vmdk", \\ "create_directories": "true"}'
411
+
412
+ The above would import the virtual disk located at `foo/bar.vmdk` in the `datastore-01`
413
+
414
+ datastore of the `dc-01` datacenter with `create_directories` set as `true`.
415
+
370
416
  :param str resource_name: The name of the resource.
371
417
  :param pulumi.ResourceOptions opts: Options for the resource.
372
418
  :param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
@@ -386,17 +432,19 @@ class VirtualDisk(pulumi.CustomResource):
386
432
  `create_directories` is enabled will not be deleted when the resource is
387
433
  destroyed.
388
434
  :param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
389
- disk. Can be omitted when when ESXi or if there is only one datacenter in
435
+ disk. Can be omitted when ESXi or if there is only one datacenter in
390
436
  your infrastructure.
391
437
  :param pulumi.Input[str] datastore: The name of the datastore in which to create the
392
438
  disk.
393
- :param pulumi.Input[int] size: Size of the disk (in GB).
439
+ :param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
440
+ 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
441
+ created.
394
442
  :param pulumi.Input[str] type: The type of disk to create. Can be one of
395
443
  `eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
396
444
  information on what each kind of disk provisioning policy means, click
397
445
  [here][docs-vmware-vm-disk-provisioning].
398
446
 
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
447
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
400
448
  :param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
401
449
  be created. This needs to end in `.vmdk`.
402
450
  """
@@ -407,7 +455,44 @@ class VirtualDisk(pulumi.CustomResource):
407
455
  args: VirtualDiskArgs,
408
456
  opts: Optional[pulumi.ResourceOptions] = None):
409
457
  """
410
- Create a VirtualDisk resource with the given unique name, props, and options.
458
+ The `VirtualDisk` resource can be used to create virtual disks outside
459
+ of any given `VirtualMachine`
460
+ resource. These disks can be attached to a virtual machine by creating a disk
461
+ block with the `attach` parameter.
462
+
463
+ ## Example Usage
464
+
465
+ ```python
466
+ import pulumi
467
+ import pulumi_vsphere as vsphere
468
+
469
+ datacenter = vsphere.get_datacenter(name="dc-01")
470
+ datastore = vsphere.get_datacenter(name="datastore-01")
471
+ virtual_disk = vsphere.VirtualDisk("virtual_disk",
472
+ size=40,
473
+ type="thin",
474
+ vmdk_path="/foo/foo.vmdk",
475
+ create_directories=True,
476
+ datacenter=datacenter.name,
477
+ datastore=datastore_vsphere_datastore["name"])
478
+ ```
479
+
480
+ ## Import
481
+
482
+ An existing virtual disk can be imported into this resource
483
+
484
+ via supplying the full datastore path to the virtual disk. An example is below:
485
+
486
+ ```sh
487
+ $ pulumi import vsphere:index/virtualDisk:VirtualDisk virtual_disk \\
488
+ ```
489
+
490
+ '{"virtual_disk_path": "/dc-01/[datastore-01]foo/bar.vmdk", \\ "create_directories": "true"}'
491
+
492
+ The above would import the virtual disk located at `foo/bar.vmdk` in the `datastore-01`
493
+
494
+ datastore of the `dc-01` datacenter with `create_directories` set as `true`.
495
+
411
496
  :param str resource_name: The name of the resource.
412
497
  :param VirtualDiskArgs args: The arguments to use to populate this resource's properties.
413
498
  :param pulumi.ResourceOptions opts: Options for the resource.
@@ -493,17 +578,19 @@ class VirtualDisk(pulumi.CustomResource):
493
578
  `create_directories` is enabled will not be deleted when the resource is
494
579
  destroyed.
495
580
  :param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
496
- disk. Can be omitted when when ESXi or if there is only one datacenter in
581
+ disk. Can be omitted when ESXi or if there is only one datacenter in
497
582
  your infrastructure.
498
583
  :param pulumi.Input[str] datastore: The name of the datastore in which to create the
499
584
  disk.
500
- :param pulumi.Input[int] size: Size of the disk (in GB).
585
+ :param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
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.
501
588
  :param pulumi.Input[str] type: The type of disk to create. Can be one of
502
589
  `eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
503
590
  information on what each kind of disk provisioning policy means, click
504
591
  [here][docs-vmware-vm-disk-provisioning].
505
592
 
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
593
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
507
594
  :param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
508
595
  be created. This needs to end in `.vmdk`.
509
596
  """
@@ -522,6 +609,7 @@ class VirtualDisk(pulumi.CustomResource):
522
609
 
523
610
  @property
524
611
  @pulumi.getter(name="adapterType")
612
+ @_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
525
613
  def adapter_type(self) -> pulumi.Output[Optional[str]]:
526
614
  """
527
615
  The adapter type for this virtual disk. Can be
@@ -534,9 +622,6 @@ class VirtualDisk(pulumi.CustomResource):
534
622
  disk controller types. This parameter will be removed in future versions of the
535
623
  vSphere provider.
536
624
  """
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
-
540
625
  return pulumi.get(self, "adapter_type")
541
626
 
542
627
  @property
@@ -558,7 +643,7 @@ class VirtualDisk(pulumi.CustomResource):
558
643
  def datacenter(self) -> pulumi.Output[Optional[str]]:
559
644
  """
560
645
  The name of the datacenter in which to create the
561
- disk. Can be omitted when when ESXi or if there is only one datacenter in
646
+ disk. Can be omitted when ESXi or if there is only one datacenter in
562
647
  your infrastructure.
563
648
  """
564
649
  return pulumi.get(self, "datacenter")
@@ -576,7 +661,9 @@ class VirtualDisk(pulumi.CustomResource):
576
661
  @pulumi.getter
577
662
  def size(self) -> pulumi.Output[int]:
578
663
  """
579
- Size of the disk (in GB).
664
+ Size of the disk (in GB). Decreasing the size of a disk is not possible.
665
+ 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
666
+ created.
580
667
  """
581
668
  return pulumi.get(self, "size")
582
669
 
@@ -589,7 +676,7 @@ class VirtualDisk(pulumi.CustomResource):
589
676
  information on what each kind of disk provisioning policy means, click
590
677
  [here][docs-vmware-vm-disk-provisioning].
591
678
 
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
679
+ [docs-vmware-vm-disk-provisioning]: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-4C0F4D73-82F2-4B81-8AA7-1DD752A8A5AC.html
593
680
  """
594
681
  return pulumi.get(self, "type")
595
682