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,25 +19,25 @@ __all__ = ['DrsVmOverrideArgs', 'DrsVmOverride']
|
|
|
19
19
|
@pulumi.input_type
|
|
20
20
|
class DrsVmOverrideArgs:
|
|
21
21
|
def __init__(__self__, *,
|
|
22
|
-
compute_cluster_id: pulumi.Input[str],
|
|
23
|
-
virtual_machine_id: pulumi.Input[str],
|
|
24
|
-
drs_automation_level: Optional[pulumi.Input[str]] = None,
|
|
25
|
-
drs_enabled: Optional[pulumi.Input[bool]] = None):
|
|
22
|
+
compute_cluster_id: pulumi.Input[_builtins.str],
|
|
23
|
+
virtual_machine_id: pulumi.Input[_builtins.str],
|
|
24
|
+
drs_automation_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
drs_enabled: Optional[pulumi.Input[_builtins.bool]] = None):
|
|
26
26
|
"""
|
|
27
27
|
The set of arguments for constructing a DrsVmOverride resource.
|
|
28
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
28
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
|
|
29
29
|
ID of the cluster to put the override in. Forces a new
|
|
30
30
|
resource if changed.
|
|
31
|
-
:param pulumi.Input[str] virtual_machine_id: The UUID of the virtual machine to create
|
|
31
|
+
:param pulumi.Input[_builtins.str] virtual_machine_id: The UUID of the virtual machine to create
|
|
32
32
|
the override for. Forces a new resource if changed.
|
|
33
|
-
:param pulumi.Input[str] drs_automation_level: Overrides the automation level for this virtual
|
|
33
|
+
:param pulumi.Input[_builtins.str] drs_automation_level: Overrides the automation level for this virtual
|
|
34
34
|
machine in the cluster. Can be one of `manual`, `partiallyAutomated`, or
|
|
35
35
|
`fullyAutomated`. Default: `manual`.
|
|
36
36
|
|
|
37
37
|
> **NOTE:** Using this resource _always_ implies an override, even if one of
|
|
38
38
|
`drs_enabled` or `drs_automation_level` is omitted. Take note of the defaults
|
|
39
39
|
for both options.
|
|
40
|
-
:param pulumi.Input[bool] drs_enabled: Overrides the default DRS setting for this virtual
|
|
40
|
+
:param pulumi.Input[_builtins.bool] drs_enabled: Overrides the default DRS setting for this virtual
|
|
41
41
|
machine. Can be either `true` or `false`. Default: `false`.
|
|
42
42
|
"""
|
|
43
43
|
pulumi.set(__self__, "compute_cluster_id", compute_cluster_id)
|
|
@@ -47,9 +47,9 @@ class DrsVmOverrideArgs:
|
|
|
47
47
|
if drs_enabled is not None:
|
|
48
48
|
pulumi.set(__self__, "drs_enabled", drs_enabled)
|
|
49
49
|
|
|
50
|
-
@property
|
|
50
|
+
@_builtins.property
|
|
51
51
|
@pulumi.getter(name="computeClusterId")
|
|
52
|
-
def compute_cluster_id(self) -> pulumi.Input[str]:
|
|
52
|
+
def compute_cluster_id(self) -> pulumi.Input[_builtins.str]:
|
|
53
53
|
"""
|
|
54
54
|
The managed object reference
|
|
55
55
|
ID of the cluster to put the override in. Forces a new
|
|
@@ -58,12 +58,12 @@ class DrsVmOverrideArgs:
|
|
|
58
58
|
return pulumi.get(self, "compute_cluster_id")
|
|
59
59
|
|
|
60
60
|
@compute_cluster_id.setter
|
|
61
|
-
def compute_cluster_id(self, value: pulumi.Input[str]):
|
|
61
|
+
def compute_cluster_id(self, value: pulumi.Input[_builtins.str]):
|
|
62
62
|
pulumi.set(self, "compute_cluster_id", value)
|
|
63
63
|
|
|
64
|
-
@property
|
|
64
|
+
@_builtins.property
|
|
65
65
|
@pulumi.getter(name="virtualMachineId")
|
|
66
|
-
def virtual_machine_id(self) -> pulumi.Input[str]:
|
|
66
|
+
def virtual_machine_id(self) -> pulumi.Input[_builtins.str]:
|
|
67
67
|
"""
|
|
68
68
|
The UUID of the virtual machine to create
|
|
69
69
|
the override for. Forces a new resource if changed.
|
|
@@ -71,12 +71,12 @@ class DrsVmOverrideArgs:
|
|
|
71
71
|
return pulumi.get(self, "virtual_machine_id")
|
|
72
72
|
|
|
73
73
|
@virtual_machine_id.setter
|
|
74
|
-
def virtual_machine_id(self, value: pulumi.Input[str]):
|
|
74
|
+
def virtual_machine_id(self, value: pulumi.Input[_builtins.str]):
|
|
75
75
|
pulumi.set(self, "virtual_machine_id", value)
|
|
76
76
|
|
|
77
|
-
@property
|
|
77
|
+
@_builtins.property
|
|
78
78
|
@pulumi.getter(name="drsAutomationLevel")
|
|
79
|
-
def drs_automation_level(self) -> Optional[pulumi.Input[str]]:
|
|
79
|
+
def drs_automation_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
80
80
|
"""
|
|
81
81
|
Overrides the automation level for this virtual
|
|
82
82
|
machine in the cluster. Can be one of `manual`, `partiallyAutomated`, or
|
|
@@ -89,12 +89,12 @@ class DrsVmOverrideArgs:
|
|
|
89
89
|
return pulumi.get(self, "drs_automation_level")
|
|
90
90
|
|
|
91
91
|
@drs_automation_level.setter
|
|
92
|
-
def drs_automation_level(self, value: Optional[pulumi.Input[str]]):
|
|
92
|
+
def drs_automation_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
93
93
|
pulumi.set(self, "drs_automation_level", value)
|
|
94
94
|
|
|
95
|
-
@property
|
|
95
|
+
@_builtins.property
|
|
96
96
|
@pulumi.getter(name="drsEnabled")
|
|
97
|
-
def drs_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
97
|
+
def drs_enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
98
98
|
"""
|
|
99
99
|
Overrides the default DRS setting for this virtual
|
|
100
100
|
machine. Can be either `true` or `false`. Default: `false`.
|
|
@@ -102,32 +102,32 @@ class DrsVmOverrideArgs:
|
|
|
102
102
|
return pulumi.get(self, "drs_enabled")
|
|
103
103
|
|
|
104
104
|
@drs_enabled.setter
|
|
105
|
-
def drs_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
105
|
+
def drs_enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
106
106
|
pulumi.set(self, "drs_enabled", value)
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
@pulumi.input_type
|
|
110
110
|
class _DrsVmOverrideState:
|
|
111
111
|
def __init__(__self__, *,
|
|
112
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
113
|
-
drs_automation_level: Optional[pulumi.Input[str]] = None,
|
|
114
|
-
drs_enabled: Optional[pulumi.Input[bool]] = None,
|
|
115
|
-
virtual_machine_id: Optional[pulumi.Input[str]] = None):
|
|
112
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
113
|
+
drs_automation_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
114
|
+
drs_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
115
|
+
virtual_machine_id: Optional[pulumi.Input[_builtins.str]] = None):
|
|
116
116
|
"""
|
|
117
117
|
Input properties used for looking up and filtering DrsVmOverride resources.
|
|
118
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
118
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
|
|
119
119
|
ID of the cluster to put the override in. Forces a new
|
|
120
120
|
resource if changed.
|
|
121
|
-
:param pulumi.Input[str] drs_automation_level: Overrides the automation level for this virtual
|
|
121
|
+
:param pulumi.Input[_builtins.str] drs_automation_level: Overrides the automation level for this virtual
|
|
122
122
|
machine in the cluster. Can be one of `manual`, `partiallyAutomated`, or
|
|
123
123
|
`fullyAutomated`. Default: `manual`.
|
|
124
124
|
|
|
125
125
|
> **NOTE:** Using this resource _always_ implies an override, even if one of
|
|
126
126
|
`drs_enabled` or `drs_automation_level` is omitted. Take note of the defaults
|
|
127
127
|
for both options.
|
|
128
|
-
:param pulumi.Input[bool] drs_enabled: Overrides the default DRS setting for this virtual
|
|
128
|
+
:param pulumi.Input[_builtins.bool] drs_enabled: Overrides the default DRS setting for this virtual
|
|
129
129
|
machine. Can be either `true` or `false`. Default: `false`.
|
|
130
|
-
:param pulumi.Input[str] virtual_machine_id: The UUID of the virtual machine to create
|
|
130
|
+
:param pulumi.Input[_builtins.str] virtual_machine_id: The UUID of the virtual machine to create
|
|
131
131
|
the override for. Forces a new resource if changed.
|
|
132
132
|
"""
|
|
133
133
|
if compute_cluster_id is not None:
|
|
@@ -139,9 +139,9 @@ class _DrsVmOverrideState:
|
|
|
139
139
|
if virtual_machine_id is not None:
|
|
140
140
|
pulumi.set(__self__, "virtual_machine_id", virtual_machine_id)
|
|
141
141
|
|
|
142
|
-
@property
|
|
142
|
+
@_builtins.property
|
|
143
143
|
@pulumi.getter(name="computeClusterId")
|
|
144
|
-
def compute_cluster_id(self) -> Optional[pulumi.Input[str]]:
|
|
144
|
+
def compute_cluster_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
145
145
|
"""
|
|
146
146
|
The managed object reference
|
|
147
147
|
ID of the cluster to put the override in. Forces a new
|
|
@@ -150,12 +150,12 @@ class _DrsVmOverrideState:
|
|
|
150
150
|
return pulumi.get(self, "compute_cluster_id")
|
|
151
151
|
|
|
152
152
|
@compute_cluster_id.setter
|
|
153
|
-
def compute_cluster_id(self, value: Optional[pulumi.Input[str]]):
|
|
153
|
+
def compute_cluster_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
154
154
|
pulumi.set(self, "compute_cluster_id", value)
|
|
155
155
|
|
|
156
|
-
@property
|
|
156
|
+
@_builtins.property
|
|
157
157
|
@pulumi.getter(name="drsAutomationLevel")
|
|
158
|
-
def drs_automation_level(self) -> Optional[pulumi.Input[str]]:
|
|
158
|
+
def drs_automation_level(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
159
159
|
"""
|
|
160
160
|
Overrides the automation level for this virtual
|
|
161
161
|
machine in the cluster. Can be one of `manual`, `partiallyAutomated`, or
|
|
@@ -168,12 +168,12 @@ class _DrsVmOverrideState:
|
|
|
168
168
|
return pulumi.get(self, "drs_automation_level")
|
|
169
169
|
|
|
170
170
|
@drs_automation_level.setter
|
|
171
|
-
def drs_automation_level(self, value: Optional[pulumi.Input[str]]):
|
|
171
|
+
def drs_automation_level(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
172
172
|
pulumi.set(self, "drs_automation_level", value)
|
|
173
173
|
|
|
174
|
-
@property
|
|
174
|
+
@_builtins.property
|
|
175
175
|
@pulumi.getter(name="drsEnabled")
|
|
176
|
-
def drs_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
176
|
+
def drs_enabled(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
177
177
|
"""
|
|
178
178
|
Overrides the default DRS setting for this virtual
|
|
179
179
|
machine. Can be either `true` or `false`. Default: `false`.
|
|
@@ -181,12 +181,12 @@ class _DrsVmOverrideState:
|
|
|
181
181
|
return pulumi.get(self, "drs_enabled")
|
|
182
182
|
|
|
183
183
|
@drs_enabled.setter
|
|
184
|
-
def drs_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
184
|
+
def drs_enabled(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
185
185
|
pulumi.set(self, "drs_enabled", value)
|
|
186
186
|
|
|
187
|
-
@property
|
|
187
|
+
@_builtins.property
|
|
188
188
|
@pulumi.getter(name="virtualMachineId")
|
|
189
|
-
def virtual_machine_id(self) -> Optional[pulumi.Input[str]]:
|
|
189
|
+
def virtual_machine_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
190
190
|
"""
|
|
191
191
|
The UUID of the virtual machine to create
|
|
192
192
|
the override for. Forces a new resource if changed.
|
|
@@ -194,19 +194,20 @@ class _DrsVmOverrideState:
|
|
|
194
194
|
return pulumi.get(self, "virtual_machine_id")
|
|
195
195
|
|
|
196
196
|
@virtual_machine_id.setter
|
|
197
|
-
def virtual_machine_id(self, value: Optional[pulumi.Input[str]]):
|
|
197
|
+
def virtual_machine_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
198
198
|
pulumi.set(self, "virtual_machine_id", value)
|
|
199
199
|
|
|
200
200
|
|
|
201
|
+
@pulumi.type_token("vsphere:index/drsVmOverride:DrsVmOverride")
|
|
201
202
|
class DrsVmOverride(pulumi.CustomResource):
|
|
202
203
|
@overload
|
|
203
204
|
def __init__(__self__,
|
|
204
205
|
resource_name: str,
|
|
205
206
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
206
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
207
|
-
drs_automation_level: Optional[pulumi.Input[str]] = None,
|
|
208
|
-
drs_enabled: Optional[pulumi.Input[bool]] = None,
|
|
209
|
-
virtual_machine_id: Optional[pulumi.Input[str]] = None,
|
|
207
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
208
|
+
drs_automation_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
209
|
+
drs_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
210
|
+
virtual_machine_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
210
211
|
__props__=None):
|
|
211
212
|
"""
|
|
212
213
|
The `DrsVmOverride` resource can be used to add a DRS override to a
|
|
@@ -279,6 +280,8 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
279
280
|
|
|
280
281
|
is below:
|
|
281
282
|
|
|
283
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
284
|
+
|
|
282
285
|
```sh
|
|
283
286
|
$ pulumi import vsphere:index/drsVmOverride:DrsVmOverride drs_vm_override \\
|
|
284
287
|
```
|
|
@@ -289,19 +292,19 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
289
292
|
|
|
290
293
|
:param str resource_name: The name of the resource.
|
|
291
294
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
292
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
295
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
|
|
293
296
|
ID of the cluster to put the override in. Forces a new
|
|
294
297
|
resource if changed.
|
|
295
|
-
:param pulumi.Input[str] drs_automation_level: Overrides the automation level for this virtual
|
|
298
|
+
:param pulumi.Input[_builtins.str] drs_automation_level: Overrides the automation level for this virtual
|
|
296
299
|
machine in the cluster. Can be one of `manual`, `partiallyAutomated`, or
|
|
297
300
|
`fullyAutomated`. Default: `manual`.
|
|
298
301
|
|
|
299
302
|
> **NOTE:** Using this resource _always_ implies an override, even if one of
|
|
300
303
|
`drs_enabled` or `drs_automation_level` is omitted. Take note of the defaults
|
|
301
304
|
for both options.
|
|
302
|
-
:param pulumi.Input[bool] drs_enabled: Overrides the default DRS setting for this virtual
|
|
305
|
+
:param pulumi.Input[_builtins.bool] drs_enabled: Overrides the default DRS setting for this virtual
|
|
303
306
|
machine. Can be either `true` or `false`. Default: `false`.
|
|
304
|
-
:param pulumi.Input[str] virtual_machine_id: The UUID of the virtual machine to create
|
|
307
|
+
:param pulumi.Input[_builtins.str] virtual_machine_id: The UUID of the virtual machine to create
|
|
305
308
|
the override for. Forces a new resource if changed.
|
|
306
309
|
"""
|
|
307
310
|
...
|
|
@@ -381,6 +384,8 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
381
384
|
|
|
382
385
|
is below:
|
|
383
386
|
|
|
387
|
+
[docs-import]: https://developer.hashicorp.com/terraform/cli/import
|
|
388
|
+
|
|
384
389
|
```sh
|
|
385
390
|
$ pulumi import vsphere:index/drsVmOverride:DrsVmOverride drs_vm_override \\
|
|
386
391
|
```
|
|
@@ -404,10 +409,10 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
404
409
|
def _internal_init(__self__,
|
|
405
410
|
resource_name: str,
|
|
406
411
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
407
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
408
|
-
drs_automation_level: Optional[pulumi.Input[str]] = None,
|
|
409
|
-
drs_enabled: Optional[pulumi.Input[bool]] = None,
|
|
410
|
-
virtual_machine_id: Optional[pulumi.Input[str]] = None,
|
|
412
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
413
|
+
drs_automation_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
414
|
+
drs_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
415
|
+
virtual_machine_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
411
416
|
__props__=None):
|
|
412
417
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
413
418
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -435,10 +440,10 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
435
440
|
def get(resource_name: str,
|
|
436
441
|
id: pulumi.Input[str],
|
|
437
442
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
438
|
-
compute_cluster_id: Optional[pulumi.Input[str]] = None,
|
|
439
|
-
drs_automation_level: Optional[pulumi.Input[str]] = None,
|
|
440
|
-
drs_enabled: Optional[pulumi.Input[bool]] = None,
|
|
441
|
-
virtual_machine_id: Optional[pulumi.Input[str]] = None) -> 'DrsVmOverride':
|
|
443
|
+
compute_cluster_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
444
|
+
drs_automation_level: Optional[pulumi.Input[_builtins.str]] = None,
|
|
445
|
+
drs_enabled: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
446
|
+
virtual_machine_id: Optional[pulumi.Input[_builtins.str]] = None) -> 'DrsVmOverride':
|
|
442
447
|
"""
|
|
443
448
|
Get an existing DrsVmOverride resource's state with the given name, id, and optional extra
|
|
444
449
|
properties used to qualify the lookup.
|
|
@@ -446,19 +451,19 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
446
451
|
:param str resource_name: The unique name of the resulting resource.
|
|
447
452
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
448
453
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
449
|
-
:param pulumi.Input[str] compute_cluster_id: The managed object reference
|
|
454
|
+
:param pulumi.Input[_builtins.str] compute_cluster_id: The managed object reference
|
|
450
455
|
ID of the cluster to put the override in. Forces a new
|
|
451
456
|
resource if changed.
|
|
452
|
-
:param pulumi.Input[str] drs_automation_level: Overrides the automation level for this virtual
|
|
457
|
+
:param pulumi.Input[_builtins.str] drs_automation_level: Overrides the automation level for this virtual
|
|
453
458
|
machine in the cluster. Can be one of `manual`, `partiallyAutomated`, or
|
|
454
459
|
`fullyAutomated`. Default: `manual`.
|
|
455
460
|
|
|
456
461
|
> **NOTE:** Using this resource _always_ implies an override, even if one of
|
|
457
462
|
`drs_enabled` or `drs_automation_level` is omitted. Take note of the defaults
|
|
458
463
|
for both options.
|
|
459
|
-
:param pulumi.Input[bool] drs_enabled: Overrides the default DRS setting for this virtual
|
|
464
|
+
:param pulumi.Input[_builtins.bool] drs_enabled: Overrides the default DRS setting for this virtual
|
|
460
465
|
machine. Can be either `true` or `false`. Default: `false`.
|
|
461
|
-
:param pulumi.Input[str] virtual_machine_id: The UUID of the virtual machine to create
|
|
466
|
+
:param pulumi.Input[_builtins.str] virtual_machine_id: The UUID of the virtual machine to create
|
|
462
467
|
the override for. Forces a new resource if changed.
|
|
463
468
|
"""
|
|
464
469
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -471,9 +476,9 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
471
476
|
__props__.__dict__["virtual_machine_id"] = virtual_machine_id
|
|
472
477
|
return DrsVmOverride(resource_name, opts=opts, __props__=__props__)
|
|
473
478
|
|
|
474
|
-
@property
|
|
479
|
+
@_builtins.property
|
|
475
480
|
@pulumi.getter(name="computeClusterId")
|
|
476
|
-
def compute_cluster_id(self) -> pulumi.Output[str]:
|
|
481
|
+
def compute_cluster_id(self) -> pulumi.Output[_builtins.str]:
|
|
477
482
|
"""
|
|
478
483
|
The managed object reference
|
|
479
484
|
ID of the cluster to put the override in. Forces a new
|
|
@@ -481,9 +486,9 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
481
486
|
"""
|
|
482
487
|
return pulumi.get(self, "compute_cluster_id")
|
|
483
488
|
|
|
484
|
-
@property
|
|
489
|
+
@_builtins.property
|
|
485
490
|
@pulumi.getter(name="drsAutomationLevel")
|
|
486
|
-
def drs_automation_level(self) -> pulumi.Output[Optional[str]]:
|
|
491
|
+
def drs_automation_level(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
487
492
|
"""
|
|
488
493
|
Overrides the automation level for this virtual
|
|
489
494
|
machine in the cluster. Can be one of `manual`, `partiallyAutomated`, or
|
|
@@ -495,18 +500,18 @@ class DrsVmOverride(pulumi.CustomResource):
|
|
|
495
500
|
"""
|
|
496
501
|
return pulumi.get(self, "drs_automation_level")
|
|
497
502
|
|
|
498
|
-
@property
|
|
503
|
+
@_builtins.property
|
|
499
504
|
@pulumi.getter(name="drsEnabled")
|
|
500
|
-
def drs_enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
505
|
+
def drs_enabled(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
501
506
|
"""
|
|
502
507
|
Overrides the default DRS setting for this virtual
|
|
503
508
|
machine. Can be either `true` or `false`. Default: `false`.
|
|
504
509
|
"""
|
|
505
510
|
return pulumi.get(self, "drs_enabled")
|
|
506
511
|
|
|
507
|
-
@property
|
|
512
|
+
@_builtins.property
|
|
508
513
|
@pulumi.getter(name="virtualMachineId")
|
|
509
|
-
def virtual_machine_id(self) -> pulumi.Output[str]:
|
|
514
|
+
def virtual_machine_id(self) -> pulumi.Output[_builtins.str]:
|
|
510
515
|
"""
|
|
511
516
|
The UUID of the virtual machine to create
|
|
512
517
|
the override for. Forces a new resource if changed.
|
|
@@ -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
|
|
@@ -21,14 +21,14 @@ __all__ = ['EntityPermissionsArgs', 'EntityPermissions']
|
|
|
21
21
|
@pulumi.input_type
|
|
22
22
|
class EntityPermissionsArgs:
|
|
23
23
|
def __init__(__self__, *,
|
|
24
|
-
entity_id: pulumi.Input[str],
|
|
25
|
-
entity_type: pulumi.Input[str],
|
|
24
|
+
entity_id: pulumi.Input[_builtins.str],
|
|
25
|
+
entity_type: pulumi.Input[_builtins.str],
|
|
26
26
|
permissions: pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]):
|
|
27
27
|
"""
|
|
28
28
|
The set of arguments for constructing a EntityPermissions resource.
|
|
29
|
-
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
29
|
+
:param pulumi.Input[_builtins.str] entity_id: The managed object id (uuid for some entities) on
|
|
30
30
|
which permissions are to be created.
|
|
31
|
-
:param pulumi.Input[str] entity_type: The managed object type, types can be found in the
|
|
31
|
+
:param pulumi.Input[_builtins.str] entity_type: The managed object type, types can be found in the
|
|
32
32
|
managed object type section
|
|
33
33
|
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
34
34
|
:param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep
|
|
@@ -39,9 +39,9 @@ class EntityPermissionsArgs:
|
|
|
39
39
|
pulumi.set(__self__, "entity_type", entity_type)
|
|
40
40
|
pulumi.set(__self__, "permissions", permissions)
|
|
41
41
|
|
|
42
|
-
@property
|
|
42
|
+
@_builtins.property
|
|
43
43
|
@pulumi.getter(name="entityId")
|
|
44
|
-
def entity_id(self) -> pulumi.Input[str]:
|
|
44
|
+
def entity_id(self) -> pulumi.Input[_builtins.str]:
|
|
45
45
|
"""
|
|
46
46
|
The managed object id (uuid for some entities) on
|
|
47
47
|
which permissions are to be created.
|
|
@@ -49,12 +49,12 @@ class EntityPermissionsArgs:
|
|
|
49
49
|
return pulumi.get(self, "entity_id")
|
|
50
50
|
|
|
51
51
|
@entity_id.setter
|
|
52
|
-
def entity_id(self, value: pulumi.Input[str]):
|
|
52
|
+
def entity_id(self, value: pulumi.Input[_builtins.str]):
|
|
53
53
|
pulumi.set(self, "entity_id", value)
|
|
54
54
|
|
|
55
|
-
@property
|
|
55
|
+
@_builtins.property
|
|
56
56
|
@pulumi.getter(name="entityType")
|
|
57
|
-
def entity_type(self) -> pulumi.Input[str]:
|
|
57
|
+
def entity_type(self) -> pulumi.Input[_builtins.str]:
|
|
58
58
|
"""
|
|
59
59
|
The managed object type, types can be found in the
|
|
60
60
|
managed object type section
|
|
@@ -63,10 +63,10 @@ class EntityPermissionsArgs:
|
|
|
63
63
|
return pulumi.get(self, "entity_type")
|
|
64
64
|
|
|
65
65
|
@entity_type.setter
|
|
66
|
-
def entity_type(self, value: pulumi.Input[str]):
|
|
66
|
+
def entity_type(self, value: pulumi.Input[_builtins.str]):
|
|
67
67
|
pulumi.set(self, "entity_type", value)
|
|
68
68
|
|
|
69
|
-
@property
|
|
69
|
+
@_builtins.property
|
|
70
70
|
@pulumi.getter
|
|
71
71
|
def permissions(self) -> pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]:
|
|
72
72
|
"""
|
|
@@ -84,14 +84,14 @@ class EntityPermissionsArgs:
|
|
|
84
84
|
@pulumi.input_type
|
|
85
85
|
class _EntityPermissionsState:
|
|
86
86
|
def __init__(__self__, *,
|
|
87
|
-
entity_id: Optional[pulumi.Input[str]] = None,
|
|
88
|
-
entity_type: Optional[pulumi.Input[str]] = None,
|
|
87
|
+
entity_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
88
|
+
entity_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
89
89
|
permissions: Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]] = None):
|
|
90
90
|
"""
|
|
91
91
|
Input properties used for looking up and filtering EntityPermissions resources.
|
|
92
|
-
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
92
|
+
:param pulumi.Input[_builtins.str] entity_id: The managed object id (uuid for some entities) on
|
|
93
93
|
which permissions are to be created.
|
|
94
|
-
:param pulumi.Input[str] entity_type: The managed object type, types can be found in the
|
|
94
|
+
:param pulumi.Input[_builtins.str] entity_type: The managed object type, types can be found in the
|
|
95
95
|
managed object type section
|
|
96
96
|
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
97
97
|
:param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep
|
|
@@ -105,9 +105,9 @@ class _EntityPermissionsState:
|
|
|
105
105
|
if permissions is not None:
|
|
106
106
|
pulumi.set(__self__, "permissions", permissions)
|
|
107
107
|
|
|
108
|
-
@property
|
|
108
|
+
@_builtins.property
|
|
109
109
|
@pulumi.getter(name="entityId")
|
|
110
|
-
def entity_id(self) -> Optional[pulumi.Input[str]]:
|
|
110
|
+
def entity_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
111
111
|
"""
|
|
112
112
|
The managed object id (uuid for some entities) on
|
|
113
113
|
which permissions are to be created.
|
|
@@ -115,12 +115,12 @@ class _EntityPermissionsState:
|
|
|
115
115
|
return pulumi.get(self, "entity_id")
|
|
116
116
|
|
|
117
117
|
@entity_id.setter
|
|
118
|
-
def entity_id(self, value: Optional[pulumi.Input[str]]):
|
|
118
|
+
def entity_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
119
119
|
pulumi.set(self, "entity_id", value)
|
|
120
120
|
|
|
121
|
-
@property
|
|
121
|
+
@_builtins.property
|
|
122
122
|
@pulumi.getter(name="entityType")
|
|
123
|
-
def entity_type(self) -> Optional[pulumi.Input[str]]:
|
|
123
|
+
def entity_type(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
124
124
|
"""
|
|
125
125
|
The managed object type, types can be found in the
|
|
126
126
|
managed object type section
|
|
@@ -129,10 +129,10 @@ class _EntityPermissionsState:
|
|
|
129
129
|
return pulumi.get(self, "entity_type")
|
|
130
130
|
|
|
131
131
|
@entity_type.setter
|
|
132
|
-
def entity_type(self, value: Optional[pulumi.Input[str]]):
|
|
132
|
+
def entity_type(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
133
133
|
pulumi.set(self, "entity_type", value)
|
|
134
134
|
|
|
135
|
-
@property
|
|
135
|
+
@_builtins.property
|
|
136
136
|
@pulumi.getter
|
|
137
137
|
def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]]:
|
|
138
138
|
"""
|
|
@@ -147,22 +147,23 @@ class _EntityPermissionsState:
|
|
|
147
147
|
pulumi.set(self, "permissions", value)
|
|
148
148
|
|
|
149
149
|
|
|
150
|
+
@pulumi.type_token("vsphere:index/entityPermissions:EntityPermissions")
|
|
150
151
|
class EntityPermissions(pulumi.CustomResource):
|
|
151
152
|
@overload
|
|
152
153
|
def __init__(__self__,
|
|
153
154
|
resource_name: str,
|
|
154
155
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
155
|
-
entity_id: Optional[pulumi.Input[str]] = None,
|
|
156
|
-
entity_type: Optional[pulumi.Input[str]] = None,
|
|
156
|
+
entity_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
157
|
+
entity_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
157
158
|
permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None,
|
|
158
159
|
__props__=None):
|
|
159
160
|
"""
|
|
160
161
|
Create a EntityPermissions resource with the given unique name, props, and options.
|
|
161
162
|
:param str resource_name: The name of the resource.
|
|
162
163
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
163
|
-
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
164
|
+
:param pulumi.Input[_builtins.str] entity_id: The managed object id (uuid for some entities) on
|
|
164
165
|
which permissions are to be created.
|
|
165
|
-
:param pulumi.Input[str] entity_type: The managed object type, types can be found in the
|
|
166
|
+
:param pulumi.Input[_builtins.str] entity_type: The managed object type, types can be found in the
|
|
166
167
|
managed object type section
|
|
167
168
|
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
168
169
|
:param pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]] permissions: The permissions to be given on this entity. Keep
|
|
@@ -192,8 +193,8 @@ class EntityPermissions(pulumi.CustomResource):
|
|
|
192
193
|
def _internal_init(__self__,
|
|
193
194
|
resource_name: str,
|
|
194
195
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
195
|
-
entity_id: Optional[pulumi.Input[str]] = None,
|
|
196
|
-
entity_type: Optional[pulumi.Input[str]] = None,
|
|
196
|
+
entity_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
197
|
+
entity_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
197
198
|
permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None,
|
|
198
199
|
__props__=None):
|
|
199
200
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -223,8 +224,8 @@ class EntityPermissions(pulumi.CustomResource):
|
|
|
223
224
|
def get(resource_name: str,
|
|
224
225
|
id: pulumi.Input[str],
|
|
225
226
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
226
|
-
entity_id: Optional[pulumi.Input[str]] = None,
|
|
227
|
-
entity_type: Optional[pulumi.Input[str]] = None,
|
|
227
|
+
entity_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
228
|
+
entity_type: Optional[pulumi.Input[_builtins.str]] = None,
|
|
228
229
|
permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None) -> 'EntityPermissions':
|
|
229
230
|
"""
|
|
230
231
|
Get an existing EntityPermissions resource's state with the given name, id, and optional extra
|
|
@@ -233,9 +234,9 @@ class EntityPermissions(pulumi.CustomResource):
|
|
|
233
234
|
:param str resource_name: The unique name of the resulting resource.
|
|
234
235
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
235
236
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
236
|
-
:param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on
|
|
237
|
+
:param pulumi.Input[_builtins.str] entity_id: The managed object id (uuid for some entities) on
|
|
237
238
|
which permissions are to be created.
|
|
238
|
-
:param pulumi.Input[str] entity_type: The managed object type, types can be found in the
|
|
239
|
+
:param pulumi.Input[_builtins.str] entity_type: The managed object type, types can be found in the
|
|
239
240
|
managed object type section
|
|
240
241
|
[here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
|
|
241
242
|
:param pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]] permissions: The permissions to be given on this entity. Keep
|
|
@@ -251,18 +252,18 @@ class EntityPermissions(pulumi.CustomResource):
|
|
|
251
252
|
__props__.__dict__["permissions"] = permissions
|
|
252
253
|
return EntityPermissions(resource_name, opts=opts, __props__=__props__)
|
|
253
254
|
|
|
254
|
-
@property
|
|
255
|
+
@_builtins.property
|
|
255
256
|
@pulumi.getter(name="entityId")
|
|
256
|
-
def entity_id(self) -> pulumi.Output[str]:
|
|
257
|
+
def entity_id(self) -> pulumi.Output[_builtins.str]:
|
|
257
258
|
"""
|
|
258
259
|
The managed object id (uuid for some entities) on
|
|
259
260
|
which permissions are to be created.
|
|
260
261
|
"""
|
|
261
262
|
return pulumi.get(self, "entity_id")
|
|
262
263
|
|
|
263
|
-
@property
|
|
264
|
+
@_builtins.property
|
|
264
265
|
@pulumi.getter(name="entityType")
|
|
265
|
-
def entity_type(self) -> pulumi.Output[str]:
|
|
266
|
+
def entity_type(self) -> pulumi.Output[_builtins.str]:
|
|
266
267
|
"""
|
|
267
268
|
The managed object type, types can be found in the
|
|
268
269
|
managed object type section
|
|
@@ -270,7 +271,7 @@ class EntityPermissions(pulumi.CustomResource):
|
|
|
270
271
|
"""
|
|
271
272
|
return pulumi.get(self, "entity_type")
|
|
272
273
|
|
|
273
|
-
@property
|
|
274
|
+
@_builtins.property
|
|
274
275
|
@pulumi.getter
|
|
275
276
|
def permissions(self) -> pulumi.Output[Sequence['outputs.EntityPermissionsPermission']]:
|
|
276
277
|
"""
|