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