pulumi-vsphere 4.16.0a1753339697__py3-none-any.whl → 4.16.0a1753398270__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-vsphere might be problematic. Click here for more details.
- pulumi_vsphere/__init__.py +1 -1
- pulumi_vsphere/_inputs.py +1171 -1172
- pulumi_vsphere/compute_cluster.py +1127 -1128
- pulumi_vsphere/compute_cluster_host_group.py +52 -53
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +86 -87
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +86 -87
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +103 -104
- pulumi_vsphere/compute_cluster_vm_group.py +52 -53
- pulumi_vsphere/compute_cluster_vm_host_rule.py +120 -121
- pulumi_vsphere/config/__init__.py +1 -1
- pulumi_vsphere/config/__init__.pyi +1 -2
- pulumi_vsphere/config/vars.py +14 -15
- pulumi_vsphere/content_library.py +58 -59
- pulumi_vsphere/content_library_item.py +103 -104
- pulumi_vsphere/custom_attribute.py +35 -36
- pulumi_vsphere/datacenter.py +78 -79
- pulumi_vsphere/datastore_cluster.py +426 -427
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +86 -87
- pulumi_vsphere/distributed_port_group.py +787 -788
- pulumi_vsphere/distributed_virtual_switch.py +1566 -1567
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +69 -70
- pulumi_vsphere/dpm_host_override.py +69 -70
- pulumi_vsphere/drs_vm_override.py +69 -70
- pulumi_vsphere/entity_permissions.py +38 -39
- pulumi_vsphere/file.py +120 -121
- pulumi_vsphere/folder.py +86 -87
- pulumi_vsphere/get_compute_cluster.py +17 -18
- pulumi_vsphere/get_compute_cluster_host_group.py +17 -18
- pulumi_vsphere/get_content_library.py +9 -10
- pulumi_vsphere/get_content_library_item.py +21 -22
- pulumi_vsphere/get_custom_attribute.py +11 -12
- pulumi_vsphere/get_datacenter.py +11 -12
- pulumi_vsphere/get_datastore.py +21 -22
- pulumi_vsphere/get_datastore_cluster.py +17 -18
- pulumi_vsphere/get_datastore_stats.py +21 -22
- pulumi_vsphere/get_distributed_virtual_switch.py +17 -18
- pulumi_vsphere/get_dynamic.py +21 -22
- pulumi_vsphere/get_folder.py +9 -10
- pulumi_vsphere/get_guest_os_customization.py +18 -19
- pulumi_vsphere/get_host.py +17 -18
- pulumi_vsphere/get_host_base_images.py +5 -6
- pulumi_vsphere/get_host_pci_device.py +29 -30
- pulumi_vsphere/get_host_thumbprint.py +21 -22
- pulumi_vsphere/get_host_vgpu_profile.py +16 -17
- pulumi_vsphere/get_license.py +19 -20
- pulumi_vsphere/get_network.py +42 -43
- pulumi_vsphere/get_ovf_vm_template.py +121 -122
- pulumi_vsphere/get_policy.py +9 -10
- pulumi_vsphere/get_resource_pool.py +21 -22
- pulumi_vsphere/get_role.py +25 -26
- pulumi_vsphere/get_tag.py +17 -18
- pulumi_vsphere/get_tag_category.py +15 -16
- pulumi_vsphere/get_vapp_container.py +15 -16
- pulumi_vsphere/get_virtual_machine.py +272 -273
- pulumi_vsphere/get_vmfs_disks.py +23 -24
- pulumi_vsphere/guest_os_customization.py +73 -74
- pulumi_vsphere/ha_vm_override.py +256 -257
- pulumi_vsphere/host.py +242 -243
- pulumi_vsphere/host_port_group.py +310 -311
- pulumi_vsphere/host_virtual_switch.py +358 -359
- pulumi_vsphere/license.py +71 -72
- pulumi_vsphere/nas_datastore.py +260 -261
- pulumi_vsphere/offline_software_depot.py +20 -21
- pulumi_vsphere/outputs.py +981 -982
- pulumi_vsphere/provider.py +120 -121
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +256 -257
- pulumi_vsphere/role.py +44 -45
- pulumi_vsphere/storage_drs_vm_override.py +86 -87
- pulumi_vsphere/supervisor.py +206 -207
- pulumi_vsphere/tag.py +52 -53
- pulumi_vsphere/tag_category.py +69 -70
- pulumi_vsphere/vapp_container.py +256 -257
- pulumi_vsphere/vapp_entity.py +171 -172
- pulumi_vsphere/virtual_disk.py +120 -121
- pulumi_vsphere/virtual_machine.py +1293 -1294
- pulumi_vsphere/virtual_machine_class.py +103 -104
- pulumi_vsphere/virtual_machine_snapshot.py +120 -121
- pulumi_vsphere/vm_storage_policy.py +38 -39
- pulumi_vsphere/vmfs_datastore.py +183 -184
- pulumi_vsphere/vnic.py +143 -144
- {pulumi_vsphere-4.16.0a1753339697.dist-info → pulumi_vsphere-4.16.0a1753398270.dist-info}/METADATA +1 -1
- pulumi_vsphere-4.16.0a1753398270.dist-info/RECORD +87 -0
- pulumi_vsphere-4.16.0a1753339697.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.16.0a1753339697.dist-info → pulumi_vsphere-4.16.0a1753398270.dist-info}/WHEEL +0 -0
- {pulumi_vsphere-4.16.0a1753339697.dist-info → pulumi_vsphere-4.16.0a1753398270.dist-info}/top_level.txt +0 -0
pulumi_vsphere/datacenter.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,13 +19,13 @@ __all__ = ['DatacenterArgs', 'Datacenter']
|
|
|
20
19
|
@pulumi.input_type
|
|
21
20
|
class DatacenterArgs:
|
|
22
21
|
def __init__(__self__, *,
|
|
23
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
24
|
-
folder: Optional[pulumi.Input[
|
|
25
|
-
name: Optional[pulumi.Input[
|
|
26
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
22
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
23
|
+
folder: Optional[pulumi.Input[_builtins.str]] = None,
|
|
24
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
27
26
|
"""
|
|
28
27
|
The set of arguments for constructing a Datacenter resource.
|
|
29
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
|
28
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to value
|
|
30
29
|
strings to set for datacenter resource. See
|
|
31
30
|
[here][docs-setting-custom-attributes] for a reference on how to set values
|
|
32
31
|
for custom attributes.
|
|
@@ -35,11 +34,11 @@ class DatacenterArgs:
|
|
|
35
34
|
|
|
36
35
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
37
36
|
and require vCenter.
|
|
38
|
-
:param pulumi.Input[
|
|
37
|
+
:param pulumi.Input[_builtins.str] folder: The folder where the datacenter should be created.
|
|
39
38
|
Forces a new resource if changed.
|
|
40
|
-
:param pulumi.Input[
|
|
39
|
+
:param pulumi.Input[_builtins.str] name: The name of the datacenter. This name needs to be unique
|
|
41
40
|
within the folder. Forces a new resource if changed.
|
|
42
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
41
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
43
42
|
"""
|
|
44
43
|
if custom_attributes is not None:
|
|
45
44
|
pulumi.set(__self__, "custom_attributes", custom_attributes)
|
|
@@ -50,9 +49,9 @@ class DatacenterArgs:
|
|
|
50
49
|
if tags is not None:
|
|
51
50
|
pulumi.set(__self__, "tags", tags)
|
|
52
51
|
|
|
53
|
-
@property
|
|
52
|
+
@_builtins.property
|
|
54
53
|
@pulumi.getter(name="customAttributes")
|
|
55
|
-
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
54
|
+
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
56
55
|
"""
|
|
57
56
|
Map of custom attribute ids to value
|
|
58
57
|
strings to set for datacenter resource. See
|
|
@@ -67,12 +66,12 @@ class DatacenterArgs:
|
|
|
67
66
|
return pulumi.get(self, "custom_attributes")
|
|
68
67
|
|
|
69
68
|
@custom_attributes.setter
|
|
70
|
-
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
69
|
+
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
71
70
|
pulumi.set(self, "custom_attributes", value)
|
|
72
71
|
|
|
73
|
-
@property
|
|
72
|
+
@_builtins.property
|
|
74
73
|
@pulumi.getter
|
|
75
|
-
def folder(self) -> Optional[pulumi.Input[
|
|
74
|
+
def folder(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
76
75
|
"""
|
|
77
76
|
The folder where the datacenter should be created.
|
|
78
77
|
Forces a new resource if changed.
|
|
@@ -80,12 +79,12 @@ class DatacenterArgs:
|
|
|
80
79
|
return pulumi.get(self, "folder")
|
|
81
80
|
|
|
82
81
|
@folder.setter
|
|
83
|
-
def folder(self, value: Optional[pulumi.Input[
|
|
82
|
+
def folder(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
84
83
|
pulumi.set(self, "folder", value)
|
|
85
84
|
|
|
86
|
-
@property
|
|
85
|
+
@_builtins.property
|
|
87
86
|
@pulumi.getter
|
|
88
|
-
def name(self) -> Optional[pulumi.Input[
|
|
87
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
89
88
|
"""
|
|
90
89
|
The name of the datacenter. This name needs to be unique
|
|
91
90
|
within the folder. Forces a new resource if changed.
|
|
@@ -93,33 +92,33 @@ class DatacenterArgs:
|
|
|
93
92
|
return pulumi.get(self, "name")
|
|
94
93
|
|
|
95
94
|
@name.setter
|
|
96
|
-
def name(self, value: Optional[pulumi.Input[
|
|
95
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
97
96
|
pulumi.set(self, "name", value)
|
|
98
97
|
|
|
99
|
-
@property
|
|
98
|
+
@_builtins.property
|
|
100
99
|
@pulumi.getter
|
|
101
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
100
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
102
101
|
"""
|
|
103
102
|
The IDs of any tags to attach to this resource.
|
|
104
103
|
"""
|
|
105
104
|
return pulumi.get(self, "tags")
|
|
106
105
|
|
|
107
106
|
@tags.setter
|
|
108
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
107
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
109
108
|
pulumi.set(self, "tags", value)
|
|
110
109
|
|
|
111
110
|
|
|
112
111
|
@pulumi.input_type
|
|
113
112
|
class _DatacenterState:
|
|
114
113
|
def __init__(__self__, *,
|
|
115
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
116
|
-
folder: Optional[pulumi.Input[
|
|
117
|
-
moid: Optional[pulumi.Input[
|
|
118
|
-
name: Optional[pulumi.Input[
|
|
119
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
114
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
115
|
+
folder: Optional[pulumi.Input[_builtins.str]] = None,
|
|
116
|
+
moid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
117
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
118
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
120
119
|
"""
|
|
121
120
|
Input properties used for looking up and filtering Datacenter resources.
|
|
122
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
|
121
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to value
|
|
123
122
|
strings to set for datacenter resource. See
|
|
124
123
|
[here][docs-setting-custom-attributes] for a reference on how to set values
|
|
125
124
|
for custom attributes.
|
|
@@ -128,12 +127,12 @@ class _DatacenterState:
|
|
|
128
127
|
|
|
129
128
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
130
129
|
and require vCenter.
|
|
131
|
-
:param pulumi.Input[
|
|
130
|
+
:param pulumi.Input[_builtins.str] folder: The folder where the datacenter should be created.
|
|
132
131
|
Forces a new resource if changed.
|
|
133
|
-
:param pulumi.Input[
|
|
134
|
-
:param pulumi.Input[
|
|
132
|
+
:param pulumi.Input[_builtins.str] moid: Managed object ID of this datacenter.
|
|
133
|
+
:param pulumi.Input[_builtins.str] name: The name of the datacenter. This name needs to be unique
|
|
135
134
|
within the folder. Forces a new resource if changed.
|
|
136
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
135
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
137
136
|
"""
|
|
138
137
|
if custom_attributes is not None:
|
|
139
138
|
pulumi.set(__self__, "custom_attributes", custom_attributes)
|
|
@@ -146,9 +145,9 @@ class _DatacenterState:
|
|
|
146
145
|
if tags is not None:
|
|
147
146
|
pulumi.set(__self__, "tags", tags)
|
|
148
147
|
|
|
149
|
-
@property
|
|
148
|
+
@_builtins.property
|
|
150
149
|
@pulumi.getter(name="customAttributes")
|
|
151
|
-
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
150
|
+
def custom_attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]:
|
|
152
151
|
"""
|
|
153
152
|
Map of custom attribute ids to value
|
|
154
153
|
strings to set for datacenter resource. See
|
|
@@ -163,12 +162,12 @@ class _DatacenterState:
|
|
|
163
162
|
return pulumi.get(self, "custom_attributes")
|
|
164
163
|
|
|
165
164
|
@custom_attributes.setter
|
|
166
|
-
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
165
|
+
def custom_attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]]):
|
|
167
166
|
pulumi.set(self, "custom_attributes", value)
|
|
168
167
|
|
|
169
|
-
@property
|
|
168
|
+
@_builtins.property
|
|
170
169
|
@pulumi.getter
|
|
171
|
-
def folder(self) -> Optional[pulumi.Input[
|
|
170
|
+
def folder(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
172
171
|
"""
|
|
173
172
|
The folder where the datacenter should be created.
|
|
174
173
|
Forces a new resource if changed.
|
|
@@ -176,24 +175,24 @@ class _DatacenterState:
|
|
|
176
175
|
return pulumi.get(self, "folder")
|
|
177
176
|
|
|
178
177
|
@folder.setter
|
|
179
|
-
def folder(self, value: Optional[pulumi.Input[
|
|
178
|
+
def folder(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
180
179
|
pulumi.set(self, "folder", value)
|
|
181
180
|
|
|
182
|
-
@property
|
|
181
|
+
@_builtins.property
|
|
183
182
|
@pulumi.getter
|
|
184
|
-
def moid(self) -> Optional[pulumi.Input[
|
|
183
|
+
def moid(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
185
184
|
"""
|
|
186
185
|
Managed object ID of this datacenter.
|
|
187
186
|
"""
|
|
188
187
|
return pulumi.get(self, "moid")
|
|
189
188
|
|
|
190
189
|
@moid.setter
|
|
191
|
-
def moid(self, value: Optional[pulumi.Input[
|
|
190
|
+
def moid(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
192
191
|
pulumi.set(self, "moid", value)
|
|
193
192
|
|
|
194
|
-
@property
|
|
193
|
+
@_builtins.property
|
|
195
194
|
@pulumi.getter
|
|
196
|
-
def name(self) -> Optional[pulumi.Input[
|
|
195
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
197
196
|
"""
|
|
198
197
|
The name of the datacenter. This name needs to be unique
|
|
199
198
|
within the folder. Forces a new resource if changed.
|
|
@@ -201,19 +200,19 @@ class _DatacenterState:
|
|
|
201
200
|
return pulumi.get(self, "name")
|
|
202
201
|
|
|
203
202
|
@name.setter
|
|
204
|
-
def name(self, value: Optional[pulumi.Input[
|
|
203
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
205
204
|
pulumi.set(self, "name", value)
|
|
206
205
|
|
|
207
|
-
@property
|
|
206
|
+
@_builtins.property
|
|
208
207
|
@pulumi.getter
|
|
209
|
-
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
208
|
+
def tags(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
210
209
|
"""
|
|
211
210
|
The IDs of any tags to attach to this resource.
|
|
212
211
|
"""
|
|
213
212
|
return pulumi.get(self, "tags")
|
|
214
213
|
|
|
215
214
|
@tags.setter
|
|
216
|
-
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
215
|
+
def tags(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
217
216
|
pulumi.set(self, "tags", value)
|
|
218
217
|
|
|
219
218
|
|
|
@@ -223,10 +222,10 @@ class Datacenter(pulumi.CustomResource):
|
|
|
223
222
|
def __init__(__self__,
|
|
224
223
|
resource_name: str,
|
|
225
224
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
226
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
227
|
-
folder: Optional[pulumi.Input[
|
|
228
|
-
name: Optional[pulumi.Input[
|
|
229
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
225
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
226
|
+
folder: Optional[pulumi.Input[_builtins.str]] = None,
|
|
227
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
228
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
230
229
|
__props__=None):
|
|
231
230
|
"""
|
|
232
231
|
Provides a VMware vSphere datacenter resource. This can be used as the primary
|
|
@@ -270,7 +269,7 @@ class Datacenter(pulumi.CustomResource):
|
|
|
270
269
|
|
|
271
270
|
:param str resource_name: The name of the resource.
|
|
272
271
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
273
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
|
272
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to value
|
|
274
273
|
strings to set for datacenter resource. See
|
|
275
274
|
[here][docs-setting-custom-attributes] for a reference on how to set values
|
|
276
275
|
for custom attributes.
|
|
@@ -279,11 +278,11 @@ class Datacenter(pulumi.CustomResource):
|
|
|
279
278
|
|
|
280
279
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
281
280
|
and require vCenter.
|
|
282
|
-
:param pulumi.Input[
|
|
281
|
+
:param pulumi.Input[_builtins.str] folder: The folder where the datacenter should be created.
|
|
283
282
|
Forces a new resource if changed.
|
|
284
|
-
:param pulumi.Input[
|
|
283
|
+
:param pulumi.Input[_builtins.str] name: The name of the datacenter. This name needs to be unique
|
|
285
284
|
within the folder. Forces a new resource if changed.
|
|
286
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
285
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
287
286
|
"""
|
|
288
287
|
...
|
|
289
288
|
@overload
|
|
@@ -346,10 +345,10 @@ class Datacenter(pulumi.CustomResource):
|
|
|
346
345
|
def _internal_init(__self__,
|
|
347
346
|
resource_name: str,
|
|
348
347
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
349
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
350
|
-
folder: Optional[pulumi.Input[
|
|
351
|
-
name: Optional[pulumi.Input[
|
|
352
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
348
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
349
|
+
folder: Optional[pulumi.Input[_builtins.str]] = None,
|
|
350
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
351
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
353
352
|
__props__=None):
|
|
354
353
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
355
354
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -374,11 +373,11 @@ class Datacenter(pulumi.CustomResource):
|
|
|
374
373
|
def get(resource_name: str,
|
|
375
374
|
id: pulumi.Input[str],
|
|
376
375
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
377
|
-
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[
|
|
378
|
-
folder: Optional[pulumi.Input[
|
|
379
|
-
moid: Optional[pulumi.Input[
|
|
380
|
-
name: Optional[pulumi.Input[
|
|
381
|
-
tags: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
376
|
+
custom_attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]]] = None,
|
|
377
|
+
folder: Optional[pulumi.Input[_builtins.str]] = None,
|
|
378
|
+
moid: Optional[pulumi.Input[_builtins.str]] = None,
|
|
379
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
380
|
+
tags: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'Datacenter':
|
|
382
381
|
"""
|
|
383
382
|
Get an existing Datacenter resource's state with the given name, id, and optional extra
|
|
384
383
|
properties used to qualify the lookup.
|
|
@@ -386,7 +385,7 @@ class Datacenter(pulumi.CustomResource):
|
|
|
386
385
|
:param str resource_name: The unique name of the resulting resource.
|
|
387
386
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
388
387
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
389
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[
|
|
388
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[_builtins.str]]] custom_attributes: Map of custom attribute ids to value
|
|
390
389
|
strings to set for datacenter resource. See
|
|
391
390
|
[here][docs-setting-custom-attributes] for a reference on how to set values
|
|
392
391
|
for custom attributes.
|
|
@@ -395,12 +394,12 @@ class Datacenter(pulumi.CustomResource):
|
|
|
395
394
|
|
|
396
395
|
> **NOTE:** Custom attributes are unsupported on direct ESXi connections
|
|
397
396
|
and require vCenter.
|
|
398
|
-
:param pulumi.Input[
|
|
397
|
+
:param pulumi.Input[_builtins.str] folder: The folder where the datacenter should be created.
|
|
399
398
|
Forces a new resource if changed.
|
|
400
|
-
:param pulumi.Input[
|
|
401
|
-
:param pulumi.Input[
|
|
399
|
+
:param pulumi.Input[_builtins.str] moid: Managed object ID of this datacenter.
|
|
400
|
+
:param pulumi.Input[_builtins.str] name: The name of the datacenter. This name needs to be unique
|
|
402
401
|
within the folder. Forces a new resource if changed.
|
|
403
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
402
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] tags: The IDs of any tags to attach to this resource.
|
|
404
403
|
"""
|
|
405
404
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
406
405
|
|
|
@@ -413,9 +412,9 @@ class Datacenter(pulumi.CustomResource):
|
|
|
413
412
|
__props__.__dict__["tags"] = tags
|
|
414
413
|
return Datacenter(resource_name, opts=opts, __props__=__props__)
|
|
415
414
|
|
|
416
|
-
@property
|
|
415
|
+
@_builtins.property
|
|
417
416
|
@pulumi.getter(name="customAttributes")
|
|
418
|
-
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str,
|
|
417
|
+
def custom_attributes(self) -> pulumi.Output[Optional[Mapping[str, _builtins.str]]]:
|
|
419
418
|
"""
|
|
420
419
|
Map of custom attribute ids to value
|
|
421
420
|
strings to set for datacenter resource. See
|
|
@@ -429,35 +428,35 @@ class Datacenter(pulumi.CustomResource):
|
|
|
429
428
|
"""
|
|
430
429
|
return pulumi.get(self, "custom_attributes")
|
|
431
430
|
|
|
432
|
-
@property
|
|
431
|
+
@_builtins.property
|
|
433
432
|
@pulumi.getter
|
|
434
|
-
def folder(self) -> pulumi.Output[Optional[
|
|
433
|
+
def folder(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
435
434
|
"""
|
|
436
435
|
The folder where the datacenter should be created.
|
|
437
436
|
Forces a new resource if changed.
|
|
438
437
|
"""
|
|
439
438
|
return pulumi.get(self, "folder")
|
|
440
439
|
|
|
441
|
-
@property
|
|
440
|
+
@_builtins.property
|
|
442
441
|
@pulumi.getter
|
|
443
|
-
def moid(self) -> pulumi.Output[
|
|
442
|
+
def moid(self) -> pulumi.Output[_builtins.str]:
|
|
444
443
|
"""
|
|
445
444
|
Managed object ID of this datacenter.
|
|
446
445
|
"""
|
|
447
446
|
return pulumi.get(self, "moid")
|
|
448
447
|
|
|
449
|
-
@property
|
|
448
|
+
@_builtins.property
|
|
450
449
|
@pulumi.getter
|
|
451
|
-
def name(self) -> pulumi.Output[
|
|
450
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
452
451
|
"""
|
|
453
452
|
The name of the datacenter. This name needs to be unique
|
|
454
453
|
within the folder. Forces a new resource if changed.
|
|
455
454
|
"""
|
|
456
455
|
return pulumi.get(self, "name")
|
|
457
456
|
|
|
458
|
-
@property
|
|
457
|
+
@_builtins.property
|
|
459
458
|
@pulumi.getter
|
|
460
|
-
def tags(self) -> pulumi.Output[Optional[Sequence[
|
|
459
|
+
def tags(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
461
460
|
"""
|
|
462
461
|
The IDs of any tags to attach to this resource.
|
|
463
462
|
"""
|