pulumi-vsphere 4.13.1__py3-none-any.whl → 4.13.2__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/_utilities.py +8 -4
- pulumi_vsphere/compute_cluster.py +918 -917
- pulumi_vsphere/compute_cluster_host_group.py +43 -42
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +71 -70
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +71 -70
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +85 -84
- pulumi_vsphere/compute_cluster_vm_group.py +43 -42
- pulumi_vsphere/compute_cluster_vm_host_rule.py +99 -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 +43 -42
- pulumi_vsphere/content_library_item.py +85 -84
- pulumi_vsphere/custom_attribute.py +29 -28
- pulumi_vsphere/datacenter.py +64 -63
- pulumi_vsphere/datastore_cluster.py +351 -350
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +71 -70
- pulumi_vsphere/distributed_port_group.py +645 -644
- pulumi_vsphere/distributed_virtual_switch.py +1282 -1281
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +57 -56
- pulumi_vsphere/dpm_host_override.py +57 -56
- pulumi_vsphere/drs_vm_override.py +57 -56
- pulumi_vsphere/entity_permissions.py +29 -28
- pulumi_vsphere/file.py +95 -94
- pulumi_vsphere/folder.py +71 -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 +57 -56
- pulumi_vsphere/ha_vm_override.py +211 -210
- pulumi_vsphere/host.py +197 -196
- pulumi_vsphere/host_port_group.py +253 -252
- pulumi_vsphere/host_virtual_switch.py +295 -294
- pulumi_vsphere/license.py +57 -56
- pulumi_vsphere/nas_datastore.py +211 -210
- pulumi_vsphere/offline_software_depot.py +15 -14
- pulumi_vsphere/outputs.py +721 -720
- pulumi_vsphere/provider.py +98 -97
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +211 -210
- pulumi_vsphere/role.py +36 -35
- pulumi_vsphere/storage_drs_vm_override.py +71 -70
- pulumi_vsphere/supervisor.py +155 -154
- pulumi_vsphere/tag.py +43 -42
- pulumi_vsphere/tag_category.py +57 -56
- pulumi_vsphere/vapp_container.py +211 -210
- pulumi_vsphere/vapp_entity.py +141 -140
- pulumi_vsphere/virtual_disk.py +99 -98
- pulumi_vsphere/virtual_machine.py +1040 -1039
- pulumi_vsphere/virtual_machine_class.py +85 -84
- pulumi_vsphere/virtual_machine_snapshot.py +99 -98
- pulumi_vsphere/vm_storage_policy.py +29 -28
- pulumi_vsphere/vmfs_datastore.py +148 -147
- pulumi_vsphere/vnic.py +113 -112
- {pulumi_vsphere-4.13.1.dist-info → pulumi_vsphere-4.13.2.dist-info}/METADATA +2 -2
- pulumi_vsphere-4.13.2.dist-info/RECORD +87 -0
- {pulumi_vsphere-4.13.1.dist-info → pulumi_vsphere-4.13.2.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.13.1.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.13.1.dist-info → pulumi_vsphere-4.13.2.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,7 +358,7 @@ 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
|
|
|
@@ -366,13 +367,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
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
|
|
@@ -415,7 +416,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
415
416
|
|
|
416
417
|
:param str resource_name: The name of the resource.
|
|
417
418
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
418
|
-
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
419
|
+
:param pulumi.Input[builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
419
420
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
420
421
|
|
|
421
422
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -424,28 +425,28 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
424
425
|
in the `VirtualMachine` resource for information on how to control
|
|
425
426
|
disk controller types. This parameter will be removed in future versions of the
|
|
426
427
|
vSphere provider.
|
|
427
|
-
:param pulumi.Input[bool] create_directories: Tells the resource to create any
|
|
428
|
+
:param pulumi.Input[builtins.bool] create_directories: Tells the resource to create any
|
|
428
429
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
429
430
|
Default: `false`.
|
|
430
431
|
|
|
431
432
|
> **NOTE:** Any directory created as part of the operation when
|
|
432
433
|
`create_directories` is enabled will not be deleted when the resource is
|
|
433
434
|
destroyed.
|
|
434
|
-
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
435
|
+
:param pulumi.Input[builtins.str] datacenter: The name of the datacenter in which to create the
|
|
435
436
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
436
437
|
your infrastructure.
|
|
437
|
-
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
438
|
+
:param pulumi.Input[builtins.str] datastore: The name of the datastore in which to create the
|
|
438
439
|
disk.
|
|
439
|
-
:param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
440
|
+
:param pulumi.Input[builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
440
441
|
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
442
|
created.
|
|
442
|
-
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
443
|
+
:param pulumi.Input[builtins.str] type: The type of disk to create. Can be one of
|
|
443
444
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
444
445
|
information on what each kind of disk provisioning policy means, click
|
|
445
446
|
[here][docs-vmware-vm-disk-provisioning].
|
|
446
447
|
|
|
447
448
|
[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
|
|
449
|
+
:param pulumi.Input[builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
449
450
|
be created. This needs to end in `.vmdk`.
|
|
450
451
|
"""
|
|
451
452
|
...
|
|
@@ -508,13 +509,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
508
509
|
def _internal_init(__self__,
|
|
509
510
|
resource_name: str,
|
|
510
511
|
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,
|
|
512
|
+
adapter_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
513
|
+
create_directories: Optional[pulumi.Input[builtins.bool]] = None,
|
|
514
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
515
|
+
datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
516
|
+
size: Optional[pulumi.Input[builtins.int]] = None,
|
|
517
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
|
518
|
+
vmdk_path: Optional[pulumi.Input[builtins.str]] = None,
|
|
518
519
|
__props__=None):
|
|
519
520
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
520
521
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -547,13 +548,13 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
547
548
|
def get(resource_name: str,
|
|
548
549
|
id: pulumi.Input[str],
|
|
549
550
|
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':
|
|
551
|
+
adapter_type: Optional[pulumi.Input[builtins.str]] = None,
|
|
552
|
+
create_directories: Optional[pulumi.Input[builtins.bool]] = None,
|
|
553
|
+
datacenter: Optional[pulumi.Input[builtins.str]] = None,
|
|
554
|
+
datastore: Optional[pulumi.Input[builtins.str]] = None,
|
|
555
|
+
size: Optional[pulumi.Input[builtins.int]] = None,
|
|
556
|
+
type: Optional[pulumi.Input[builtins.str]] = None,
|
|
557
|
+
vmdk_path: Optional[pulumi.Input[builtins.str]] = None) -> 'VirtualDisk':
|
|
557
558
|
"""
|
|
558
559
|
Get an existing VirtualDisk resource's state with the given name, id, and optional extra
|
|
559
560
|
properties used to qualify the lookup.
|
|
@@ -561,7 +562,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
561
562
|
:param str resource_name: The unique name of the resulting resource.
|
|
562
563
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
563
564
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
564
|
-
:param pulumi.Input[str] adapter_type: The adapter type for this virtual disk. Can be
|
|
565
|
+
:param pulumi.Input[builtins.str] adapter_type: The adapter type for this virtual disk. Can be
|
|
565
566
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
566
567
|
|
|
567
568
|
> **NOTE:** `adapter_type` is **deprecated**: it does not dictate the type of
|
|
@@ -570,28 +571,28 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
570
571
|
in the `VirtualMachine` resource for information on how to control
|
|
571
572
|
disk controller types. This parameter will be removed in future versions of the
|
|
572
573
|
vSphere provider.
|
|
573
|
-
:param pulumi.Input[bool] create_directories: Tells the resource to create any
|
|
574
|
+
:param pulumi.Input[builtins.bool] create_directories: Tells the resource to create any
|
|
574
575
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
575
576
|
Default: `false`.
|
|
576
577
|
|
|
577
578
|
> **NOTE:** Any directory created as part of the operation when
|
|
578
579
|
`create_directories` is enabled will not be deleted when the resource is
|
|
579
580
|
destroyed.
|
|
580
|
-
:param pulumi.Input[str] datacenter: The name of the datacenter in which to create the
|
|
581
|
+
:param pulumi.Input[builtins.str] datacenter: The name of the datacenter in which to create the
|
|
581
582
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
582
583
|
your infrastructure.
|
|
583
|
-
:param pulumi.Input[str] datastore: The name of the datastore in which to create the
|
|
584
|
+
:param pulumi.Input[builtins.str] datastore: The name of the datastore in which to create the
|
|
584
585
|
disk.
|
|
585
|
-
:param pulumi.Input[int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
586
|
+
:param pulumi.Input[builtins.int] size: Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
586
587
|
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
588
|
created.
|
|
588
|
-
:param pulumi.Input[str] type: The type of disk to create. Can be one of
|
|
589
|
+
:param pulumi.Input[builtins.str] type: The type of disk to create. Can be one of
|
|
589
590
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
590
591
|
information on what each kind of disk provisioning policy means, click
|
|
591
592
|
[here][docs-vmware-vm-disk-provisioning].
|
|
592
593
|
|
|
593
594
|
[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
|
|
595
|
+
:param pulumi.Input[builtins.str] vmdk_path: The path, including filename, of the virtual disk to
|
|
595
596
|
be created. This needs to end in `.vmdk`.
|
|
596
597
|
"""
|
|
597
598
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -610,7 +611,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
610
611
|
@property
|
|
611
612
|
@pulumi.getter(name="adapterType")
|
|
612
613
|
@_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]]:
|
|
614
|
+
def adapter_type(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
614
615
|
"""
|
|
615
616
|
The adapter type for this virtual disk. Can be
|
|
616
617
|
one of `ide`, `lsiLogic`, or `busLogic`. Default: `lsiLogic`.
|
|
@@ -626,7 +627,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
626
627
|
|
|
627
628
|
@property
|
|
628
629
|
@pulumi.getter(name="createDirectories")
|
|
629
|
-
def create_directories(self) -> pulumi.Output[Optional[bool]]:
|
|
630
|
+
def create_directories(self) -> pulumi.Output[Optional[builtins.bool]]:
|
|
630
631
|
"""
|
|
631
632
|
Tells the resource to create any
|
|
632
633
|
directories that are a part of the `vmdk_path` parameter if they are missing.
|
|
@@ -640,7 +641,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
640
641
|
|
|
641
642
|
@property
|
|
642
643
|
@pulumi.getter
|
|
643
|
-
def datacenter(self) -> pulumi.Output[Optional[str]]:
|
|
644
|
+
def datacenter(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
644
645
|
"""
|
|
645
646
|
The name of the datacenter in which to create the
|
|
646
647
|
disk. Can be omitted when ESXi or if there is only one datacenter in
|
|
@@ -650,7 +651,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
650
651
|
|
|
651
652
|
@property
|
|
652
653
|
@pulumi.getter
|
|
653
|
-
def datastore(self) -> pulumi.Output[str]:
|
|
654
|
+
def datastore(self) -> pulumi.Output[builtins.str]:
|
|
654
655
|
"""
|
|
655
656
|
The name of the datastore in which to create the
|
|
656
657
|
disk.
|
|
@@ -659,7 +660,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
659
660
|
|
|
660
661
|
@property
|
|
661
662
|
@pulumi.getter
|
|
662
|
-
def size(self) -> pulumi.Output[int]:
|
|
663
|
+
def size(self) -> pulumi.Output[builtins.int]:
|
|
663
664
|
"""
|
|
664
665
|
Size of the disk (in GB). Decreasing the size of a disk is not possible.
|
|
665
666
|
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 +670,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
669
670
|
|
|
670
671
|
@property
|
|
671
672
|
@pulumi.getter
|
|
672
|
-
def type(self) -> pulumi.Output[Optional[str]]:
|
|
673
|
+
def type(self) -> pulumi.Output[Optional[builtins.str]]:
|
|
673
674
|
"""
|
|
674
675
|
The type of disk to create. Can be one of
|
|
675
676
|
`eagerZeroedThick`, `lazy`, or `thin`. Default: `eagerZeroedThick`. For
|
|
@@ -682,7 +683,7 @@ class VirtualDisk(pulumi.CustomResource):
|
|
|
682
683
|
|
|
683
684
|
@property
|
|
684
685
|
@pulumi.getter(name="vmdkPath")
|
|
685
|
-
def vmdk_path(self) -> pulumi.Output[str]:
|
|
686
|
+
def vmdk_path(self) -> pulumi.Output[builtins.str]:
|
|
686
687
|
"""
|
|
687
688
|
The path, including filename, of the virtual disk to
|
|
688
689
|
be created. This needs to end in `.vmdk`.
|