pulumi-vsphere 4.10.0a1709017641__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 +51 -1
- pulumi_vsphere/_inputs.py +2568 -1025
- pulumi_vsphere/_utilities.py +50 -10
- pulumi_vsphere/compute_cluster.py +1564 -2373
- pulumi_vsphere/compute_cluster_host_group.py +191 -55
- pulumi_vsphere/compute_cluster_vm_affinity_rule.py +157 -113
- pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +133 -89
- pulumi_vsphere/compute_cluster_vm_dependency_rule.py +314 -106
- pulumi_vsphere/compute_cluster_vm_group.py +256 -55
- pulumi_vsphere/compute_cluster_vm_host_rule.py +323 -123
- pulumi_vsphere/config/__init__.py +2 -1
- pulumi_vsphere/config/__init__.pyi +7 -2
- pulumi_vsphere/config/vars.py +20 -15
- pulumi_vsphere/configuration_profile.py +286 -0
- pulumi_vsphere/content_library.py +177 -71
- pulumi_vsphere/content_library_item.py +252 -106
- pulumi_vsphere/custom_attribute.py +118 -38
- pulumi_vsphere/datacenter.py +128 -107
- pulumi_vsphere/datastore_cluster.py +636 -731
- pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +251 -89
- pulumi_vsphere/distributed_port_group.py +1129 -967
- pulumi_vsphere/distributed_virtual_switch.py +1971 -2239
- pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +294 -0
- pulumi_vsphere/dpm_host_override.py +222 -72
- pulumi_vsphere/drs_vm_override.py +236 -72
- pulumi_vsphere/entity_permissions.py +96 -69
- pulumi_vsphere/file.py +173 -178
- pulumi_vsphere/folder.py +236 -113
- pulumi_vsphere/get_compute_cluster.py +34 -23
- pulumi_vsphere/get_compute_cluster_host_group.py +52 -41
- pulumi_vsphere/get_configuration_profile.py +145 -0
- pulumi_vsphere/get_content_library.py +33 -21
- pulumi_vsphere/get_content_library_item.py +47 -31
- pulumi_vsphere/get_custom_attribute.py +26 -17
- pulumi_vsphere/get_datacenter.py +40 -18
- pulumi_vsphere/get_datastore.py +60 -24
- pulumi_vsphere/get_datastore_cluster.py +47 -22
- pulumi_vsphere/get_datastore_stats.py +204 -0
- pulumi_vsphere/get_distributed_virtual_switch.py +36 -23
- pulumi_vsphere/get_dynamic.py +55 -45
- pulumi_vsphere/get_folder.py +163 -25
- pulumi_vsphere/get_guest_os_customization.py +68 -37
- pulumi_vsphere/get_host.py +34 -23
- pulumi_vsphere/get_host_base_images.py +104 -0
- pulumi_vsphere/get_host_pci_device.py +78 -35
- pulumi_vsphere/get_host_thumbprint.py +58 -38
- pulumi_vsphere/get_host_vgpu_profile.py +195 -0
- pulumi_vsphere/get_license.py +44 -28
- pulumi_vsphere/get_network.py +157 -46
- pulumi_vsphere/get_ovf_vm_template.py +184 -301
- pulumi_vsphere/get_policy.py +23 -15
- pulumi_vsphere/get_resource_pool.py +107 -40
- pulumi_vsphere/get_role.py +49 -35
- pulumi_vsphere/get_tag.py +34 -23
- pulumi_vsphere/get_tag_category.py +32 -21
- pulumi_vsphere/get_vapp_container.py +31 -21
- pulumi_vsphere/get_virtual_machine.py +499 -287
- pulumi_vsphere/get_vmfs_disks.py +42 -29
- pulumi_vsphere/guest_os_customization.py +135 -79
- pulumi_vsphere/ha_vm_override.py +470 -577
- pulumi_vsphere/host.py +515 -262
- pulumi_vsphere/host_port_group.py +352 -355
- pulumi_vsphere/host_virtual_switch.py +580 -580
- pulumi_vsphere/license.py +110 -92
- pulumi_vsphere/nas_datastore.py +398 -270
- pulumi_vsphere/offline_software_depot.py +190 -0
- pulumi_vsphere/outputs.py +1582 -1027
- pulumi_vsphere/provider.py +172 -152
- pulumi_vsphere/pulumi-plugin.json +2 -1
- pulumi_vsphere/resource_pool.py +357 -273
- pulumi_vsphere/role.py +79 -47
- pulumi_vsphere/storage_drs_vm_override.py +225 -89
- pulumi_vsphere/supervisor.py +1064 -0
- pulumi_vsphere/tag.py +217 -55
- pulumi_vsphere/tag_category.py +158 -72
- pulumi_vsphere/vapp_container.py +425 -259
- pulumi_vsphere/vapp_entity.py +324 -174
- pulumi_vsphere/virtual_disk.py +245 -153
- pulumi_vsphere/virtual_machine.py +1696 -1836
- pulumi_vsphere/virtual_machine_class.py +448 -0
- pulumi_vsphere/virtual_machine_snapshot.py +137 -131
- pulumi_vsphere/vm_storage_policy.py +160 -154
- pulumi_vsphere/vmfs_datastore.py +460 -186
- pulumi_vsphere/vnic.py +249 -231
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +7 -6
- pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
- pulumi_vsphere-4.10.0a1709017641.dist-info/RECORD +0 -80
- {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
pulumi_vsphere/role.py
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
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
|
+
import sys
|
|
7
8
|
import pulumi
|
|
8
9
|
import pulumi.runtime
|
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
10
15
|
from . import _utilities
|
|
11
16
|
|
|
12
17
|
__all__ = ['RoleArgs', 'Role']
|
|
@@ -14,54 +19,54 @@ __all__ = ['RoleArgs', 'Role']
|
|
|
14
19
|
@pulumi.input_type
|
|
15
20
|
class RoleArgs:
|
|
16
21
|
def __init__(__self__, *,
|
|
17
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
18
|
-
role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
22
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
23
|
+
role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
19
24
|
"""
|
|
20
25
|
The set of arguments for constructing a Role resource.
|
|
21
|
-
:param pulumi.Input[str] name: The name of the role.
|
|
22
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] role_privileges: The privileges to be associated with this role.
|
|
26
|
+
:param pulumi.Input[_builtins.str] name: The name of the role.
|
|
27
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] role_privileges: The privileges to be associated with this role.
|
|
23
28
|
"""
|
|
24
29
|
if name is not None:
|
|
25
30
|
pulumi.set(__self__, "name", name)
|
|
26
31
|
if role_privileges is not None:
|
|
27
32
|
pulumi.set(__self__, "role_privileges", role_privileges)
|
|
28
33
|
|
|
29
|
-
@property
|
|
34
|
+
@_builtins.property
|
|
30
35
|
@pulumi.getter
|
|
31
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
36
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
32
37
|
"""
|
|
33
38
|
The name of the role.
|
|
34
39
|
"""
|
|
35
40
|
return pulumi.get(self, "name")
|
|
36
41
|
|
|
37
42
|
@name.setter
|
|
38
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
43
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
39
44
|
pulumi.set(self, "name", value)
|
|
40
45
|
|
|
41
|
-
@property
|
|
46
|
+
@_builtins.property
|
|
42
47
|
@pulumi.getter(name="rolePrivileges")
|
|
43
|
-
def role_privileges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
48
|
+
def role_privileges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
44
49
|
"""
|
|
45
50
|
The privileges to be associated with this role.
|
|
46
51
|
"""
|
|
47
52
|
return pulumi.get(self, "role_privileges")
|
|
48
53
|
|
|
49
54
|
@role_privileges.setter
|
|
50
|
-
def role_privileges(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
55
|
+
def role_privileges(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
51
56
|
pulumi.set(self, "role_privileges", value)
|
|
52
57
|
|
|
53
58
|
|
|
54
59
|
@pulumi.input_type
|
|
55
60
|
class _RoleState:
|
|
56
61
|
def __init__(__self__, *,
|
|
57
|
-
label: Optional[pulumi.Input[str]] = None,
|
|
58
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
59
|
-
role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
62
|
+
label: Optional[pulumi.Input[_builtins.str]] = None,
|
|
63
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
64
|
+
role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None):
|
|
60
65
|
"""
|
|
61
66
|
Input properties used for looking up and filtering Role resources.
|
|
62
|
-
:param pulumi.Input[str] label: The display label of the role.
|
|
63
|
-
:param pulumi.Input[str] name: The name of the role.
|
|
64
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] role_privileges: The privileges to be associated with this role.
|
|
67
|
+
:param pulumi.Input[_builtins.str] label: The display label of the role.
|
|
68
|
+
:param pulumi.Input[_builtins.str] name: The name of the role.
|
|
69
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] role_privileges: The privileges to be associated with this role.
|
|
65
70
|
"""
|
|
66
71
|
if label is not None:
|
|
67
72
|
pulumi.set(__self__, "label", label)
|
|
@@ -70,57 +75,71 @@ class _RoleState:
|
|
|
70
75
|
if role_privileges is not None:
|
|
71
76
|
pulumi.set(__self__, "role_privileges", role_privileges)
|
|
72
77
|
|
|
73
|
-
@property
|
|
78
|
+
@_builtins.property
|
|
74
79
|
@pulumi.getter
|
|
75
|
-
def label(self) -> Optional[pulumi.Input[str]]:
|
|
80
|
+
def label(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
76
81
|
"""
|
|
77
82
|
The display label of the role.
|
|
78
83
|
"""
|
|
79
84
|
return pulumi.get(self, "label")
|
|
80
85
|
|
|
81
86
|
@label.setter
|
|
82
|
-
def label(self, value: Optional[pulumi.Input[str]]):
|
|
87
|
+
def label(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
83
88
|
pulumi.set(self, "label", value)
|
|
84
89
|
|
|
85
|
-
@property
|
|
90
|
+
@_builtins.property
|
|
86
91
|
@pulumi.getter
|
|
87
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
|
92
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
88
93
|
"""
|
|
89
94
|
The name of the role.
|
|
90
95
|
"""
|
|
91
96
|
return pulumi.get(self, "name")
|
|
92
97
|
|
|
93
98
|
@name.setter
|
|
94
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
|
99
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
95
100
|
pulumi.set(self, "name", value)
|
|
96
101
|
|
|
97
|
-
@property
|
|
102
|
+
@_builtins.property
|
|
98
103
|
@pulumi.getter(name="rolePrivileges")
|
|
99
|
-
def role_privileges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
104
|
+
def role_privileges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]:
|
|
100
105
|
"""
|
|
101
106
|
The privileges to be associated with this role.
|
|
102
107
|
"""
|
|
103
108
|
return pulumi.get(self, "role_privileges")
|
|
104
109
|
|
|
105
110
|
@role_privileges.setter
|
|
106
|
-
def role_privileges(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
111
|
+
def role_privileges(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]]):
|
|
107
112
|
pulumi.set(self, "role_privileges", value)
|
|
108
113
|
|
|
109
114
|
|
|
115
|
+
@pulumi.type_token("vsphere:index/role:Role")
|
|
110
116
|
class Role(pulumi.CustomResource):
|
|
111
117
|
@overload
|
|
112
118
|
def __init__(__self__,
|
|
113
119
|
resource_name: str,
|
|
114
120
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
115
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
116
|
-
role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
121
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
122
|
+
role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
117
123
|
__props__=None):
|
|
118
124
|
"""
|
|
119
|
-
|
|
125
|
+
## Import
|
|
126
|
+
|
|
127
|
+
An existing role can be imported into this resource by supplying the role id. An example is below:
|
|
128
|
+
|
|
129
|
+
```sh
|
|
130
|
+
$ pulumi import vsphere:index/role:Role role1 -709298051
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Use [`vsphere_role` data source][ref-vsphere-role-data-source]
|
|
134
|
+
|
|
135
|
+
to read information about system roles.
|
|
136
|
+
|
|
137
|
+
[ref-vsphere-role-data-source]: /docs/providers/vsphere/d/vsphere_role.html
|
|
138
|
+
|
|
120
139
|
:param str resource_name: The name of the resource.
|
|
121
140
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
122
|
-
:param pulumi.Input[str] name: The name of the role.
|
|
123
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] role_privileges: The privileges to be associated with this role.
|
|
141
|
+
:param pulumi.Input[_builtins.str] name: The name of the role.
|
|
142
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] role_privileges: The privileges to be associated with this role.
|
|
124
143
|
"""
|
|
125
144
|
...
|
|
126
145
|
@overload
|
|
@@ -129,7 +148,20 @@ class Role(pulumi.CustomResource):
|
|
|
129
148
|
args: Optional[RoleArgs] = None,
|
|
130
149
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
131
150
|
"""
|
|
132
|
-
|
|
151
|
+
## Import
|
|
152
|
+
|
|
153
|
+
An existing role can be imported into this resource by supplying the role id. An example is below:
|
|
154
|
+
|
|
155
|
+
```sh
|
|
156
|
+
$ pulumi import vsphere:index/role:Role role1 -709298051
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Use [`vsphere_role` data source][ref-vsphere-role-data-source]
|
|
160
|
+
|
|
161
|
+
to read information about system roles.
|
|
162
|
+
|
|
163
|
+
[ref-vsphere-role-data-source]: /docs/providers/vsphere/d/vsphere_role.html
|
|
164
|
+
|
|
133
165
|
:param str resource_name: The name of the resource.
|
|
134
166
|
:param RoleArgs args: The arguments to use to populate this resource's properties.
|
|
135
167
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
@@ -145,8 +177,8 @@ class Role(pulumi.CustomResource):
|
|
|
145
177
|
def _internal_init(__self__,
|
|
146
178
|
resource_name: str,
|
|
147
179
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
148
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
149
|
-
role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
180
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
181
|
+
role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None,
|
|
150
182
|
__props__=None):
|
|
151
183
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
152
184
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -169,9 +201,9 @@ class Role(pulumi.CustomResource):
|
|
|
169
201
|
def get(resource_name: str,
|
|
170
202
|
id: pulumi.Input[str],
|
|
171
203
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
172
|
-
label: Optional[pulumi.Input[str]] = None,
|
|
173
|
-
name: Optional[pulumi.Input[str]] = None,
|
|
174
|
-
role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None) -> 'Role':
|
|
204
|
+
label: Optional[pulumi.Input[_builtins.str]] = None,
|
|
205
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
206
|
+
role_privileges: Optional[pulumi.Input[Sequence[pulumi.Input[_builtins.str]]]] = None) -> 'Role':
|
|
175
207
|
"""
|
|
176
208
|
Get an existing Role resource's state with the given name, id, and optional extra
|
|
177
209
|
properties used to qualify the lookup.
|
|
@@ -179,9 +211,9 @@ class Role(pulumi.CustomResource):
|
|
|
179
211
|
:param str resource_name: The unique name of the resulting resource.
|
|
180
212
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
181
213
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
182
|
-
:param pulumi.Input[str] label: The display label of the role.
|
|
183
|
-
:param pulumi.Input[str] name: The name of the role.
|
|
184
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] role_privileges: The privileges to be associated with this role.
|
|
214
|
+
:param pulumi.Input[_builtins.str] label: The display label of the role.
|
|
215
|
+
:param pulumi.Input[_builtins.str] name: The name of the role.
|
|
216
|
+
:param pulumi.Input[Sequence[pulumi.Input[_builtins.str]]] role_privileges: The privileges to be associated with this role.
|
|
185
217
|
"""
|
|
186
218
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
187
219
|
|
|
@@ -192,25 +224,25 @@ class Role(pulumi.CustomResource):
|
|
|
192
224
|
__props__.__dict__["role_privileges"] = role_privileges
|
|
193
225
|
return Role(resource_name, opts=opts, __props__=__props__)
|
|
194
226
|
|
|
195
|
-
@property
|
|
227
|
+
@_builtins.property
|
|
196
228
|
@pulumi.getter
|
|
197
|
-
def label(self) -> pulumi.Output[str]:
|
|
229
|
+
def label(self) -> pulumi.Output[_builtins.str]:
|
|
198
230
|
"""
|
|
199
231
|
The display label of the role.
|
|
200
232
|
"""
|
|
201
233
|
return pulumi.get(self, "label")
|
|
202
234
|
|
|
203
|
-
@property
|
|
235
|
+
@_builtins.property
|
|
204
236
|
@pulumi.getter
|
|
205
|
-
def name(self) -> pulumi.Output[str]:
|
|
237
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
206
238
|
"""
|
|
207
239
|
The name of the role.
|
|
208
240
|
"""
|
|
209
241
|
return pulumi.get(self, "name")
|
|
210
242
|
|
|
211
|
-
@property
|
|
243
|
+
@_builtins.property
|
|
212
244
|
@pulumi.getter(name="rolePrivileges")
|
|
213
|
-
def role_privileges(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
245
|
+
def role_privileges(self) -> pulumi.Output[Optional[Sequence[_builtins.str]]]:
|
|
214
246
|
"""
|
|
215
247
|
The privileges to be associated with this role.
|
|
216
248
|
"""
|