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
@@ -1,12 +1,17 @@
1
1
  # coding=utf-8
2
- # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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 copy
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
  from . import outputs
12
17
  from ._inputs import *
@@ -16,52 +21,58 @@ __all__ = ['EntityPermissionsArgs', 'EntityPermissions']
16
21
  @pulumi.input_type
17
22
  class EntityPermissionsArgs:
18
23
  def __init__(__self__, *,
19
- entity_id: pulumi.Input[str],
20
- entity_type: pulumi.Input[str],
24
+ entity_id: pulumi.Input[_builtins.str],
25
+ entity_type: pulumi.Input[_builtins.str],
21
26
  permissions: pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]):
22
27
  """
23
28
  The set of arguments for constructing a EntityPermissions resource.
24
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
25
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
26
- [here](https://developer.vmware.com/apis/968/vsphere).
27
- :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep the permissions sorted
28
- alphabetically on `user_or_group` for a better user experience.
29
+ :param pulumi.Input[_builtins.str] entity_id: The managed object id (uuid for some entities) on
30
+ which permissions are to be created.
31
+ :param pulumi.Input[_builtins.str] entity_type: The managed object type, types can be found in the
32
+ managed object type section
33
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
34
+ :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep
35
+ the permissions sorted alphabetically on `user_or_group` for a better user
36
+ experience.
29
37
  """
30
38
  pulumi.set(__self__, "entity_id", entity_id)
31
39
  pulumi.set(__self__, "entity_type", entity_type)
32
40
  pulumi.set(__self__, "permissions", permissions)
33
41
 
34
- @property
42
+ @_builtins.property
35
43
  @pulumi.getter(name="entityId")
36
- def entity_id(self) -> pulumi.Input[str]:
44
+ def entity_id(self) -> pulumi.Input[_builtins.str]:
37
45
  """
38
- The managed object id (uuid for some entities) on which permissions are to be created.
46
+ The managed object id (uuid for some entities) on
47
+ which permissions are to be created.
39
48
  """
40
49
  return pulumi.get(self, "entity_id")
41
50
 
42
51
  @entity_id.setter
43
- def entity_id(self, value: pulumi.Input[str]):
52
+ def entity_id(self, value: pulumi.Input[_builtins.str]):
44
53
  pulumi.set(self, "entity_id", value)
45
54
 
46
- @property
55
+ @_builtins.property
47
56
  @pulumi.getter(name="entityType")
48
- def entity_type(self) -> pulumi.Input[str]:
57
+ def entity_type(self) -> pulumi.Input[_builtins.str]:
49
58
  """
50
- The managed object type, types can be found in the managed object type section
51
- [here](https://developer.vmware.com/apis/968/vsphere).
59
+ The managed object type, types can be found in the
60
+ managed object type section
61
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
52
62
  """
53
63
  return pulumi.get(self, "entity_type")
54
64
 
55
65
  @entity_type.setter
56
- def entity_type(self, value: pulumi.Input[str]):
66
+ def entity_type(self, value: pulumi.Input[_builtins.str]):
57
67
  pulumi.set(self, "entity_type", value)
58
68
 
59
- @property
69
+ @_builtins.property
60
70
  @pulumi.getter
61
71
  def permissions(self) -> pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]:
62
72
  """
63
- The permissions to be given on this entity. Keep the permissions sorted
64
- alphabetically on `user_or_group` for a better user experience.
73
+ The permissions to be given on this entity. Keep
74
+ the permissions sorted alphabetically on `user_or_group` for a better user
75
+ experience.
65
76
  """
66
77
  return pulumi.get(self, "permissions")
67
78
 
@@ -73,16 +84,19 @@ class EntityPermissionsArgs:
73
84
  @pulumi.input_type
74
85
  class _EntityPermissionsState:
75
86
  def __init__(__self__, *,
76
- entity_id: Optional[pulumi.Input[str]] = None,
77
- 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,
78
89
  permissions: Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]] = None):
79
90
  """
80
91
  Input properties used for looking up and filtering EntityPermissions resources.
81
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
82
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
83
- [here](https://developer.vmware.com/apis/968/vsphere).
84
- :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep the permissions sorted
85
- alphabetically on `user_or_group` for a better user experience.
92
+ :param pulumi.Input[_builtins.str] entity_id: The managed object id (uuid for some entities) on
93
+ which permissions are to be created.
94
+ :param pulumi.Input[_builtins.str] entity_type: The managed object type, types can be found in the
95
+ managed object type section
96
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
97
+ :param pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]] permissions: The permissions to be given on this entity. Keep
98
+ the permissions sorted alphabetically on `user_or_group` for a better user
99
+ experience.
86
100
  """
