pulumi-vsphere 4.16.0a1753339697__py3-none-any.whl → 4.16.0a1753512455__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.16.0a1753339697.dist-info → pulumi_vsphere-4.16.0a1753512455.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.16.0a1753512455.dist-info/RECORD +87 -0
- pulumi_vsphere-4.16.0a1753339697.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.16.0a1753339697.dist-info → pulumi_vsphere-4.16.0a1753512455.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.16.0a1753339697.dist-info → pulumi_vsphere-4.16.0a1753512455.dist-info}/top_level.txt +0 -0
pulumi_vsphere/folder.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,14 +19,14 @@ __all__ = ['FolderArgs', 'Folder']
|
|
|
20
19
|
@pulumi.input_type
|
|
21
20
|
class FolderArgs:
|
|
22
21
|
def __init__(__self__, *,
|
|
23
|
-
path: pulumi.Input[
|
|
24
|
-
type: pulumi.Input[
|
|
25
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
26
|
-
datacenter_id: Optional[pulumi.Input[
|
|
27
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
22
|
+
path: pulumi.Input[_builtins.str],
|
|
23
|
+
type: pulumi.Input[_builtins.str],
|
|
24
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
25
|
+
datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
28
27
|
"""
|
|
29
28
|
The set of arguments for constructing a Folder resource.
|
|
30
|
-
:param pulumi.Input[
|
|
29
|
+
:param pulumi.Input[_builtins.str] path: The path of the folder to be created. This is relative to
|
|
31
30
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
32
31
|
For example, given a default datacenter of `default-dc`, a folder of type
|
|
33
32
|
`vm` (denoting a virtual machine folder), and a supplied folder of
|
|
@@ -38,11 +37,11 @@ class FolderArgs:
|
|
|
38
37
|
what section of `path` you are modifying. If you are modifying the parent (so
|
|
39
38
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
40
39
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
41
|
-
:param pulumi.Input[
|
|
40
|
+
:param pulumi.Input[_builtins.str] type: The type of folder to create. Allowed options are
|
|
42
41
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
43
42
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
44
43
|
`network` for network folders. Forces a new resource if changed.
|
|
45
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
|
44
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
46
45
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
47
46
|
for a reference on how to set values for custom attributes.
|
|
48
47
|
|
|
@@ -50,10 +49,10 @@ class FolderArgs:
|
|
|
50
49
|
|
|
51
50
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
52
51
|
and require vCenter.
|
|
53
|
-
:param pulumi.Input[
|
|
52
|
+
:param pulumi.Input[_builtins.str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
54
53
|
Required for all folder types except for datacenter folders. Forces a new
|
|
55
54
|
resource if changed.
|
|
56
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
55
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
57
56
|
"""
|
|
58
57
|
pulumi.set(__self__, "path", path)
|
|
59
58
|
pulumi.set(__self__, "type", type)
|
|
@@ -64,9 +63,9 @@ class FolderArgs:
|
|
|
64
63
|
if tags is not None:
|
|
65
64
|
pulumi.set(__self__, "tags", tags)
|
|
66
65
|
|
|
67
|
-
@property
|
|
66
|
+
@_builtins.property
|
|
68
67
|
@pulumi.getter
|
|
69
|
-
def path(self) -> pulumi.Input[
|
|
68
|
+
def path(self) -> pulumi.Input[_builtins.str]:
|
|
70
69
|
"""
|
|
71
70
|
The path of the folder to be created. This is relative to
|
|
72
71
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
@@ -83,12 +82,12 @@ class FolderArgs:
|
|
|
83
82
|
return pulumi.get(self, "path")
|
|
84
83
|
|
|
85
84
|
@path.setter
|
|
86
|
-
def path(self, value: pulumi.Input[
|
|
85
|
+
def path(self, value: pulumi.Input[_builtins.str]):
|
|
87
86
|
pulumi.set(self, "path", value)
|
|
88
87
|
|
|
89
|
-
@property
|
|
88
|
+
@_builtins.property
|
|
90
89
|
@pulumi.getter
|
|
91
|
-
def type(self) -> pulumi.Input[
|
|
90
|
+
def type(self) -> pulumi.Input[_builtins.str]:
|
|
92
91
|
"""
|
|
93
92
|
The type of folder to create. Allowed options are
|
|
94
93
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
@@ -98,12 +97,12 @@ class FolderArgs:
|
|
|
98
97
|
return pulumi.get(self, "type")
|
|
99
98
|
|
|
100
99
|
@type.setter
|
|
101
|
-
def type(self, value: pulumi.Input[
|
|
100
|
+
def type(self, value: pulumi.Input[_builtins.str]):
|
|
102
101
|
pulumi.set(self, "type", value)
|
|
103
102
|
|
|
104
|
-
@property
|
|
103
|
+
@_builtins.property
|
|
105
104
|
@pulumi.getter(name="customAttributes")
|
|
106
|
-
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
105
|
+
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
107
106
|
"""
|
|
108
107
|
Map of custom attribute ids to attribute
|
|
109
108
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
@@ -117,12 +116,12 @@ class FolderArgs:
|
|
|
117
116
|
return pulumi.get(self, "custom_attributes")
|
|
118
117
|
|
|
119
118
|
@custom_attributes.setter
|
|
120
|
-
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
119
|
+
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
121
120
|
pulumi.set(self, "custom_attributes", value)
|
|
122
121
|
|
|
123
|
-
@property
|
|
122
|
+
@_builtins.property
|
|
124
123
|
@pulumi.getter(name="datacenterId")
|
|
125
|
-
def datacenter_id(self) -> Optional[pulumi.Input[
|
|
124
|
+
def datacenter_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
126
125
|
"""
|
|
127
126
|
The ID of the datacenter the folder will be created in.
|
|
128
127
|
Required for all folder types except for datacenter folders. Forces a new
|
|
@@ -131,33 +130,33 @@ class FolderArgs:
|
|
|
131
130
|
return pulumi.get(self, "datacenter_id")
|
|
132
131
|
|
|
133
132
|
@datacenter_id.setter
|
|
134
|
-
def datacenter_id(self, value: Optional[pulumi.Input[
|
|
133
|
+
def datacenter_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
135
134
|
pulumi.set(self, "datacenter_id", value)
|
|
136
135
|
|
|
137
|
-
@property
|
|
136
|
+
@_builtins.property
|
|
138
137
|
@pulumi.getter
|
|
139
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
138
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
140
139
|
"""
|
|
141
140
|
The IDs of any tags to attach to this resource.
|
|
142
141
|
"""
|
|
143
142
|
return pulumi.get(self, "tags")
|
|
144
143
|
|
|
145
144
|
@tags.setter
|
|
146
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
145
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
147
146
|
pulumi.set(self, "tags", value)
|
|
148
147
|
|
|
149
148
|
|
|
150
149
|
@pulumi.input_type
|
|
151
150
|
class _FolderState:
|
|
152
151
|
def __init__(__self__, *,
|
|
153
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
154
|
-
datacenter_id: Optional[pulumi.Input[
|
|
155
|
-
path: Optional[pulumi.Input[
|
|
156
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
157
|
-
type: Optional[pulumi.Input[
|
|
152
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
153
|
+
datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
154
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
155
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
156
|
+
type: Optional[pulumi.Input[_builtins.str]] = None):
|
|
158
157
|
"""
|
|
159
158
|
Input properties used for looking up and filtering Folder resources.
|
|
160
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
|
159
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
161
160
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
162
161
|
for a reference on how to set values for custom attributes.
|
|
163
162
|
|
|
@@ -165,10 +164,10 @@ class _FolderState:
|
|
|
165
164
|
|
|
166
165
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
167
166
|
and require vCenter.
|
|
168
|
-
:param pulumi.Input[
|
|
167
|
+
:param pulumi.Input[_builtins.str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
169
168
|
Required for all folder types except for datacenter folders. Forces a new
|
|
170
169
|
resource if changed.
|
|
171
|
-
:param pulumi.Input[
|
|
170
|
+
:param pulumi.Input[_builtins.str] path: The path of the folder to be created. This is relative to
|
|
172
171
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
173
172
|
For example, given a default datacenter of `default-dc`, a folder of type
|
|
174
173
|
`vm` (denoting a virtual machine folder), and a supplied folder of
|
|
@@ -179,8 +178,8 @@ class _FolderState:
|
|
|
179
178
|
what section of `path` you are modifying. If you are modifying the parent (so
|
|
180
179
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
181
180
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
182
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
183
|
-
:param pulumi.Input[
|
|
181
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
182
|
+
:param pulumi.Input[_builtins.str] type: The type of folder to create. Allowed options are
|
|
184
183
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
185
184
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
186
185
|
`network` for network folders. Forces a new resource if changed.
|
|
@@ -196,9 +195,9 @@ class _FolderState:
|
|
|
196
195
|
if type is not None:
|
|
197
196
|
pulumi.set(__self__, "type", type)
|
|
198
197
|
|
|
199
|
-
@property
|
|
198
|
+
@_builtins.property
|
|
200
199
|
@pulumi.getter(name="customAttributes")
|
|
201
|
-
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
200
|
+
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
202
201
|
"""
|
|
203
202
|
Map of custom attribute ids to attribute
|
|
204
203
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
@@ -212,12 +211,12 @@ class _FolderState:
|
|
|
212
211
|
return pulumi.get(self, "custom_attributes")
|
|
213
212
|
|
|
214
213
|
@custom_attributes.setter
|
|
215
|
-
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
214
|
+
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
216
215
|
pulumi.set(self, "custom_attributes", value)
|
|
217
216
|
|
|
218
|
-
@property
|
|
217
|
+
@_builtins.property
|
|
219
218
|
@pulumi.getter(name="datacenterId")
|
|
220
|
-
def datacenter_id(self) -> Optional[pulumi.Input[
|
|
219
|
+
def datacenter_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
221
220
|
"""
|
|
222
221
|
The ID of the datacenter the folder will be created in.
|
|
223
222
|
Required for all folder types except for datacenter folders. Forces a new
|
|
@@ -226,12 +225,12 @@ class _FolderState:
|
|
|
226
225
|
return pulumi.get(self, "datacenter_id")
|
|
227
226
|
|
|
228
227
|
@datacenter_id.setter
|
|
229
|
-
def datacenter_id(self, value: Optional[pulumi.Input[
|
|
228
|
+
def datacenter_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
230
229
|
pulumi.set(self, "datacenter_id", value)
|
|
231
230
|
|
|
232
|
-
@property
|
|
231
|
+
@_builtins.property
|
|
233
232
|
@pulumi.getter
|
|
234
|
-
def path(self) -> Optional[pulumi.Input[
|
|
233
|
+
def path(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
235
234
|
"""
|
|
236
235
|
The path of the folder to be created. This is relative to
|
|
237
236
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
@@ -248,24 +247,24 @@ class _FolderState:
|
|
|
248
247
|
return pulumi.get(self, "path")
|
|
249
248
|
|
|
250
249
|
@path.setter
|
|
251
|
-
def path(self, value: Optional[pulumi.Input[
|
|
250
|
+
def path(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
252
251
|
pulumi.set(self, "path", value)
|
|
253
252
|
|
|
254
|
-
@property
|
|
253
|
+
@_builtins.property
|
|
255
254
|
@pulumi.getter
|
|
256
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
255
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
257
256
|
"""
|
|
258
257
|
The IDs of any tags to attach to this resource.
|
|
259
258
|
"""
|
|
260
259
|
return pulumi.get(self, "tags")
|
|
261
260
|
|
|
262
261
|
@tags.setter
|
|
263
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
262
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
264
263
|
pulumi.set(self, "tags", value)
|
|
265
264
|
|
|
266
|
-
@property
|
|
265
|
+
@_builtins.property
|
|
267
266
|
@pulumi.getter
|
|
268
|
-
def type(self) -> Optional[pulumi.Input[
|
|
267
|
+
def type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
269
268
|
"""
|
|
270
269
|
The type of folder to create. Allowed options are
|
|
271
270
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
@@ -275,7 +274,7 @@ class _FolderState:
|
|
|
275
274
|
return pulumi.get(self, "type")
|
|
276
275
|
|
|
277
276
|
@type.setter
|
|
278
|
-
def type(self, value: Optional[pulumi.Input[
|
|
277
|
+
def type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
279
278
|
pulumi.set(self, "type", value)
|
|
280
279
|
|
|
281
280
|
|
|
@@ -285,11 +284,11 @@ class Folder(pulumi.CustomResource):
|
|
|
285
284
|
def __init__(__self__,
|
|
286
285
|
resource_name: str,
|
|
287
286
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
288
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
289
|
-
datacenter_id: Optional[pulumi.Input[
|
|
290
|
-
path: Optional[pulumi.Input[
|
|
291
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
292
|
-
type: Optional[pulumi.Input[
|
|
287
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
288
|
+
datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
289
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
290
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
291
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
293
292
|
__props__=None):
|
|
294
293
|
"""
|
|
295
294
|
The `Folder` resource can be used to manage vSphere inventory folders.
|
|
@@ -364,7 +363,7 @@ class Folder(pulumi.CustomResource):
|
|
|
364
363
|
|
|
365
364
|
:param str resource_name: The name of the resource.
|
|
366
365
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
367
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
|
366
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
368
367
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
369
368
|
for a reference on how to set values for custom attributes.
|
|
370
369
|
|
|
@@ -372,10 +371,10 @@ class Folder(pulumi.CustomResource):
|
|
|
372
371
|
|
|
373
372
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
374
373
|
and require vCenter.
|
|
375
|
-
:param pulumi.Input[
|
|
374
|
+
:param pulumi.Input[_builtins.str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
376
375
|
Required for all folder types except for datacenter folders. Forces a new
|
|
377
376
|
resource if changed.
|
|
378
|
-
:param pulumi.Input[
|
|
377
|
+
:param pulumi.Input[_builtins.str] path: The path of the folder to be created. This is relative to
|
|
379
378
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
380
379
|
For example, given a default datacenter of `default-dc`, a folder of type
|
|
381
380
|
`vm` (denoting a virtual machine folder), and a supplied folder of
|
|
@@ -386,8 +385,8 @@ class Folder(pulumi.CustomResource):
|
|
|
386
385
|
what section of `path` you are modifying. If you are modifying the parent (so
|
|
387
386
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
388
387
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
389
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
390
|
-
:param pulumi.Input[
|
|
388
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
389
|
+
:param pulumi.Input[_builtins.str] type: The type of folder to create. Allowed options are
|
|
391
390
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
392
391
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
393
392
|
`network` for network folders. Forces a new resource if changed.
|
|
@@ -484,11 +483,11 @@ class Folder(pulumi.CustomResource):
|
|
|
484
483
|
def _internal_init(__self__,
|
|
485
484
|
resource_name: str,
|
|
486
485
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
487
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
488
|
-
datacenter_id: Optional[pulumi.Input[
|
|
489
|
-
path: Optional[pulumi.Input[
|
|
490
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
491
|
-
type: Optional[pulumi.Input[
|
|
486
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
487
|
+
datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
488
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
489
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
490
|
+
type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
492
491
|
__props__=None):
|
|
493
492
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
494
493
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -517,11 +516,11 @@ class Folder(pulumi.CustomResource):
|
|
|
517
516
|
def get(resource_name: str,
|
|
518
517
|
id: pulumi.Input[str],
|
|
519
518
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
520
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
521
|
-
datacenter_id: Optional[pulumi.Input[
|
|
522
|
-
path: Optional[pulumi.Input[
|
|
523
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
524
|
-
type: Optional[pulumi.Input[
|
|
519
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
520
|
+
datacenter_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
521
|
+
path: Optional[pulumi.Input[_builtins.str]] = None,
|
|
522
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
523
|
+
type: Optional[pulumi.Input[_builtins.str]] = None) -> 'Folder':
|
|
525
524
|
"""
|
|
526
525
|
Get an existing Folder resource's state with the given name, id, and optional extra
|
|
527
526
|
properties used to qualify the lookup.
|
|
@@ -529,7 +528,7 @@ class Folder(pulumi.CustomResource):
|
|
|
529
528
|
:param str resource_name: The unique name of the resulting resource.
|
|
530
529
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
531
530
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
532
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
|
531
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to attribute
|
|
533
532
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
534
533
|
for a reference on how to set values for custom attributes.
|
|
535
534
|
|
|
@@ -537,10 +536,10 @@ class Folder(pulumi.CustomResource):
|
|
|
537
536
|
|
|
538
537
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
539
538
|
and require vCenter.
|
|
540
|
-
:param pulumi.Input[
|
|
539
|
+
:param pulumi.Input[_builtins.str] datacenter_id: The ID of the datacenter the folder will be created in.
|
|
541
540
|
Required for all folder types except for datacenter folders. Forces a new
|
|
542
541
|
resource if changed.
|
|
543
|
-
:param pulumi.Input[
|
|
542
|
+
:param pulumi.Input[_builtins.str] path: The path of the folder to be created. This is relative to
|
|
544
543
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
545
544
|
For example, given a default datacenter of `default-dc`, a folder of type
|
|
546
545
|
`vm` (denoting a virtual machine folder), and a supplied folder of
|
|
@@ -551,8 +550,8 @@ class Folder(pulumi.CustomResource):
|
|
|
551
550
|
what section of `path` you are modifying. If you are modifying the parent (so
|
|
552
551
|
any part before the last `/`), your folder will be moved to that new parent. If
|
|
553
552
|
modifying the name (the part after the last `/`), your folder will be renamed.
|
|
554
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
555
|
-
:param pulumi.Input[
|
|
553
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
554
|
+
:param pulumi.Input[_builtins.str] type: The type of folder to create. Allowed options are
|
|
556
555
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
557
556
|
`vm` for virtual machine folders, `datastore` for datastore folders, and
|
|
558
557
|
`network` for network folders. Forces a new resource if changed.
|
|
@@ -568,9 +567,9 @@ class Folder(pulumi.CustomResource):
|
|
|
568
567
|
__props__.__dict__["type"] = type
|
|
569
568
|
return Folder(resource_name, opts=opts, __props__=__props__)
|
|
570
569
|
|
|
571
|
-
@property
|
|
570
|
+
@_builtins.property
|
|
572
571
|
@pulumi.getter(name="customAttributes")
|
|
573
|
-
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str,
|
|
572
|
+
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
574
573
|
"""
|
|
575
574
|
Map of custom attribute ids to attribute
|
|
576
575
|
value strings to set for folder. See [here][docs-setting-custom-attributes]
|
|
@@ -583,9 +582,9 @@ class Folder(pulumi.CustomResource):
|
|
|
583
582
|
"""
|
|
584
583
|
return pulumi.get(self, "custom_attributes")
|
|
585
584
|
|
|
586
|
-
@property
|
|
585
|
+
@_builtins.property
|
|
587
586
|
@pulumi.getter(name="datacenterId")
|
|
588
|
-
def datacenter_id(self) -> pulumi.Output[Optional[
|
|
587
|
+
def datacenter_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
589
588
|
"""
|
|
590
589
|
The ID of the datacenter the folder will be created in.
|
|
591
590
|
Required for all folder types except for datacenter folders. Forces a new
|
|
@@ -593,9 +592,9 @@ class Folder(pulumi.CustomResource):
|
|
|
593
592
|
"""
|
|
594
593
|
return pulumi.get(self, "datacenter_id")
|
|
595
594
|
|
|
596
|
-
@property
|
|
595
|
+
@_builtins.property
|
|
597
596
|
@pulumi.getter
|
|
598
|
-
def path(self) -> pulumi.Output[
|
|
597
|
+
def path(self) -> pulumi.Output[_builtins.str]:
|
|
599
598
|
"""
|
|
600
599
|
The path of the folder to be created. This is relative to
|
|
601
600
|
the root of the type of folder you are creating, and the supplied datacenter.
|
|
@@ -611,17 +610,17 @@ class Folder(pulumi.CustomResource):
|
|
|
611
610
|
"""
|
|
612
611
|
return pulumi.get(self, "path")
|
|
613
612
|
|
|
614
|
-
@property
|
|
613
|
+
@_builtins.property
|
|
615
614
|
@pulumi.getter
|
|
616
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[
|
|
615
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
617
616
|
"""
|
|
618
617
|
The IDs of any tags to attach to this resource.
|
|
619
618
|
"""
|
|
620
619
|
return pulumi.get(self, "tags")
|
|
621
620
|
|
|
622
|
-
@property
|
|
621
|
+
@_builtins.property
|
|
623
622
|
@pulumi.getter
|
|
624
|
-
def type(self) -> pulumi.Output[
|
|
623
|
+
def type(self) -> pulumi.Output[_builtins.str]:
|
|
625
624
|
"""
|
|
626
625
|
The type of folder to create. Allowed options are
|
|
627
626
|
`datacenter` for datacenter folders, `host` for host and cluster folders,
|
|
@@ -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
|
|
@@ -41,27 +40,27 @@ class GetComputeClusterResult:
|
|
|
41
40
|
raise TypeError("Expected argument 'resource_pool_id' to be a str")
|
|
42
41
|
pulumi.set(__self__, "resource_pool_id", resource_pool_id)
|
|
43
42
|
|
|
44
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
45
44
|
@pulumi.getter(name="datacenterId")
|
|
46
|
-
def datacenter_id(self) -> Optional[
|
|
45
|
+
def datacenter_id(self) -> Optional[_builtins.str]:
|
|
47
46
|
return pulumi.get(self, "datacenter_id")
|
|
48
47
|
|
|
49
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
50
49
|
@pulumi.getter
|
|
51
|
-
def id(self) ->
|
|
50
|
+
def id(self) -> _builtins.str:
|
|
52
51
|
"""
|
|
53
52
|
The provider-assigned unique ID for this managed resource.
|
|
54
53
|
"""
|
|
55
54
|
return pulumi.get(self, "id")
|
|
56
55
|
|
|
57
|
-
@property
|
|
56
|
+
@_builtins.property
|
|
58
57
|
@pulumi.getter
|
|
59
|
-
def name(self) ->
|
|
58
|
+
def name(self) -> _builtins.str:
|
|
60
59
|
return pulumi.get(self, "name")
|
|
61
60
|
|
|
62
|
-
@property
|
|
61
|
+
@_builtins.property
|
|
63
62
|
@pulumi.getter(name="resourcePoolId")
|
|
64
|
-
def resource_pool_id(self) ->
|
|
63
|
+
def resource_pool_id(self) -> _builtins.str:
|
|
65
64
|
"""
|
|
66
65
|
The managed object reference ID of
|
|
67
66
|
the root resource pool for the cluster.
|
|
@@ -81,8 +80,8 @@ class AwaitableGetComputeClusterResult(GetComputeClusterResult):
|
|
|
81
80
|
resource_pool_id=self.resource_pool_id)
|
|
82
81
|
|
|
83
82
|
|
|
84
|
-
def get_compute_cluster(datacenter_id: Optional[
|
|
85
|
-
name: Optional[
|
|
83
|
+
def get_compute_cluster(datacenter_id: Optional[_builtins.str] = None,
|
|
84
|
+
name: Optional[_builtins.str] = None,
|
|
86
85
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetComputeClusterResult:
|
|
87
86
|
"""
|
|
88
87
|
The `ComputeCluster` data source can be used to discover the ID of a
|
|
@@ -107,11 +106,11 @@ def get_compute_cluster(datacenter_id: Optional[builtins.str] = None,
|
|
|
107
106
|
```
|
|
108
107
|
|
|
109
108
|
|
|
110
|
-
:param
|
|
109
|
+
:param _builtins.str datacenter_id: The managed object reference ID
|
|
111
110
|
of the datacenter the cluster is located in. This can be omitted if the
|
|
112
111
|
search path used in `name` is an absolute path. For default datacenters,
|
|
113
112
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
114
|
-
:param
|
|
113
|
+
:param _builtins.str name: The name or absolute path to the cluster.
|
|
115
114
|
"""
|
|
116
115
|
__args__ = dict()
|
|
117
116
|
__args__['datacenterId'] = datacenter_id
|
|
@@ -124,8 +123,8 @@ def get_compute_cluster(datacenter_id: Optional[builtins.str] = None,
|
|
|
124
123
|
id=pulumi.get(__ret__, 'id'),
|
|
125
124
|
name=pulumi.get(__ret__, 'name'),
|
|
126
125
|
resource_pool_id=pulumi.get(__ret__, 'resource_pool_id'))
|
|
127
|
-
def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[
|
|
128
|
-
name: Optional[pulumi.Input[
|
|
126
|
+
def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[_builtins.str]]] = None,
|
|
127
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
129
128
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetComputeClusterResult]:
|
|
130
129
|
"""
|
|
131
130
|
The `ComputeCluster` data source can be used to discover the ID of a
|
|
@@ -150,11 +149,11 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[bui
|
|
|
150
149
|
```
|
|
151
150
|
|
|
152
151
|
|
|
153
|
-
:param
|
|
152
|
+
:param _builtins.str datacenter_id: The managed object reference ID
|
|
154
153
|
of the datacenter the cluster is located in. This can be omitted if the
|
|
155
154
|
search path used in `name` is an absolute path. For default datacenters,
|
|
156
155
|
use the `id` attribute from an empty `Datacenter` data source.
|
|
157
|
-
:param
|
|
156
|
+
:param _builtins.str name: The name or absolute path to the cluster.
|
|
158
157
|
"""
|
|
159
158
|
__args__ = dict()
|
|
160
159
|
__args__['datacenterId'] = datacenter_id
|
|
@@ -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
|
|
@@ -41,31 +40,31 @@ class GetComputeClusterHostGroupResult:
|
|
|
41
40
|
raise TypeError("Expected argument 'name' to be a str")
|
|
42
41
|
pulumi.set(__self__, "name", name)
|
|
43
42
|
|
|
44
|
-
@property
|
|
43
|
+
@_builtins.property
|
|
45
44
|
@pulumi.getter(name="computeClusterId")
|
|
46
|
-
def compute_cluster_id(self) ->
|
|
45
|
+
def compute_cluster_id(self) -> _builtins.str:
|
|
47
46
|
return pulumi.get(self, "compute_cluster_id")
|
|
48
47
|
|
|
49
|
-
@property
|
|
48
|
+
@_builtins.property
|
|
50
49
|
@pulumi.getter(name="hostSystemIds")
|
|
51
|
-
def host_system_ids(self) -> Sequence[
|
|
50
|
+
def host_system_ids(self) -> Sequence[_builtins.str]:
|
|
52
51
|
"""
|
|
53
52
|
The [managed object reference ID][docs-about-morefs] of
|
|
54
53
|
the ESXi hosts in the host group.
|
|
55
54
|
"""
|
|
56
55
|
return pulumi.get(self, "host_system_ids")
|
|
57
56
|
|
|
58
|
-
@property
|
|
57
|
+
@_builtins.property
|
|
59
58
|
@pulumi.getter
|
|
60
|
-
def id(self) ->
|
|
59
|
+
def id(self) -> _builtins.str:
|
|
61
60
|
"""
|
|
62
61
|
The provider-assigned unique ID for this managed resource.
|
|
63
62
|
"""
|
|
64
63
|
return pulumi.get(self, "id")
|
|
65
64
|
|
|
66
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
67
66
|
@pulumi.getter
|
|
68
|
-
def name(self) ->
|
|
67
|
+
def name(self) -> _builtins.str:
|
|
69
68
|
return pulumi.get(self, "name")
|
|
70
69
|
|
|
71
70
|
|
|
@@ -81,8 +80,8 @@ class AwaitableGetComputeClusterHostGroupResult(GetComputeClusterHostGroupResult
|
|
|
81
80
|
name=self.name)
|
|
82
81
|
|
|
83
82
|
|
|
84
|
-
def get_compute_cluster_host_group(compute_cluster_id: Optional[
|
|
85
|
-
name: Optional[
|
|
83
|
+
def get_compute_cluster_host_group(compute_cluster_id: Optional[_builtins.str] = None,
|
|
84
|
+
name: Optional[_builtins.str] = None,
|
|
86
85
|
opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetComputeClusterHostGroupResult:
|
|
87
86
|
"""
|
|
88
87
|
The `ComputeClusterHostGroup` data source can be used to discover
|
|
@@ -108,10 +107,10 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[builtins.str] =
|
|
|
108
107
|
```
|
|
109
108
|
|
|
110
109
|
|
|
111
|
-
:param
|
|
110
|
+
:param _builtins.str compute_cluster_id: The
|
|
112
111
|
[managed object reference ID][docs-about-morefs] of the compute cluster for
|
|
113
112
|
the host group.
|
|
114
|
-
:param
|
|
113
|
+
:param _builtins.str name: The name of the host group.
|
|
115
114
|
"""
|
|
116
115
|
__args__ = dict()
|
|
117
116
|
__args__['computeClusterId'] = compute_cluster_id
|
|
@@ -124,8 +123,8 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[builtins.str] =
|
|
|
124
123
|
host_system_ids=pulumi.get(__ret__, 'host_system_ids'),
|
|
125
124
|
id=pulumi.get(__ret__, 'id'),
|
|
126
125
|
name=pulumi.get(__ret__, 'name'))
|
|
127
|
-
def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.Input[
|
|
128
|
-
name: Optional[pulumi.Input[
|
|
126
|
+
def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
127
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
129
128
|
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetComputeClusterHostGroupResult]:
|
|
130
129
|
"""
|
|
131
130
|
The `ComputeClusterHostGroup` data source can be used to discover
|
|
@@ -151,10 +150,10 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In
|
|
|
151
150
|
```
|
|
152
151
|
|
|
153
152
|
|
|
154
|
-
:param
|
|
153
|
+
:param _builtins.str compute_cluster_id: The
|
|
155
154
|
[managed object reference ID][docs-about-morefs] of the compute cluster for
|
|
156
155
|
the host group.
|
|
157
|
-
:param
|
|
156
|
+
:param _builtins.str name: The name of the host group.
|
|
158
157
|
"""
|
|
159
158
|
__args__ = dict()
|
|
160
159
|
__args__['computeClusterId'] = compute_cluster_id
|