pulumi-vsphere 4.14.0a1739946909__py3-none-any.whl → 4.17.0a1763710194__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 +12 -1
- pulumi_vsphere/_inputs.py +1172 -1172
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +1226 -1484
- pulumi_vsphere/compute_cluster_host_group.py +124 -53
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +88 -87
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +92 -87
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +109 -104
- pulumi_vsphere/compute_cluster_vm_group.py +58 -53
- pulumi_vsphere/compute_cluster_vm_host_rule.py +126 -121
- pulumi_vsphere/config/__init__.py +2 -1
- pulumi_vsphere/config/__init__.pyi +2 -2
- pulumi_vsphere/config/vars.py +15 -15
- pulumi_vsphere/configuration_profile.py +286 -0
- pulumi_vsphere/content_library.py +64 -59
- pulumi_vsphere/content_library_item.py +109 -104
- pulumi_vsphere/custom_attribute.py +41 -36
- pulumi_vsphere/datacenter.py +80 -79
- pulumi_vsphere/datastore_cluster.py +531 -477
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +92 -87
- pulumi_vsphere/distributed_port_group.py +802 -818
- pulumi_vsphere/distributed_virtual_switch.py +1590 -1620
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +71 -70
- pulumi_vsphere/dpm_host_override.py +159 -70
- pulumi_vsphere/drs_vm_override.py +75 -70
- pulumi_vsphere/entity_permissions.py +40 -39
- pulumi_vsphere/file.py +148 -162
- pulumi_vsphere/folder.py +104 -99
- pulumi_vsphere/get_compute_cluster.py +18 -18
- pulumi_vsphere/get_compute_cluster_host_group.py +18 -22
- pulumi_vsphere/get_configuration_profile.py +145 -0
- pulumi_vsphere/get_content_library.py +10 -10
- pulumi_vsphere/get_content_library_item.py +22 -22
- pulumi_vsphere/get_custom_attribute.py +12 -12
- pulumi_vsphere/get_datacenter.py +12 -12
- pulumi_vsphere/get_datastore.py +22 -22
- pulumi_vsphere/get_datastore_cluster.py +19 -19
- pulumi_vsphere/get_datastore_stats.py +22 -26
- pulumi_vsphere/get_distributed_virtual_switch.py +18 -18
- pulumi_vsphere/get_dynamic.py +22 -26
- pulumi_vsphere/get_folder.py +140 -18
- pulumi_vsphere/get_guest_os_customization.py +74 -21
- pulumi_vsphere/get_host.py +18 -18
- pulumi_vsphere/get_host_base_images.py +6 -6
- pulumi_vsphere/get_host_pci_device.py +30 -30
- pulumi_vsphere/get_host_thumbprint.py +22 -22
- pulumi_vsphere/get_host_vgpu_profile.py +17 -17
- pulumi_vsphere/get_license.py +26 -24
- pulumi_vsphere/get_network.py +80 -29
- pulumi_vsphere/get_ovf_vm_template.py +126 -126
- pulumi_vsphere/get_policy.py +10 -10
- pulumi_vsphere/get_resource_pool.py +77 -26
- pulumi_vsphere/get_role.py +26 -26
- pulumi_vsphere/get_tag.py +18 -18
- pulumi_vsphere/get_tag_category.py +16 -16
- pulumi_vsphere/get_vapp_container.py +16 -16
- pulumi_vsphere/get_virtual_machine.py +273 -273
- pulumi_vsphere/get_vmfs_disks.py +24 -24
- pulumi_vsphere/guest_os_customization.py +75 -74
- pulumi_vsphere/ha_vm_override.py +295 -374
- pulumi_vsphere/host.py +304 -249
- pulumi_vsphere/host_port_group.py +321 -341
- pulumi_vsphere/host_virtual_switch.py +373 -389
- pulumi_vsphere/license.py +125 -84
- pulumi_vsphere/nas_datastore.py +324 -261
- pulumi_vsphere/offline_software_depot.py +26 -21
- pulumi_vsphere/outputs.py +1003 -970
- pulumi_vsphere/provider.py +165 -146
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +691 -364
- pulumi_vsphere/role.py +46 -45
- pulumi_vsphere/storage_drs_vm_override.py +92 -87
- pulumi_vsphere/supervisor.py +210 -209
- pulumi_vsphere/tag.py +58 -53
- pulumi_vsphere/tag_category.py +75 -70
- pulumi_vsphere/vapp_container.py +262 -257
- pulumi_vsphere/vapp_entity.py +177 -172
- pulumi_vsphere/virtual_disk.py +130 -125
- pulumi_vsphere/virtual_machine.py +1339 -1443
- pulumi_vsphere/virtual_machine_class.py +109 -108
- pulumi_vsphere/virtual_machine_snapshot.py +122 -121
- pulumi_vsphere/vm_storage_policy.py +40 -39
- pulumi_vsphere/vmfs_datastore.py +189 -184
- pulumi_vsphere/vnic.py +145 -144
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +4 -4
- pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.14.0a1739946909.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
pulumi_vsphere/virtual_disk.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -19,23 +19,23 @@ __all__ = ['VirtualDiskArgs', 'VirtualDisk']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class VirtualDiskArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
datastore: pulumi.Input[str],
|
|
23
|
-
size: pulumi.Input[int],
|
|
24
|
-
vmdk_path: pulumi.Input[str],
|
|
25
|
-
adapter_type: Optional[pulumi.Input[str]] = None,
|
|
26
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
27
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
28
|
-
type: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
datastore: pulumi.Input[_builtins.str],
|
|
23
|
+
size: pulumi.Input[_builtins.int],
|
|
24
|
+
vmdk_path: pulumi.Input[_builtins.str],
|
|
25
|
+
adapter_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
27
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
|
+
type: Optional[pulumi.Input[_builtins.str]] = None):
|
|
29
29
|
"""
|
|
30
30
|
The set of arguments for constructing a VirtualDisk resource.
|
|
31
|
-
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
31
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
32
32
|
disk.
|
|
33
|
-
:param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
33
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
34
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
35
|
created.
|
|
36
|
-
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
36
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
37
37
|
be created. This needs to end in `.vmdk`.
|
|
38
|
-
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
38
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
39
39
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
40
40
|
|
|
41
41
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -44,17 +44,17 @@ class VirtualDiskArgs:
|
|
|
44
44
|
in the `VirtualMachine` resource for information on how to control
|
|
45
45
|
disk controller types. This parameter will be removed in future versions of the
|
|
46
46
|
vSphere provider.
|
|
47
|
-
:param pulumi.Input[bool] create_directories: Tells the resource to create any
|
|
47
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
48
48
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
49
49
|
Default: `false`.
|
|
50
50
|
|
|
51
51
|
> **NOTE:** Any directory created as part of the operation when
|
|
52
52
|
`create_directories` is enabled will not be deleted when the resource is
|
|
53
53
|
destroyed.
|
|
54
|
-
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
54
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
55
55
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
56
56
|
your infrastructure.
|
|
57
|
-
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
57
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
58
58
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
59
59
|
information on what each kind of disk provisioning policy means, click
|
|
60
60
|
[here][docs-vmware-vm-disk-provisioning].
|
|
@@ -76,9 +76,9 @@ class VirtualDiskArgs:
|
|
|
76
76
|
if type is not None:
|
|
77
77
|
pulumi.set(__self__, "type", type)
|
|
78
78
|
|
|
79
|
-
@property
|
|
79
|
+
@_builtins.property
|
|
80
80
|
@pulumi.getter
|
|
81
|
-
def datastore(self) -> pulumi.Input[str]:
|
|
81
|
+
def datastore(self) -> pulumi.Input[_builtins.str]:
|
|
82
82
|
"""
|
|
83
83
|
The name of the datastore in which to create the
|
|
84
84
|
disk.
|
|
@@ -86,12 +86,12 @@ class VirtualDiskArgs:
|
|
|
86
86
|
return pulumi.get(self, "datastore")
|
|
87
87
|
|
|
88
88
|
@datastore.setter
|
|
89
|
-
def datastore(self, value: pulumi.Input[str]):
|
|
89
|
+
def datastore(self, value: pulumi.Input[_builtins.str]):
|
|
90
90
|
pulumi.set(self, "datastore", value)
|
|
91
91
|
|
|
92
|
-
@property
|
|
92
|
+
@_builtins.property
|
|
93
93
|
@pulumi.getter
|
|
94
|
-
def size(self) -> pulumi.Input[int]:
|
|
94
|
+
def size(self) -> pulumi.Input[_builtins.int]:
|
|
95
95
|
"""
|
|
96
96
|
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
97
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
|
|
@@ -100,12 +100,12 @@ class VirtualDiskArgs:
|
|
|
100
100
|
return pulumi.get(self, "size")
|
|
101
101
|
|
|
102
102
|
@size.setter
|
|
103
|
-
def size(self, value: pulumi.Input[int]):
|
|
103
|
+
def size(self, value: pulumi.Input[_builtins.int]):
|
|
104
104
|
pulumi.set(self, "size", value)
|
|
105
105
|
|
|
106
|
-
@property
|
|
106
|
+
@_builtins.property
|
|
107
107
|
@pulumi.getter(name="vmdkPath")
|
|
108
|
-
def vmdk_path(self) -> pulumi.Input[str]:
|
|
108
|
+
def vmdk_path(self) -> pulumi.Input[_builtins.str]:
|
|
109
109
|
"""
|
|
110
110
|
The path, including filename, of the virtual disk to
|
|
111
111
|
be created. This needs to end in `.vmdk`.
|
|
@@ -113,13 +113,13 @@ class VirtualDiskArgs:
|
|
|
113
113
|
return pulumi.get(self, "vmdk_path")
|
|
114
114
|
|
|
115
115
|
@vmdk_path.setter
|
|
116
|
-
def vmdk_path(self, value: pulumi.Input[str]):
|
|
116
|
+
def vmdk_path(self, value: pulumi.Input[_builtins.str]):
|
|
117
117
|
pulumi.set(self, "vmdk_path", value)
|
|
118
118
|
|
|
119
|
-
@property
|
|
119
|
+
@_builtins.property
|
|
120
120
|
@pulumi.getter(name="adapterType")
|
|
121
121
|
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
122
|
-
def adapter_type(self) -> Optional[pulumi.Input[str]]:
|
|
122
|
+
def adapter_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
123
123
|
"""
|
|
124
124
|
The adapter type for this virtual disk. Can be
|
|
125
125
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
@@ -134,12 +134,12 @@ class VirtualDiskArgs:
|
|
|
134
134
|
return pulumi.get(self, "adapter_type")
|
|
135
135
|
|
|
136
136
|
@adapter_type.setter
|
|
137
|
-
def adapter_type(self, value: Optional[pulumi.Input[str]]):
|
|
137
|
+
def adapter_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
138
138
|
pulumi.set(self, "adapter_type", value)
|
|
139
139
|
|
|
140
|
-
@property
|
|
140
|
+
@_builtins.property
|
|
141
141
|
@pulumi.getter(name="createDirectories")
|
|
142
|
-
def create_directories(self) -> Optional[pulumi.Input[bool]]:
|
|
142
|
+
def create_directories(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
143
143
|
"""
|
|
144
144
|
Tells the resource to create any
|
|
145
145
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
@@ -152,12 +152,12 @@ class VirtualDiskArgs:
|
|
|
152
152
|
return pulumi.get(self, "create_directories")
|
|
153
153
|
|
|
154
154
|
@create_directories.setter
|
|
155
|
-
def create_directories(self, value: Optional[pulumi.Input[bool]]):
|
|
155
|
+
def create_directories(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
156
156
|
pulumi.set(self, "create_directories", value)
|
|
157
157
|
|
|
158
|
-
@property
|
|
158
|
+
@_builtins.property
|
|
159
159
|
@pulumi.getter
|
|
160
|
-
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
160
|
+
def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
161
161
|
"""
|
|
162
162
|
The name of the datacenter in which to create the
|
|
163
163
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
@@ -166,12 +166,12 @@ class VirtualDiskArgs:
|
|
|
166
166
|
return pulumi.get(self, "datacenter")
|
|
167
167
|
|
|
168
168
|
@datacenter.setter
|
|
169
|
-
def datacenter(self, value: Optional[pulumi.Input[str]]):
|
|
169
|
+
def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
170
170
|
pulumi.set(self, "datacenter", value)
|
|
171
171
|
|
|
172
|
-
@property
|
|
172
|
+
@_builtins.property
|
|
173
173
|
@pulumi.getter
|
|
174
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
174
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
175
175
|
"""
|
|
176
176
|
The type of disk to create. Can be one of
|
|
177
177
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
@@ -183,23 +183,23 @@ class VirtualDiskArgs:
|
|
|
183
183
|
return pulumi.get(self, "type")
|
|
184
184
|
|
|
185
185
|
@type.setter
|
|
186
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
186
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
187
187
|
pulumi.set(self, "type", value)
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
@pulumi.input_type
|
|
191
191
|
class _VirtualDiskState:
|
|
192
192
|
def __init__(__self__, *,
|
|
193
|
-
adapter_type: Optional[pulumi.Input[str]] = None,
|
|
194
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
195
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
196
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
197
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
198
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
199
|
-
vmdk_path: Optional[pulumi.Input[str]] = None):
|
|
193
|
+
adapter_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
194
|
+
create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
195
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
196
|
+
datastore: Optional[pulumi.Input[_builtins.str]] = None,
|
|
197
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
198
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
199
|
+
vmdk_path: Optional[pulumi.Input[_builtins.str]] = None):
|
|
200
200
|
"""
|
|
201
201
|
Input properties used for looking up and filtering VirtualDisk resources.
|
|
202
|
-
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
202
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
203
203
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
204
204
|
|
|
205
205
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -208,28 +208,28 @@ class _VirtualDiskState:
|
|
|
208
208
|
in the `VirtualMachine` resource for information on how to control
|
|
209
209
|
disk controller types. This parameter will be removed in future versions of the
|
|
210
210
|
vSphere provider.
|
|
211
|
-
:param pulumi.Input[bool] create_directories: Tells the resource to create any
|
|
211
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
212
212
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
213
213
|
Default: `false`.
|
|
214
214
|
|
|
215
215
|
> **NOTE:** Any directory created as part of the operation when
|
|
216
216
|
`create_directories` is enabled will not be deleted when the resource is
|
|
217
217
|
destroyed.
|
|
218
|
-
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
218
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
219
219
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
220
220
|
your infrastructure.
|
|
221
|
-
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
221
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
222
222
|
disk.
|
|
223
|
-
:param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
223
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
224
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
225
|
created.
|
|
226
|
-
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
226
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
227
227
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
228
228
|
information on what each kind of disk provisioning policy means, click
|
|
229
229
|
[here][docs-vmware-vm-disk-provisioning].
|
|
230
230
|
|
|
231
231
|
[docs-vmware-vm-disk-provisioning]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/configuring-virtual-machines-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/virtual-disk-configuration-vSphereSingleHostManagementVMwareHostClient/about-virtual-disk-provisioning-policies-vSphereSingleHostManagementVMwareHostClient.html
|
|
232
|
-
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
232
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
233
233
|
be created. This needs to end in `.vmdk`.
|
|
234
234
|
"""
|
|
235
235
|
if adapter_type is not None:
|
|
@@ -250,10 +250,10 @@ class _VirtualDiskState:
|
|
|
250
250
|
if vmdk_path is not None:
|
|
251
251
|
pulumi.set(__self__, "vmdk_path", vmdk_path)
|
|
252
252
|
|
|
253
|
-
@property
|
|
253
|
+
@_builtins.property
|
|
254
254
|
@pulumi.getter(name="adapterType")
|
|
255
255
|
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
256
|
-
def adapter_type(self) -> Optional[pulumi.Input[str]]:
|
|
256
|
+
def adapter_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
257
257
|
"""
|
|
258
258
|
The adapter type for this virtual disk. Can be
|
|
259
259
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
@@ -268,12 +268,12 @@ class _VirtualDiskState:
|
|
|
268
268
|
return pulumi.get(self, "adapter_type")
|
|
269
269
|
|
|
270
270
|
@adapter_type.setter
|
|
271
|
-
def adapter_type(self, value: Optional[pulumi.Input[str]]):
|
|
271
|
+
def adapter_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
272
272
|
pulumi.set(self, "adapter_type", value)
|
|
273
273
|
|
|
274
|
-
@property
|
|
274
|
+
@_builtins.property
|
|
275
275
|
@pulumi.getter(name="createDirectories")
|
|
276
|
-
def create_directories(self) -> Optional[pulumi.Input[bool]]:
|
|
276
|
+
def create_directories(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
277
277
|
"""
|
|
278
278
|
Tells the resource to create any
|
|
279
279
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
@@ -286,12 +286,12 @@ class _VirtualDiskState:
|
|
|
286
286
|
return pulumi.get(self, "create_directories")
|
|
287
287
|
|
|
288
288
|
@create_directories.setter
|
|
289
|
-
def create_directories(self, value: Optional[pulumi.Input[bool]]):
|
|
289
|
+
def create_directories(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
290
290
|
pulumi.set(self, "create_directories", value)
|
|
291
291
|
|
|
292
|
-
@property
|
|
292
|
+
@_builtins.property
|
|
293
293
|
@pulumi.getter
|
|
294
|
-
def datacenter(self) -> Optional[pulumi.Input[str]]:
|
|
294
|
+
def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
295
295
|
"""
|
|
296
296
|
The name of the datacenter in which to create the
|
|
297
297
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
@@ -300,12 +300,12 @@ class _VirtualDiskState:
|
|
|
300
300
|
return pulumi.get(self, "datacenter")
|
|
301
301
|
|
|
302
302
|
@datacenter.setter
|
|
303
|
-
def datacenter(self, value: Optional[pulumi.Input[str]]):
|
|
303
|
+
def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
304
304
|
pulumi.set(self, "datacenter", value)
|
|
305
305
|
|
|
306
|
-
@property
|
|
306
|
+
@_builtins.property
|
|
307
307
|
@pulumi.getter
|
|
308
|
-
def datastore(self) -> Optional[pulumi.Input[str]]:
|
|
308
|
+
def datastore(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
309
309
|
"""
|
|
310
310
|
The name of the datastore in which to create the
|
|
311
311
|
disk.
|
|
@@ -313,12 +313,12 @@ class _VirtualDiskState:
|
|
|
313
313
|
return pulumi.get(self, "datastore")
|
|
314
314
|
|
|
315
315
|
@datastore.setter
|
|
316
|
-
def datastore(self, value: Optional[pulumi.Input[str]]):
|
|
316
|
+
def datastore(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
317
317
|
pulumi.set(self, "datastore", value)
|
|
318
318
|
|
|
319
|
-
@property
|
|
319
|
+
@_builtins.property
|
|
320
320
|
@pulumi.getter
|
|
321
|
-
def size(self) -> Optional[pulumi.Input[int]]:
|
|
321
|
+
def size(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
322
322
|
"""
|
|
323
323
|
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
324
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
|
|
@@ -327,12 +327,12 @@ class _VirtualDiskState:
|
|
|
327
327
|
return pulumi.get(self, "size")
|
|
328
328
|
|
|
329
329
|
@size.setter
|
|
330
|
-
def size(self, value: Optional[pulumi.Input[int]]):
|
|
330
|
+
def size(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
331
331
|
pulumi.set(self, "size", value)
|
|
332
332
|
|
|
333
|
-
@property
|
|
333
|
+
@_builtins.property
|
|
334
334
|
@pulumi.getter
|
|
335
|
-
def type(self) -> Optional[pulumi.Input[str]]:
|
|
335
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
336
336
|
"""
|
|
337
337
|
The type of disk to create. Can be one of
|
|
338
338
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
@@ -344,12 +344,12 @@ class _VirtualDiskState:
|
|
|
344
344
|
return pulumi.get(self, "type")
|
|
345
345
|
|
|
346
346
|
@type.setter
|
|
347
|
-
def type(self, value: Optional[pulumi.Input[str]]):
|
|
347
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
348
348
|
pulumi.set(self, "type", value)
|
|
349
349
|
|
|
350
|
-
@property
|
|
350
|
+
@_builtins.property
|
|
351
351
|
@pulumi.getter(name="vmdkPath")
|
|
352
|
-
def vmdk_path(self) -> Optional[pulumi.Input[str]]:
|
|
352
|
+
def vmdk_path(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
353
353
|
"""
|
|
354
354
|
The path, including filename, of the virtual disk to
|
|
355
355
|
be created. This needs to end in `.vmdk`.
|
|
@@ -357,22 +357,23 @@ class _VirtualDiskState:
|
|
|
357
357
|
return pulumi.get(self, "vmdk_path")
|
|
358
358
|
|
|
359
359
|
@vmdk_path.setter
|
|
360
|
-
def vmdk_path(self, value: Optional[pulumi.Input[str]]):
|
|
360
|
+
def vmdk_path(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
361
361
|
pulumi.set(self, "vmdk_path", value)
|
|
362
362
|
|
|
363
363
|
|
|
364
|
+
@pulumi.type_token("vsphere:index/virtualDisk:VirtualDisk")
|
|
364
365
|
class VirtualDisk(pulumi.CustomResource):
|
|
365
366
|
@overload
|
|
366
367
|
def __init__(__self__,
|
|
367
368
|
resource_name: str,
|
|
368
369
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
369
|
-
adapter_type: Optional[pulumi.Input[str]] = None,
|
|
370
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
371
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
372
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
373
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
374
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
375
|
-
vmdk_path: Optional[pulumi.Input[str]] = None,
|
|
370
|
+
adapter_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
371
|
+
create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
372
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
373
|
+
datastore: Optional[pulumi.Input[_builtins.str]] = None,
|
|
374
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
375
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
376
|
+
vmdk_path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
376
377
|
__props__=None):
|
|
377
378
|
"""
|
|
378
379
|
The `VirtualDisk` resource can be used to create virtual disks outside
|
|
@@ -387,14 +388,14 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
387
388
|
import pulumi_vsphere as vsphere
|
|
388
389
|
|
|
389
390
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
390
|
-
datastore = vsphere.
|
|
391
|
+
datastore = vsphere.get_datastore(name="datastore-01")
|
|
391
392
|
virtual_disk = vsphere.VirtualDisk("virtual_disk",
|
|
392
393
|
size=40,
|
|
393
394
|
type="thin",
|
|
394
395
|
vmdk_path="/foo/foo.vmdk",
|
|
395
396
|
create_directories=True,
|
|
396
397
|
datacenter=datacenter.name,
|
|
397
|
-
datastore=
|
|
398
|
+
datastore=datastore.name)
|
|
398
399
|
```
|
|
399
400
|
|
|
400
401
|
## Import
|
|
@@ -403,6 +404,8 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
403
404
|
|
|
404
405
|
via supplying the full datastore path to the virtual disk. An example is below:
|
|
405
406
|
|
|
407
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
408
|
+
|
|
406
409
|
```sh
|
|
407
410
|
$ pulumi import vsphere:index/virtualDisk:VirtualDisk virtual_disk \\
|
|
408
411
|
```
|
|
@@ -415,7 +418,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
415
418
|
|
|
416
419
|
:param str resource_name: The name of the resource.
|
|
417
420
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
418
|
-
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
421
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
419
422
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
420
423
|
|
|
421
424
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -424,28 +427,28 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
424
427
|
in the `VirtualMachine` resource for information on how to control
|
|
425
428
|
disk controller types. This parameter will be removed in future versions of the
|
|
426
429
|
vSphere provider.
|
|
427
|
-
:param pulumi.Input[bool] create_directories: Tells the resource to create any
|
|
430
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
428
431
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
429
432
|
Default: `false`.
|
|
430
433
|
|
|
431
434
|
> **NOTE:** Any directory created as part of the operation when
|
|
432
435
|
`create_directories` is enabled will not be deleted when the resource is
|
|
433
436
|
destroyed.
|
|
434
|
-
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
437
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
435
438
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
436
439
|
your infrastructure.
|
|
437
|
-
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
440
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
438
441
|
disk.
|
|
439
|
-
:param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
442
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
440
443
|
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
444
|
created.
|
|
442
|
-
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
445
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
443
446
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
444
447
|
information on what each kind of disk provisioning policy means, click
|
|
445
448
|
[here][docs-vmware-vm-disk-provisioning].
|
|
446
449
|
|
|
447
450
|
[docs-vmware-vm-disk-provisioning]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/configuring-virtual-machines-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/virtual-disk-configuration-vSphereSingleHostManagementVMwareHostClient/about-virtual-disk-provisioning-policies-vSphereSingleHostManagementVMwareHostClient.html
|
|
448
|
-
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
451
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
449
452
|
be created. This needs to end in `.vmdk`.
|
|
450
453
|
"""
|
|
451
454
|
...
|
|
@@ -467,14 +470,14 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
467
470
|
import pulumi_vsphere as vsphere
|
|
468
471
|
|
|
469
472
|
datacenter = vsphere.get_datacenter(name="dc-01")
|
|
470
|
-
datastore = vsphere.
|
|
473
|
+
datastore = vsphere.get_datastore(name="datastore-01")
|
|
471
474
|
virtual_disk = vsphere.VirtualDisk("virtual_disk",
|
|
472
475
|
size=40,
|
|
473
476
|
type="thin",
|
|
474
477
|
vmdk_path="/foo/foo.vmdk",
|
|
475
478
|
create_directories=True,
|
|
476
479
|
datacenter=datacenter.name,
|
|
477
|
-
datastore=
|
|
480
|
+
datastore=datastore.name)
|
|
478
481
|
```
|
|
479
482
|
|
|
480
483
|
## Import
|
|
@@ -483,6 +486,8 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
483
486
|
|
|
484
487
|
via supplying the full datastore path to the virtual disk. An example is below:
|
|
485
488
|
|
|
489
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
490
|
+
|
|
486
491
|
```sh
|
|
487
492
|
$ pulumi import vsphere:index/virtualDisk:VirtualDisk virtual_disk \\
|
|
488
493
|
```
|
|
@@ -508,13 +513,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
508
513
|
def _internal_init(__self__,
|
|
509
514
|
resource_name: str,
|
|
510
515
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
511
|
-
adapter_type: Optional[pulumi.Input[str]] = None,
|
|
512
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
513
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
514
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
515
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
516
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
517
|
-
vmdk_path: Optional[pulumi.Input[str]] = None,
|
|
516
|
+
adapter_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
517
|
+
create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
518
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
519
|
+
datastore: Optional[pulumi.Input[_builtins.str]] = None,
|
|
520
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
521
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
522
|
+
vmdk_path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
518
523
|
__props__=None):
|
|
519
524
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
520
525
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -547,13 +552,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
547
552
|
def get(resource_name: str,
|
|
548
553
|
id: pulumi.Input[str],
|
|
549
554
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
550
|
-
adapter_type: Optional[pulumi.Input[str]] = None,
|
|
551
|
-
create_directories: Optional[pulumi.Input[bool]] = None,
|
|
552
|
-
datacenter: Optional[pulumi.Input[str]] = None,
|
|
553
|
-
datastore: Optional[pulumi.Input[str]] = None,
|
|
554
|
-
size: Optional[pulumi.Input[int]] = None,
|
|
555
|
-
type: Optional[pulumi.Input[str]] = None,
|
|
556
|
-
vmdk_path: Optional[pulumi.Input[str]] = None) -> 'VirtualDisk':
|
|
555
|
+
adapter_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
556
|
+
create_directories: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
557
|
+
datacenter: Optional[pulumi.Input[_builtins.str]] = None,
|
|
558
|
+
datastore: Optional[pulumi.Input[_builtins.str]] = None,
|
|
559
|
+
size: Optional[pulumi.Input[_builtins.int]] = None,
|
|
560
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
561
|
+
vmdk_path: Optional[pulumi.Input[_builtins.str]] = None) -> 'VirtualDisk':
|
|
557
562
|
"""
|
|
558
563
|
Get an existing VirtualDisk resource's state with the given name, id, and optional extra
|
|
559
564
|
properties used to qualify the lookup.
|
|
@@ -561,7 +566,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
561
566
|
:param str resource_name: The unique name of the resulting resource.
|
|
562
567
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
563
568
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
564
|
-
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
569
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
565
570
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
566
571
|
|
|
567
572
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -570,28 +575,28 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
570
575
|
in the `VirtualMachine` resource for information on how to control
|
|
571
576
|
disk controller types. This parameter will be removed in future versions of the
|
|
572
577
|
vSphere provider.
|
|
573
|
-
:param pulumi.Input[bool] create_directories: Tells the resource to create any
|
|
578
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
574
579
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
575
580
|
Default: `false`.
|
|
576
581
|
|
|
577
582
|
> **NOTE:** Any directory created as part of the operation when
|
|
578
583
|
`create_directories` is enabled will not be deleted when the resource is
|
|
579
584
|
destroyed.
|
|
580
|
-
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
585
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
581
586
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
582
587
|
your infrastructure.
|
|
583
|
-
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
588
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
584
589
|
disk.
|
|
585
|
-
:param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
590
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
586
591
|
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
592
|
created.
|
|
588
|
-
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
593
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
589
594
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
590
595
|
information on what each kind of disk provisioning policy means, click
|
|
591
596
|
[here][docs-vmware-vm-disk-provisioning].
|
|
592
597
|
|
|
593
598
|
[docs-vmware-vm-disk-provisioning]: https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-single-host-management-vmware-host-client-8-0/virtual-machine-management-with-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/configuring-virtual-machines-in-the-vsphere-host-client-vSphereSingleHostManagementVMwareHostClient/virtual-disk-configuration-vSphereSingleHostManagementVMwareHostClient/about-virtual-disk-provisioning-policies-vSphereSingleHostManagementVMwareHostClient.html
|
|
594
|
-
:param pulumi.Input[str] vmdk_path: The path, including filename, of the virtual disk to
|
|
599
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
595
600
|
be created. This needs to end in `.vmdk`.
|
|
596
601
|
"""
|
|
597
602
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -607,10 +612,10 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
607
612
|
__props__.__dict__["vmdk_path"] = vmdk_path
|
|
608
613
|
return VirtualDisk(resource_name, opts=opts, __props__=__props__)
|
|
609
614
|
|
|
610
|
-
@property
|
|
615
|
+
@_builtins.property
|
|
611
616
|
@pulumi.getter(name="adapterType")
|
|
612
617
|
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
613
|
-
def adapter_type(self) -> pulumi.Output[Optional[str]]:
|
|
618
|
+
def adapter_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
614
619
|
"""
|
|
615
620
|
The adapter type for this virtual disk. Can be
|
|
616
621
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
@@ -624,9 +629,9 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
624
629
|
"""
|
|
625
630
|
return pulumi.get(self, "adapter_type")
|
|
626
631
|
|
|
627
|
-
@property
|
|
632
|
+
@_builtins.property
|
|
628
633
|
@pulumi.getter(name="createDirectories")
|
|
629
|
-
def create_directories(self) -> pulumi.Output[Optional[bool]]:
|
|
634
|
+
def create_directories(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
630
635
|
"""
|
|
631
636
|
Tells the resource to create any
|
|
632
637
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
@@ -638,9 +643,9 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
638
643
|
"""
|
|
639
644
|
return pulumi.get(self, "create_directories")
|
|
640
645
|
|
|
641
|
-
@property
|
|
646
|
+
@_builtins.property
|
|
642
647
|
@pulumi.getter
|
|
643
|
-
def datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
648
|
+
def datacenter(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
644
649
|
"""
|
|
645
650
|
The name of the datacenter in which to create the
|
|
646
651
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
@@ -648,18 +653,18 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
648
653
|
"""
|
|
649
654
|
return pulumi.get(self, "datacenter")
|
|
650
655
|
|
|
651
|
-
@property
|
|
656
|
+
@_builtins.property
|
|
652
657
|
@pulumi.getter
|
|
653
|
-
def datastore(self) -> pulumi.Output[str]:
|
|
658
|
+
def datastore(self) -> pulumi.Output[_builtins.str]:
|
|
654
659
|
"""
|
|
655
660
|
The name of the datastore in which to create the
|
|
656
661
|
disk.
|
|
657
662
|
"""
|
|
658
663
|
return pulumi.get(self, "datastore")
|
|
659
664
|
|
|
660
|
-
@property
|
|
665
|
+
@_builtins.property
|
|
661
666
|
@pulumi.getter
|
|
662
|
-
def size(self) -> pulumi.Output[int]:
|
|
667
|
+
def size(self) -> pulumi.Output[_builtins.int]:
|
|
663
668
|
"""
|
|
664
669
|
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
665
670
|
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
|
|
@@ -667,9 +672,9 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
667
672
|
"""
|
|
668
673
|
return pulumi.get(self, "size")
|
|
669
674
|
|
|
670
|
-
@property
|
|
675
|
+
@_builtins.property
|
|
671
676
|
@pulumi.getter
|
|
672
|
-
def type(self) -> pulumi.Output[Optional[str]]:
|
|
677
|
+
def type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
673
678
|
"""
|
|
674
679
|
The type of disk to create. Can be one of
|
|
675
680
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
@@ -680,9 +685,9 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
680
685
|
"""
|
|
681
686
|
return pulumi.get(self, "type")
|
|
682
687
|
|
|
683
|
-
@property
|
|
688
|
+
@_builtins.property
|
|
684
689
|
@pulumi.getter(name="vmdkPath")
|
|
685
|
-
def vmdk_path(self) -> pulumi.Output[str]:
|
|
690
|
+
def vmdk_path(self) -> pulumi.Output[_builtins.str]:
|
|
686
691
|
"""
|
|
687
692
|
The path, including filename, of the virtual disk to
|
|
688
693
|
be created. This needs to end in `.vmdk`.
|