87
101
  if entity_id is not None:
88
102
  pulumi.set(__self__, "entity_id", entity_id)
@@ -91,37 +105,40 @@ class _EntityPermissionsState:
91
105
  if permissions is not None:
92
106
  pulumi.set(__self__, "permissions", permissions)
93
107
 
94
- @property
108
+ @_builtins.property
95
109
  @pulumi.getter(name="entityId")
96
- def entity_id(self) -> Optional[pulumi.Input[str]]:
110
+ def entity_id(self) -> Optional[pulumi.Input[_builtins.str]]:
97
111
  """
98
- The managed object id (uuid for some entities) on which permissions are to be created.
112
+ The managed object id (uuid for some entities) on
113
+ which permissions are to be created.
99
114
  """
100
115
  return pulumi.get(self, "entity_id")
101
116
 
102
117
  @entity_id.setter
103
- def entity_id(self, value: Optional[pulumi.Input[str]]):
118
+ def entity_id(self, value: Optional[pulumi.Input[_builtins.str]]):
104
119
  pulumi.set(self, "entity_id", value)
105
120
 
106
- @property
121
+ @_builtins.property
107
122
  @pulumi.getter(name="entityType")
108
- def entity_type(self) -> Optional[pulumi.Input[str]]:
123
+ def entity_type(self) -> Optional[pulumi.Input[_builtins.str]]:
109
124
  """
110
- The managed object type, types can be found in the managed object type section
111
- [here](https://developer.vmware.com/apis/968/vsphere).
125
+ The managed object type, types can be found in the
126
+ managed object type section
127
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
112
128
  """
113
129
  return pulumi.get(self, "entity_type")
114
130
 
115
131
  @entity_type.setter
116
- def entity_type(self, value: Optional[pulumi.Input[str]]):
132
+ def entity_type(self, value: Optional[pulumi.Input[_builtins.str]]):
117
133
  pulumi.set(self, "entity_type", value)
118
134
 
119
- @property
135
+ @_builtins.property
120
136
  @pulumi.getter
121
137
  def permissions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['EntityPermissionsPermissionArgs']]]]:
122
138
  """
123
- The permissions to be given on this entity. Keep the permissions sorted
124
- alphabetically on `user_or_group` for a better user experience.
139
+ The permissions to be given on this entity. Keep
140
+ the permissions sorted alphabetically on `user_or_group` for a better user
141
+ experience.
125
142
  """
126
143
  return pulumi.get(self, "permissions")
127
144
 
@@ -130,24 +147,28 @@ class _EntityPermissionsState:
130
147
  pulumi.set(self, "permissions", value)
131
148
 
132
149
 
150
+ @pulumi.type_token("vsphere:index/entityPermissions:EntityPermissions")
133
151
  class EntityPermissions(pulumi.CustomResource):
134
152
  @overload
135
153
  def __init__(__self__,
136
154
  resource_name: str,
137
155
  opts: Optional[pulumi.ResourceOptions] = None,
138
- entity_id: Optional[pulumi.Input[str]] = None,
139
- entity_type: Optional[pulumi.Input[str]] = None,
140
- permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]]] = None,
156
+ entity_id: Optional[pulumi.Input[_builtins.str]] = None,
157
+ entity_type: Optional[pulumi.Input[_builtins.str]] = None,
158
+ permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None,
141
159
  __props__=None):
142
160
  """
143
161
  Create a EntityPermissions resource with the given unique name, props, and options.
144
162
  :param str resource_name: The name of the resource.
145
163
  :param pulumi.ResourceOptions opts: Options for the resource.
146
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
147
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
148
- [here](https://developer.vmware.com/apis/968/vsphere).
149
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]] permissions: The permissions to be given on this entity. Keep the permissions sorted
150
- alphabetically on `user_or_group` for a better user experience.
164
+ :param pulumi.Input[_builtins.str] entity_id: The managed object id (uuid for some entities) on
165
+ which permissions are to be created.
166
+ :param pulumi.Input[_builtins.str] entity_type: The managed object type, types can be found in the
167
+ managed object type section
168
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
169
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]] permissions: The permissions to be given on this entity. Keep
170
+ the permissions sorted alphabetically on `user_or_group` for a better user
171
+ experience.
151
172
  """
152
173
  ...
153
174
  @overload
