pulumi-vsphere 4.15.0a1753206257__py3-none-any.whl → 4.16.0a1753398270__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 +1 -1
- pulumi_vsphere/_inputs.py +1171 -1172
- pulumi_vsphere/compute_cluster.py +1127 -1128
- pulumi_vsphere/compute_cluster_host_group.py +52 -53
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +86 -87
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +86 -87
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +103 -104
- pulumi_vsphere/compute_cluster_vm_group.py +52 -53
- pulumi_vsphere/compute_cluster_vm_host_rule.py +120 -121
- pulumi_vsphere/config/__init__.py +1 -1
- pulumi_vsphere/config/__init__.pyi +1 -2
- pulumi_vsphere/config/vars.py +14 -15
- pulumi_vsphere/content_library.py +58 -59
- pulumi_vsphere/content_library_item.py +103 -104
- pulumi_vsphere/custom_attribute.py +35 -36
- pulumi_vsphere/datacenter.py +78 -79
- pulumi_vsphere/datastore_cluster.py +426 -427
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +86 -87
- pulumi_vsphere/distributed_port_group.py +787 -788
- pulumi_vsphere/distributed_virtual_switch.py +1566 -1567
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +69 -70
- pulumi_vsphere/dpm_host_override.py +69 -70
- pulumi_vsphere/drs_vm_override.py +69 -70
- pulumi_vsphere/entity_permissions.py +38 -39
- pulumi_vsphere/file.py +120 -121
- pulumi_vsphere/folder.py +86 -87
- pulumi_vsphere/get_compute_cluster.py +17 -18
- pulumi_vsphere/get_compute_cluster_host_group.py +17 -18
- pulumi_vsphere/get_content_library.py +9 -10
- pulumi_vsphere/get_content_library_item.py +21 -22
- pulumi_vsphere/get_custom_attribute.py +11 -12
- pulumi_vsphere/get_datacenter.py +11 -12
- pulumi_vsphere/get_datastore.py +21 -22
- pulumi_vsphere/get_datastore_cluster.py +17 -18
- pulumi_vsphere/get_datastore_stats.py +21 -22
- pulumi_vsphere/get_distributed_virtual_switch.py +17 -18
- pulumi_vsphere/get_dynamic.py +21 -22
- pulumi_vsphere/get_folder.py +9 -10
- pulumi_vsphere/get_guest_os_customization.py +18 -19
- pulumi_vsphere/get_host.py +17 -18
- pulumi_vsphere/get_host_base_images.py +5 -6
- pulumi_vsphere/get_host_pci_device.py +29 -30
- pulumi_vsphere/get_host_thumbprint.py +21 -22
- pulumi_vsphere/get_host_vgpu_profile.py +16 -17
- pulumi_vsphere/get_license.py +19 -20
- pulumi_vsphere/get_network.py +42 -43
- pulumi_vsphere/get_ovf_vm_template.py +121 -122
- pulumi_vsphere/get_policy.py +9 -10
- pulumi_vsphere/get_resource_pool.py +21 -22
- pulumi_vsphere/get_role.py +25 -26
- pulumi_vsphere/get_tag.py +17 -18
- pulumi_vsphere/get_tag_category.py +15 -16
- pulumi_vsphere/get_vapp_container.py +15 -16
- pulumi_vsphere/get_virtual_machine.py +272 -273
- pulumi_vsphere/get_vmfs_disks.py +23 -24
- pulumi_vsphere/guest_os_customization.py +73 -74
- pulumi_vsphere/ha_vm_override.py +256 -257
- pulumi_vsphere/host.py +242 -243
- pulumi_vsphere/host_port_group.py +310 -311
- pulumi_vsphere/host_virtual_switch.py +358 -359
- pulumi_vsphere/license.py +71 -72
- pulumi_vsphere/nas_datastore.py +260 -261
- pulumi_vsphere/offline_software_depot.py +20 -21
- pulumi_vsphere/outputs.py +981 -982
- pulumi_vsphere/provider.py +120 -121
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +256 -257
- pulumi_vsphere/role.py +44 -45
- pulumi_vsphere/storage_drs_vm_override.py +86 -87
- pulumi_vsphere/supervisor.py +206 -207
- pulumi_vsphere/tag.py +52 -53
- pulumi_vsphere/tag_category.py +69 -70
- pulumi_vsphere/vapp_container.py +256 -257
- pulumi_vsphere/vapp_entity.py +171 -172
- pulumi_vsphere/virtual_disk.py +120 -121
- pulumi_vsphere/virtual_machine.py +1293 -1294
- pulumi_vsphere/virtual_machine_class.py +103 -104
- pulumi_vsphere/virtual_machine_snapshot.py +120 -121
- pulumi_vsphere/vm_storage_policy.py +38 -39
- pulumi_vsphere/vmfs_datastore.py +183 -184
- pulumi_vsphere/vnic.py +143 -144
- {pulumi_vsphere-4.15.0a1753206257.dist-info → pulumi_vsphere-4.16.0a1753398270.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.16.0a1753398270.dist-info/RECORD +87 -0
- pulumi_vsphere-4.15.0a1753206257.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.15.0a1753206257.dist-info → pulumi_vsphere-4.16.0a1753398270.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.15.0a1753206257.dist-info → pulumi_vsphere-4.16.0a1753398270.dist-info}/top_level.txt +0 -0
pulumi_vsphere/virtual_disk.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
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 builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -20,23 +19,23 @@ __all__ = ['VirtualDiskArgs', 'VirtualDisk']
|
|
|
20
19
|
@pulumi.input_type
|
|
21
20
|
class VirtualDiskArgs:
|
|
22
21
|
def __init__(__self__, *,
|
|
23
|
-
datastore: pulumi.Input[
|
|
24
|
-
size: pulumi.Input[
|
|
25
|
-
vmdk_path: pulumi.Input[
|
|
26
|
-
adapter_type: Optional[pulumi.Input[
|
|
27
|
-
create_directories: Optional[pulumi.Input[
|
|
28
|
-
datacenter: Optional[pulumi.Input[
|
|
29
|
-
type: Optional[pulumi.Input[
|
|
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):
|
|
30
29
|
"""
|
|
31
30
|
The set of arguments for constructing a VirtualDisk resource.
|
|
32
|
-
:param pulumi.Input[
|
|
31
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
33
32
|
disk.
|
|
34
|
-
:param pulumi.Input[
|
|
33
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
35
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
|
|
36
35
|
created.
|
|
37
|
-
:param pulumi.Input[
|
|
36
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
38
37
|
be created. This needs to end in `.vmdk`.
|
|
39
|
-
:param pulumi.Input[
|
|
38
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
40
39
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
41
40
|
|
|
42
41
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -45,17 +44,17 @@ class VirtualDiskArgs:
|
|
|
45
44
|
in the `VirtualMachine` resource for information on how to control
|
|
46
45
|
disk controller types. This parameter will be removed in future versions of the
|
|
47
46
|
vSphere provider.
|
|
48
|
-
:param pulumi.Input[
|
|
47
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
49
48
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
50
49
|
Default: `false`.
|
|
51
50
|
|
|
52
51
|
> **NOTE:** Any directory created as part of the operation when
|
|
53
52
|
`create_directories` is enabled will not be deleted when the resource is
|
|
54
53
|
destroyed.
|
|
55
|
-
:param pulumi.Input[
|
|
54
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
56
55
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
57
56
|
your infrastructure.
|
|
58
|
-
:param pulumi.Input[
|
|
57
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
59
58
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
60
59
|
information on what each kind of disk provisioning policy means, click
|
|
61
60
|
[here][docs-vmware-vm-disk-provisioning].
|
|
@@ -77,9 +76,9 @@ class VirtualDiskArgs:
|
|
|
77
76
|
if type is not None:
|
|
78
77
|
pulumi.set(__self__, "type", type)
|
|
79
78
|
|
|
80
|
-
@property
|
|
79
|
+
@_builtins.property
|
|
81
80
|
@pulumi.getter
|
|
82
|
-
def datastore(self) -> pulumi.Input[
|
|
81
|
+
def datastore(self) -> pulumi.Input[_builtins.str]:
|
|
83
82
|
"""
|
|
84
83
|
The name of the datastore in which to create the
|
|
85
84
|
disk.
|
|
@@ -87,12 +86,12 @@ class VirtualDiskArgs:
|
|
|
87
86
|
return pulumi.get(self, "datastore")
|
|
88
87
|
|
|
89
88
|
@datastore.setter
|
|
90
|
-
def datastore(self, value: pulumi.Input[
|
|
89
|
+
def datastore(self, value: pulumi.Input[_builtins.str]):
|
|
91
90
|
pulumi.set(self, "datastore", value)
|
|
92
91
|
|
|
93
|
-
@property
|
|
92
|
+
@_builtins.property
|
|
94
93
|
@pulumi.getter
|
|
95
|
-
def size(self) -> pulumi.Input[
|
|
94
|
+
def size(self) -> pulumi.Input[_builtins.int]:
|
|
96
95
|
"""
|
|
97
96
|
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
98
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
|
|
@@ -101,12 +100,12 @@ class VirtualDiskArgs:
|
|
|
101
100
|
return pulumi.get(self, "size")
|
|
102
101
|
|
|
103
102
|
@size.setter
|
|
104
|
-
def size(self, value: pulumi.Input[
|
|
103
|
+
def size(self, value: pulumi.Input[_builtins.int]):
|
|
105
104
|
pulumi.set(self, "size", value)
|
|
106
105
|
|
|
107
|
-
@property
|
|
106
|
+
@_builtins.property
|
|
108
107
|
@pulumi.getter(name="vmdkPath")
|
|
109
|
-
def vmdk_path(self) -> pulumi.Input[
|
|
108
|
+
def vmdk_path(self) -> pulumi.Input[_builtins.str]:
|
|
110
109
|
"""
|
|
111
110
|
The path, including filename, of the virtual disk to
|
|
112
111
|
be created. This needs to end in `.vmdk`.
|
|
@@ -114,13 +113,13 @@ class VirtualDiskArgs:
|
|
|
114
113
|
return pulumi.get(self, "vmdk_path")
|
|
115
114
|
|
|
116
115
|
@vmdk_path.setter
|
|
117
|
-
def vmdk_path(self, value: pulumi.Input[
|
|
116
|
+
def vmdk_path(self, value: pulumi.Input[_builtins.str]):
|
|
118
117
|
pulumi.set(self, "vmdk_path", value)
|
|
119
118
|
|
|
120
|
-
@property
|
|
119
|
+
@_builtins.property
|
|
121
120
|
@pulumi.getter(name="adapterType")
|
|
122
121
|
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
123
|
-
def adapter_type(self) -> Optional[pulumi.Input[
|
|
122
|
+
def adapter_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
124
123
|
"""
|
|
125
124
|
The adapter type for this virtual disk. Can be
|
|
126
125
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
@@ -135,12 +134,12 @@ class VirtualDiskArgs:
|
|
|
135
134
|
return pulumi.get(self, "adapter_type")
|
|
136
135
|
|
|
137
136
|
@adapter_type.setter
|
|
138
|
-
def adapter_type(self, value: Optional[pulumi.Input[
|
|
137
|
+
def adapter_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
139
138
|
pulumi.set(self, "adapter_type", value)
|
|
140
139
|
|
|
141
|
-
@property
|
|
140
|
+
@_builtins.property
|
|
142
141
|
@pulumi.getter(name="createDirectories")
|
|
143
|
-
def create_directories(self) -> Optional[pulumi.Input[
|
|
142
|
+
def create_directories(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
144
143
|
"""
|
|
145
144
|
Tells the resource to create any
|
|
146
145
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
@@ -153,12 +152,12 @@ class VirtualDiskArgs:
|
|
|
153
152
|
return pulumi.get(self, "create_directories")
|
|
154
153
|
|
|
155
154
|
@create_directories.setter
|
|
156
|
-
def create_directories(self, value: Optional[pulumi.Input[
|
|
155
|
+
def create_directories(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
157
156
|
pulumi.set(self, "create_directories", value)
|
|
158
157
|
|
|
159
|
-
@property
|
|
158
|
+
@_builtins.property
|
|
160
159
|
@pulumi.getter
|
|
161
|
-
def datacenter(self) -> Optional[pulumi.Input[
|
|
160
|
+
def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
162
161
|
"""
|
|
163
162
|
The name of the datacenter in which to create the
|
|
164
163
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
@@ -167,12 +166,12 @@ class VirtualDiskArgs:
|
|
|
167
166
|
return pulumi.get(self, "datacenter")
|
|
168
167
|
|
|
169
168
|
@datacenter.setter
|
|
170
|
-
def datacenter(self, value: Optional[pulumi.Input[
|
|
169
|
+
def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
171
170
|
pulumi.set(self, "datacenter", value)
|
|
172
171
|
|
|
173
|
-
@property
|
|
172
|
+
@_builtins.property
|
|
174
173
|
@pulumi.getter
|
|
175
|
-
def type(self) -> Optional[pulumi.Input[
|
|
174
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
176
175
|
"""
|
|
177
176
|
The type of disk to create. Can be one of
|
|
178
177
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
@@ -184,23 +183,23 @@ class VirtualDiskArgs:
|
|
|
184
183
|
return pulumi.get(self, "type")
|
|
185
184
|
|
|
186
185
|
@type.setter
|
|
187
|
-
def type(self, value: Optional[pulumi.Input[
|
|
186
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
188
187
|
pulumi.set(self, "type", value)
|
|
189
188
|
|
|
190
189
|
|
|
191
190
|
@pulumi.input_type
|
|
192
191
|
class _VirtualDiskState:
|
|
193
192
|
def __init__(__self__, *,
|
|
194
|
-
adapter_type: Optional[pulumi.Input[
|
|
195
|
-
create_directories: Optional[pulumi.Input[
|
|
196
|
-
datacenter: Optional[pulumi.Input[
|
|
197
|
-
datastore: Optional[pulumi.Input[
|
|
198
|
-
size: Optional[pulumi.Input[
|
|
199
|
-
type: Optional[pulumi.Input[
|
|
200
|
-
vmdk_path: Optional[pulumi.Input[
|
|
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):
|
|
201
200
|
"""
|
|
202
201
|
Input properties used for looking up and filtering VirtualDisk resources.
|
|
203
|
-
:param pulumi.Input[
|
|
202
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
204
203
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
205
204
|
|
|
206
205
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -209,28 +208,28 @@ class _VirtualDiskState:
|
|
|
209
208
|
in the `VirtualMachine` resource for information on how to control
|
|
210
209
|
disk controller types. This parameter will be removed in future versions of the
|
|
211
210
|
vSphere provider.
|
|
212
|
-
:param pulumi.Input[
|
|
211
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
213
212
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
214
213
|
Default: `false`.
|
|
215
214
|
|
|
216
215
|
> **NOTE:** Any directory created as part of the operation when
|
|
217
216
|
`create_directories` is enabled will not be deleted when the resource is
|
|
218
217
|
destroyed.
|
|
219
|
-
:param pulumi.Input[
|
|
218
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
220
219
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
221
220
|
your infrastructure.
|
|
222
|
-
:param pulumi.Input[
|
|
221
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
223
222
|
disk.
|
|
224
|
-
:param pulumi.Input[
|
|
223
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
225
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
|
|
226
225
|
created.
|
|
227
|
-
:param pulumi.Input[
|
|
226
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
228
227
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
229
228
|
information on what each kind of disk provisioning policy means, click
|
|
230
229
|
[here][docs-vmware-vm-disk-provisioning].
|
|
231
230
|
|
|
232
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
|
|
233
|
-
:param pulumi.Input[
|
|
232
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
234
233
|
be created. This needs to end in `.vmdk`.
|
|
235
234
|
"""
|
|
236
235
|
if adapter_type is not None:
|
|
@@ -251,10 +250,10 @@ class _VirtualDiskState:
|
|
|
251
250
|
if vmdk_path is not None:
|
|
252
251
|
pulumi.set(__self__, "vmdk_path", vmdk_path)
|
|
253
252
|
|
|
254
|
-
@property
|
|
253
|
+
@_builtins.property
|
|
255
254
|
@pulumi.getter(name="adapterType")
|
|
256
255
|
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
257
|
-
def adapter_type(self) -> Optional[pulumi.Input[
|
|
256
|
+
def adapter_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
258
257
|
"""
|
|
259
258
|
The adapter type for this virtual disk. Can be
|
|
260
259
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
@@ -269,12 +268,12 @@ class _VirtualDiskState:
|
|
|
269
268
|
return pulumi.get(self, "adapter_type")
|
|
270
269
|
|
|
271
270
|
@adapter_type.setter
|
|
272
|
-
def adapter_type(self, value: Optional[pulumi.Input[
|
|
271
|
+
def adapter_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
273
272
|
pulumi.set(self, "adapter_type", value)
|
|
274
273
|
|
|
275
|
-
@property
|
|
274
|
+
@_builtins.property
|
|
276
275
|
@pulumi.getter(name="createDirectories")
|
|
277
|
-
def create_directories(self) -> Optional[pulumi.Input[
|
|
276
|
+
def create_directories(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
278
277
|
"""
|
|
279
278
|
Tells the resource to create any
|
|
280
279
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
@@ -287,12 +286,12 @@ class _VirtualDiskState:
|
|
|
287
286
|
return pulumi.get(self, "create_directories")
|
|
288
287
|
|
|
289
288
|
@create_directories.setter
|
|
290
|
-
def create_directories(self, value: Optional[pulumi.Input[
|
|
289
|
+
def create_directories(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
291
290
|
pulumi.set(self, "create_directories", value)
|
|
292
291
|
|
|
293
|
-
@property
|
|
292
|
+
@_builtins.property
|
|
294
293
|
@pulumi.getter
|
|
295
|
-
def datacenter(self) -> Optional[pulumi.Input[
|
|
294
|
+
def datacenter(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
296
295
|
"""
|
|
297
296
|
The name of the datacenter in which to create the
|
|
298
297
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
@@ -301,12 +300,12 @@ class _VirtualDiskState:
|
|
|
301
300
|
return pulumi.get(self, "datacenter")
|
|
302
301
|
|
|
303
302
|
@datacenter.setter
|
|
304
|
-
def datacenter(self, value: Optional[pulumi.Input[
|
|
303
|
+
def datacenter(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
305
304
|
pulumi.set(self, "datacenter", value)
|
|
306
305
|
|
|
307
|
-
@property
|
|
306
|
+
@_builtins.property
|
|
308
307
|
@pulumi.getter
|
|
309
|
-
def datastore(self) -> Optional[pulumi.Input[
|
|
308
|
+
def datastore(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
310
309
|
"""
|
|
311
310
|
The name of the datastore in which to create the
|
|
312
311
|
disk.
|
|
@@ -314,12 +313,12 @@ class _VirtualDiskState:
|
|
|
314
313
|
return pulumi.get(self, "datastore")
|
|
315
314
|
|
|
316
315
|
@datastore.setter
|
|
317
|
-
def datastore(self, value: Optional[pulumi.Input[
|
|
316
|
+
def datastore(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
318
317
|
pulumi.set(self, "datastore", value)
|
|
319
318
|
|
|
320
|
-
@property
|
|
319
|
+
@_builtins.property
|
|
321
320
|
@pulumi.getter
|
|
322
|
-
def size(self) -> Optional[pulumi.Input[
|
|
321
|
+
def size(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
323
322
|
"""
|
|
324
323
|
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
325
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
|
|
@@ -328,12 +327,12 @@ class _VirtualDiskState:
|
|
|
328
327
|
return pulumi.get(self, "size")
|
|
329
328
|
|
|
330
329
|
@size.setter
|
|
331
|
-
def size(self, value: Optional[pulumi.Input[
|
|
330
|
+
def size(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
332
331
|
pulumi.set(self, "size", value)
|
|
333
332
|
|
|
334
|
-
@property
|
|
333
|
+
@_builtins.property
|
|
335
334
|
@pulumi.getter
|
|
336
|
-
def type(self) -> Optional[pulumi.Input[
|
|
335
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
337
336
|
"""
|
|
338
337
|
The type of disk to create. Can be one of
|
|
339
338
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
@@ -345,12 +344,12 @@ class _VirtualDiskState:
|
|
|
345
344
|
return pulumi.get(self, "type")
|
|
346
345
|
|
|
347
346
|
@type.setter
|
|
348
|
-
def type(self, value: Optional[pulumi.Input[
|
|
347
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
349
348
|
pulumi.set(self, "type", value)
|
|
350
349
|
|
|
351
|
-
@property
|
|
350
|
+
@_builtins.property
|
|
352
351
|
@pulumi.getter(name="vmdkPath")
|
|
353
|
-
def vmdk_path(self) -> Optional[pulumi.Input[
|
|
352
|
+
def vmdk_path(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
354
353
|
"""
|
|
355
354
|
The path, including filename, of the virtual disk to
|
|
356
355
|
be created. This needs to end in `.vmdk`.
|
|
@@ -358,7 +357,7 @@ class _VirtualDiskState:
|
|
|
358
357
|
return pulumi.get(self, "vmdk_path")
|
|
359
358
|
|
|
360
359
|
@vmdk_path.setter
|
|
361
|
-
def vmdk_path(self, value: Optional[pulumi.Input[
|
|
360
|
+
def vmdk_path(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
362
361
|
pulumi.set(self, "vmdk_path", value)
|
|
363
362
|
|
|
364
363
|
|
|
@@ -368,13 +367,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
368
367
|
def __init__(__self__,
|
|
369
368
|
resource_name: str,
|
|
370
369
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
371
|
-
adapter_type: Optional[pulumi.Input[
|
|
372
|
-
create_directories: Optional[pulumi.Input[
|
|
373
|
-
datacenter: Optional[pulumi.Input[
|
|
374
|
-
datastore: Optional[pulumi.Input[
|
|
375
|
-
size: Optional[pulumi.Input[
|
|
376
|
-
type: Optional[pulumi.Input[
|
|
377
|
-
vmdk_path: Optional[pulumi.Input[
|
|
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,
|
|
378
377
|
__props__=None):
|
|
379
378
|
"""
|
|
380
379
|
The `VirtualDisk` resource can be used to create virtual disks outside
|
|
@@ -419,7 +418,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
419
418
|
|
|
420
419
|
:param str resource_name: The name of the resource.
|
|
421
420
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
422
|
-
:param pulumi.Input[
|
|
421
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
423
422
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
424
423
|
|
|
425
424
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -428,28 +427,28 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
428
427
|
in the `VirtualMachine` resource for information on how to control
|
|
429
428
|
disk controller types. This parameter will be removed in future versions of the
|
|
430
429
|
vSphere provider.
|
|
431
|
-
:param pulumi.Input[
|
|
430
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
432
431
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
433
432
|
Default: `false`.
|
|
434
433
|
|
|
435
434
|
> **NOTE:** Any directory created as part of the operation when
|
|
436
435
|
`create_directories` is enabled will not be deleted when the resource is
|
|
437
436
|
destroyed.
|
|
438
|
-
:param pulumi.Input[
|
|
437
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
439
438
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
440
439
|
your infrastructure.
|
|
441
|
-
:param pulumi.Input[
|
|
440
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
442
441
|
disk.
|
|
443
|
-
:param pulumi.Input[
|
|
442
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
444
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
|
|
445
444
|
created.
|
|
446
|
-
:param pulumi.Input[
|
|
445
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
447
446
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
448
447
|
information on what each kind of disk provisioning policy means, click
|
|
449
448
|
[here][docs-vmware-vm-disk-provisioning].
|
|
450
449
|
|
|
451
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
|
|
452
|
-
:param pulumi.Input[
|
|
451
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
453
452
|
be created. This needs to end in `.vmdk`.
|
|
454
453
|
"""
|
|
455
454
|
...
|
|
@@ -514,13 +513,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
514
513
|
def _internal_init(__self__,
|
|
515
514
|
resource_name: str,
|
|
516
515
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
517
|
-
adapter_type: Optional[pulumi.Input[
|
|
518
|
-
create_directories: Optional[pulumi.Input[
|
|
519
|
-
datacenter: Optional[pulumi.Input[
|
|
520
|
-
datastore: Optional[pulumi.Input[
|
|
521
|
-
size: Optional[pulumi.Input[
|
|
522
|
-
type: Optional[pulumi.Input[
|
|
523
|
-
vmdk_path: Optional[pulumi.Input[
|
|
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,
|
|
524
523
|
__props__=None):
|
|
525
524
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
526
525
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -553,13 +552,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
553
552
|
def get(resource_name: str,
|
|
554
553
|
id: pulumi.Input[str],
|
|
555
554
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
556
|
-
adapter_type: Optional[pulumi.Input[
|
|
557
|
-
create_directories: Optional[pulumi.Input[
|
|
558
|
-
datacenter: Optional[pulumi.Input[
|
|
559
|
-
datastore: Optional[pulumi.Input[
|
|
560
|
-
size: Optional[pulumi.Input[
|
|
561
|
-
type: Optional[pulumi.Input[
|
|
562
|
-
vmdk_path: Optional[pulumi.Input[
|
|
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':
|
|
563
562
|
"""
|
|
564
563
|
Get an existing VirtualDisk resource's state with the given name, id, and optional extra
|
|
565
564
|
properties used to qualify the lookup.
|
|
@@ -567,7 +566,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
567
566
|
:param str resource_name: The unique name of the resulting resource.
|
|
568
567
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
569
568
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
570
|
-
:param pulumi.Input[
|
|
569
|
+
:param pulumi.Input[_builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
571
570
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
572
571
|
|
|
573
572
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -576,28 +575,28 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
576
575
|
in the `VirtualMachine` resource for information on how to control
|
|
577
576
|
disk controller types. This parameter will be removed in future versions of the
|
|
578
577
|
vSphere provider.
|
|
579
|
-
:param pulumi.Input[
|
|
578
|
+
:param pulumi.Input[_builtins.bool] create_directories: Tells the resource to create any
|
|
580
579
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
581
580
|
Default: `false`.
|
|
582
581
|
|
|
583
582
|
> **NOTE:** Any directory created as part of the operation when
|
|
584
583
|
`create_directories` is enabled will not be deleted when the resource is
|
|
585
584
|
destroyed.
|
|
586
|
-
:param pulumi.Input[
|
|
585
|
+
:param pulumi.Input[_builtins.str] datacenter: The name of the datacenter in which to create the
|
|
587
586
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
588
587
|
your infrastructure.
|
|
589
|
-
:param pulumi.Input[
|
|
588
|
+
:param pulumi.Input[_builtins.str] datastore: The name of the datastore in which to create the
|
|
590
589
|
disk.
|
|
591
|
-
:param pulumi.Input[
|
|
590
|
+
:param pulumi.Input[_builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
592
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
|
|
593
592
|
created.
|
|
594
|
-
:param pulumi.Input[
|
|
593
|
+
:param pulumi.Input[_builtins.str] type: The type of disk to create. Can be one of
|
|
595
594
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
596
595
|
information on what each kind of disk provisioning policy means, click
|
|
597
596
|
[here][docs-vmware-vm-disk-provisioning].
|
|
598
597
|
|
|
599
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
|
|
600
|
-
:param pulumi.Input[
|
|
599
|
+
:param pulumi.Input[_builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
601
600
|
be created. This needs to end in `.vmdk`.
|
|
602
601
|
"""
|
|
603
602
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -613,10 +612,10 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
613
612
|
__props__.__dict__["vmdk_path"] = vmdk_path
|
|
614
613
|
return VirtualDisk(resource_name, opts=opts, __props__=__props__)
|
|
615
614
|
|
|
616
|
-
@property
|
|
615
|
+
@_builtins.property
|
|
617
616
|
@pulumi.getter(name="adapterType")
|
|
618
617
|
@_utilities.deprecated("""this attribute has no effect on controller types - please use scsi_type in VirtualMachine instead""")
|
|
619
|
-
def adapter_type(self) -> pulumi.Output[Optional[
|
|
618
|
+
def adapter_type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
620
619
|
"""
|
|
621
620
|
The adapter type for this virtual disk. Can be
|
|
622
621
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
@@ -630,9 +629,9 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
630
629
|
"""
|
|
631
630
|
return pulumi.get(self, "adapter_type")
|
|
632
631
|
|
|
633
|
-
@property
|
|
632
|
+
@_builtins.property
|
|
634
633
|
@pulumi.getter(name="createDirectories")
|
|
635
|
-
def create_directories(self) -> pulumi.Output[Optional[
|
|
634
|
+
def create_directories(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
636
635
|
"""
|
|
637
636
|
Tells the resource to create any
|
|
638
637
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
@@ -644,9 +643,9 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
644
643
|
"""
|
|
645
644
|
return pulumi.get(self, "create_directories")
|
|
646
645
|
|
|
647
|
-
@property
|
|
646
|
+
@_builtins.property
|
|
648
647
|
@pulumi.getter
|
|
649
|
-
def datacenter(self) -> pulumi.Output[Optional[
|
|
648
|
+
def datacenter(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
650
649
|
"""
|
|
651
650
|
The name of the datacenter in which to create the
|
|
652
651
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
@@ -654,18 +653,18 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
654
653
|
"""
|
|
655
654
|
return pulumi.get(self, "datacenter")
|
|
656
655
|
|
|
657
|
-
@property
|
|
656
|
+
@_builtins.property
|
|
658
657
|
@pulumi.getter
|
|
659
|
-
def datastore(self) -> pulumi.Output[
|
|
658
|
+
def datastore(self) -> pulumi.Output[_builtins.str]:
|
|
660
659
|
"""
|
|
661
660
|
The name of the datastore in which to create the
|
|
662
661
|
disk.
|
|
663
662
|
"""
|
|
664
663
|
return pulumi.get(self, "datastore")
|
|
665
664
|
|
|
666
|
-
@property
|
|
665
|
+
@_builtins.property
|
|
667
666
|
@pulumi.getter
|
|
668
|
-
def size(self) -> pulumi.Output[
|
|
667
|
+
def size(self) -> pulumi.Output[_builtins.int]:
|
|
669
668
|
"""
|
|
670
669
|
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
671
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
|
|
@@ -673,9 +672,9 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
673
672
|
"""
|
|
674
673
|
return pulumi.get(self, "size")
|
|
675
674
|
|
|
676
|
-
@property
|
|
675
|
+
@_builtins.property
|
|
677
676
|
@pulumi.getter
|
|
678
|
-
def type(self) -> pulumi.Output[Optional[
|
|
677
|
+
def type(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
679
678
|
"""
|
|
680
679
|
The type of disk to create. Can be one of
|
|
681
680
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
@@ -686,9 +685,9 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
686
685
|
"""
|
|
687
686
|
return pulumi.get(self, "type")
|
|
688
687
|
|
|
689
|
-
@property
|
|
688
|
+
@_builtins.property
|
|
690
689
|
@pulumi.getter(name="vmdkPath")
|
|
691
|
-
def vmdk_path(self) -> pulumi.Output[
|
|
690
|
+
def vmdk_path(self) -> pulumi.Output[_builtins.str]:
|
|
692
691
|
"""
|
|
693
692
|
The path, including filename, of the virtual disk to
|
|
694
693
|
be created. This needs to end in `.vmdk`.
|