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.

Files changed (89) hide show
  1. pulumi_vsphere/__init__.py +51 -1
  2. pulumi_vsphere/_inputs.py +2568 -1025
  3. pulumi_vsphere/_utilities.py +50 -10
  4. pulumi_vsphere/compute_cluster.py +1564 -2373
  5. pulumi_vsphere/compute_cluster_host_group.py +191 -55
  6. pulumi_vsphere/compute_cluster_vm_affinity_rule.py +157 -113
  7. pulumi_vsphere/compute_cluster_vm_anti_affinity_rule.py +133 -89
  8. pulumi_vsphere/compute_cluster_vm_dependency_rule.py +314 -106
  9. pulumi_vsphere/compute_cluster_vm_group.py +256 -55
  10. pulumi_vsphere/compute_cluster_vm_host_rule.py +323 -123
  11. pulumi_vsphere/config/__init__.py +2 -1
  12. pulumi_vsphere/config/__init__.pyi +7 -2
  13. pulumi_vsphere/config/vars.py +20 -15
  14. pulumi_vsphere/configuration_profile.py +286 -0
  15. pulumi_vsphere/content_library.py +177 -71
  16. pulumi_vsphere/content_library_item.py +252 -106
  17. pulumi_vsphere/custom_attribute.py +118 -38
  18. pulumi_vsphere/datacenter.py +128 -107
  19. pulumi_vsphere/datastore_cluster.py +636 -731
  20. pulumi_vsphere/datastore_cluster_vm_anti_affinity_rule.py +251 -89
  21. pulumi_vsphere/distributed_port_group.py +1129 -967
  22. pulumi_vsphere/distributed_virtual_switch.py +1971 -2239
  23. pulumi_vsphere/distributed_virtual_switch_pvlan_mapping.py +294 -0
  24. pulumi_vsphere/dpm_host_override.py +222 -72
  25. pulumi_vsphere/drs_vm_override.py +236 -72
  26. pulumi_vsphere/entity_permissions.py +96 -69
  27. pulumi_vsphere/file.py +173 -178
  28. pulumi_vsphere/folder.py +236 -113
  29. pulumi_vsphere/get_compute_cluster.py +34 -23
  30. pulumi_vsphere/get_compute_cluster_host_group.py +52 -41
  31. pulumi_vsphere/get_configuration_profile.py +145 -0
  32. pulumi_vsphere/get_content_library.py +33 -21
  33. pulumi_vsphere/get_content_library_item.py +47 -31
  34. pulumi_vsphere/get_custom_attribute.py +26 -17
  35. pulumi_vsphere/get_datacenter.py +40 -18
  36. pulumi_vsphere/get_datastore.py +60 -24
  37. pulumi_vsphere/get_datastore_cluster.py +47 -22
  38. pulumi_vsphere/get_datastore_stats.py +204 -0
  39. pulumi_vsphere/get_distributed_virtual_switch.py +36 -23
  40. pulumi_vsphere/get_dynamic.py +55 -45
  41. pulumi_vsphere/get_folder.py +163 -25
  42. pulumi_vsphere/get_guest_os_customization.py +68 -37
  43. pulumi_vsphere/get_host.py +34 -23
  44. pulumi_vsphere/get_host_base_images.py +104 -0
  45. pulumi_vsphere/get_host_pci_device.py +78 -35
  46. pulumi_vsphere/get_host_thumbprint.py +58 -38
  47. pulumi_vsphere/get_host_vgpu_profile.py +195 -0
  48. pulumi_vsphere/get_license.py +44 -28
  49. pulumi_vsphere/get_network.py +157 -46
  50. pulumi_vsphere/get_ovf_vm_template.py +184 -301
  51. pulumi_vsphere/get_policy.py +23 -15
  52. pulumi_vsphere/get_resource_pool.py +107 -40
  53. pulumi_vsphere/get_role.py +49 -35
  54. pulumi_vsphere/get_tag.py +34 -23
  55. pulumi_vsphere/get_tag_category.py +32 -21
  56. pulumi_vsphere/get_vapp_container.py +31 -21
  57. pulumi_vsphere/get_virtual_machine.py +499 -287
  58. pulumi_vsphere/get_vmfs_disks.py +42 -29
  59. pulumi_vsphere/guest_os_customization.py +135 -79
  60. pulumi_vsphere/ha_vm_override.py +470 -577
  61. pulumi_vsphere/host.py +515 -262
  62. pulumi_vsphere/host_port_group.py +352 -355
  63. pulumi_vsphere/host_virtual_switch.py +580 -580
  64. pulumi_vsphere/license.py +110 -92
  65. pulumi_vsphere/nas_datastore.py +398 -270
  66. pulumi_vsphere/offline_software_depot.py +190 -0
  67. pulumi_vsphere/outputs.py +1582 -1027
  68. pulumi_vsphere/provider.py +172 -152
  69. pulumi_vsphere/pulumi-plugin.json +2 -1
  70. pulumi_vsphere/resource_pool.py +357 -273
  71. pulumi_vsphere/role.py +79 -47
  72. pulumi_vsphere/storage_drs_vm_override.py +225 -89
  73. pulumi_vsphere/supervisor.py +1064 -0
  74. pulumi_vsphere/tag.py +217 -55
  75. pulumi_vsphere/tag_category.py +158 -72
  76. pulumi_vsphere/vapp_container.py +425 -259
  77. pulumi_vsphere/vapp_entity.py +324 -174
  78. pulumi_vsphere/virtual_disk.py +245 -153
  79. pulumi_vsphere/virtual_machine.py +1696 -1836
  80. pulumi_vsphere/virtual_machine_class.py +448 -0
  81. pulumi_vsphere/virtual_machine_snapshot.py +137 -131
  82. pulumi_vsphere/vm_storage_policy.py +160 -154
  83. pulumi_vsphere/vmfs_datastore.py +460 -186
  84. pulumi_vsphere/vnic.py +249 -231
  85. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/METADATA +7 -6
  86. pulumi_vsphere-4.17.0a1763710194.dist-info/RECORD +89 -0
  87. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/WHEEL +1 -1
  88. pulumi_vsphere-4.10.0a1709017641.dist-info/RECORD +0 -80
  89. {pulumi_vsphere-4.10.0a1709017641.dist-info → pulumi_vsphere-4.17.0a1763710194.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,294 @@
1
+ # coding=utf-8
2
+ # *** WARNING: this file was generated by pulumi-language-python. ***
3
+ # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+
5
+ import builtins as _builtins
6
+ import warnings
7
+ import sys
8
+ import pulumi
9
+ import pulumi.runtime
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
15
+ from . import _utilities
16
+
17
+ __all__ = ['DistributedVirtualSwitchPvlanMappingInitArgs', 'DistributedVirtualSwitchPvlanMapping']
18
+
19
+ @pulumi.input_type
20
+ class DistributedVirtualSwitchPvlanMappingInitArgs:
21
+ def __init__(__self__, *,
22
+ distributed_virtual_switch_id: pulumi.Input[_builtins.str],
23
+ primary_vlan_id: pulumi.Input[_builtins.int],
24
+ pvlan_type: pulumi.Input[_builtins.str],
25
+ secondary_vlan_id: pulumi.Input[_builtins.int]):
26
+ """
27
+ The set of arguments for constructing a DistributedVirtualSwitchPvlanMapping resource.
28
+ :param pulumi.Input[_builtins.str] distributed_virtual_switch_id: The ID of the distributed virtual switch to attach this mapping to.
29
+ :param pulumi.Input[_builtins.int] primary_vlan_id: The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
30
+ :param pulumi.Input[_builtins.str] pvlan_type: The private VLAN type. Valid values are promiscuous, community and isolated.
31
+ :param pulumi.Input[_builtins.int] secondary_vlan_id: The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
32
+ """
33
+ pulumi.set(__self__, "distributed_virtual_switch_id", distributed_virtual_switch_id)
34
+ pulumi.set(__self__, "primary_vlan_id", primary_vlan_id)
35
+ pulumi.set(__self__, "pvlan_type", pvlan_type)
36
+ pulumi.set(__self__, "secondary_vlan_id", secondary_vlan_id)
37
+
38
+ @_builtins.property
39
+ @pulumi.getter(name="distributedVirtualSwitchId")
40
+ def distributed_virtual_switch_id(self) -> pulumi.Input[_builtins.str]:
41
+ """
42
+ The ID of the distributed virtual switch to attach this mapping to.
43
+ """
44
+ return pulumi.get(self, "distributed_virtual_switch_id")
45
+
46
+ @distributed_virtual_switch_id.setter
47
+ def distributed_virtual_switch_id(self, value: pulumi.Input[_builtins.str]):
48
+ pulumi.set(self, "distributed_virtual_switch_id", value)
49
+
50
+ @_builtins.property
51
+ @pulumi.getter(name="primaryVlanId")
52
+ def primary_vlan_id(self) -> pulumi.Input[_builtins.int]:
53
+ """
54
+ The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
55
+ """
56
+ return pulumi.get(self, "primary_vlan_id")
57
+
58
+ @primary_vlan_id.setter
59
+ def primary_vlan_id(self, value: pulumi.Input[_builtins.int]):
60
+ pulumi.set(self, "primary_vlan_id", value)
61
+
62
+ @_builtins.property
63
+ @pulumi.getter(name="pvlanType")
64
+ def pvlan_type(self) -> pulumi.Input[_builtins.str]:
65
+ """
66
+ The private VLAN type. Valid values are promiscuous, community and isolated.
67
+ """
68
+ return pulumi.get(self, "pvlan_type")
69
+
70
+ @pvlan_type.setter
71
+ def pvlan_type(self, value: pulumi.Input[_builtins.str]):
72
+ pulumi.set(self, "pvlan_type", value)
73
+
74
+ @_builtins.property
75
+ @pulumi.getter(name="secondaryVlanId")
76
+ def secondary_vlan_id(self) -> pulumi.Input[_builtins.int]:
77
+ """
78
+ The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
79
+ """
80
+ return pulumi.get(self, "secondary_vlan_id")
81
+
82
+ @secondary_vlan_id.setter
83
+ def secondary_vlan_id(self, value: pulumi.Input[_builtins.int]):
84
+ pulumi.set(self, "secondary_vlan_id", value)
85
+
86
+
87
+ @pulumi.input_type
88
+ class _DistributedVirtualSwitchPvlanMappingState:
89
+ def __init__(__self__, *,
90
+ distributed_virtual_switch_id: Optional[pulumi.Input[_builtins.str]] = None,
91
+ primary_vlan_id: Optional[pulumi.Input[_builtins.int]] = None,
92
+ pvlan_type: Optional[pulumi.Input[_builtins.str]] = None,
93
+ secondary_vlan_id: Optional[pulumi.Input[_builtins.int]] = None):
94
+ """
95
+ Input properties used for looking up and filtering DistributedVirtualSwitchPvlanMapping resources.
96
+ :param pulumi.Input[_builtins.str] distributed_virtual_switch_id: The ID of the distributed virtual switch to attach this mapping to.
97
+ :param pulumi.Input[_builtins.int] primary_vlan_id: The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
98
+ :param pulumi.Input[_builtins.str] pvlan_type: The private VLAN type. Valid values are promiscuous, community and isolated.
99
+ :param pulumi.Input[_builtins.int] secondary_vlan_id: The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
100
+ """
101
+ if distributed_virtual_switch_id is not None:
102
+ pulumi.set(__self__, "distributed_virtual_switch_id", distributed_virtual_switch_id)
103
+ if primary_vlan_id is not None:
104
+ pulumi.set(__self__, "primary_vlan_id", primary_vlan_id)
105
+ if pvlan_type is not None:
106
+ pulumi.set(__self__, "pvlan_type", pvlan_type)
107
+ if secondary_vlan_id is not None:
108
+ pulumi.set(__self__, "secondary_vlan_id", secondary_vlan_id)
109
+
110
+ @_builtins.property
111
+ @pulumi.getter(name="distributedVirtualSwitchId")
112
+ def distributed_virtual_switch_id(self) -> Optional[pulumi.Input[_builtins.str]]:
113
+ """
114
+ The ID of the distributed virtual switch to attach this mapping to.
115
+ """
116
+ return pulumi.get(self, "distributed_virtual_switch_id")
117
+
118
+ @distributed_virtual_switch_id.setter
119
+ def distributed_virtual_switch_id(self, value: Optional[pulumi.Input[_builtins.str]]):
120
+ pulumi.set(self, "distributed_virtual_switch_id", value)
121
+
122
+ @_builtins.property
123
+ @pulumi.getter(name="primaryVlanId")
124
+ def primary_vlan_id(self) -> Optional[pulumi.Input[_builtins.int]]:
125
+ """
126
+ The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
127
+ """
128
+ return pulumi.get(self, "primary_vlan_id")
129
+
130
+ @primary_vlan_id.setter
131
+ def primary_vlan_id(self, value: Optional[pulumi.Input[_builtins.int]]):
132
+ pulumi.set(self, "primary_vlan_id", value)
133
+
134
+ @_builtins.property
135
+ @pulumi.getter(name="pvlanType")
136
+ def pvlan_type(self) -> Optional[pulumi.Input[_builtins.str]]:
137
+ """
138
+ The private VLAN type. Valid values are promiscuous, community and isolated.
139
+ """
140
+ return pulumi.get(self, "pvlan_type")
141
+
142
+ @pvlan_type.setter
143
+ def pvlan_type(self, value: Optional[pulumi.Input[_builtins.str]]):
144
+ pulumi.set(self, "pvlan_type", value)
145
+
146
+ @_builtins.property
147
+ @pulumi.getter(name="secondaryVlanId")
148
+ def secondary_vlan_id(self) -> Optional[pulumi.Input[_builtins.int]]:
149
+ """
150
+ The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
151
+ """
152
+ return pulumi.get(self, "secondary_vlan_id")
153
+
154
+ @secondary_vlan_id.setter
155
+ def secondary_vlan_id(self, value: Optional[pulumi.Input[_builtins.int]]):
156
+ pulumi.set(self, "secondary_vlan_id", value)
157
+
158
+
159
+ @pulumi.type_token("vsphere:index/distributedVirtualSwitchPvlanMapping:DistributedVirtualSwitchPvlanMapping")
160
+ class DistributedVirtualSwitchPvlanMapping(pulumi.CustomResource):
161
+ @overload
162
+ def __init__(__self__,
163
+ resource_name: str,
164
+ opts: Optional[pulumi.ResourceOptions] = None,
165
+ distributed_virtual_switch_id: Optional[pulumi.Input[_builtins.str]] = None,
166
+ primary_vlan_id: Optional[pulumi.Input[_builtins.int]] = None,
167
+ pvlan_type: Optional[pulumi.Input[_builtins.str]] = None,
168
+ secondary_vlan_id: Optional[pulumi.Input[_builtins.int]] = None,
169
+ __props__=None):
170
+ """
171
+ Create a DistributedVirtualSwitchPvlanMapping resource with the given unique name, props, and options.
172
+ :param str resource_name: The name of the resource.
173
+ :param pulumi.ResourceOptions opts: Options for the resource.
174
+ :param pulumi.Input[_builtins.str] distributed_virtual_switch_id: The ID of the distributed virtual switch to attach this mapping to.
175
+ :param pulumi.Input[_builtins.int] primary_vlan_id: The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
176
+ :param pulumi.Input[_builtins.str] pvlan_type: The private VLAN type. Valid values are promiscuous, community and isolated.
177
+ :param pulumi.Input[_builtins.int] secondary_vlan_id: The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
178
+ """
179
+ ...
180
+ @overload
181
+ def __init__(__self__,
182
+ resource_name: str,
183
+ args: DistributedVirtualSwitchPvlanMappingInitArgs,
184
+ opts: Optional[pulumi.ResourceOptions] = None):
185
+ """
186
+ Create a DistributedVirtualSwitchPvlanMapping resource with the given unique name, props, and options.
187
+ :param str resource_name: The name of the resource.
188
+ :param DistributedVirtualSwitchPvlanMappingInitArgs args: The arguments to use to populate this resource's properties.
189
+ :param pulumi.ResourceOptions opts: Options for the resource.
190
+ """
191
+ ...
192
+ def __init__(__self__, resource_name: str, *args, **kwargs):
193
+ resource_args, opts = _utilities.get_resource_args_opts(DistributedVirtualSwitchPvlanMappingInitArgs, pulumi.ResourceOptions, *args, **kwargs)
194
+ if resource_args is not None:
195
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
196
+ else:
197
+ __self__._internal_init(resource_name, *args, **kwargs)
198
+
199
+ def _internal_init(__self__,
200
+ resource_name: str,
201
+ opts: Optional[pulumi.ResourceOptions] = None,
202
+ distributed_virtual_switch_id: Optional[pulumi.Input[_builtins.str]] = None,
203
+ primary_vlan_id: Optional[pulumi.Input[_builtins.int]] = None,
204
+ pvlan_type: Optional[pulumi.Input[_builtins.str]] = None,
205
+ secondary_vlan_id: Optional[pulumi.Input[_builtins.int]] = None,
206
+ __props__=None):
207
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
208
+ if not isinstance(opts, pulumi.ResourceOptions):
209
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
210
+ if opts.id is None:
211
+ if __props__ is not None:
212
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
213
+ __props__ = DistributedVirtualSwitchPvlanMappingInitArgs.__new__(DistributedVirtualSwitchPvlanMappingInitArgs)
214
+
215
+ if distributed_virtual_switch_id is None and not opts.urn:
216
+ raise TypeError("Missing required property 'distributed_virtual_switch_id'")
217
+ __props__.__dict__["distributed_virtual_switch_id"] = distributed_virtual_switch_id
218
+ if primary_vlan_id is None and not opts.urn:
219
+ raise TypeError("Missing required property 'primary_vlan_id'")
220
+ __props__.__dict__["primary_vlan_id"] = primary_vlan_id
221
+ if pvlan_type is None and not opts.urn:
222
+ raise TypeError("Missing required property 'pvlan_type'")
223
+ __props__.__dict__["pvlan_type"] = pvlan_type
224
+ if secondary_vlan_id is None and not opts.urn:
225
+ raise TypeError("Missing required property 'secondary_vlan_id'")
226
+ __props__.__dict__["secondary_vlan_id"] = secondary_vlan_id
227
+ super(DistributedVirtualSwitchPvlanMapping, __self__).__init__(
228
+ 'vsphere:index/distributedVirtualSwitchPvlanMapping:DistributedVirtualSwitchPvlanMapping',
229
+ resource_name,
230
+ __props__,
231
+ opts)
232
+
233
+ @staticmethod
234
+ def get(resource_name: str,
235
+ id: pulumi.Input[str],
236
+ opts: Optional[pulumi.ResourceOptions] = None,
237
+ distributed_virtual_switch_id: Optional[pulumi.Input[_builtins.str]] = None,
238
+ primary_vlan_id: Optional[pulumi.Input[_builtins.int]] = None,
239
+ pvlan_type: Optional[pulumi.Input[_builtins.str]] = None,
240
+ secondary_vlan_id: Optional[pulumi.Input[_builtins.int]] = None) -> 'DistributedVirtualSwitchPvlanMapping':
241
+ """
242
+ Get an existing DistributedVirtualSwitchPvlanMapping resource's state with the given name, id, and optional extra
243
+ properties used to qualify the lookup.
244
+
245
+ :param str resource_name: The unique name of the resulting resource.
246
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
247
+ :param pulumi.ResourceOptions opts: Options for the resource.
248
+ :param pulumi.Input[_builtins.str] distributed_virtual_switch_id: The ID of the distributed virtual switch to attach this mapping to.
249
+ :param pulumi.Input[_builtins.int] primary_vlan_id: The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
250
+ :param pulumi.Input[_builtins.str] pvlan_type: The private VLAN type. Valid values are promiscuous, community and isolated.
251
+ :param pulumi.Input[_builtins.int] secondary_vlan_id: The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
252
+ """
253
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
254
+
255
+ __props__ = _DistributedVirtualSwitchPvlanMappingState.__new__(_DistributedVirtualSwitchPvlanMappingState)
256
+
257
+ __props__.__dict__["distributed_virtual_switch_id"] = distributed_virtual_switch_id
258
+ __props__.__dict__["primary_vlan_id"] = primary_vlan_id
259
+ __props__.__dict__["pvlan_type"] = pvlan_type
260
+ __props__.__dict__["secondary_vlan_id"] = secondary_vlan_id
261
+ return DistributedVirtualSwitchPvlanMapping(resource_name, opts=opts, __props__=__props__)
262
+
263
+ @_builtins.property
264
+ @pulumi.getter(name="distributedVirtualSwitchId")
265
+ def distributed_virtual_switch_id(self) -> pulumi.Output[_builtins.str]:
266
+ """
267
+ The ID of the distributed virtual switch to attach this mapping to.
268
+ """
269
+ return pulumi.get(self, "distributed_virtual_switch_id")
270
+
271
+ @_builtins.property
272
+ @pulumi.getter(name="primaryVlanId")
273
+ def primary_vlan_id(self) -> pulumi.Output[_builtins.int]:
274
+ """
275
+ The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
276
+ """
277
+ return pulumi.get(self, "primary_vlan_id")
278
+
279
+ @_builtins.property
280
+ @pulumi.getter(name="pvlanType")
281
+ def pvlan_type(self) -> pulumi.Output[_builtins.str]:
282
+ """
283
+ The private VLAN type. Valid values are promiscuous, community and isolated.
284
+ """
285
+ return pulumi.get(self, "pvlan_type")
286
+
287
+ @_builtins.property
288
+ @pulumi.getter(name="secondaryVlanId")
289
+ def secondary_vlan_id(self) -> pulumi.Output[_builtins.int]:
290
+ """
291
+ The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
292
+ """
293
+ return pulumi.get(self, "secondary_vlan_id")
294
+