@@ -172,9 +193,9 @@ class EntityPermissions(pulumi.CustomResource):
172
193
  def _internal_init(__self__,
173
194
  resource_name: str,
174
195
  opts: Optional[pulumi.ResourceOptions] = None,
175
- entity_id: Optional[pulumi.Input[str]] = None,
176
- entity_type: Optional[pulumi.Input[str]] = None,
177
- permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]]] = None,
196
+ entity_id: Optional[pulumi.Input[_builtins.str]] = None,
197
+ entity_type: Optional[pulumi.Input[_builtins.str]] = None,
198
+ permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None,
178
199
  __props__=None):
179
200
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
180
201
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -203,9 +224,9 @@ class EntityPermissions(pulumi.CustomResource):
203
224
  def get(resource_name: str,
204
225
  id: pulumi.Input[str],
205
226
  opts: Optional[pulumi.ResourceOptions] = None,
206
- entity_id: Optional[pulumi.Input[str]] = None,
207
- entity_type: Optional[pulumi.Input[str]] = None,
208
- permissions: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]]] = None) -> 'EntityPermissions':
227
+ entity_id: Optional[pulumi.Input[_builtins.str]] = None,
228
+ entity_type: Optional[pulumi.Input[_builtins.str]] = None,
229
+ permissions: Optional[pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]]] = None) -> 'EntityPermissions':
209
230
  """
210
231
  Get an existing EntityPermissions resource's state with the given name, id, and optional extra
211
232
  properties used to qualify the lookup.
@@ -213,11 +234,14 @@ class EntityPermissions(pulumi.CustomResource):
213
234
  :param str resource_name: The unique name of the resulting resource.
214
235
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
215
236
  :param pulumi.ResourceOptions opts: Options for the resource.
216
- :param pulumi.Input[str] entity_id: The managed object id (uuid for some entities) on which permissions are to be created.
217
- :param pulumi.Input[str] entity_type: The managed object type, types can be found in the managed object type section
218
- [here](https://developer.vmware.com/apis/968/vsphere).
219
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EntityPermissionsPermissionArgs']]]] permissions: The permissions to be given on this entity. Keep the permissions sorted
220
- alphabetically on `user_or_group` for a better user experience.
237
+ :param pulumi.Input[_builtins.str] entity_id: The managed object id (uuid for some entities) on
238
+ which permissions are to be created.
239
+ :param pulumi.Input[_builtins.str] entity_type: The managed object type, types can be found in the
240
+ managed object type section
241
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
242
+ :param pulumi.Input[Sequence[pulumi.Input[Union['EntityPermissionsPermissionArgs', 'EntityPermissionsPermissionArgsDict']]]] permissions: The permissions to be given on this entity. Keep
243
+ the permissions sorted alphabetically on `user_or_group` for a better user
244
+ experience.
221
245
  """
222
246
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
223
247
 
@@ -228,29 +252,32 @@ class EntityPermissions(pulumi.CustomResource):
228
252
  __props__.__dict__["permissions"] = permissions
229
253
  return EntityPermissions(resource_name, opts=opts, __props__=__props__)
230
254
 
231
- @property
255
+ @_builtins.property
232
256
  @pulumi.getter(name="entityId")
233
- def entity_id(self) -> pulumi.Output[str]:
257
+ def entity_id(self) -> pulumi.Output[_builtins.str]:
234
258
  """
235
- The managed object id (uuid for some entities) on which permissions are to be created.
259
+ The managed object id (uuid for some entities) on
260
+ which permissions are to be created.
236
261
  """
237
262
  return pulumi.get(self, "entity_id")
238
263
 
239
- @property
264
+ @_builtins.property
240
265
  @pulumi.getter(name="entityType")
241
- def entity_type(self) -> pulumi.Output[str]:
266
+ def entity_type(self) -> pulumi.Output[_builtins.str]:
242
267
  """
243
- The managed object type, types can be found in the managed object type section
244
- [here](https://developer.vmware.com/apis/968/vsphere).
268
+ The managed object type, types can be found in the
269
+ managed object type section
270
+ [here](https://developer.broadcom.com/xapis/vsphere-web-services-api/latest/).
245
271
  """
246
272
  return pulumi.get(self, "entity_type")
247
273
 
248
- @property
274
+ @_builtins.property
249
275
  @pulumi.getter
250
276
  def permissions(self) -> pulumi.Output[Sequence['outputs.EntityPermissionsPermission']]:
251
277
  """
252
- The permissions to be given on this entity. Keep the permissions sorted
253
- alphabetically on `user_or_group` for a better user experience.
278
+ The permissions to be given on this entity. Keep
279
+ the permissions sorted alphabetically on `user_or_group` for a better user
280
+ experience.
254
281
  """
255
282
  return pulumi.get(self, "permissions")
256
283