pulumi-vsphere 4.14.0a1739946909__py3-none-any.whl → 4.17.0a1763710194__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 +12 -1
- pulumi_vsphere/_inputs.py +1172 -1172
- pulumi_vsphere/_utilities.py +1 -1
- pulumi_vsphere/compute_cluster.py +1226 -1484
- pulumi_vsphere/compute_cluster_host_group.py +124 -53
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +88 -87
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +92 -87
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +109 -104
- pulumi_vsphere/compute_cluster_vm_group.py +58 -53
- pulumi_vsphere/compute_cluster_vm_host_rule.py +126 -121
- pulumi_vsphere/config/__init__.py +2 -1
- pulumi_vsphere/config/__init__.pyi +2 -2
- pulumi_vsphere/config/vars.py +15 -15
- pulumi_vsphere/configuration_profile.py +286 -0
- pulumi_vsphere/content_library.py +64 -59
- pulumi_vsphere/content_library_item.py +109 -104
- pulumi_vsphere/custom_attribute.py +41 -36
- pulumi_vsphere/datacenter.py +80 -79
- pulumi_vsphere/datastore_cluster.py +531 -477
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +92 -87
- pulumi_vsphere/distributed_port_group.py +802 -818
- pulumi_vsphere/distributed_virtual_switch.py +1590 -1620
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +71 -70
- pulumi_vsphere/dpm_host_override.py +159 -70
- pulumi_vsphere/drs_vm_override.py +75 -70
- pulumi_vsphere/entity_permissions.py +40 -39
- pulumi_vsphere/file.py +148 -162
- pulumi_vsphere/folder.py +104 -99
- pulumi_vsphere/get_compute_cluster.py +18 -18
- pulumi_vsphere/get_compute_cluster_host_group.py +18 -22
- pulumi_vsphere/get_configuration_profile.py +145 -0
- pulumi_vsphere/get_content_library.py +10 -10
- pulumi_vsphere/get_content_library_item.py +22 -22
- pulumi_vsphere/get_custom_attribute.py +12 -12
- pulumi_vsphere/get_datacenter.py +12 -12
- pulumi_vsphere/get_datastore.py +22 -22
- pulumi_vsphere/get_datastore_cluster.py +19 -19
- pulumi_vsphere/get_datastore_stats.py +22 -26
- pulumi_vsphere/get_distributed_virtual_switch.py +18 -18
- pulumi_vsphere/get_dynamic.py +22 -26
- pulumi_vsphere/get_folder.py +140 -18
- pulumi_vsphere/get_guest_os_customization.py +74 -21
- pulumi_vsphere/get_host.py +18 -18
- pulumi_vsphere/get_host_base_images.py +6 -6
- pulumi_vsphere/get_host_pci_device.py +30 -30
- pulumi_vsphere/get_host_thumbprint.py +22 -22
- pulumi_vsphere/get_host_vgpu_profile.py +17 -17
- pulumi_vsphere/get_license.py +26 -24
- pulumi_vsphere/get_network.py +80 -29
- pulumi_vsphere/get_ovf_vm_template.py +126 -126
- pulumi_vsphere/get_policy.py +10 -10
- pulumi_vsphere/get_resource_pool.py +77 -26
- pulumi_vsphere/get_role.py +26 -26
- pulumi_vsphere/get_tag.py +18 -18
- pulumi_vsphere/get_tag_category.py +16 -16
- pulumi_vsphere/get_vapp_container.py +16 -16
- pulumi_vsphere/get_virtual_machine.py +273 -273
- pulumi_vsphere/get_vmfs_disks.py +24 -24
- pulumi_vsphere/guest_os_customization.py +75 -74
- pulumi_vsphere/ha_vm_override.py +295 -374
- pulumi_vsphere/host.py +304 -249
- pulumi_vsphere/host_port_group.py +321 -341
- pulumi_vsphere/host_virtual_switch.py +373 -389
- pulumi_vsphere/license.py +125 -84
- pulumi_vsphere/nas_datastore.py +324 -261
- pulumi_vsphere/offline_software_depot.py +26 -21
- pulumi_vsphere/outputs.py +1003 -970
- pulumi_vsphere/provider.py +165 -146
- pulumi_vsphere/pulumi-plugin.json +1 -1
- pulumi_vsphere/resource_pool.py +691 -364
- pulumi_vsphere/role.py +46 -45
- pulumi_vsphere/storage_drs_vm_override.py +92 -87
- pulumi_vsphere/supervisor.py +210 -209
- pulumi_vsphere/tag.py +58 -53
- pulumi_vsphere/tag_category.py +75 -70
- pulumi_vsphere/vapp_container.py +262 -257
- pulumi_vsphere/vapp_entity.py +177 -172
- pulumi_vsphere/virtual_disk.py +130 -125
- pulumi_vsphere/virtual_machine.py +1339 -1443
- pulumi_vsphere/virtual_machine_class.py +109 -108
- pulumi_vsphere/virtual_machine_snapshot.py +122 -121
- pulumi_vsphere/vm_storage_policy.py +40 -39
- pulumi_vsphere/vmfs_datastore.py +189 -184
- pulumi_vsphere/vnic.py +145 -144
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +4 -4
- pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.14.0a1739946909.dist-info/RECORD +0 -87
- {pulumi_vsphere-4.14.0a1739946909.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# coding=utf-8
|
|
2
|
-
# *** WARNING: this file was generated by
|
|
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
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -19,26 +19,26 @@ __all__ = ['ComputeClusterVmAntiAffinityRuleArgs', 'ComputeClusterVmAntiAffinity
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class ComputeClusterVmAntiAffinityRuleArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
compute_cluster_id: pulumi.Input[str],
|
|
23
|
-
virtual_machine_ids: pulumi.Input[Sequence[pulumi.Input[str]]],
|
|
24
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
25
|
-
mandatory: Optional[pulumi.Input[bool]] = None,
|
|
26
|
-
name: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
compute_cluster_id: pulumi.Input[_builtins.str],
|
|
23
|
+
virtual_machine_ids: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]],
|
|
24
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
25
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
26
|
+
name: Optional[pulumi.Input[_builtins.str]] = None):
|
|
27
27
|
"""
|
|
28
28
|
The set of arguments for constructing a ComputeClusterVmAntiAffinityRule resource.
|
|
29
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
29
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
|
|
30
30
|
ID of the cluster to put the group in. Forces a new
|
|
31
31
|
resource if changed.
|
|
32
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
33
33
|
on hosts different from each other.
|
|
34
|
-
:param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
35
|
-
:param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
|
|
34
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
35
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
36
36
|
machine operations that may violate this rule. Default: `false`.
|
|
37
37
|
|
|
38
38
|
> **NOTE:** The namespace for rule names on this resource (defined by the
|
|
39
39
|
`name` argument) is shared with all rules in the cluster - consider
|
|
40
40
|
this when naming your rules.
|
|
41
|
-
:param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
|
|
41
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
42
42
|
"""
|
|
43
43
|
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
|
|
44
44
|
pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
|
|
@@ -49,9 +49,9 @@ class ComputeClusterVmAntiAffinityRuleArgs:
|
|
|
49
49
|
if name is not None:
|
|
50
50
|
pulumi.set(__self__, "name", name)
|
|
51
51
|
|
|
52
|
-
@property
|
|
52
|
+
@_builtins.property
|
|
53
53
|
@pulumi.getter(name="computeClusterId")
|
|
54
|
-
def compute_cluster_id(self) -> pulumi.Input[str]:
|
|
54
|
+
def compute_cluster_id(self) -> pulumi.Input[_builtins.str]:
|
|
55
55
|
"""
|
|
56
56
|
The managed object reference
|
|
57
57
|
ID of the cluster to put the group in. Forces a new
|
|
@@ -60,12 +60,12 @@ class ComputeClusterVmAntiAffinityRuleArgs:
|
|
|
60
60
|
return pulumi.get(self, "compute_cluster_id")
|
|
61
61
|
|
|
62
62
|
@compute_cluster_id.setter
|
|
63
|
-
def compute_cluster_id(self, value: pulumi.Input[str]):
|
|
63
|
+
def compute_cluster_id(self, value: pulumi.Input[_builtins.str]):
|
|
64
64
|
pulumi.set(self, "compute_cluster_id", value)
|
|
65
65
|
|
|
66
|
-
@property
|
|
66
|
+
@_builtins.property
|
|
67
67
|
@pulumi.getter(name="virtualMachineIds")
|
|
68
|
-
def virtual_machine_ids(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
|
68
|
+
def virtual_machine_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
69
69
|
"""
|
|
70
70
|
The UUIDs of the virtual machines to run
|
|
71
71
|
on hosts different from each other.
|
|
@@ -73,24 +73,24 @@ class ComputeClusterVmAntiAffinityRuleArgs:
|
|
|
73
73
|
return pulumi.get(self, "virtual_machine_ids")
|
|
74
74
|
|
|
75
75
|
@virtual_machine_ids.setter
|
|
76
|
-
def virtual_machine_ids(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
|
76
|
+
def virtual_machine_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
77
77
|
pulumi.set(self, "virtual_machine_ids", value)
|
|
78
78
|
|
|
79
|
-
@property
|
|
79
|
+
@_builtins.property
|
|
80
80
|
@pulumi.getter
|
|
81
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
81
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
82
82
|
"""
|
|
83
83
|
Enable this rule in the cluster. Default: `true`.
|
|
84
84
|
"""
|
|
85
85
|
return pulumi.get(self, "enabled")
|
|
86
86
|
|
|
87
87
|
@enabled.setter
|
|
88
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
88
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
89
89
|
pulumi.set(self, "enabled", value)
|
|
90
90
|
|
|
91
|
-
@property
|
|
91
|
+
@_builtins.property
|
|
92
92
|
@pulumi.getter
|
|
93
|
-
def mandatory(self) -> Optional[pulumi.Input[bool]]:
|
|
93
|
+
def mandatory(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
94
94
|
"""
|
|
95
95
|
When this value is `true`, prevents any virtual
|
|
96
96
|
machine operations that may violate this rule. Default: `false`.
|
|
@@ -102,44 +102,44 @@ class ComputeClusterVmAntiAffinityRuleArgs:
|
|
|
102
102
|
return pulumi.get(self, "mandatory")
|
|
103
103
|
|
|
104
104
|
@mandatory.setter
|
|
105
|
-
def mandatory(self, value: Optional[pulumi.Input[bool]]):
|
|
105
|
+
def mandatory(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
106
106
|
pulumi.set(self, "mandatory", value)
|
|
107
107
|
|
|
108
|
-
@property
|
|
108
|
+
@_builtins.property
|
|
109
109
|
@pulumi.getter
|
|
110
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
110
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
111
111
|
"""
|
|
112
112
|
The name of the rule. This must be unique in the cluster.
|
|
113
113
|
"""
|
|
114
114
|
return pulumi.get(self, "name")
|
|
115
115
|
|
|
116
116
|
@name.setter
|
|
117
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
117
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
118
118
|
pulumi.set(self, "name", value)
|
|
119
119
|
|
|
120
120
|
|
|
121
121
|
@pulumi.input_type
|
|
122
122
|
class _ComputeClusterVmAntiAffinityRuleState:
|
|
123
123
|
def __init__(__self__, *,
|
|
124
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
125
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
126
|
-
mandatory: Optional[pulumi.Input[bool]] = None,
|
|
127
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
128
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
124
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
125
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
126
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
127
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
128
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
129
129
|
"""
|
|
130
130
|
Input properties used for looking up and filtering ComputeClusterVmAntiAffinityRule resources.
|
|
131
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
131
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
|
|
132
132
|
ID of the cluster to put the group in. Forces a new
|
|
133
133
|
resource if changed.
|
|
134
|
-
:param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
135
|
-
:param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
|
|
134
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
135
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
136
136
|
machine operations that may violate this rule. Default: `false`.
|
|
137
137
|
|
|
138
138
|
> **NOTE:** The namespace for rule names on this resource (defined by the
|
|
139
139
|
`name` argument) is shared with all rules in the cluster - consider
|
|
140
140
|
this when naming your rules.
|
|
141
|
-
:param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
|
|
142
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
141
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
142
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
143
143
|
on hosts different from each other.
|
|
144
144
|
"""
|
|
145
145
|
if compute_cluster_id is not None:
|
|
@@ -153,9 +153,9 @@ class _ComputeClusterVmAntiAffinityRuleState:
|
|
|
153
153
|
if virtual_machine_ids is not None:
|
|
154
154
|
pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
|
|
155
155
|
|
|
156
|
-
@property
|
|
156
|
+
@_builtins.property
|
|
157
157
|
@pulumi.getter(name="computeClusterId")
|
|
158
|
-
def compute_cluster_id(self) -> Optional[pulumi.Input[str]]:
|
|
158
|
+
def compute_cluster_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
159
159
|
"""
|
|
160
160
|
The managed object reference
|
|
161
161
|
ID of the cluster to put the group in. Forces a new
|
|
@@ -164,24 +164,24 @@ class _ComputeClusterVmAntiAffinityRuleState:
|
|
|
164
164
|
return pulumi.get(self, "compute_cluster_id")
|
|
165
165
|
|
|
166
166
|
@compute_cluster_id.setter
|
|
167
|
-
def compute_cluster_id(self, value: Optional[pulumi.Input[str]]):
|
|
167
|
+
def compute_cluster_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
168
168
|
pulumi.set(self, "compute_cluster_id", value)
|
|
169
169
|
|
|
170
|
-
@property
|
|
170
|
+
@_builtins.property
|
|
171
171
|
@pulumi.getter
|
|
172
|
-
def enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
172
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
173
173
|
"""
|
|
174
174
|
Enable this rule in the cluster. Default: `true`.
|
|
175
175
|
"""
|
|
176
176
|
return pulumi.get(self, "enabled")
|
|
177
177
|
|
|
178
178
|
@enabled.setter
|
|
179
|
-
def enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
179
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
180
180
|
pulumi.set(self, "enabled", value)
|
|
181
181
|
|
|
182
|
-
@property
|
|
182
|
+
@_builtins.property
|
|
183
183
|
@pulumi.getter
|
|
184
|
-
def mandatory(self) -> Optional[pulumi.Input[bool]]:
|
|
184
|
+
def mandatory(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
185
185
|
"""
|
|
186
186
|
When this value is `true`, prevents any virtual
|
|
187
187
|
machine operations that may violate this rule. Default: `false`.
|
|
@@ -193,24 +193,24 @@ class _ComputeClusterVmAntiAffinityRuleState:
|
|
|
193
193
|
return pulumi.get(self, "mandatory")
|
|
194
194
|
|
|
195
195
|
@mandatory.setter
|
|
196
|
-
def mandatory(self, value: Optional[pulumi.Input[bool]]):
|
|
196
|
+
def mandatory(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
197
197
|
pulumi.set(self, "mandatory", value)
|
|
198
198
|
|
|
199
|
-
@property
|
|
199
|
+
@_builtins.property
|
|
200
200
|
@pulumi.getter
|
|
201
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
201
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
202
202
|
"""
|
|
203
203
|
The name of the rule. This must be unique in the cluster.
|
|
204
204
|
"""
|
|
205
205
|
return pulumi.get(self, "name")
|
|
206
206
|
|
|
207
207
|
@name.setter
|
|
208
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
208
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
209
209
|
pulumi.set(self, "name", value)
|
|
210
210
|
|
|
211
|
-
@property
|
|
211
|
+
@_builtins.property
|
|
212
212
|
@pulumi.getter(name="virtualMachineIds")
|
|
213
|
-
def virtual_machine_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
213
|
+
def virtual_machine_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
214
214
|
"""
|
|
215
215
|
The UUIDs of the virtual machines to run
|
|
216
216
|
on hosts different from each other.
|
|
@@ -218,20 +218,21 @@ class _ComputeClusterVmAntiAffinityRuleState:
|
|
|
218
218
|
return pulumi.get(self, "virtual_machine_ids")
|
|
219
219
|
|
|
220
220
|
@virtual_machine_ids.setter
|
|
221
|
-
def virtual_machine_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
221
|
+
def virtual_machine_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
222
222
|
pulumi.set(self, "virtual_machine_ids", value)
|
|
223
223
|
|
|
224
224
|
|
|
225
|
+
@pulumi.type_token("vsphere:index/computeClusterVmAntiAffinityRule:ComputeClusterVmAntiAffinityRule")
|
|
225
226
|
class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
226
227
|
@overload
|
|
227
228
|
def __init__(__self__,
|
|
228
229
|
resource_name: str,
|
|
229
230
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
230
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
231
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
232
|
-
mandatory: Optional[pulumi.Input[bool]] = None,
|
|
233
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
234
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
231
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
232
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
233
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
234
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
235
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
235
236
|
__props__=None):
|
|
236
237
|
"""
|
|
237
238
|
## Import
|
|
@@ -244,6 +245,8 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
244
245
|
|
|
245
246
|
example is below:
|
|
246
247
|
|
|
248
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
249
|
+
|
|
247
250
|
```sh
|
|
248
251
|
$ pulumi import vsphere:index/computeClusterVmAntiAffinityRule:ComputeClusterVmAntiAffinityRule vm_anti_affinity_rule \\
|
|
249
252
|
```
|
|
@@ -254,18 +257,18 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
254
257
|
|
|
255
258
|
:param str resource_name: The name of the resource.
|
|
256
259
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
257
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
260
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
|
|
258
261
|
ID of the cluster to put the group in. Forces a new
|
|
259
262
|
resource if changed.
|
|
260
|
-
:param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
261
|
-
:param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
|
|
263
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
264
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
262
265
|
machine operations that may violate this rule. Default: `false`.
|
|
263
266
|
|
|
264
267
|
> **NOTE:** The namespace for rule names on this resource (defined by the
|
|
265
268
|
`name` argument) is shared with all rules in the cluster - consider
|
|
266
269
|
this when naming your rules.
|
|
267
|
-
:param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
|
|
268
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
270
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
271
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
269
272
|
on hosts different from each other.
|
|
270
273
|
"""
|
|
271
274
|
...
|
|
@@ -285,6 +288,8 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
285
288
|
|
|
286
289
|
example is below:
|
|
287
290
|
|
|
291
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
292
|
+
|
|
288
293
|
```sh
|
|
289
294
|
$ pulumi import vsphere:index/computeClusterVmAntiAffinityRule:ComputeClusterVmAntiAffinityRule vm_anti_affinity_rule \\
|
|
290
295
|
```
|
|
@@ -308,11 +313,11 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
308
313
|
def _internal_init(__self__,
|
|
309
314
|
resource_name: str,
|
|
310
315
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
311
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
312
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
313
|
-
mandatory: Optional[pulumi.Input[bool]] = None,
|
|
314
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
315
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
316
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
317
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
318
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
319
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
320
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
316
321
|
__props__=None):
|
|
317
322
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
318
323
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -341,11 +346,11 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
341
346
|
def get(resource_name: str,
|
|
342
347
|
id: pulumi.Input[str],
|
|
343
348
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
344
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
345
|
-
enabled: Optional[pulumi.Input[bool]] = None,
|
|
346
|
-
mandatory: Optional[pulumi.Input[bool]] = None,
|
|
347
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
348
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'ComputeClusterVmAntiAffinityRule':
|
|
349
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
350
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
351
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
352
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
353
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'ComputeClusterVmAntiAffinityRule':
|
|
349
354
|
"""
|
|
350
355
|
Get an existing ComputeClusterVmAntiAffinityRule resource's state with the given name, id, and optional extra
|
|
351
356
|
properties used to qualify the lookup.
|
|
@@ -353,18 +358,18 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
353
358
|
:param str resource_name: The unique name of the resulting resource.
|
|
354
359
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
355
360
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
356
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
361
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
|
|
357
362
|
ID of the cluster to put the group in. Forces a new
|
|
358
363
|
resource if changed.
|
|
359
|
-
:param pulumi.Input[bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
360
|
-
:param pulumi.Input[bool] mandatory: When this value is `true`, prevents any virtual
|
|
364
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
365
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
361
366
|
machine operations that may violate this rule. Default: `false`.
|
|
362
367
|
|
|
363
368
|
> **NOTE:** The namespace for rule names on this resource (defined by the
|
|
364
369
|
`name` argument) is shared with all rules in the cluster - consider
|
|
365
370
|
this when naming your rules.
|
|
366
|
-
:param pulumi.Input[str] name: The name of the rule. This must be unique in the cluster.
|
|
367
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
371
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
372
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
368
373
|
on hosts different from each other.
|
|
369
374
|
"""
|
|
370
375
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -378,9 +383,9 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
378
383
|
__props__.__dict__["virtual_machine_ids"] = virtual_machine_ids
|
|
379
384
|
return ComputeClusterVmAntiAffinityRule(resource_name, opts=opts, __props__=__props__)
|
|
380
385
|
|
|
381
|
-
@property
|
|
386
|
+
@_builtins.property
|
|
382
387
|
@pulumi.getter(name="computeClusterId")
|
|
383
|
-
def compute_cluster_id(self) -> pulumi.Output[str]:
|
|
388
|
+
def compute_cluster_id(self) -> pulumi.Output[_builtins.str]:
|
|
384
389
|
"""
|
|
385
390
|
The managed object reference
|
|
386
391
|
ID of the cluster to put the group in. Forces a new
|
|
@@ -388,17 +393,17 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
388
393
|
"""
|
|
389
394
|
return pulumi.get(self, "compute_cluster_id")
|
|
390
395
|
|
|
391
|
-
@property
|
|
396
|
+
@_builtins.property
|
|
392
397
|
@pulumi.getter
|
|
393
|
-
def enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
398
|
+
def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
394
399
|
"""
|
|
395
400
|
Enable this rule in the cluster. Default: `true`.
|
|
396
401
|
"""
|
|
397
402
|
return pulumi.get(self, "enabled")
|
|
398
403
|
|
|
399
|
-
@property
|
|
404
|
+
@_builtins.property
|
|
400
405
|
@pulumi.getter
|
|
401
|
-
def mandatory(self) -> pulumi.Output[Optional[bool]]:
|
|
406
|
+
def mandatory(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
402
407
|
"""
|
|
403
408
|
When this value is `true`, prevents any virtual
|
|
404
409
|
machine operations that may violate this rule. Default: `false`.
|
|
@@ -409,17 +414,17 @@ class ComputeClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
409
414
|
"""
|
|
410
415
|
return pulumi.get(self, "mandatory")
|
|
411
416
|
|
|
412
|
-
@property
|
|
417
|
+
@_builtins.property
|
|
413
418
|
@pulumi.getter
|
|
414
|
-
def name(self) -> pulumi.Output[str]:
|
|
419
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
415
420
|
"""
|
|
416
421
|
The name of the rule. This must be unique in the cluster.
|
|
417
422
|
"""
|
|
418
423
|
return pulumi.get(self, "name")
|
|
419
424
|
|
|
420
|
-
@property
|
|
425
|
+
@_builtins.property
|
|
421
426
|
@pulumi.getter(name="virtualMachineIds")
|
|
422
|
-
def virtual_machine_ids(self) -> pulumi.Output[Sequence[str]]:
|
|
427
|
+
def virtual_machine_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
423
428
|
"""
|
|
424
429
|
The UUIDs of the virtual machines to run
|
|
425
430
|
on hosts different from each other.
|