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
|
@@ -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,24 +19,24 @@ __all__ = ['DatastoreClusterVmAntiAffinityRuleArgs', 'DatastoreClusterVmAntiAffi
|
|
|
20
19
|
@pulumi.input_type
|
|
21
20
|
class DatastoreClusterVmAntiAffinityRuleArgs:
|
|
22
21
|
def __init__(__self__, *,
|
|
23
|
-
datastore_cluster_id: pulumi.Input[
|
|
24
|
-
virtual_machine_ids: pulumi.Input[Sequence[pulumi.Input[
|
|
25
|
-
enabled: Optional[pulumi.Input[
|
|
26
|
-
mandatory: Optional[pulumi.Input[
|
|
27
|
-
name: Optional[pulumi.Input[
|
|
22
|
+
datastore_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):
|
|
28
27
|
"""
|
|
29
28
|
The set of arguments for constructing a DatastoreClusterVmAntiAffinityRule resource.
|
|
30
|
-
:param pulumi.Input[
|
|
29
|
+
:param pulumi.Input[_builtins.str] datastore_cluster_id: The managed object reference
|
|
31
30
|
ID of the datastore cluster to put the group in. Forces
|
|
32
31
|
a new resource if changed.
|
|
33
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
32
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
34
33
|
on different datastores from each other.
|
|
35
34
|
|
|
36
35
|
> **NOTE:** The minimum length of `virtual_machine_ids` is 2.
|
|
37
|
-
:param pulumi.Input[
|
|
38
|
-
:param pulumi.Input[
|
|
36
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
37
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
39
38
|
machine operations that may violate this rule. Default: `false`.
|
|
40
|
-
:param pulumi.Input[
|
|
39
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
41
40
|
"""
|
|
42
41
|
pulumi.set(__self__, "datastore_cluster_id", datastore_cluster_id)
|
|
43
42
|
pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
|
|
@@ -48,9 +47,9 @@ class DatastoreClusterVmAntiAffinityRuleArgs:
|
|
|
48
47
|
if name is not None:
|
|
49
48
|
pulumi.set(__self__, "name", name)
|
|
50
49
|
|
|
51
|
-
@property
|
|
50
|
+
@_builtins.property
|
|
52
51
|
@pulumi.getter(name="datastoreClusterId")
|
|
53
|
-
def datastore_cluster_id(self) -> pulumi.Input[
|
|
52
|
+
def datastore_cluster_id(self) -> pulumi.Input[_builtins.str]:
|
|
54
53
|
"""
|
|
55
54
|
The managed object reference
|
|
56
55
|
ID of the datastore cluster to put the group in. Forces
|
|
@@ -59,12 +58,12 @@ class DatastoreClusterVmAntiAffinityRuleArgs:
|
|
|
59
58
|
return pulumi.get(self, "datastore_cluster_id")
|
|
60
59
|
|
|
61
60
|
@datastore_cluster_id.setter
|
|
62
|
-
def datastore_cluster_id(self, value: pulumi.Input[
|
|
61
|
+
def datastore_cluster_id(self, value: pulumi.Input[_builtins.str]):
|
|
63
62
|
pulumi.set(self, "datastore_cluster_id", value)
|
|
64
63
|
|
|
65
|
-
@property
|
|
64
|
+
@_builtins.property
|
|
66
65
|
@pulumi.getter(name="virtualMachineIds")
|
|
67
|
-
def virtual_machine_ids(self) -> pulumi.Input[Sequence[pulumi.Input[
|
|
66
|
+
def virtual_machine_ids(self) -> pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]:
|
|
68
67
|
"""
|
|
69
68
|
The UUIDs of the virtual machines to run
|
|
70
69
|
on different datastores from each other.
|
|
@@ -74,24 +73,24 @@ class DatastoreClusterVmAntiAffinityRuleArgs:
|
|
|
74
73
|
return pulumi.get(self, "virtual_machine_ids")
|
|
75
74
|
|
|
76
75
|
@virtual_machine_ids.setter
|
|
77
|
-
def virtual_machine_ids(self, value: pulumi.Input[Sequence[pulumi.Input[
|
|
76
|
+
def virtual_machine_ids(self, value: pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]):
|
|
78
77
|
pulumi.set(self, "virtual_machine_ids", value)
|
|
79
78
|
|
|
80
|
-
@property
|
|
79
|
+
@_builtins.property
|
|
81
80
|
@pulumi.getter
|
|
82
|
-
def enabled(self) -> Optional[pulumi.Input[
|
|
81
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
83
82
|
"""
|
|
84
83
|
Enable this rule in the cluster. Default: `true`.
|
|
85
84
|
"""
|
|
86
85
|
return pulumi.get(self, "enabled")
|
|
87
86
|
|
|
88
87
|
@enabled.setter
|
|
89
|
-
def enabled(self, value: Optional[pulumi.Input[
|
|
88
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
90
89
|
pulumi.set(self, "enabled", value)
|
|
91
90
|
|
|
92
|
-
@property
|
|
91
|
+
@_builtins.property
|
|
93
92
|
@pulumi.getter
|
|
94
|
-
def mandatory(self) -> Optional[pulumi.Input[
|
|
93
|
+
def mandatory(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
95
94
|
"""
|
|
96
95
|
When this value is `true`, prevents any virtual
|
|
97
96
|
machine operations that may violate this rule. Default: `false`.
|
|
@@ -99,40 +98,40 @@ class DatastoreClusterVmAntiAffinityRuleArgs:
|
|
|
99
98
|
return pulumi.get(self, "mandatory")
|
|
100
99
|
|
|
101
100
|
@mandatory.setter
|
|
102
|
-
def mandatory(self, value: Optional[pulumi.Input[
|
|
101
|
+
def mandatory(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
103
102
|
pulumi.set(self, "mandatory", value)
|
|
104
103
|
|
|
105
|
-
@property
|
|
104
|
+
@_builtins.property
|
|
106
105
|
@pulumi.getter
|
|
107
|
-
def name(self) -> Optional[pulumi.Input[
|
|
106
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
108
107
|
"""
|
|
109
108
|
The name of the rule. This must be unique in the cluster.
|
|
110
109
|
"""
|
|
111
110
|
return pulumi.get(self, "name")
|
|
112
111
|
|
|
113
112
|
@name.setter
|
|
114
|
-
def name(self, value: Optional[pulumi.Input[
|
|
113
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
115
114
|
pulumi.set(self, "name", value)
|
|
116
115
|
|
|
117
116
|
|
|
118
117
|
@pulumi.input_type
|
|
119
118
|
class _DatastoreClusterVmAntiAffinityRuleState:
|
|
120
119
|
def __init__(__self__, *,
|
|
121
|
-
datastore_cluster_id: Optional[pulumi.Input[
|
|
122
|
-
enabled: Optional[pulumi.Input[
|
|
123
|
-
mandatory: Optional[pulumi.Input[
|
|
124
|
-
name: Optional[pulumi.Input[
|
|
125
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
120
|
+
datastore_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
121
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
122
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
123
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
124
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
126
125
|
"""
|
|
127
126
|
Input properties used for looking up and filtering DatastoreClusterVmAntiAffinityRule resources.
|
|
128
|
-
:param pulumi.Input[
|
|
127
|
+
:param pulumi.Input[_builtins.str] datastore_cluster_id: The managed object reference
|
|
129
128
|
ID of the datastore cluster to put the group in. Forces
|
|
130
129
|
a new resource if changed.
|
|
131
|
-
:param pulumi.Input[
|
|
132
|
-
:param pulumi.Input[
|
|
130
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
131
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
133
132
|
machine operations that may violate this rule. Default: `false`.
|
|
134
|
-
:param pulumi.Input[
|
|
135
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
133
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
134
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
136
135
|
on different datastores from each other.
|
|
137
136
|
|
|
138
137
|
> **NOTE:** The minimum length of `virtual_machine_ids` is 2.
|
|
@@ -148,9 +147,9 @@ class _DatastoreClusterVmAntiAffinityRuleState:
|
|
|
148
147
|
if virtual_machine_ids is not None:
|
|
149
148
|
pulumi.set(__self__, "virtual_machine_ids", virtual_machine_ids)
|
|
150
149
|
|
|
151
|
-
@property
|
|
150
|
+
@_builtins.property
|
|
152
151
|
@pulumi.getter(name="datastoreClusterId")
|
|
153
|
-
def datastore_cluster_id(self) -> Optional[pulumi.Input[
|
|
152
|
+
def datastore_cluster_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
154
153
|
"""
|
|
155
154
|
The managed object reference
|
|
156
155
|
ID of the datastore cluster to put the group in. Forces
|
|
@@ -159,24 +158,24 @@ class _DatastoreClusterVmAntiAffinityRuleState:
|
|
|
159
158
|
return pulumi.get(self, "datastore_cluster_id")
|
|
160
159
|
|
|
161
160
|
@datastore_cluster_id.setter
|
|
162
|
-
def datastore_cluster_id(self, value: Optional[pulumi.Input[
|
|
161
|
+
def datastore_cluster_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
163
162
|
pulumi.set(self, "datastore_cluster_id", value)
|
|
164
163
|
|
|
165
|
-
@property
|
|
164
|
+
@_builtins.property
|
|
166
165
|
@pulumi.getter
|
|
167
|
-
def enabled(self) -> Optional[pulumi.Input[
|
|
166
|
+
def enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
168
167
|
"""
|
|
169
168
|
Enable this rule in the cluster. Default: `true`.
|
|
170
169
|
"""
|
|
171
170
|
return pulumi.get(self, "enabled")
|
|
172
171
|
|
|
173
172
|
@enabled.setter
|
|
174
|
-
def enabled(self, value: Optional[pulumi.Input[
|
|
173
|
+
def enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
175
174
|
pulumi.set(self, "enabled", value)
|
|
176
175
|
|
|
177
|
-
@property
|
|
176
|
+
@_builtins.property
|
|
178
177
|
@pulumi.getter
|
|
179
|
-
def mandatory(self) -> Optional[pulumi.Input[
|
|
178
|
+
def mandatory(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
180
179
|
"""
|
|
181
180
|
When this value is `true`, prevents any virtual
|
|
182
181
|
machine operations that may violate this rule. Default: `false`.
|
|
@@ -184,24 +183,24 @@ class _DatastoreClusterVmAntiAffinityRuleState:
|
|
|
184
183
|
return pulumi.get(self, "mandatory")
|
|
185
184
|
|
|
186
185
|
@mandatory.setter
|
|
187
|
-
def mandatory(self, value: Optional[pulumi.Input[
|
|
186
|
+
def mandatory(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
188
187
|
pulumi.set(self, "mandatory", value)
|
|
189
188
|
|
|
190
|
-
@property
|
|
189
|
+
@_builtins.property
|
|
191
190
|
@pulumi.getter
|
|
192
|
-
def name(self) -> Optional[pulumi.Input[
|
|
191
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
193
192
|
"""
|
|
194
193
|
The name of the rule. This must be unique in the cluster.
|
|
195
194
|
"""
|
|
196
195
|
return pulumi.get(self, "name")
|
|
197
196
|
|
|
198
197
|
@name.setter
|
|
199
|
-
def name(self, value: Optional[pulumi.Input[
|
|
198
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
200
199
|
pulumi.set(self, "name", value)
|
|
201
200
|
|
|
202
|
-
@property
|
|
201
|
+
@_builtins.property
|
|
203
202
|
@pulumi.getter(name="virtualMachineIds")
|
|
204
|
-
def virtual_machine_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
203
|
+
def virtual_machine_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
205
204
|
"""
|
|
206
205
|
The UUIDs of the virtual machines to run
|
|
207
206
|
on different datastores from each other.
|
|
@@ -211,7 +210,7 @@ class _DatastoreClusterVmAntiAffinityRuleState:
|
|
|
211
210
|
return pulumi.get(self, "virtual_machine_ids")
|
|
212
211
|
|
|
213
212
|
@virtual_machine_ids.setter
|
|
214
|
-
def virtual_machine_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
213
|
+
def virtual_machine_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
215
214
|
pulumi.set(self, "virtual_machine_ids", value)
|
|
216
215
|
|
|
217
216
|
|
|
@@ -221,11 +220,11 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
221
220
|
def __init__(__self__,
|
|
222
221
|
resource_name: str,
|
|
223
222
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
224
|
-
datastore_cluster_id: Optional[pulumi.Input[
|
|
225
|
-
enabled: Optional[pulumi.Input[
|
|
226
|
-
mandatory: Optional[pulumi.Input[
|
|
227
|
-
name: Optional[pulumi.Input[
|
|
228
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
223
|
+
datastore_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
224
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
225
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
226
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
227
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
229
228
|
__props__=None):
|
|
230
229
|
"""
|
|
231
230
|
The `DatastoreClusterVmAntiAffinityRule` resource can be used to
|
|
@@ -309,14 +308,14 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
309
308
|
|
|
310
309
|
:param str resource_name: The name of the resource.
|
|
311
310
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
312
|
-
:param pulumi.Input[
|
|
311
|
+
:param pulumi.Input[_builtins.str] datastore_cluster_id: The managed object reference
|
|
313
312
|
ID of the datastore cluster to put the group in. Forces
|
|
314
313
|
a new resource if changed.
|
|
315
|
-
:param pulumi.Input[
|
|
316
|
-
:param pulumi.Input[
|
|
314
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
315
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
317
316
|
machine operations that may violate this rule. Default: `false`.
|
|
318
|
-
:param pulumi.Input[
|
|
319
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
317
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
318
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
320
319
|
on different datastores from each other.
|
|
321
320
|
|
|
322
321
|
> **NOTE:** The minimum length of `virtual_machine_ids` is 2.
|
|
@@ -422,11 +421,11 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
422
421
|
def _internal_init(__self__,
|
|
423
422
|
resource_name: str,
|
|
424
423
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
425
|
-
datastore_cluster_id: Optional[pulumi.Input[
|
|
426
|
-
enabled: Optional[pulumi.Input[
|
|
427
|
-
mandatory: Optional[pulumi.Input[
|
|
428
|
-
name: Optional[pulumi.Input[
|
|
429
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
424
|
+
datastore_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
425
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
426
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
427
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
428
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
430
429
|
__props__=None):
|
|
431
430
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
432
431
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -455,11 +454,11 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
455
454
|
def get(resource_name: str,
|
|
456
455
|
id: pulumi.Input[str],
|
|
457
456
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
458
|
-
datastore_cluster_id: Optional[pulumi.Input[
|
|
459
|
-
enabled: Optional[pulumi.Input[
|
|
460
|
-
mandatory: Optional[pulumi.Input[
|
|
461
|
-
name: Optional[pulumi.Input[
|
|
462
|
-
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[
|
|
457
|
+
datastore_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
458
|
+
enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
459
|
+
mandatory: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
460
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
461
|
+
virtual_machine_ids: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'DatastoreClusterVmAntiAffinityRule':
|
|
463
462
|
"""
|
|
464
463
|
Get an existing DatastoreClusterVmAntiAffinityRule resource's state with the given name, id, and optional extra
|
|
465
464
|
properties used to qualify the lookup.
|
|
@@ -467,14 +466,14 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
467
466
|
:param str resource_name: The unique name of the resulting resource.
|
|
468
467
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
469
468
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
470
|
-
:param pulumi.Input[
|
|
469
|
+
:param pulumi.Input[_builtins.str] datastore_cluster_id: The managed object reference
|
|
471
470
|
ID of the datastore cluster to put the group in. Forces
|
|
472
471
|
a new resource if changed.
|
|
473
|
-
:param pulumi.Input[
|
|
474
|
-
:param pulumi.Input[
|
|
472
|
+
:param pulumi.Input[_builtins.bool] enabled: Enable this rule in the cluster. Default: `true`.
|
|
473
|
+
:param pulumi.Input[_builtins.bool] mandatory: When this value is `true`, prevents any virtual
|
|
475
474
|
machine operations that may violate this rule. Default: `false`.
|
|
476
|
-
:param pulumi.Input[
|
|
477
|
-
:param pulumi.Input[Sequence[pulumi.Input[
|
|
475
|
+
:param pulumi.Input[_builtins.str] name: The name of the rule. This must be unique in the cluster.
|
|
476
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] virtual_machine_ids: The UUIDs of the virtual machines to run
|
|
478
477
|
on different datastores from each other.
|
|
479
478
|
|
|
480
479
|
> **NOTE:** The minimum length of `virtual_machine_ids` is 2.
|
|
@@ -490,9 +489,9 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
490
489
|
__props__.__dict__["virtual_machine_ids"] = virtual_machine_ids
|
|
491
490
|
return DatastoreClusterVmAntiAffinityRule(resource_name, opts=opts, __props__=__props__)
|
|
492
491
|
|
|
493
|
-
@property
|
|
492
|
+
@_builtins.property
|
|
494
493
|
@pulumi.getter(name="datastoreClusterId")
|
|
495
|
-
def datastore_cluster_id(self) -> pulumi.Output[
|
|
494
|
+
def datastore_cluster_id(self) -> pulumi.Output[_builtins.str]:
|
|
496
495
|
"""
|
|
497
496
|
The managed object reference
|
|
498
497
|
ID of the datastore cluster to put the group in. Forces
|
|
@@ -500,34 +499,34 @@ class DatastoreClusterVmAntiAffinityRule(pulumi.CustomResource):
|
|
|
500
499
|
"""
|
|
501
500
|
return pulumi.get(self, "datastore_cluster_id")
|
|
502
501
|
|
|
503
|
-
@property
|
|
502
|
+
@_builtins.property
|
|
504
503
|
@pulumi.getter
|
|
505
|
-
def enabled(self) -> pulumi.Output[Optional[
|
|
504
|
+
def enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
506
505
|
"""
|
|
507
506
|
Enable this rule in the cluster. Default: `true`.
|
|
508
507
|
"""
|
|
509
508
|
return pulumi.get(self, "enabled")
|
|
510
509
|
|
|
511
|
-
@property
|
|
510
|
+
@_builtins.property
|
|
512
511
|
@pulumi.getter
|
|
513
|
-
def mandatory(self) -> pulumi.Output[Optional[
|
|
512
|
+
def mandatory(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
514
513
|
"""
|
|
515
514
|
When this value is `true`, prevents any virtual
|
|
516
515
|
machine operations that may violate this rule. Default: `false`.
|
|
517
516
|
"""
|
|
518
517
|
return pulumi.get(self, "mandatory")
|
|
519
518
|
|
|
520
|
-
@property
|
|
519
|
+
@_builtins.property
|
|
521
520
|
@pulumi.getter
|
|
522
|
-
def name(self) -> pulumi.Output[
|
|
521
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
523
522
|
"""
|
|
524
523
|
The name of the rule. This must be unique in the cluster.
|
|
525
524
|
"""
|
|
526
525
|
return pulumi.get(self, "name")
|
|
527
526
|
|
|
528
|
-
@property
|
|
527
|
+
@_builtins.property
|
|
529
528
|
@pulumi.getter(name="virtualMachineIds")
|
|
530
|
-
def virtual_machine_ids(self) -> pulumi.Output[Sequence[
|
|
529
|
+
def virtual_machine_ids(self) -> pulumi.Output[Sequence[_builtins.str]]:
|
|
531
530
|
"""
|
|
532
531
|
The UUIDs of the virtual machines to run
|
|
533
532
|
on different datastores from each other.
|